From 5bc74e7e10ca2fb925d9e83e8f9e2662d09e0de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Mon, 4 Dec 2023 01:03:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BB=A5=E9=94=80=E5=AE=9A?= =?UTF-8?q?=E8=B4=AD=E7=9A=84=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/views/bill/mixins/BillModalMixin.js | 2 ++ .../src/views/bill/modules/PurchaseOrderModal.vue | 11 ++--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/jshERP-web/src/views/bill/mixins/BillModalMixin.js b/jshERP-web/src/views/bill/mixins/BillModalMixin.js index c2b4fc25..2be425fd 100644 --- a/jshERP-web/src/views/bill/mixins/BillModalMixin.js +++ b/jshERP-web/src/views/bill/mixins/BillModalMixin.js @@ -164,6 +164,8 @@ export const BillModalMixin = { let multiBillType = res.data.multiBillType let multiLevelApprovalFlag = res.data.multiLevelApprovalFlag this.checkFlag = getCheckFlag(multiBillType, multiLevelApprovalFlag, this.prefixNo) + this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false + this.inOutManageFlag = res.data.inOutManageFlag==='1'?true:false } }) }, diff --git a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue index bf74741a..3a0e48df 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue @@ -221,6 +221,7 @@ prefixNo: 'CGDD', fileList:[], rowCanEdit: true, + //以销定购的场景开关 purchaseBySaleFlag: false, model: {}, labelCol: { @@ -293,7 +294,6 @@ this.currentSelectDepotId = '' this.rowCanEdit = true this.materialTable.columns[0].type = FormTypes.popupJsh - this.getSystemConfig() this.changeColumnHide() this.changeFormTypes(this.materialTable.columns, 'preNumber', 0) this.changeFormTypes(this.materialTable.columns, 'finishNumber', 0) @@ -419,14 +419,7 @@ }) this.materialTable.dataSource = selectBillDetailRows } - }, - getSystemConfig() { - getCurrentSystemConfig().then((res) => { - if(res.code === 200 && res.data){ - this.purchaseBySaleFlag = res.data.purchaseBySaleFlag==='1'?true:false - } - }) - }, + } } }