From 70739f0f4b91822aac790a3f773613353e9f56ca Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Fri, 17 Nov 2023 11:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A1=AB=E5=86=99=E8=AE=B0=E5=BD=95BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/deviceOrder/index.vue | 4 +- .../device/spotInspectionOrder/index.vue | 9 +- src/views/device/upkeepPlan/index.vue | 99 +++++++++++++++---- 3 files changed, 89 insertions(+), 23 deletions(-) diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue index a70a2619..c487ca9b 100644 --- a/src/views/device/deviceOrder/index.vue +++ b/src/views/device/deviceOrder/index.vue @@ -363,11 +363,11 @@ - {{ this.form.equ.equipmentName }} + {{ this.form.equipmentName }} -
+
diff --git a/src/views/device/spotInspectionOrder/index.vue b/src/views/device/spotInspectionOrder/index.vue index 3a34ebb6..0018fbb9 100644 --- a/src/views/device/spotInspectionOrder/index.vue +++ b/src/views/device/spotInspectionOrder/index.vue @@ -367,11 +367,11 @@ - {{ this.form.equ.equipmentName }} + {{ this.form.equipmentName }} -
+
@@ -395,7 +395,7 @@ 达标 - + @@ -523,6 +523,7 @@ export default { orderStart: null, orderEnd: null, equipmentCode: null, + equipmentName: null, orderStatus: null, orderCost: null, planPerson: null, @@ -537,7 +538,6 @@ export default { createTime: null, updateBy: null, updateTime: null, - equ: {equipmentName: null}, }, // 表单参数 form: { @@ -602,6 +602,7 @@ export default { orderStart: null, orderEnd: null, equipmentCode: null, + equipmentName: null, orderStatus: null, orderCost: null, planPerson: null, diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index 38fc6aa4..801e50d4 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -18,12 +18,14 @@ /> - + + + + + + + + - + - + - + - + + + + + + + + + 搜索 重置 @@ -268,8 +306,8 @@ - - + + @@ -446,7 +484,7 @@ 内部 - 外部 + 委外 @@ -484,6 +522,11 @@ label="保养项" width="300"> + + + - + @@ -975,6 +1021,8 @@ export default { updateTime: null, createTimeArray: [], updateTimeArray: [], + loopEndArray: [], + loopStartArray: [], }, // 表单参数 form: { @@ -996,8 +1044,20 @@ export default { }, created() { this.getList(); + this.setWorkCenter(); }, methods: { + // 备件数量 + handleEdit(index, row) { + console.log('row:',index, row); + if (row.amount < Number(row.applyNum)) { + this.$message({ + message: '超过库存数量!', + type: 'warning' + }) + row.applyNum = row.amount; + } + }, // 备件选择完成按钮 spareChangeCom() { console.log("点击了完成按钮") @@ -1036,7 +1096,7 @@ export default { }, // 选择备件-添加备件 addSpareList(e) { - console.log("选择备件") + console.log("选择备件123") console.log(e) for (let i = 0; i < this.chooseSpareList.length; i++){ if (this.chooseSpareList[i].materialCode == e.materialCode) { @@ -1189,7 +1249,7 @@ export default { }, // 选择备件按钮操作 selectSpareBtn(e) { - console.log("点击了选择备件按钮!") + console.log("点击了选择备件按钮!321") console.log(e) this.setSpareList(); if (e.spareList == null) { @@ -1406,6 +1466,8 @@ export default { workOutsourcingUnit: null, workConnection: null, workReason: null, + loopEndArray: [], + loopStartArray: [], }; this.resetForm("form"); }, @@ -1431,6 +1493,9 @@ export default { // 重置日期范围 this.queryParams.createTimeArray = []; this.queryParams.updateTimeArray = []; + this.queryParams.loopEndArray = []; + this.queryParams.loopStartArray = []; + this.queryParams.upkeep = null; this.handleQuery(); }, // 多选框选中数据