From 3a8223b71d18205d40b894fd0b4c0fa1ca773e86 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期一, 13 十一月 2023 10:44:11 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/mdc-test' into mdc-test --- src/views/eam/DailyInspectionOrderList.vue | 73 +++++++++++++++++++++--------------- 1 files changed, 43 insertions(+), 30 deletions(-) diff --git a/src/views/eam/DailyInspectionOrderList.vue b/src/views/eam/DailyInspectionOrderList.vue index 0a13ad4..d94dec3 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> @@ -150,6 +153,7 @@ <a-popconfirm title="纭畾鎭㈠宸ュ崟鍚�?" @confirm="() => handleOrderRecover(record)" + v-has="'dailyInspectionOrder:recover'" > <a v-if="record.status == '7'">鎭㈠</a> </a-popconfirm> @@ -160,6 +164,7 @@ <a-popconfirm title="纭畾浣滃簾宸ュ崟鍚�?" @confirm="() => handleOrderCancel(record)" + v-has="'dailyInspectionOrder:recover'" > <a v-if="record.status == '2'">浣滃簾</a> </a-popconfirm> @@ -170,20 +175,24 @@ <a-popconfirm title="纭畾棰嗗彇宸ュ崟鍚�?" @confirm="() => handleOrderGet(record)" + v-has="'dailyInspectionOrder:get'" > <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="'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)" + v-has="'dailyInspectionOrder:assign'" >鏀规淳</a> <a-divider v-if="record.status == '2'" @@ -196,6 +205,7 @@ <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' " @@ -204,6 +214,7 @@ <a v-if="record.status === '1'" @click="handleEdit(record)" + v-has="'dailyInspectionOrder:edit'" >缂栬緫</a> <a-divider v-if="record.status === '1'" @@ -219,6 +230,7 @@ <a-popconfirm title="纭畾鍒犻櫎鍚�?" @confirm="() => handleDelete(record.id)" + v-has="'dailyInspectionOrder:delete'" > <a v-if="record.status === '1'">鍒犻櫎</a> </a-popconfirm> @@ -299,11 +311,7 @@ return parseInt(index) + 1; } }, - { - title: '鐘舵��', - align: "center", - dataIndex: 'statusName' - }, + { title: '鐐规宸ュ崟鍙�', align: "center", @@ -311,20 +319,25 @@ scopedSlots: { customRender: 'num' } }, { - title: '鐐规鏃ユ湡', + title: '鐘舵��', align: "center", - dataIndex: 'inspectionDate', - customRender: function (text) { - return !text ? "" : (text.length > 10 ? text.substr(0, 10) : text) - } + dataIndex: 'statusName' }, + // { + // 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) - } + // customRender: function (text) { + // return !text ? "" : (text.length > 10 ? text.substr(11, 20) : text) + // } }, { title: '鎴鏃堕棿', @@ -332,7 +345,7 @@ dataIndex: 'inspectionDeadline', }, { - title: '璁惧缂栫爜', + title: '缁熶竴缂栫爜', align: "center", dataIndex: 'equipmentNum' }, @@ -347,7 +360,7 @@ dataIndex: 'equipmentModel' }, { - title: '瀵硅薄閮ㄩ棬', + title: '浣跨敤閮ㄩ棬', align: "center", dataIndex: 'useDepartName' }, @@ -356,18 +369,18 @@ align: "center", dataIndex: 'teamName' }, - { - title: '寮�宸ユ潯浠�', - align: "center", - dataIndex: 'startWorkCondition', - customRender: (text) => { - if (text == '1') { - return "鏄�"; - } else if (text == '0') { - return "鍚�"; - } - }, - }, + // { + // title: '寮�宸ユ潯浠�', + // align: "center", + // dataIndex: 'startWorkCondition', + // customRender: (text) => { + // if (text == '1') { + // return "鏄�"; + // } else if (text == '0') { + // return "鍚�"; + // } + // }, + // }, { title: '鐐规鏍囧噯缂栫爜', align: "center", -- Gitblit v1.9.3