lyh
2025-04-10 edfc3cb483058ba3d92315ed591dcb8a9eb6e11f
修改点检
已修改2个文件
33 ■■■■ 文件已修改
src/views/eam/maintenance/EamInspectionOrderList.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/maintenance/modules/EamInspectionOrderModal.vue 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/maintenance/EamInspectionOrderList.vue
@@ -112,7 +112,7 @@
                <a @click="handleDetail(record)">详情</a>
              </a-menu-item>
              <a-menu-item  v-if="record.inspectionStatus === '1'" >
                <a-popconfirm title="确定作废吗?" @confirm="() => handleDelete(record.id)">
                <a-popconfirm title="确定作废吗?" @confirm="() => handleOrReceive(record.id)">
                  <a>作废</a>
                </a-popconfirm>
              </a-menu-item>
@@ -237,7 +237,7 @@
        ],
        url: {
          list: "/eam/eamInspectionOrder/list",
          delete: "/eam/eamInspectionOrder/cancelInspectionOrder",
          cancelInspectionOrder: "/eam/eamInspectionOrder/cancelInspectionOrder",
          deleteBatch: "/eam/eamInspectionOrder/deleteBatch",
          exportXlsUrl: "/eam/eamInspectionOrder/exportXls",
          importExcelUrl: "eam/eamInspectionOrder/importExcel",
@@ -304,6 +304,28 @@
          }
        });
      },
      handleOrReceive(id){
        if (!this.url.cancelInspectionOrder) {
          this.$message.error("请设置url.cancelInspectionOrder!")
          return
        }
        var that = this;
        getAction(that.url.cancelInspectionOrder, { 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
            });
          }
        });
      },
      batchZf(type){
        if (this.selectedRowKeys.length <= 0) {
          this.$notification.warning({
src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
@@ -155,6 +155,7 @@
      },
      maintenanceCategory: 'POINT_INSPECTION',
      standardId:"",
      standardType:false,
      detail: {
        loading: false,
        dataSource: [],
@@ -201,11 +202,13 @@
      this.detail.dataSource = [];
      this.visible = true
      this.editable = false
      this.standardType=false;
    },
    edit(record) {
      console.log(record)
      this.model = Object.assign({}, record)
      this.standardId=record.standardId
      this.standardType=true;
      this.visible = true
      this.editable = true
      this.detail.dataSource = []
@@ -271,7 +274,7 @@
      this.model.standardName = selectObj.standardName
      this.model.maintenancePeriod=selectObj.maintenancePeriod
      this.model.standardCode=selectObj.standardCode
      if (this.standardId===undefined || this.standardId==="") {
      if (!this.standardType) {
        this.standardId=selectObj.id
        this.loadDetail(selectObj.id)
      }
@@ -293,7 +296,7 @@
        getAction(this.url.detail, { standardId: standardId }).then(res => {
          if (res.success) {
            this.detail.dataSource = [...res.result]
            this.standardId=undefined;
            this.standardType=false;
          }
        })
      }