qushaowei
2023-10-24 9d3b355061393f9dd031c1d8aaf124564d9c0d19
src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue
@@ -31,7 +31,7 @@
          </a-col>
          <a-col :span="12">
            <a-form-item
              label="对象部门"
              label="使用部门"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
@@ -47,7 +47,7 @@
                style="width: 100%"
                :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
                :tree-data="treeData"
                placeholder="请选择对象部门"
                placeholder="请选择使用部门"
                tree-default-expand-all
                v-decorator="['useId', validatorRules.useId ]"
              />
@@ -320,21 +320,21 @@
          align: 'center',
          dataIndex: 'detectionStandard'
        },
        {
          title: '合格范围',
          align: 'center',
          dataIndex: 'acceptabilityLimit'
        },
        {
          title: '方法',
          align: 'center',
          dataIndex: 'inspectionMethodName'
        },
        {
          title: '工具',
          align: 'center',
          dataIndex: 'inspectionTool'
        },
        // {
        //   title: '合格范围',
        //   align: 'center',
        //   dataIndex: 'acceptabilityLimit'
        // },
        // {
        //   title: '方法',
        //   align: 'center',
        //   dataIndex: 'inspectionMethodName'
        // },
        // {
        //   title: '工具',
        //   align: 'center',
        //   dataIndex: 'inspectionTool'
        // },
        {
          title: '周期',
          align: 'center',
@@ -418,6 +418,7 @@
        revise: '/eam/inspectionStandard/revise',
        getReviseVersion: "/eam/inspectionStandard/getReviseVersion",
        loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
        getNum: '/eam/sysIdentity/getNumNew'
      },
      dataSource: [],
@@ -458,6 +459,7 @@
    add() {
      this.edit({ dailyInspectionStandardDetaillist: [] })
      this.getSeq()
    },
    edit(record) {
@@ -494,6 +496,14 @@
      }
    },
    getSeq() {
      getAction(this.url.getNum, { type: 'DailylnspectionStandard', length: 4 }).then(res => {
        if (res.success) {
          this.form.setFieldsValue({ "num": res.result })
        }
      })
    },
    initOptions() {
      getAction(this.url.loadOptions).then(res => {
        if (res.success) {