From a751e547d67c4f8e2c6fddf958c1559f792515bd Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期五, 27 六月 2025 16:11:50 +0800 Subject: [PATCH] 添加工作流 --- src/views/eam/modules/dailyMaintenanceOrder/FinishDevolutionModal.vue | 99 +++++++++++++++++++++++++++++++++---------------- 1 files changed, 66 insertions(+), 33 deletions(-) diff --git a/src/views/eam/modules/dailyMaintenanceOrder/FinishDevolutionModal.vue b/src/views/eam/modules/dailyMaintenanceOrder/FinishDevolutionModal.vue index ecea2ac..635e8e5 100644 --- a/src/views/eam/modules/dailyMaintenanceOrder/FinishDevolutionModal.vue +++ b/src/views/eam/modules/dailyMaintenanceOrder/FinishDevolutionModal.vue @@ -64,13 +64,25 @@ </a-form-item> </a-col> <a-col :span="8"> - <a-form-item + <!-- <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="淇濆吇鏃ユ湡" > <span v-if="this.model != null">{{ this.model.actualEndTime }}</span> <span v-else>-</span> + </a-form-item> --> + <a-form-item + label="淇濆吇鏃ユ湡" + :labelCol="labelCol" + :wrapperCol="wrapperCol" + > + <j-date + v-model="model.actualEndTime" + placeholder="璇烽�夋嫨淇濆吇鏃ユ湡" + :showTime="true" + dateFormat="YYYY-MM-DD" + /> </a-form-item> </a-col> </a-row> @@ -84,9 +96,17 @@ :columns="columns" :dataSource="dataSource" :pagination="false" - > + /> + <a-table + ref="table" + bordered + size="middle" + rowKey='id' + :columns="columns" + :dataSource="dataSourceOperation" + :pagination="false" + /> - </a-table> <div :style="{width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> <div class="ant-descriptions-title">闂鍙婄浉搴斿鐞嗘帾鏂芥弿杩帮細</div> <a-textarea @@ -210,8 +230,15 @@ data() { return { columns: [ + { - title: '#', + title: '绫诲瀷', + align: 'center', + width: 260, + dataIndex: 'maintenanceRole' + }, + { + title: '搴忓彿', dataIndex: '', key: 'rowIndex', align: 'center', @@ -220,36 +247,33 @@ }, width: 50, }, - { - title: '绫诲瀷', - align: 'center', - dataIndex: 'maintenanceRole' - }, + // { + // title: '閮ㄤ綅', + // align: 'center', + // dataIndex: 'location' + // }, { - title: '閮ㄤ綅', - align: 'center', - dataIndex: 'location' - }, - { - title: '淇濆吇椤圭洰', + title: '淇濆吇鍐呭', align: 'center', dataIndex: 'maintenanceProjectName' }, - { - title: '淇濆吇鏍囧噯', - align: 'center', - dataIndex: 'standard' - }, + // { + // title: '淇濆吇鏍囧噯', + // align: 'center', + // dataIndex: 'standard' + // }, { title: '鎵ц鎯呭喌', align: 'center', - dataIndex: 'maintenanceOrderDetailUda2' + dataIndex: 'maintenanceOrderDetailUda2', + width: 150, }, { title: '鎵ц浜�', align: 'center', dataIndex: 'maintenanceOrderDetailUda1', + width: 150, }, ], @@ -258,6 +282,7 @@ disableSubmit: false, codeDisable: true, dataSource: [], + dataSourceOperation: [], model: {}, // departs: [], labelCol: { @@ -297,18 +322,26 @@ this.form.resetFields(); this.model = Object.assign({}, record); this.visible = true; - if (record.dailyMaintenanceDetails != undefined) { - const temp = [...record.dailyMaintenanceDetails]; + // if (record.dailyMaintenanceDetails != undefined) { + // const temp = [...record.dailyMaintenanceDetails]; + // that.dataSource = temp; + // } + if (record.operationUserDetails != undefined) { + const temp = [...record.operationUserDetails]; + that.dataSourceOperation = temp; + } + if (record.repairUserDetails != undefined) { + const temp = [...record.repairUserDetails]; that.dataSource = temp; } - that.$nextTick(() => { - that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark')); - }); - if (record.id) { - this.codeDisable = true; - } else { - this.codeDisable = false; - } + // that.$nextTick(() => { + // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark')); + // }); + // if (record.id) { + // this.codeDisable = true; + // } else { + // this.codeDisable = false; + // } }, @@ -339,7 +372,7 @@ } else if (this.model.confirmStatus == '4') { formData.confirmStatus = '2' } - requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { + requestPut(this.url.edit, formData, { id: this.model.id, maintenanceDate: this.model.maintenanceDate }).then((res) => { if (res.success) { that.$message.success(res.message); that.$emit('ok'); @@ -376,7 +409,7 @@ } else if (this.model.confirmStatus == '5') { formData.confirmStatus = '7' } - requestPut(this.url.edit, formData, { id: this.model.id }).then((res) => { + requestPut(this.url.edit, formData, { id: this.model.id, maintenanceDate: this.model.maintenanceDate }).then((res) => { if (res.success) { that.$message.success(res.message); that.$emit('ok'); -- Gitblit v1.9.3