From 5e9fb57f959d6cccbb3a3c56d0ccdd241855ad06 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期五, 11 七月 2025 16:06:07 +0800 Subject: [PATCH] 1、技术鉴定工单页面基础功能 2、新增技术鉴定设备选择组件 3、 --- src/views/eam/maintenance/EamInspectionOrderList.vue | 49 ++++++++++++++++++++++++------------------------- 1 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/views/eam/maintenance/EamInspectionOrderList.vue b/src/views/eam/maintenance/EamInspectionOrderList.vue index 6490a89..39c7c2b 100644 --- a/src/views/eam/maintenance/EamInspectionOrderList.vue +++ b/src/views/eam/maintenance/EamInspectionOrderList.vue @@ -98,7 +98,7 @@ </a-menu-item> <a-menu-item> - <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleOrReceive(record.id)"> + <a-popconfirm title="纭畾浣滃簾鍚�?" @confirm="() => handleAbolish(record.id)"> <a>浣滃簾</a> </a-popconfirm> </a-menu-item> @@ -219,7 +219,7 @@ dataIndex: 'operateTime' }, { - title: '绠$悊鍛樼‘璁�', + title: '缁翠慨宸�', align: 'center', dataIndex: 'confirmUser_dictText' }, @@ -269,8 +269,6 @@ } }, methods: { - initDictConfig() { - }, //璇︽儏 handleDetail: function(record) { this.selectInspectionOrderXqData = Object.assign({}, record) @@ -280,29 +278,30 @@ this.$refs.modalFormXq.getAllApproveData(record) this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id }) }, + handleInspection(id) { var that = this - getAction(that.url.receiveInspectionOrder, { id }).then((res) => { - if (res.success) { - that.$notification.success({ - message: '娑堟伅', - description: res.message - }) - that.loadData() - } else { - // that.$message.warning(res.message); - that.$notification.warning({ - message: '娑堟伅', - description: res.message - }) - } - }) + this.loading = true + getAction(that.url.receiveInspectionOrder, { id }) + .then((res) => { + if (res.success) { + that.$notification.success({ + message: '娑堟伅', + description: res.message + }) + that.loadData() + } else { + // that.$message.warning(res.message); + that.$notification.warning({ + message: '娑堟伅', + description: res.message + }) + this.loading = false + } + }) }, - handleOrReceive(id) { - if (!this.url.cancelInspectionOrder) { - this.$message.error('璇疯缃畊rl.cancelInspectionOrder!') - return - } + + handleAbolish(id) { var that = this getAction(that.url.cancelInspectionOrder, { id: id }).then((res) => { if (res.success) { @@ -400,7 +399,7 @@ onInspectionDateChange: function(value, dateString) { this.queryParam.inspectionDateBegin = dateString[0] this.queryParam.inspectionDateEnd = dateString[1] - }, + } } } </script> -- Gitblit v1.9.3