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/PredictiveWorkOrderList.vue | 100 ++++++++++++++++++++++++++----------------------- 1 files changed, 53 insertions(+), 47 deletions(-) diff --git a/src/views/eam/PredictiveWorkOrderList.vue b/src/views/eam/PredictiveWorkOrderList.vue index ada83a3..a960d60 100644 --- a/src/views/eam/PredictiveWorkOrderList.vue +++ b/src/views/eam/PredictiveWorkOrderList.vue @@ -1,7 +1,7 @@ <template> <a-card :bordered="false" - title="棰勬祴缁存姢宸ュ崟" + title="" > <!-- 鏌ヨ鍖哄煙 --> <div class="table-page-search-wrapper"> @@ -19,7 +19,7 @@ allow-clear placeholder="璇烽�夋嫨宸ュ崟鐘舵��" :triggerChange="true" - dictCode="repair_order_status" + dictCode="maintenance_order_status" v-model="queryParam.status" /> </a-form-item> @@ -39,9 +39,9 @@ :md="6" :sm="8" > - <a-form-item label="璁惧缂栫爜"> + <a-form-item label="缁熶竴缂栫爜"> <a-input - placeholder="璇疯緭鍏ヨ澶囩紪鐮�" + placeholder="璇疯緭鍏ョ粺涓�缂栫爜" v-model="queryParam.equipmentNum" ></a-input> </a-form-item> @@ -49,14 +49,14 @@ <a-col :md="6" :sm="8" - > - <a-form-item label="璁惧鍚嶇О"> - <a-input - placeholder="璇疯緭鍏ヨ澶囧悕绉�" - v-model="queryParam.equipmentName" - ></a-input> - </a-form-item> - </a-col> + > + <a-form-item label="璁惧鍚嶇О"> + <a-input + placeholder="璇疯緭鍏ヨ澶囧悕绉�" + v-model="queryParam.equipmentName" + ></a-input> + </a-form-item> + </a-col> <a-col :md="6" :sm="8" @@ -132,6 +132,7 @@ <a-popconfirm title="纭畾涓嬪彂宸ュ崟鍚�?" @confirm="() => handleOrderIssue(record)" + v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" > <a v-if="record.status == '1'">涓嬪彂</a> </a-popconfirm> @@ -142,6 +143,7 @@ <a-popconfirm title="纭畾鎾ゅ洖宸ュ崟鍚�?" @confirm="() => handleOrderReset(record)" + v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" > <a v-if="record.status == '2'">鎾ゅ洖</a> </a-popconfirm> @@ -152,6 +154,7 @@ <a-popconfirm title="纭畾鎭㈠宸ュ崟鍚�?" @confirm="() => handleOrderRecover(record)" + v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" > <a v-if="record.status == '7'">鎭㈠</a> </a-popconfirm> @@ -162,6 +165,7 @@ <a-popconfirm title="纭畾浣滃簾宸ュ崟鍚�?" @confirm="() => handleOrderCancel(record)" + v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" > <a v-if="record.status == '2'">浣滃簾</a> </a-popconfirm> @@ -172,20 +176,19 @@ <a-popconfirm title="纭畾棰嗗彇宸ュ崟鍚�?" @confirm="() => handleOrderGet(record)" + v-has="'predictiveWorkOrder:get&do'" > <a v-if="record.status == '2' && record.assignMode == '1'">棰嗗彇</a> </a-popconfirm> <a v-if="record.status == '2' && record.assignMode == '2' " @click="handleAssignOrder(record)" + v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" >娲惧伐</a> <a - v-if="record.status == '2'&& record.assignMode == '3' && record.inspectionUserName != null " + v-if="record.status == '2'&& record.assignMode == '3'&&record.maintenanceUserName!=null" @click="handleAssignOrder(record)" - >鏀规淳</a> - <a - v-if="record.status == '3'" - @click="handleAssignOrder(record)" + v-has="'predictiveWorkOrder:assign&callback&recover&cancle&issue'" >鏀规淳</a> <a-divider v-if="record.status == '2'" @@ -198,6 +201,7 @@ <a v-if="record.status === '3' || record.status === '4' " @click="handleOrderExe(record)" + v-has="'predictiveWorkOrder:get&do'" >鎵ц</a> <a-divider v-if="record.status === '3' || record.status === '4' " @@ -206,6 +210,7 @@ <a v-if="record.status === '1'" @click="handleEdit(record)" + v-has="'predictiveWorkOrder:edit&delete'" >缂栬緫</a> <a-divider v-if="record.status === '1'" @@ -221,6 +226,7 @@ <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)" + v-has="'predictiveWorkOrder:edit&delete'" > <a v-if="record.status === '1'">鍒犻櫎</a> </a-popconfirm> @@ -252,9 +258,9 @@ ref="PredictiveWorkOrderDrawer" @ok="modalFormOk" ></predictive-work-order-drawer> - <order-assign-modal - ref="OrderAssign" - @ok="modalFormOk" + <order-assign-modal + ref="OrderAssign" + @ok="modalFormOk" > </order-assign-modal> @@ -310,7 +316,7 @@ dataIndex: 'monitorType_dictText' }, { - title: '璁惧缂栫爜', + title: '缁熶竴缂栫爜', align: "center", dataIndex: 'equipmentNum', }, @@ -381,17 +387,17 @@ dataIndex: 'actualEndTime', width: 170 }, - { - title: '鍒涘缓浜�', - align: "center", - dataIndex: 'createBy' - }, - { - title: '鍒涘缓鏃ユ湡', - align: "center", - dataIndex: 'createTime', - width: 170 - }, + // { + // title: '鍒涘缓浜�', + // align: "center", + // dataIndex: 'createBy' + // }, + // { + // title: '鍒涘缓鏃ユ湡', + // align: "center", + // dataIndex: 'createTime', + // width: 170 + // }, { title: '鎿嶄綔', dataIndex: 'action', @@ -440,25 +446,25 @@ }, handleOrderExe(record) { - this.$refs. PredictiveWorkOrderDrawer.visible = true - this.$refs. PredictiveWorkOrderDrawer.title = '涓撲笟淇濆吇宸ュ崟鎵ц' - this.$refs. PredictiveWorkOrderDrawer.handleShow(record) + this.$refs.PredictiveWorkOrderDrawer.visible = true + this.$refs.PredictiveWorkOrderDrawer.title = '涓撲笟淇濆吇宸ュ崟鎵ц' + this.$refs.PredictiveWorkOrderDrawer.handleShow(record) if (record.status === '3') { - this.$refs. PredictiveWorkOrderDrawer.buttonDistable = true//淇濆瓨銆佹殏瀛樸�佹姤宸� - this.$refs. PredictiveWorkOrderDrawer.revocationDistable = true//鎾ら攢鎸夐挳 - this.$refs. PredictiveWorkOrderDrawer.SWbuttonDistable = false//寮�宸ユ寜閽� + this.$refs.PredictiveWorkOrderDrawer.buttonDistable = true//淇濆瓨銆佹殏瀛樸�佹姤宸� + this.$refs.PredictiveWorkOrderDrawer.revocationDistable = true//鎾ら攢鎸夐挳 + this.$refs.PredictiveWorkOrderDrawer.SWbuttonDistable = false//寮�宸ユ寜閽� } else if (record.status === '4') { - this.$refs. PredictiveWorkOrderDrawer.buttonDistable = false - this.$refs. PredictiveWorkOrderDrawer.revocationDistable = true - this.$refs. PredictiveWorkOrderDrawer.SWbuttonDistable = true + this.$refs.PredictiveWorkOrderDrawer.buttonDistable = false + this.$refs.PredictiveWorkOrderDrawer.revocationDistable = true + this.$refs.PredictiveWorkOrderDrawer.SWbuttonDistable = true } else if (record.status === '5') { - this.$refs. PredictiveWorkOrderDrawer.buttonDistable = true - this.$refs. PredictiveWorkOrderDrawer.revocationDistable = false - this.$refs. PredictiveWorkOrderDrawer.SWbuttonDistable = true + this.$refs.PredictiveWorkOrderDrawer.buttonDistable = true + this.$refs.PredictiveWorkOrderDrawer.revocationDistable = false + this.$refs.PredictiveWorkOrderDrawer.SWbuttonDistable = true } else if (record.status === '7') { - this.$refs. PredictiveWorkOrderDrawer.buttonDistable = true - this.$refs. PredictiveWorkOrderDrawer.revocationDistable = true - this.$refs. PredictiveWorkOrderDrawer.SWbuttonDistable = true + this.$refs.PredictiveWorkOrderDrawer.buttonDistable = true + this.$refs.PredictiveWorkOrderDrawer.revocationDistable = true + this.$refs.PredictiveWorkOrderDrawer.SWbuttonDistable = true } }, -- Gitblit v1.9.3