qushaowei
2023-09-07 a2efd257aeb135e1c48e555d92048defd4b68633
设备精度检验单
已修改2个文件
46 ■■■■ 文件已修改
src/views/eam/DailyMaintenanceOrderList3m.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyMaintenanceOrder/EquipmentPrecisionCheckOrderModal.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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");
    },
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
        }
      })
    },