From 8552c06f1146006bf8d2a3ad4a85bb5307e5d4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=B8=96=E5=BC=BA?= Date: Thu, 6 Apr 2023 15:19:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scm/basicInformation/tradeupload/Form.vue | 15 +- .../basicInformation/tradeupload/Form4.vue | 890 ++++++++++++++++++ .../basicInformation/tradeupload/index.vue | 21 +- 3 files changed, 918 insertions(+), 8 deletions(-) create mode 100644 SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue b/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue index 16d382e4..0f2d65c1 100644 --- a/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue +++ b/SC-web/src/views/scm/basicInformation/tradeupload/Form.vue @@ -213,6 +213,7 @@ props: [], data() { return { + controll: false, submitDisabled: false, fileList: [], uploadHeaders: { @@ -453,10 +454,13 @@ mounted() {}, methods: { imgChange(res) { - this.dataForm.customerId = res.data.customerId; - this.dataForm.customerName = res.data.customerName; - this.dataForm.salesId = res.data.salesId; - this.dataForm.salesName = res.data.salesName; + debugger + if (!this.controll){ + this.dataForm.customerId = res.data.customerId; + this.dataForm.customerName = res.data.customerName; + this.dataForm.salesId = res.data.salesId; + this.dataForm.salesName = res.data.salesName; + } this.dataForm.vehicleId = res.data.vehicleId; this.dataForm.poundDate = res.data.poundDate; this.dataForm.poundlistNo = res.data.poundlistNo; @@ -556,6 +560,7 @@ } }, init(id, isDetail) { + this.controll=false; this.value = []; this.dataForm.id = id || 0; this.visible = true; @@ -663,6 +668,7 @@ type: 'success', duration: 1000, onClose: () => { + this.controll = true; this.submitDisabled = false; this.dataForm.id = ''; this.dataForm.tareWeight = 0; //皮重 @@ -687,6 +693,7 @@ type: 'success', duration: 1000, onClose: () => { + this.controll = true; this.submitDisabled = false; this.dataForm.id = ''; this.dataForm.tareWeight = 0; //皮重 diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue b/SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue new file mode 100644 index 00000000..72aa92f9 --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/tradeupload/Form4.vue @@ -0,0 +1,890 @@ + + + diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/index.vue b/SC-web/src/views/scm/basicInformation/tradeupload/index.vue index 7e05c183..ba0375da 100644 --- a/SC-web/src/views/scm/basicInformation/tradeupload/index.vue +++ b/SC-web/src/views/scm/basicInformation/tradeupload/index.vue @@ -161,7 +161,7 @@ @click="addOrUpdateHandle2(scope.row.id)" v-has="'btn_addOrUpdateHandle2'">审核 编辑 + @click="addOrUpdateHandle3(scope.row.id)" v-has="'btn_edit'">编辑 删除 @@ -178,6 +178,7 @@ + @@ -189,13 +190,14 @@ import JNPFForm from './Form' import JNPFForm2 from './Form2' import JNPFForm3 from './Form3' + import JNPFForm4 from './Form4' import ExportBox from './ExportBox' import { getDataInterfaceRes } from '@/api/systemData/dataInterface' import Detail from './Detail' export default { - components: { JNPFForm, JNPFForm2, JNPFForm3, ExportBox, Detail }, + components: { JNPFForm, JNPFForm2, JNPFForm3, JNPFForm4, ExportBox, Detail }, data() { return { showAll: false, @@ -221,6 +223,7 @@ formVisible: false, formVisible2: false, formVisible3: false, + formVisible4: false, exportBoxVisible: false, columnList: [ { prop: 'creatorTime', label: '磅单日期' }, @@ -367,6 +370,12 @@ this.$refs.JNPFForm2.init(id, isDetail) }) }, + addOrUpdateHandle3(id, isDetail) { + this.formVisible4 = true + this.$nextTick(() => { + this.$refs.JNPFForm4.init(id, isDetail) + }) + }, exportData() { this.exportBoxVisible = true this.$nextTick(() => { @@ -404,7 +413,11 @@ if (isrRefresh) this.reset() }, refresh3(isrRefresh) { - this.formVisible2 = false + this.formVisible3 = false + if (isrRefresh) this.reset() + }, + refresh4(isrRefresh) { + this.formVisible4 = false if (isrRefresh) this.reset() }, reset() { @@ -413,7 +426,7 @@ // } this.search() }, - reset() { + resetAll() { for (let key in this.query) { this.query[key] = undefined }