From 52b10180d77f2962e519300469811a911afa3cf2 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期四, 11 一月 2024 17:42:58 +0800 Subject: [PATCH] 保养拆分 页面问题修改 --- src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue b/src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue index 69e6f8a..5f79a1d 100644 --- a/src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue +++ b/src/views/eam/modules/daily3MaintenanceOrder/DailyMaintenanceOrderExeDrawer.vue @@ -97,7 +97,7 @@ > <span v-if="this.model != null" - class="hight" + class="hightColor" >{{ this.model.teamName }}</span> <span v-else @@ -107,9 +107,9 @@ </a-col> </a-row> <a-row :gutter="24"> - <a-col :span="24"> + <a-col :span="17"> <a-form-item - label="闂鍙婂鐞嗘帾鏂芥弿杩�" + label="闂/澶勭悊鎺柦" :labelCol="{span:3}" :wrapperCol="{span:18}" class="hightColor" @@ -119,6 +119,21 @@ :disabled="this.model.status!='4'" :placeholder="'璇疯緭鍏ラ棶棰樺強澶勭悊鎺柦鎻忚堪'" v-model="model.description" + /> + </a-form-item> + </a-col> + <a-col :span="7"> + <a-form-item + label="鎶ュ伐浜�" + :labelCol="{span:4}" + :wrapperCol="{span:17}" + class="hightColor" + > + <a-input + :disabled="this.model.status!='4'" + allow-clear + placeholder="璇疯緭鍏ユ姤宸ヤ汉" + v-model="model.maintenanceUserId" /> </a-form-item> </a-col> @@ -417,7 +432,7 @@ }, { - title: '閮ㄤ綅', + title: '淇濆吇閮ㄤ綅', align: 'center', dataIndex: 'location', }, @@ -430,12 +445,12 @@ // }, // class: "notshow" { - title: '淇濆吇椤圭洰', + title: '淇濆吇鍐呭', align: 'center', dataIndex: 'maintenanceProjectNum', }, { - title: '淇濆吇鏍囧噯', + title: '楠屾敹鏍囧噯', align: 'center', dataIndex: 'standard', }, @@ -594,13 +609,26 @@ handleReport() { const that = this; that.confirmLoading = true; + for (let i = 0; i < that.dataSource.length; i++) { + let o = this.dataSource[i] + if (o.maintenanceOrderDetailUda1 == null || o.maintenanceOrderDetailUda1 == '') { + that.$message.warning("璇峰~鍐欑" + (i + 1) + "淇濆吇浜猴紒"); + that.confirmLoading = false; + return + } + } + if (that.model.maintenanceUserId == null || that.model.maintenanceUserId == "") { + that.$message.warning("璇峰~鍐欐姤宸ヤ汉锛�"); + that.confirmLoading = false; + return + } this.$confirm({ title: '淇濆吇宸ュ崟鎶ュ伐', content: '鎻愮ず锛氭姤宸ュ悗淇濆吇瀹屽伐锛岃璋ㄦ厧鎿嶄綔锛�', okText: '纭', cancelText: '鍙栨秷', onOk() { - requestPut(that.url.report, { id: that.model.id, status: '5', description: that.model.description }).then((res) => { + requestPut(that.url.report, { id: that.model.id, status: '5', description: that.model.description, dailyMaintenanceOrderDetails: that.dataSource, maintenanceUserId: that.model.maintenanceUserId }).then((res) => { if (res.success) { that.model.status = '5' that.$message.success(res.message) -- Gitblit v1.9.3