From 52a4d6ae63e5b4c3044f38663e28438851f41c82 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Sat, 1 Jun 2024 12:05:50 +0800 Subject: [PATCH] =?UTF-8?q?2024-06-1=20=E8=AE=BE=E5=A4=87-=E5=A4=87?= =?UTF-8?q?=E5=93=81=E5=A4=87=E4=BB=B6=E7=9B=B8=E5=85=B3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sparePartsApplicationRecord/index.vue | 52 +- src/views/device/sparePartsLedger/index.vue | 466 ++++++++++++++---- 2 files changed, 409 insertions(+), 109 deletions(-) diff --git a/src/views/device/sparePartsApplicationRecord/index.vue b/src/views/device/sparePartsApplicationRecord/index.vue index 2e35115..d077b2b 100644 --- a/src/views/device/sparePartsApplicationRecord/index.vue +++ b/src/views/device/sparePartsApplicationRecord/index.vue @@ -9,6 +9,22 @@ v-show="showSearch" label-width="98px" > + + + + + + + + + - + @@ -49,14 +73,6 @@ @keyup.enter.native="handleQuery" /> --> - - - + {{ parseTime(scope.row.applyTime) }} - { if (valid) { + console.log("this.form",this.form); if (this.form.applyId != null) { updateSparePartsApplicationRecord(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -639,6 +658,7 @@ export default { this.getList(); }); } else { + console.log("this.form",this.form); if ( this.form.amount - this.form.storageAmount < this.form.spareQuantity diff --git a/src/views/device/sparePartsLedger/index.vue b/src/views/device/sparePartsLedger/index.vue index 8754f59..f84b564 100644 --- a/src/views/device/sparePartsLedger/index.vue +++ b/src/views/device/sparePartsLedger/index.vue @@ -76,38 +76,41 @@ - + + 新增 + + + 修改 + + + 删除 + - + + + - - - + + + - - - - - - - - - + + + + + + + + + - - - - - - - + + + + + + + - + - - + + @@ -232,9 +329,10 @@ /> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --> + + + @@ -470,7 +747,9 @@ export default { spareConversionRatio: null, spareInventoryFloor: null, spareInventoryUpper: null, - ownEquipmentName : null, + ownEquipmentName: null, + ownEquipmentCode: null, + unitPrice: null, }, options: [ { @@ -562,6 +841,7 @@ export default { spareConversionRatio: null, spareInventoryFloor: null, spareInventoryUpper: null, + unitPrice: null, }; this.resetForm("form"); }, @@ -601,6 +881,7 @@ export default { submitForm() { this.$refs["form"].validate((valid) => { if (valid) { + this.form.spareName = this.form.materialDesc; if (this.form.storageId != null) { updateSparePartsLedger(this.form).then((response) => { this.$modal.msgSuccess("修改成功"); @@ -643,7 +924,6 @@ export default { `sparePartsLedger_${new Date().getTime()}.xlsx` ); }, - }, }; - + \ No newline at end of file