From 033c329be810727208e8e124f5f31314305b0808 Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期四, 10 七月 2025 20:18:55 +0800 Subject: [PATCH] 1、点检工单流程开发 2、点检工单领取时增加列表loading提示 --- src/views/eam/maintenance/EamInspectionOrderList.vue | 64 ++++++++++++++------------------ 1 files changed, 28 insertions(+), 36 deletions(-) diff --git a/src/views/eam/maintenance/EamInspectionOrderList.vue b/src/views/eam/maintenance/EamInspectionOrderList.vue index c67e2f4..fc1b94d 100644 --- a/src/views/eam/maintenance/EamInspectionOrderList.vue +++ b/src/views/eam/maintenance/EamInspectionOrderList.vue @@ -107,12 +107,6 @@ </template> <a v-else @click="handleDetail(record)">璇︽儏</a> - - <template v-if="record.inspectionStatus === 'COMPLETE'"> - <a-divider type="vertical"/> - - <a @click="handlePrint(record)">鎵撳嵃</a> - </template> </span> </a-table> </div> @@ -164,11 +158,6 @@ } }, { - title: '宸ュ崟鍙�', - align: 'center', - dataIndex: 'orderNum' - }, - { title: '缁熶竴缂栫爜', align: 'center', dataIndex: 'equipmentCode' @@ -177,6 +166,16 @@ title: '璁惧鍚嶇О', align: 'center', dataIndex: 'equipmentName' + }, + { + title: '璁惧鍨嬪彿', + align: 'center', + dataIndex: 'equipmentModel' + }, + { + title: '宸ュ崟鍙�', + align: 'center', + dataIndex: 'orderNum' }, { title: '瑙勮寖鍚嶇О', @@ -282,26 +281,25 @@ this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id }) }, handleInspection(id) { - if (!this.url.receiveInspectionOrder) { - this.$message.error('璇疯缃畊rl.receiveInspectionOrder!') - return - } var that = this - getAction(that.url.receiveInspectionOrder, { id: 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) { @@ -390,7 +388,6 @@ that.loadData() that.onClearSelected() } else { - // that.$message.warning(res.message); that.$notification.warning({ message: '娑堟伅', description: res.message @@ -406,11 +403,6 @@ onInspectionDateChange: function(value, dateString) { this.queryParam.inspectionDateBegin = dateString[0] this.queryParam.inspectionDateEnd = dateString[1] - }, - - handlePrint(record) { - let href = `${window._CONFIG['domianURL']}/jmreport/view/1094871242505912320?id=` + record.id + `&equipmentId=` + record.equipmentId + `&inspectionDate=` + record.inspectionDate //缃戠珯閾炬帴 - window.open(href, '_blank') } } } -- Gitblit v1.9.3