| | |
| | | </el-collapse> |
| | | </el-form> |
| | | <el-row :gutter="10" class="mb8" style="margin-top: 10px"> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddEdit((OperationType = 1))" |
| | | id="btn-Add">新增</el-button> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single" |
| | | @click="handleEdit((row = rowForm), (OperationType = 3))">编辑</el-button> |
| | |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" |
| | | @click="set_CheckBill(0)">审核 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" |
| | | @click="set_CheckBill(1)">反审核 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" |
| | | @click="set_CloseBill(0)">关闭 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" |
| | | @click="set_CloseBill(1)">反关闭 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" |
| | | @click="set_DropBill(0)">作废 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" |
| | | @click="set_DropBill(1)">反作废 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-date" size="mini" @click="handleRowHide">隐藏列设置</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-printer" size="mini" @click="get_PrintReport">打印</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single" |
| | | @click="get_BarCodeDetail">条码明细</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | <div class="tableBox" v-loading="loading"> |
| | |
| | | <div :style="item.style"> |
| | | <span v-if="column.property.includes('日期')">{{ |
| | | parseTime(row[column.property], "{y}-{m}-{d}") |
| | | }}</span> |
| | | }}</span> |
| | | <el-button type="text" @click="handleEdit(row, (OperationType = 3))" |
| | | v-else-if="column.property == '单据号'">{{ row.单据号 }}</el-button> |
| | | <span v-else>{{ row[column.label] }}</span> |
| | |
| | | <el-dialog title="编辑" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" |
| | | @close="close"> |
| | | <edit :OperationType="OperationType" :linterid="this.rowForm.hmainid" |
| | | :HSouceBillType="this.rowForm.HSourceBillType" :copyType="copyType" @editClose="editClose" |
| | | HSouceBillType="0" :copyType="copyType" @editClose="editClose" |
| | | v-if="editShow" /> |
| | | </el-dialog> |
| | | <PrintList :linterid="this.rowForm.hmainid" :MyMsg="this.rowForm.hmainid" Type="HPOInStockBill" |
| | | HModName="HPOInStockBill" @rowEditClose="rowSetClose" v-if="printListShow" /> |
| | | <BarCodeDetail :visible.sync="barCodeDetailShow" ref="barcodeDetail" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | <script> |
| | | import axios from "axios"; |
| | | import RowSettings from "@/views/component/rowSettings"; |
| | | import Edit from "@/views/warehouse/shipment/Kf_StockOutRequestBill.vue"; |
| | | import Edit from "@/views/purchase/postockInBack/Kf_POStockInBackBill.vue"; |
| | | import PrintList from "@/views/component/printList"; |
| | | import BarCodeDetail from '@/views/component/BarCodeDetail' //条码明细组件 |
| | | import moment from "moment"; |
| | |
| | | this.total = data1.count; |
| | | var data = []; //列字段数据 |
| | | var col = []; |
| | | var totalArray = ["金额","采购金额","应退数量","实退数量"]; |
| | | var totalArray = ["金额", "采购金额", "应退数量", "实退数量"]; |
| | | //给空的数组赋值 |
| | | for (var key in data1.list) { |
| | | //循序遍历数组 |
| | |
| | | }); |
| | | }).catch(() => { }); |
| | | }, |
| | | set_CheckBill(num) { |
| | | //逻辑审核方法 |
| | | axios.get(this.baseURL + "/Kf_POStockInBackBill/AuditProcessReportList", { |
| | | params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | | if (result.code == 1) { |
| | | this.checkDisabled = true |
| | | this.abandoncheckDisabled = false |
| | | this.$modal.msgSuccess('操作成功'); |
| | | } |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | | set_CloseBill(num) { |
| | | //逻辑关闭方法 |
| | | axios.get(this.baseURL + "/Kf_POStockInBackBill/CloseKf_POStockInBackBill", { |
| | | params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | | if (result.code == 1) { |
| | | this.checkDisabled = true |
| | | this.abandoncheckDisabled = false |
| | | this.$modal.msgSuccess('操作成功'); |
| | | } |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | | set_DropBill(num) { |
| | | //逻辑作废方法 |
| | | axios.get(this.baseURL + "/Kf_POStockInBackBill/DropKf_POStockInBackBill", { |
| | | params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] } |
| | | }).then(response => { |
| | | let result = response.data |
| | | if (result.code == 1) { |
| | | this.checkDisabled = true |
| | | this.abandoncheckDisabled = false |
| | | this.$modal.msgSuccess('操作成功'); |
| | | } |
| | | else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message,); |
| | | } |
| | | }).catch(error => { |
| | | this.$modal.msgError("接口请求失败!"); |
| | | }); |
| | | }, |
| | | //打印 |
| | | get_PrintReport() { |
| | | if (this.ids.length != 1) { |
| | | this.$modal.msgError("请选择一行数据"); |
| | | } else { |
| | | this.printListShow = true; |
| | | this.openPrintList = true; |
| | | // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", { |
| | | // params: { HInterID: this.rowForm.hmainid }, |
| | | // }) |
| | | // .then((response) => { |
| | | // var result = response.data; |
| | | // if (result.count == 1) { |
| | | // this.printListShow = true; |
| | | // this.openPrintList = true; |
| | | // // this.$router.push({ path:'/printList', query: { linterid: this.rowForm.hmainid,MyMsg:this.rowForm.hmainid,Type:'Kf_SellOutBillList' }}) |
| | | // } else { |
| | | // this.$modal.msgError(result.code + result.Message); |
| | | // } |
| | | // }) |
| | | // .catch((error) => { |
| | | // this.$modal.msgError("接口请求失败!"); |
| | | // }); |
| | | } |
| | | // var content= ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=Kf_SellOutBillList', 'yes'] |
| | | }, |
| | | //#region 条码明细 |
| | | get_BarCodeDetail() { |
| | | // if (this.selectedRow.length !== 1) { |
| | | // this.$message.warning('请选择一行数据查看条码明细!') |
| | | // return |
| | | // } |
| | | this.barCodeDetailShow = true |
| | | this.$nextTick(() => { |
| | | this.$refs.barcodeDetail.open(this.rowForm) |
| | | }) |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |