From a2efd257aeb135e1c48e555d92048defd4b68633 Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 07 九月 2023 13:39:14 +0800
Subject: [PATCH] 设备精度检验单

---
 src/views/eam/modules/dailyMaintenanceOrder/EquipmentPrecisionCheckOrderModal.vue |   36 ++----------------------------------
 src/views/eam/DailyMaintenanceOrderList3m.vue                                     |   10 +++++-----
 2 files changed, 7 insertions(+), 39 deletions(-)

diff --git a/src/views/eam/DailyMaintenanceOrderList3m.vue b/src/views/eam/DailyMaintenanceOrderList3m.vue
index 094356d..13f3c93 100644
--- a/src/views/eam/DailyMaintenanceOrderList3m.vue
+++ b/src/views/eam/DailyMaintenanceOrderList3m.vue
@@ -252,11 +252,11 @@
             type="vertical"
           /> -->
           <a
-            v-if="record.status === '5'"
+            v-if="record.status === '5' || record.status === '8' "
             @click="handlePrecisionCheckOrder(record)"
           >绮惧害妫�楠�</a>
           <a-divider
-            v-if="record.status === '5'"
+            v-if="record.status === '5'|| record.status === '8'"
             type="vertical"
           />
           <a-dropdown>
@@ -522,18 +522,18 @@
     },
 
     handlePrintPrecision(record) {
-      let href = `${window._CONFIG['domianURL']}/jmreport/view/858844938446508032?id=`+record.id; //缃戠珯閾炬帴
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/858844938446508032?id=` + record.id; //缃戠珯閾炬帴
       window.open(href, "_blank");
     },
 
     handlePrintCheck(record) {
-      let href = `${window._CONFIG['domianURL']}/jmreport/view/858867141388996608?id=`+record.id; //缃戠珯閾炬帴
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/858867141388996608?id=` + record.id; //缃戠珯閾炬帴
       window.open(href, "_blank");
     },
 
 
     handlePrintInfo(record) {
-      let href = `${window._CONFIG['domianURL']}/jmreport/view/858930685061042176?id=`+record.id; //缃戠珯閾炬帴
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/858930685061042176?id=` + record.id; //缃戠珯閾炬帴
       window.open(href, "_blank");
     },
 
diff --git a/src/views/eam/modules/dailyMaintenanceOrder/EquipmentPrecisionCheckOrderModal.vue b/src/views/eam/modules/dailyMaintenanceOrder/EquipmentPrecisionCheckOrderModal.vue
index c65770d..c2743c5 100644
--- a/src/views/eam/modules/dailyMaintenanceOrder/EquipmentPrecisionCheckOrderModal.vue
+++ b/src/views/eam/modules/dailyMaintenanceOrder/EquipmentPrecisionCheckOrderModal.vue
@@ -377,7 +377,6 @@
       },
       url: {
         add: "/eam/precisionInspection/precisionInspection",
-        getEquipmentPrecision: "/eam/equipmentPrecisionParameters/getByEquipmentId",
         getPrecisionInspection: "/eam/precisionInspection/getPrecisionInspectionList",
         list: "/eam/dailyMaintenanceOrder/getMaintenanceCycleByStandardId",
       },
@@ -398,7 +397,7 @@
       // record.judgmentResult = ""
       this.model = Object.assign({}, record);
       this.getPrecisionInspection()
-      this.getEquipmentPrecision()
+      // this.getEquipmentPrecision()
       this.visible = true;
       that.$nextTick(() => {
         // that.form.setFieldsValue(pick(that.model, 'num', 'teamId', 'remark'));
@@ -448,46 +447,15 @@
       })
     },
 
-
-    // handleOk() {
-    //   const that = this;
-    //   this.form.validateFields((err, values) => {
-    //     if (!err) {
-    //       that.confirmLoading = true;
-    //       let formData = Object.assign(this.model, values);
-    //       requestPut(this.url.add, formData, { id: this.model.id }).then((res) => {
-    //         if (res.success) {
-    //           that.$message.success(res.message);
-    //           that.$emit('ok');
-    //         } else {
-    //           that.$message.warning(res.message);
-    //         }
-    //       }).finally(() => {
-    //         that.confirmLoading = false;
-    //         that.close();
-    //       })
-    //     }
-    //   })
-    // },
-
     handleDelete(text, record, index) {
       this.dataSource.splice(index, 1);
-    },
-
-
-    getEquipmentPrecision() {
-      getAction(this.url.getEquipmentPrecision, { equipmentId: this.model.equipmentId }).then((res) => {
-        if (res.success) {
-          this.dataSource = res.result.records
-        }
-      })
     },
 
     getPrecisionInspection() {
       getAction(this.url.getPrecisionInspection, { maintenanceOrderId: this.model.id }).then((res) => {
         if (res.success) {
+          this.dataSource = res.result[0].precisionInspectionDetails
           this.model = Object.assign({}, res.result[0]);
-          debugger
         }
       })
     },

--
Gitblit v1.9.3