From 5278367594c771773d1e27f6f18c724cceab7f2b Mon Sep 17 00:00:00 2001 From: zhaoxiaolin Date: Wed, 13 Dec 2023 17:57:47 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A2=86=E6=96=99=E5=8D=95+=E8=B4=A8?= =?UTF-8?q?=E9=87=8F=E7=9C=8B=E6=9D=BF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/prepare/index.vue | 72 ++++++++++++------------------ src/views/mes/reportWork/index.vue | 2 +- 2 files changed, 30 insertions(+), 44 deletions(-) diff --git a/src/views/mes/prepare/index.vue b/src/views/mes/prepare/index.vue index fef9d83..dced4b2 100644 --- a/src/views/mes/prepare/index.vue +++ b/src/views/mes/prepare/index.vue @@ -9,9 +9,9 @@ @keyup.enter.native="handleQuery" /> - + + 搜索 重置 @@ -128,41 +129,24 @@ - - - - + + + - - - + - + + --> + + + width="170"> + width="320"> { console.log(response.data) this.printData.factory = response.data.mesPrepareDetailList[0].factoryCode - this.printData.productDate = response.data.mesPrepare.productDate + this.printData.productDate = response.data.mesPrepareDetailList[0].productDate this.printData.printDate = moment(new Date()).format('YYYY-MM-DD') this.printData.workTable = response.data.mesPrepareDetailList this.refreshNewWorkerTable = true // 立即将refreshProTable设置为true,显示表格 diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 52d6272..a396547 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -935,7 +935,7 @@ export default { return reportSap(code); }).then(() => { this.getList(); - this.$modal.msgSuccess("报工成功"); + //this.$modal.msgSuccess("报工成功"); }).catch(() => {}); }, /** 报工详情按钮操作 */ From 05b288b81c0b2cd8d2af2035c7fe11aff628fe52 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Wed, 13 Dec 2023 22:12:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=A4=87=E4=BB=B6=E7=94=B3=E9=A2=86?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repairOrder/selectSparePartsLedger.vue | 4 +++- .../sparePartsApplicationRecord/index.vue | 8 +++---- .../selectSinglePerson.vue | 14 ----------- .../selectSparePartsLedger.vue | 23 ++++--------------- 4 files changed, 10 insertions(+), 39 deletions(-) diff --git a/src/views/device/repairOrder/selectSparePartsLedger.vue b/src/views/device/repairOrder/selectSparePartsLedger.vue index 7acffbf..3ca7600 100644 --- a/src/views/device/repairOrder/selectSparePartsLedger.vue +++ b/src/views/device/repairOrder/selectSparePartsLedger.vue @@ -6,7 +6,7 @@ :modal="false" width="1100px" center - :before-close="cancel" + :before-close = "cancel" > { this.sparePartsLedgerList = response.rows; diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue index c50bd06..e8c0888 100644 --- a/src/views/device/sparePartsApplicationRecord/index.vue +++ b/src/views/device/sparePartsApplicationRecord/index.vue @@ -306,15 +306,15 @@ @@ -486,9 +486,6 @@ export default { spareName: [ { required: true, message: "备品备件名称不能为空", trigger: "blur" }, ], - spareModel: [ - { required: true, message: "规格型号不能为空", trigger: "blur" }, - ], spareQuantity: [ { required: true, message: "数量不能为空", trigger: "blur" }, ], @@ -517,6 +514,7 @@ export default { this.form.amount = obj[0].amount; this.form.storageAmount = obj[0].storageAmount; this.form.availableQuantity = obj[0].amount - obj[0].storageAmount; + this.form.spareQuantity = obj[0].spareQuantity; }, //设备选择 handleSelectEquipment() { diff --git a/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue b/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue index 111400c..493e3b0 100644 --- a/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue +++ b/src/views/device/sparePartsApplicationRecord/selectSinglePerson.vue @@ -84,18 +84,6 @@ v-if="columns[1].visible" :show-overflow-tooltip="true" /> - - - - - - - + - \ No newline at end of file