From 5cbba170e270e6f1c99a91e27dbb7951a27d596a Mon Sep 17 00:00:00 2001 From: “linengliang” <vanSuperEnergy@163.com> Date: 星期五, 24 十一月 2023 16:41:32 +0800 Subject: [PATCH] 故障报修验收 --- src/views/eam/DailyInspectionOrderList.vue | 190 ++++++++++++++++++++++++++++------------------ 1 files changed, 115 insertions(+), 75 deletions(-) diff --git a/src/views/eam/DailyInspectionOrderList.vue b/src/views/eam/DailyInspectionOrderList.vue index 0a13ad4..a5a1cf9 100644 --- a/src/views/eam/DailyInspectionOrderList.vue +++ b/src/views/eam/DailyInspectionOrderList.vue @@ -1,7 +1,7 @@ <template> <a-card :bordered="false" - title="鏃ュ父鐐规宸ュ崟" + title="鑷富缁存姢鐐规宸ュ崟" > <!-- 鏌ヨ鍖哄煙 --> <div class="table-page-search-wrapper"> @@ -64,6 +64,7 @@ @click="handleAdd" type="primary" icon="plus" + v-has="'dailyInspectionOrder:add'" >鏂板</a-button> <!-- <a-button type="primary" @@ -128,10 +129,11 @@ slot-scope="text, record" > <a-popconfirm - title="纭畾涓嬪彂宸ュ崟鍚�?" + title="纭畾鎺ユ敹宸ュ崟鍚�?" @confirm="() => handleOrderIssue(record)" + v-has="'dailyInspectionOrder:issue'" > - <a v-if="record.status == '1'">涓嬪彂</a> + <a v-if="record.status == '1'">鎺ユ敹</a> </a-popconfirm> <a-divider v-if="record.status == '1'" @@ -140,6 +142,7 @@ <a-popconfirm title="纭畾鎾ゅ洖宸ュ崟鍚�?" @confirm="() => handleOrderReset(record)" + v-has="'dailyInspectionOrder:issue'" > <a v-if="record.status == '2'">鎾ゅ洖</a> </a-popconfirm> @@ -147,44 +150,50 @@ v-if="record.status == '2'" type="vertical" /> - <a-popconfirm + <!-- <a-popconfirm title="纭畾鎭㈠宸ュ崟鍚�?" @confirm="() => handleOrderRecover(record)" + v-has="'dailyInspectionOrder:recover'" > <a v-if="record.status == '7'">鎭㈠</a> </a-popconfirm> <a-divider v-if="record.status == '7'" type="vertical" - /> - <a-popconfirm + /> --> + <!-- <a-popconfirm title="纭畾浣滃簾宸ュ崟鍚�?" @confirm="() => handleOrderCancel(record)" + v-has="'dailyInspectionOrder:recover'" > <a v-if="record.status == '2'">浣滃簾</a> </a-popconfirm> <a-divider v-if="record.status == '2'" type="vertical" - /> + /> --> <a-popconfirm title="纭畾棰嗗彇宸ュ崟鍚�?" @confirm="() => handleOrderGet(record)" + v-has="'dailyInspectionOrder:get'" > <a v-if="record.status == '2' && record.assignMode == '1'">棰嗗彇</a> </a-popconfirm> - <a + <!-- <a v-if="record.status == '2' && record.assignMode == '2' " @click="handleAssignOrder(record)" - >娲惧伐</a> - <a + v-has="'dailyInspectionOrder:assign'" + >娲惧伐</a> --> + <!-- <a v-if="record.status == '2'&& record.assignMode == '3' && record.inspectionUserName != null " @click="handleAssignOrder(record)" + v-has="'dailyInspectionOrder:assign'" >鏀规淳</a> <a v-if="record.status == '3'" @click="handleAssignOrder(record)" - >鏀规淳</a> + v-has="'dailyInspectionOrder:assign'" + >鏀规淳</a>--> <a-divider v-if="record.status == '2'" type="vertical" @@ -196,14 +205,27 @@ <a v-if="record.status === '3' || record.status === '4' " @click="handleOrderExe(record)" + v-has="'dailyInspectionOrder:exe'" >鎵ц</a> <a-divider v-if="record.status === '3' || record.status === '4' " type="vertical" /> + <a-popconfirm + title="缁翠慨浜虹‘璁ゅ畬宸ュ悧?" + @confirm="() => handleOrderRepairConfirm(record)" + v-has="'dailyInspectionOrder:repairConfirm'" + > + <a v-if="record.status == '5'">缁翠慨纭</a> + </a-popconfirm> + <a-divider + v-if="record.status == '5'" + type="vertical" + /> <a v-if="record.status === '1'" @click="handleEdit(record)" + v-has="'dailyInspectionOrder:edit'" >缂栬緫</a> <a-divider v-if="record.status === '1'" @@ -219,6 +241,7 @@ <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)" + v-has="'dailyInspectionOrder:delete'" > <a v-if="record.status === '1'">鍒犻櫎</a> </a-popconfirm> @@ -232,7 +255,7 @@ slot-scope="text, record" > <a - v-if="record.status === '3' || record.status === '4' ||record.status === '5' ||record.status === '7' " + v-if="record.status === '3' || record.status === '4' ||record.status === '5' ||record.status === '6' " class="lot" @click="handleOrderExe(record)" >{{record.num}}</a> @@ -299,11 +322,7 @@ return parseInt(index) + 1; } }, - { - title: '鐘舵��', - align: "center", - dataIndex: 'statusName' - }, + { title: '鐐规宸ュ崟鍙�', align: "center", @@ -311,28 +330,40 @@ scopedSlots: { customRender: 'num' } }, { - title: '鐐规鏃ユ湡', + title: '鐘舵��', align: "center", - dataIndex: 'inspectionDate', - customRender: function (text) { - return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) - } + width: 100, + dataIndex: 'statusName' }, { - title: '鐐规鏃堕棿', + title: '鐐规鍛ㄦ湡', align: "center", - dataIndex: 'inspectionTime', - customRender: function (text) { - return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text) - } + width: 100, + dataIndex: 'inspectionCycleName' }, + // { + // title: '鐐规鏃ユ湡', + // align: "center", + // dataIndex: 'inspectionDate', + // customRender: function (text) { + // return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) + // } + // }, + // { + // title: '鐐规鏃堕棿', + // align: "center", + // dataIndex: 'inspectionTime', + // // customRender: function (text) { + // // return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text) + // // } + // }, + // { + // title: '鎴鏃堕棿', + // align: "center", + // dataIndex: 'inspectionDeadline', + // }, { - title: '鎴鏃堕棿', - align: "center", - dataIndex: 'inspectionDeadline', - }, - { - title: '璁惧缂栫爜', + title: '缁熶竴缂栫爜', align: "center", dataIndex: 'equipmentNum' }, @@ -347,7 +378,7 @@ dataIndex: 'equipmentModel' }, { - title: '瀵硅薄閮ㄩ棬', + title: '浣跨敤閮ㄩ棬', align: "center", dataIndex: 'useDepartName' }, @@ -356,45 +387,41 @@ align: "center", dataIndex: 'teamName' }, - { - title: '寮�宸ユ潯浠�', - align: "center", - dataIndex: 'startWorkCondition', - customRender: (text) => { - if (text == '1') { - return "鏄�"; - } else if (text == '0') { - return "鍚�"; - } - }, - }, - { - title: '鐐规鏍囧噯缂栫爜', - align: "center", - dataIndex: 'inspectionStandardNum' - }, - { - title: '鐐规鍛ㄦ湡', - align: "center", - dataIndex: 'inspectionCycleName' - }, - { - title: '娲惧伐鏂瑰紡', - align: "center", - dataIndex: 'assignModeName' - }, - { - title: '鐐规缁撴灉', - align: "center", - dataIndex: 'result' - }, + // { + // title: '寮�宸ユ潯浠�', + // align: "center", + // dataIndex: 'startWorkCondition', + // customRender: (text) => { + // if (text == '1') { + // return "鏄�"; + // } else if (text == '0') { + // return "鍚�"; + // } + // }, + // }, + // { + // title: '鐐规鏍囧噯缂栫爜', + // align: "center", + // dataIndex: 'inspectionStandardNum' + // }, + + // { + // title: '娲惧伐鏂瑰紡', + // align: "center", + // dataIndex: 'assignModeName' + // }, + // { + // title: '鐐规缁撴灉', + // align: "center", + // dataIndex: 'result' + // }, { title: '鐐规浜�', align: "center", dataIndex: 'inspectionUserName' }, { - title: '瀹屾垚鏃堕棿', + title: '鐐规鏃堕棿', align: "center", dataIndex: 'actualEndTime', // customRender: function (text) { @@ -402,10 +429,23 @@ // } }, { - title: '鍒涘缓浜�', + title: '缁翠慨纭浜�', align: "center", - dataIndex: 'createBy' + dataIndex: 'repairConfirmPerson' }, + { + title: '纭鏃堕棿', + align: "center", + dataIndex: 'repairConfirmDate', + // customRender: function (text) { + // return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) + // } + }, + // { + // title: '鍒涘缓浜�', + // align: "center", + // dataIndex: 'createBy' + // }, { title: '鍒涘缓鏃ユ湡', align: "center", @@ -483,7 +523,7 @@ this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = false this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = true - } else if (record.status === '7') { + } else if (record.status === '6') { this.$refs.DailyInspectionOrderExeDrawer.buttonDistable = true this.$refs.DailyInspectionOrderExeDrawer.revocationDistable = true this.$refs.DailyInspectionOrderExeDrawer.SWbuttonDistable = true @@ -528,15 +568,15 @@ } }) }, - //浣滃簾 - handleOrderCancel(record) { + //缁翠慨纭 + handleOrderRepairConfirm(record) { const that = this; - requestPut(that.url.edit, { id: record.id, status: '7' }).then((res) => { + requestPut(that.url.edit, { id: record.id, status: '6' }).then((res) => { if (res.success) { - that.$message.success("宸ュ崟浣滃簾鎴愬姛锛�") + that.$message.success("宸ュ崟瀹屽伐鎴愬姛锛�") that.loadData() } else { - that.$message.warning("宸ュ崟浣滃簾澶辫触锛�") + that.$message.warning("宸ュ崟瀹屽伐澶辫触锛�") } }) }, -- Gitblit v1.9.3