qushaowei
2024-01-12 2b4abfa6fc83152b800a7696636fe682b7ec6cbf
问题项修改
已添加1个文件
已修改17个文件
1620 ■■■■ 文件已修改
src/views/eam/DailyInspectionStandardList.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/DailyMaintenanceStandard3List.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/DailyMaintenanceStandardList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal.vue 207 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyInspectionStandard/DailyInspectionStandardDetail.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyInspectionStandard/EquipmentList.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyMaintenanceOrder/MaintenanceOrderModal.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardDetail.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyMaintenanceStandard3/DailyMaintenanceStandardDetail.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyMaintenanceStandard3/DailyMaintenanceStandardModal.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/dailyMaintenanceStandard3/EquipmentList.vue 314 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/equipmentCalibrationOrder/TechnologyStatusAuthenticateModal.vue 202 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/equipmentNew/EquipmentPrecisionParametersList.vue 298 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/maintenancePlan/StandardSelect.vue 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/modules/precisionParametersTemplate/PrecisionParametersTemplateEditForm.vue 424 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/eam/DailyInspectionStandardList.vue
@@ -278,6 +278,11 @@
          dataIndex: 'num',
        },
        {
          title: '管理制度',
          align: 'center',
          dataIndex: 'disUda1',
        },
        {
          title: '签审状态',
          align: 'center',
          dataIndex: 'approvalStatusName',
src/views/eam/DailyMaintenanceStandard3List.vue
@@ -28,10 +28,10 @@
            :md='8'
            :sm='24'
          >
            <a-form-item label='设备名称'>
            <a-form-item label='统一编号'>
              <a-input
                placeholder='请输入设备名称'
                v-model='queryParam.name'
                placeholder='请输入统一编号'
                v-model='queryParam.equipmentNum'
              ></a-input>
            </a-form-item>
          </a-col>
src/views/eam/DailyMaintenanceStandardList.vue
@@ -28,10 +28,10 @@
            :md='8'
            :sm='24'
          >
            <a-form-item label='设备名称'>
            <a-form-item label='统一编号'>
              <a-input
                placeholder='请输入设备名称'
                v-model='queryParam.name'
                placeholder='请输入统一编号'
                v-model='queryParam.equipmentNum'
              ></a-input>
            </a-form-item>
          </a-col>
src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue
@@ -288,7 +288,6 @@
    edit(record) {
      let that = this;
      debugger
      if (record.receipts == "" || record.receipts == null) {
        this.getSysFileName()
      }
@@ -323,6 +322,13 @@
      const that = this;
      // è§¦å‘表单验证
      for (let i = 0; i < that.dataSource.length; i++) {
        let o = that.dataSource[i]
        if (o.firstInspect == "2" && o.secondInspect == "2") {
          that.$message.warning("验收单第" + (i + 1) + "行,两次检验均为不通过,请重新检验该项保养内容!");
          return
        }
      }
      that.form.validateFields((err, values) => {
        if (!err) {
          this.$confirm({
src/views/eam/modules/daily3MaintenanceOrder/TechnologyStatusAuthenticateModal.vue
@@ -1,6 +1,6 @@
<template>
  <a-modal
    :width="800"
    :width="1000"
    :visible="visible"
    :maskClosable="false"
    @ok="handleOk"
@@ -79,173 +79,240 @@
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查部位</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查标准</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查结果(合格/不合格)</span>
        >有无此项</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查结果</span>
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >操纵手柄及开关</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >安全、无破损</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_8 == '0'"
          @change="handle8Switch(model.result_8)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_1 == '0'"
          @change="handleSwitch(model.result_1)"
          :hidden="model.hidden1Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >传动系统</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >灵活、无异响</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_9 == '0'"
          @change="handle9Switch(model.result_9)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_2 == '0'"
          @change="handle2Switch(model.result_2)"
          :hidden="model.hidden2Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >安全装置</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >安全、灵敏、可靠</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_10 == '0'"
          @change="handle10Switch(model.result_10)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_3 == '0'"
          @change="handle3Switch(model.result_3)"
          :hidden="model.hidden3Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >设备外观</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >整洁</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_11 == '0'"
          @change="handle11Switch(model.result_11)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_4 == '0'"
          @change="handle4Switch(model.result_4)"
          :hidden="model.hidden4Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >电气线路</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >线路整齐、接线正确</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_12 == '0'"
          @change="handle12Switch(model.result_12)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_5 == '0'"
          @change="handle5Switch(model.result_5)"
          :hidden="model.hidden5Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查各紧固装置</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >无松动</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_13 == '0'"
          @change="handle13Switch(model.result_13)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_6 == '0'"
          @change="handle6Switch(model.result_6)"
          :hidden="model.hidden6Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '70%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '50%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;float: center"
        >是否满足生产加工要求</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_14 == '0'"
          @change="handle14Switch(model.result_14)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_7 == '0'"
          @change="handle7Switch(model.result_7)"
          :hidden="model.hidden7Switch"
        />
      </div>
    </div>
@@ -360,13 +427,6 @@
      },
      confirmLoading: false,
      form: this.$form.createForm(this),
      validatorRules: {
        num: {
          rules: [
            { required: true, message: '请输入保养工单编码!' },
          ]
        },
      },
      url: {
        add: "/eam/technologyStatus/technologyStatusAuthenticate",
        getTechnologyStatus: "/eam/technologyStatus/getTechnologyStatus",
@@ -532,6 +592,85 @@
      this.model = Object.assign({}, this.model);
    },
    handle8Switch(result_8) {
      if ('0' == result_8) {
        this.model.result_8 = '1'
        this.model.hidden1Switch = true
      } else {
        this.model.result_8 = '0'
        this.model.hidden1Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle9Switch(result_9) {
      if ('0' == result_9) {
        this.model.result_9 = '1'
        this.model.hidden2Switch = true
      } else {
        this.model.result_9 = '0'
        this.model.hidden2Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle10Switch(result_10) {
      if ('0' == result_10) {
        this.model.result_10 = '1'
        this.model.hidden3Switch = true
      } else {
        this.model.result_10 = '0'
        this.model.hidden3Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle11Switch(result_11) {
      if ('0' == result_11) {
        this.model.result_11 = '1'
        this.model.hidden4Switch = true
      } else {
        this.model.result_11 = '0'
        this.model.hidden4Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle12Switch(result_12) {
      if ('0' == result_12) {
        this.model.result_12 = '1'
        this.model.hidden5Switch = true
      } else {
        this.model.result_12 = '0'
        this.model.hidden5Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle13Switch(result_13) {
      if ('0' == result_13) {
        this.model.result_13 = '1'
        this.model.hidden6Switch = true
      } else {
        this.model.result_13 = '0'
        this.model.hidden6Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle14Switch(result_14) {
      if ('0' == result_14) {
        this.model.result_14 = '1'
        this.model.hidden7Switch = true
      } else {
        this.model.result_14 = '0'
        this.model.hidden7Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    // handle21Switch(result_21) {
src/views/eam/modules/dailyInspectionStandard/DailyInspectionStandardDetail.vue
@@ -104,11 +104,11 @@
            return parseInt(index) + 1;
          }
        },
        {
          title: '部位',
          align: "center",
          dataIndex: 'location',
        },
        // {
        //   title: '部位',
        //   align: "center",
        //   dataIndex: 'location',
        // },
        // {
        //   title: '示意图',
        //   align: "center",
@@ -122,7 +122,7 @@
        },
        {
          title: '检测标准',
          title: '完成数据/要求',
          align: "center",
          dataIndex: 'detectionStandard',
@@ -154,6 +154,18 @@
      url: {
        list: "/eam/inspectionStandardDetail/getInspectionStandardList",//数据来源mom_eam_daily_inspection_standard_detail
      },
      /* åˆ†é¡µå‚æ•° */
      ipagination: {
        current: 1,
        pageSize: 20,
        pageSizeOptions: ['5', '10', '20', '50'],
        showTotal: (total, range) => {
          return range[0] + '-' + range[1] + ' å…±' + total + '条'
        },
        showQuickJumper: true,
        showSizeChanger: true,
        total: 0
      },
    }
  },
  created() {
src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue
@@ -129,22 +129,20 @@
          </a-col> -->
        </a-row>
        <a-row :gutter="24">
          <!-- <a-col :span="12">
          <a-col :span="12">
            <a-form-item
              label="派工方式"
              label="管理制度"
              :labelCol="labelCol"
              :wrapperCol="wrapperCol"
            >
              <j-dict-select-tag
              <a-input
                allow-clear
                :disabled="disableSubmit"
                :placeholder="disableSubmit?'':'请选择派工方式'"
                :triggerChange="true"
                dictCode="assign_mode"
                v-decorator="['assignMode', validatorRules.assignMode]"
                :disabled="false"
                :placeholder="disableSubmit?'':'请输入管理制度'"
                v-decorator="['disUda1', validatorRules.disUda1 ]"
              />
            </a-form-item>
          </a-col> -->
          </a-col>
          <a-col :span="12">
            <a-form-item
              label="版本"
@@ -326,7 +324,7 @@
          dataIndex: 'name'
        },
        {
          title: '检测标准',
          title: '完成数据/要求',
          align: 'center',
          dataIndex: 'detectionStandard'
        },
@@ -350,7 +348,6 @@
          align: 'center',
          dataIndex: 'inspectionCycleId',
          scopedSlots: { customRender: 'inspectionCycleId' },
          width: 170,
        },
        // {
        //   title: '示意图',
@@ -359,13 +356,13 @@
        //   scopedSlots: { customRender: 'photo' },
        //   width: 170,
        // },
        {
          title: '部位',
          align: 'center',
          dataIndex: 'location',
          scopedSlots: { customRender: 'location' },
          width: 170,
        },
        // {
        //   title: '部位',
        //   align: 'center',
        //   dataIndex: 'location',
        //   scopedSlots: { customRender: 'location' },
        //   width: 170,
        // },
        {
          title: '操作',
          align: 'center',
@@ -418,6 +415,11 @@
        historyVersion: {
          rules: [
            { required: true, message: '请输入历史版本!' },
          ]
        },
        disUda1: {
          rules: [
            { required: true, message: '请输入管理制度!' },
          ]
        },
      },
@@ -485,7 +487,7 @@
        that.dataSource = temp;
      }
      that.$nextTick(() => {
        that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'teamName', 'assignMode', 'version', 'remark'));
        that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'disUda1', 'useId', 'teamName', 'assignMode', 'version', 'remark'));
      });
      if (record.id) {
        that.codeDisable = true;
src/views/eam/modules/dailyInspectionStandard/EquipmentList.vue
@@ -170,7 +170,7 @@
        },
      ],
      url: {
        list: "/eam/equipment/getEquipmentList",
        list: "/eam/equipment/showEquipmentList",
      },
    }
  },
src/views/eam/modules/dailyMaintenanceOrder/MaintenanceOrderModal.vue
@@ -646,7 +646,7 @@
      //   return
      // }
      this.$refs.DailyMaintenanceStandardList.list(data.useId);
      this.$refs.DailyMaintenanceStandardList.title = "选择日常保养标准";
      this.$refs.DailyMaintenanceStandardList.title = "选择二级保养标准";
    },
    sendMaintenanceStandardRecord(data) {
      let record = data.record;
src/views/eam/modules/dailyMaintenanceStandard/DailyMaintenanceStandardDetail.vue
@@ -195,6 +195,18 @@
      url: {
        list: "/eam/maintenanceStandardDetail/getMaintenanceStandardList",//数据来源mom_eam_daily_inspection_standard_detail
      },
      /* åˆ†é¡µå‚æ•° */
      ipagination: {
        current: 1,
        pageSize: 20,
        pageSizeOptions: ['5', '10', '20', '50'],
        showTotal: (total, range) => {
          return range[0] + '-' + range[1] + ' å…±' + total + '条'
        },
        showQuickJumper: true,
        showSizeChanger: true,
        total: 0
      },
    }
  },
  created() {
src/views/eam/modules/dailyMaintenanceStandard3/DailyMaintenanceStandardDetail.vue
@@ -194,6 +194,18 @@
      url: {
        list: "/eam/maintenanceStandardDetail/getMaintenanceStandardList",//数据来源mom_eam_daily_inspection_standard_detail
      },
      /* åˆ†é¡µå‚æ•° */
      ipagination: {
        current: 1,
        pageSize: 20,
        pageSizeOptions: ['5', '10', '20', '50'],
        showTotal: (total, range) => {
          return range[0] + '-' + range[1] + ' å…±' + total + '条'
        },
        showQuickJumper: true,
        showSizeChanger: true,
        total: 0
      },
    }
  },
  created() {
src/views/eam/modules/dailyMaintenanceStandard3/DailyMaintenanceStandardModal.vue
@@ -404,7 +404,7 @@
import Vue from 'vue'
import PdfView from '@views/common/PdfView'
import { getFileAccessHttpUrl } from '@/api/manage';
import EquipmentList from '.././dailyInspectionStandard/EquipmentList'
import EquipmentList from './EquipmentList'
import DepartList from '.././dailyInspectionStandard/DepartList'
export default {
src/views/eam/modules/dailyMaintenanceStandard3/EquipmentList.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,314 @@
<template>
  <a-modal
    :title="title"
    :width="1250"
    :visible="visible"
    :confirmLoading="confirmLoading"
    :okButtonProps="{ props: {disabled: disableSubmit} }"
    @ok="handleOk"
    @cancel="handleCancel"
    cancelText="关闭"
  >
    <a-spin :spinning="confirmLoading">
      <a-form :form="form">
        <div class="table-page-search-wrapper">
          <a-form
            layout="inline"
            @keyup.enter.native="searchQuery"
          >
            <a-row :gutter="24">
              <a-col
                :md="6"
                :sm="8"
              >
                <a-form-item label="统一编码">
                  <a-input
                    placeholder="请输入统一编码检索"
                    v-model="queryParam.num"
                  ></a-input>
                </a-form-item>
              </a-col>
              <a-col
                :md="6"
                :sm="8"
              >
                <a-form-item label="设备名称">
                  <a-input
                    placeholder="请输入设备名称检索"
                    v-model="queryParam.name"
                  ></a-input>
                </a-form-item>
              </a-col>
              <a-col
                :md="6"
                :sm="8"
              >
                <a-button
                  type="primary"
                  @click="searchQuery"
                  icon="search"
                >查询</a-button>
                <a-button
                  @click="searchReset"
                  icon="reload"
                  style="margin-left:8px;"
                >重置</a-button>
              </a-col>
            </a-row>
            <a-row :gutter="24">
              <a-col :span="24">
              </a-col>
            </a-row>
          </a-form>
        </div>
        <div style="margin-top:8px;">
          <a-table
            ref="table"
            size="middle"
            bordered
            rowKey="id"
            :columns="columns"
            :dataSource="dataSource"
            :pagination="ipagination"
            :loading="loading"
            @change="handleTableChange"
            :customRow="clickThenCheck"
            :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:type}"
          >
          </a-table>
        </div>
      </a-form>
    </a-spin>
  </a-modal>
</template>
<script>
import { postAction, getAction } from '@/api/manage'
import JDate from '@/components/jeecg/JDate'
import Tooltip from 'ant-design-vue/es/tooltip'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import JEllipsis from '@/components/jeecg/JEllipsis'//引入过长裁剪
import store from '@/store'
export default {
  name: "EquipmentList",
  mixins: [JeecgListMixin],
  components: {
    JDate,
    Tooltip,
    JEllipsis,
  },
  data() {
    return {
      title: "设备信息",
      visible: false,
      model: {},
      dataSource: [],
      disableSubmit: false,
      type: "radio",
      /* åˆ†é¡µå‚æ•° */
      ipagination: {
        current: 1,
        pageSize: 10,
        pageSizeOptions: ['10', '20', '30'],
        showTotal: (total, range) => {
          return range[0] + "-" + range[1] + " å…±" + total + "条"
        },
        showQuickJumper: true,
        showSizeChanger: true,
        total: 0
      },
      labelCol: {
        xs: { span: 24 },
        sm: { span: 6 },
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 18 },
      },
      confirmLoading: false,
      form: this.$form.createForm(this),
      columns: [
        {
          title: '#',
          dataIndex: '',
          key: 'rowIndex',
          align: 'center',
          customRender: function (t, r, index) {
            return parseInt(index) + 1
          }
        },
        {
          title: '统一编码',
          align: 'center',
          dataIndex: 'num',
        },
        {
          title: '设备名称',
          align: 'center',
          dataIndex: 'name',
        },
        {
          title: '设备型号',
          align: "center",
          dataIndex: 'model'
        },
        {
          title: '设备规格',
          align: "center",
          dataIndex: 'specification'
        },
        {
          title: '设备状态',
          align: "center",
          dataIndex: 'equipmentStatus_dictText'
        },
      ],
      url: {
        list: "/eam/equipment/findEquipmentList",
      },
    }
  },
  methods: {
    searchQuery() {
      this.loadData(1);
    },
    searchReset() {
      this.queryParam = { equipmentStatus: '1' };
      this.loadData(1)
    },
    list(params) {
      this.selectedRowKeys = [];
      this.selectedRowRecord = [];
      this.visible = true;
      if (params == null || params == "") {
        this.queryParam.useId = ""
      } else {
        this.queryParam.useId = params
      }
      this.queryParam.equipmentStatus = '1'
      this.loadData(1);
    },
    clickThenCheck(record) {
      return {
        on: {
          click: (e) => {
            this.selectedRowRecord = record;
            this.onSelectChange(record.id.split(","), [record]);
          }
        }
      };
    },
    onSelectChange(selectedRowKeys, selectedRows) {
      this.selectedRowKeys = selectedRowKeys;
      this.selectedRowRecord = selectedRows[0];
    },
    close() {
      this.queryParam = {};
      this.$emit('close');
      this.visible = false;
    },
    handleOk() {
      const that = this;
      // è§¦å‘表单验证
      if (that.selectedRowKeys.length > 0) {
        if (that.selectedRowRecord.id != null && that.selectedRowRecord.id != "") {
          that.$emit('sendEquipmentRecord', { record: that.selectedRowRecord });
          that.close();
        } else {
          that.$message.error("请选择设备信息!")
        }
      } else {
        that.$message.error("请选择设备信息!")
      }
    },
    handleCancel() {
      this.close();
    },
  },
}
</script>
<style scoped>
.ant-btn {
  padding: 0 10px;
  margin-left: 3px;
}
.ant-form-item-control {
  line-height: 0px;
}
.fontweight {
  font-weight: bold;
}
/** ä¸»è¡¨å•行间距 */
.ant-form .ant-form-item {
  margin-bottom: 10px;
}
/** Tab页面行间距 */
.ant-tabs-content .ant-form-item {
  margin-bottom: 0px;
}
.ant-table-tbody .ant-table-row td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.anty-row-operator button {
  margin: 0 5px;
}
.ant-btn-danger {
  background-color: #ffffff;
}
.ant-modal-cust-warp {
  height: 100%;
}
.ant-modal-cust-warp .ant-modal-body {
  height: calc(100% - 110px) !important;
  overflow-y: auto;
}
.ant-modal-cust-warp .ant-modal-content {
  height: 90% !important;
  overflow-y: hidden;
}
/deep/ .notshow {
  display: none;
}
.frozenRowClass {
  color: #c9c9c9;
}
.hight {
  color: #f5222d;
}
.middle {
  color: #fa8c16;
}
.low {
  color: #52c41a;
}
.dataUnKnow {
  color: #1890ff;
}
/deep/ .frozenRowClass {
  color: #c9c9c9;
}
</style>
src/views/eam/modules/equipmentCalibrationOrder/TechnologyStatusAuthenticateModal.vue
@@ -1,6 +1,6 @@
<template>
  <a-modal
    :width="800"
    :width="1000"
    :visible="visible"
    :maskClosable="false"
    @ok="handleOk"
@@ -76,176 +76,241 @@
          style="font-size: large;font-style: normal;font-size: 15px;"
        >{{this.model.equipmentNum}}</span>
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查部位</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查标准</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查结果(合格/不合格)</span>
        >有无此项</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查结果</span>
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >操纵手柄及开关</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >安全、无破损</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_8 == '0'"
          @change="handle8Switch(model.result_8)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_1 == '0'"
          @change="handleSwitch(model.result_1)"
          :hidden="model.hidden1Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >传动系统</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >灵活、无异响</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_9 == '0'"
          @change="handle9Switch(model.result_9)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_2 == '0'"
          @change="handle2Switch(model.result_2)"
          :hidden="model.hidden2Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >安全装置</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >安全、灵敏、可靠</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_10 == '0'"
          @change="handle10Switch(model.result_10)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_3 == '0'"
          @change="handle3Switch(model.result_3)"
          :hidden="model.hidden3Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >设备外观</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >整洁</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_11 == '0'"
          @change="handle11Switch(model.result_11)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_4 == '0'"
          @change="handle4Switch(model.result_4)"
          :hidden="model.hidden4Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >电气线路</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >线路整齐、接线正确</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_12 == '0'"
          @change="handle12Switch(model.result_12)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_5 == '0'"
          @change="handle5Switch(model.result_5)"
          :hidden="model.hidden5Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >检查各紧固装置</span>
      </div>
      <div :style="{height: '45px',float: 'left',width: '40%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;"
        >无松动</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_13 == '0'"
          @change="handle13Switch(model.result_13)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_6 == '0'"
          @change="handle6Switch(model.result_6)"
          :hidden="model.hidden6Switch"
        />
      </div>
    </div>
    <div>
      <div :style="{height: '45px',float: 'left',width: '70%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '50%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <span
          class="ant-descriptions-title"
          style="font-size: large;font-style: normal;font-size: 15px;float: center"
        >是否满足生产加工要求</span>
      </div>
      <div :style="{height: '45px',float: 'right',width: '30%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <div :style="{height: '45px',float: 'left',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="有"
          un-checked-children="没有"
          :checked="model.result_14 == '0'"
          @change="handle14Switch(model.result_14)"
        />
      </div>
      <div :style="{height: '45px',float: 'right',width: '25%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
        <a-switch
          checked-children="合格"
          un-checked-children="不合格"
          :checked="model.result_7 == '0'"
          @change="handle7Switch(model.result_7)"
          :hidden="model.hidden7Switch"
        />
      </div>
    </div>
@@ -533,6 +598,85 @@
      this.model = Object.assign({}, this.model);
    },
    handle8Switch(result_8) {
      if ('0' == result_8) {
        this.model.result_8 = '1'
        this.model.hidden1Switch = true
      } else {
        this.model.result_8 = '0'
        this.model.hidden1Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle9Switch(result_9) {
      if ('0' == result_9) {
        this.model.result_9 = '1'
        this.model.hidden2Switch = true
      } else {
        this.model.result_9 = '0'
        this.model.hidden2Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle10Switch(result_10) {
      if ('0' == result_10) {
        this.model.result_10 = '1'
        this.model.hidden3Switch = true
      } else {
        this.model.result_10 = '0'
        this.model.hidden3Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle11Switch(result_11) {
      if ('0' == result_11) {
        this.model.result_11 = '1'
        this.model.hidden4Switch = true
      } else {
        this.model.result_11 = '0'
        this.model.hidden4Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle12Switch(result_12) {
      if ('0' == result_12) {
        this.model.result_12 = '1'
        this.model.hidden5Switch = true
      } else {
        this.model.result_12 = '0'
        this.model.hidden5Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle13Switch(result_13) {
      if ('0' == result_13) {
        this.model.result_13 = '1'
        this.model.hidden6Switch = true
      } else {
        this.model.result_13 = '0'
        this.model.hidden6Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
    handle14Switch(result_14) {
      if ('0' == result_14) {
        this.model.result_14 = '1'
        this.model.hidden7Switch = true
      } else {
        this.model.result_14 = '0'
        this.model.hidden7Switch = false
      }
      this.model = Object.assign({}, this.model);
    },
  },
}
</script>
src/views/eam/modules/equipmentNew/EquipmentPrecisionParametersList.vue
@@ -1,8 +1,14 @@
<template>
  <a-card :bordered="false" :class="'cust-erp-sub-tab'">
  <a-card
    :bordered="false"
    :class="'cust-erp-sub-tab'"
  >
    <!-- æŸ¥è¯¢åŒºåŸŸ -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline" @keyup.enter.native="searchQuery">
      <a-form
        layout="inline"
        @keyup.enter.native="searchQuery"
      >
        <a-row :gutter="24">
        </a-row>
      </a-form>
@@ -10,7 +16,10 @@
    <!-- æŸ¥è¯¢åŒºåŸŸ-END -->
    <!-- æ“ä½œæŒ‰é’®åŒºåŸŸ -->
    <div class="table-operator" v-if="mainId">
    <div
      class="table-operator"
      v-if="mainId"
    >
      <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> -->
      <!-- <a-button type="primary" icon="download" @click="handleExportXls('设备精度')">导出</a-button>
      <a-upload
@@ -22,9 +31,15 @@
        @change="handleImportExcel">
          <a-button type="primary" icon="import">导入</a-button>
      </a-upload> -->
      <a-dropdown v-if="selectedRowKeys.length > 0" v-has="'accountSons:add&edit&delete&submit'">
      <a-dropdown
        v-if="selectedRowKeys.length > 0"
        v-has="'accountSons:add&edit&delete&submit'"
      >
        <a-menu slot="overlay">
          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
          <a-menu-item
            key="1"
            @click="batchDel"
          ><a-icon type="delete" />删除</a-menu-item>
          <!-- <a-menu-item key="1" @click="handleSubmitBatch"><a-icon type="to-top" />提交</a-menu-item> -->
        </a-menu>
        <a-button style="margin-left: 8px"> æ‰¹é‡æ“ä½œ <a-icon type="down" /></a-button>
@@ -33,9 +48,15 @@
    <!-- table区域-begin -->
    <div>
      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
      <div
        class="ant-alert ant-alert-info"
        style="margin-bottom: 16px;"
      >
        <i class="anticon anticon-info-circle ant-alert-icon"></i> å·²é€‰æ‹© <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
        <a
          style="margin-left: 24px"
          @click="onClearSelected"
        >清空</a>
      </div>
      <a-table
@@ -49,14 +70,15 @@
        :pagination="ipagination"
        :loading="loading"
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        @change="handleTableChange">
        @change="handleTableChange"
      >
        <!-- <template
          v-for="col in columns"
          :slot="col.dataIndex"
          slot-scope='text, record, index'
        > -->
          <!-- <div :key="col.dataIndex">
        <!-- <div :key="col.dataIndex">
            <span v-if="col.dataIndex == 'remark'">
              <j-ellipsis
                :value="text"
@@ -110,114 +132,118 @@
      </a-table>
    </div>
    <equipmentPrecisionParameters-modal ref="modalForm" @ok="modalFormOk" :mainId="mainId"></equipmentPrecisionParameters-modal>
    <equipmentPrecisionParameters-modal
      ref="modalForm"
      @ok="modalFormOk"
      :mainId="mainId"
    ></equipmentPrecisionParameters-modal>
  </a-card>
</template>
<script>
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import EquipmentPrecisionParametersModal from './EquipmentPrecisionParametersModal'
  import { postAction, putAction } from '../../../../api/manage'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import EquipmentPrecisionParametersModal from './EquipmentPrecisionParametersModal'
import { postAction, putAction } from '../../../../api/manage'
  export default {
    name: "EquipmentPrecisionParametersList",
    mixins:[JeecgListMixin],
    components: { EquipmentPrecisionParametersModal },
    props:{
      mainId:{
        type:String,
        default:'',
        required:false
      },
      isOpen:{
        type:Boolean,
        default:true,
        required:false
      }
export default {
  name: "EquipmentPrecisionParametersList",
  mixins: [JeecgListMixin],
  components: { EquipmentPrecisionParametersModal },
  props: {
    mainId: {
      type: String,
      default: '',
      required: false
    },
    watch:{
      mainId:{
        immediate: true,
        handler(val) {
          if(!this.mainId){
            this.clearList()
          }else{
            this.queryParam['precisionParametersTemplateId'] = val
            this.loadData(1);
          }
    isOpen: {
      type: Boolean,
      default: true,
      required: false
    }
  },
  watch: {
    mainId: {
      immediate: true,
      handler(val) {
        if (!this.mainId) {
          this.clearList()
        } else {
          this.queryParam['precisionParametersTemplateId'] = val
          this.loadData(1);
        }
      }
    },
    data () {
      return {
        description: '设备台账管理页面',
        disableMixinCreated:true,
        // è¡¨å¤´
        columns: [
    }
  },
  data() {
    return {
      description: '设备台账管理页面',
      disableMixinCreated: true,
      // è¡¨å¤´
      columns: [
        {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            width:100,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          {
            title:'检验项目名称',
            align:"center",
            dataIndex: 'precisionParametersName',
            width:400
          },
          {
            title:'位置',
            align:"center",
            dataIndex: 'precisionParametersUda1',
            width:400
          },
          {
            title:'允差(mm)',
            align:"center",
            dataIndex: 'tolerance',
            width:400
          },
          {
            title:'实测值',
            align:"center",
            dataIndex: 'actualValue',
            width:400
          },
        ],
        url: {
          list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId',
          edit: "/eam/equipmentPrecisionParameters/edit",
          submitBatch:"/eam/equipmentPrecisionParameters/submitBatch",
          // delete: "/new/equipment/deleteEquipmentPrecisionParameters",
          // deleteBatch: "/new/equipment/deleteBatchEquipmentPrecisionParameters",
          // exportXlsUrl: "/new/equipment/exportEquipmentPrecisionParameters",
          // importUrl: "/new/equipment/importEquipmentPrecisionParameters",
          title: '#',
          dataIndex: '',
          key: 'rowIndex',
          width: 100,
          align: "center",
          customRender: function (t, r, index) {
            return parseInt(index) + 1;
          }
        },
        dictOptions:{
        }
      }
    },
    created() {
    },
    computed: {
      importExcelUrl(){
        return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`;
      }
    },
    methods: {
      clearList(){
        this.dataSource=[]
        this.selectedRowKeys=[]
        this.selectionRows = []
        this.ipagination.current = 1
        {
          title: '检验项目名称',
          align: "center",
          dataIndex: 'precisionParametersName',
          width: 400
        },
        {
          title: '位置',
          align: "center",
          dataIndex: 'precisionParametersUda1',
          width: 400
        },
        {
          title: '允差(mm)',
          align: "center",
          dataIndex: 'tolerance',
          width: 400
        },
        // {
        //   title:'实测值',
        //   align:"center",
        //   dataIndex: 'actualValue',
        //   width:400
        // },
      ],
      url: {
        list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId',
        edit: "/eam/equipmentPrecisionParameters/edit",
        submitBatch: "/eam/equipmentPrecisionParameters/submitBatch",
        // delete: "/new/equipment/deleteEquipmentPrecisionParameters",
        // deleteBatch: "/new/equipment/deleteBatchEquipmentPrecisionParameters",
        // exportXlsUrl: "/new/equipment/exportEquipmentPrecisionParameters",
        // importUrl: "/new/equipment/importEquipmentPrecisionParameters",
      },
      handleChange(value, key, column, index) {
      dictOptions: {
      }
    }
  },
  created() {
  },
  computed: {
    importExcelUrl() {
      return `${window._CONFIG['domianURL']}/${this.url.importUrl}/${this.mainId}`;
    }
  },
  methods: {
    clearList() {
      this.dataSource = []
      this.selectedRowKeys = []
      this.selectionRows = []
      this.ipagination.current = 1
    },
    handleChange(value, key, column, index) {
      let that = this;
      const temp = [...that.dataSource];
      const target = temp.filter(item => key === item.key)[index];
@@ -258,33 +284,33 @@
    modalFormOk() {
      this.loadData(1);
    },
    handleSubmitBatch(){
          for(var i=0;i<this.selectionRows.length;i++){
            let upperLimit = this.selectionRows[i].upperLimit;
            let lowerLimit = this.selectionRows[i].lowerLimit;
            let actualValue = this.selectionRows[i].actualValue;
            if(upperLimit==null||upperLimit==undefined||upperLimit==''){
              this.$message.warning("请先填写选择项的上限值再提交")
              return false;
            }
            if(lowerLimit==null||lowerLimit==undefined||lowerLimit==''){
              this.$message.warning("请先填写选择项的下限值再提交")
              return false;
            }
            if(actualValue==null||actualValue==undefined||actualValue==''){
              this.$message.warning("请先填写选择项的实际值再提交")
              return false;
            }
          }
        let that = this;
        this.$confirm({
    handleSubmitBatch() {
      for (var i = 0; i < this.selectionRows.length; i++) {
        let upperLimit = this.selectionRows[i].upperLimit;
        let lowerLimit = this.selectionRows[i].lowerLimit;
        let actualValue = this.selectionRows[i].actualValue;
        if (upperLimit == null || upperLimit == undefined || upperLimit == '') {
          this.$message.warning("请先填写选择项的上限值再提交")
          return false;
        }
        if (lowerLimit == null || lowerLimit == undefined || lowerLimit == '') {
          this.$message.warning("请先填写选择项的下限值再提交")
          return false;
        }
        if (actualValue == null || actualValue == undefined || actualValue == '') {
          this.$message.warning("请先填写选择项的实际值再提交")
          return false;
        }
      }
      let that = this;
      this.$confirm({
        title: '设备精度确认提交!',
        content: '确认提交吗!',
        okText: '确认',
        cancelText: '取消',
        onOk() {
         that.loading=true;
         putAction(that.url.submitBatch,that.selectionRows).then((res) => {
          that.loading = true;
          putAction(that.url.submitBatch, that.selectionRows).then((res) => {
            if (res.success) {
              that.$message.success("提交成功!")
              that.loadData(1)
@@ -299,18 +325,18 @@
      })
    },
    onSelectChange(selectedRowKeys, selectionRows) {
        this.selectedRowKeys = selectedRowKeys;
        this.selectionRows = selectionRows;
      this.selectedRowKeys = selectedRowKeys;
      this.selectionRows = selectionRows;
    },
    },
    mounted(){
      this.$bus.$on('loadData', (data) => {
            this.loadData();
      });
    }
  },
  mounted() {
    this.$bus.$on('loadData', (data) => {
      this.loadData();
    });
  }
}
</script>
<style scoped>
  @import '~@assets/less/common.less'
@import '~@assets/less/common.less';
</style>
src/views/eam/modules/maintenancePlan/EquipmentMaintenancePlanForm.vue
@@ -324,7 +324,7 @@
        ids.push(tableData[i].standardId)
      }
      this.$refs.standardSelectModel.showModal(ids)
      this.$refs.standardSelectModel.title = '选择精度参数'
      this.$refs.standardSelectModel.title = '选择设备'
      this.$refs.standardSelectModel.disableSubmit = false
    },
    addSelected(data) {
src/views/eam/modules/maintenancePlan/StandardSelect.vue
@@ -87,10 +87,10 @@
  mixins: [JeecgListMixin],
  components: {},
  props: {
    maintenanceType:{
      type:String,
      default:'',
      required:true
    maintenanceType: {
      type: String,
      default: '',
      required: true
    }
  },
@@ -105,7 +105,7 @@
          key: 'rowIndex',
          width: 50,
          align: 'center',
          customRender: function(t, r, index) {
          customRender: function (t, r, index) {
            return parseInt(index) + 1
          }
        },
@@ -113,49 +113,49 @@
          title: '统一编码',
          align: 'center',
          dataIndex: 'num',
          width:200
          width: 200
        },
        {
          title: '设备名称',
          align: 'center',
          dataIndex: 'name',
          width:200
          width: 200
        },
        {
          title: '设备型号',
          align: 'center',
          dataIndex: 'model',
          width:200
          width: 200
        },
        {
          title: '设备规格',
          align: 'center',
          dataIndex: 'specification',
          width:200
          width: 200
        },
        {
          title: 'ABC标识',
          align: "center",
          dataIndex: 'equipmentImportanceId',
          width:100
          width: 100
        },
        {
          title: '关键设备标识',
          align: "center",
          dataIndex: 'specificEquipment_dictText',
          width:100
          width: 100
        },
        {
          title: '设备状态',
          align: 'center',
          dataIndex: 'equipmentStatus_dictText',
          width:100
          width: 100
        },
        {
          title: '技术状态',
          align: 'center',
          dataIndex: 'technologyStatus_dictText',
          width:100
          width: 100
        },
      ],
      selectedRowKeys: [],
@@ -183,8 +183,8 @@
      visible: false,
      loading: false,
      url: {
        list: '/eam/equipment/getEquipmentList',
        getStandards:'/eam/equipmentMaintenancePlan/getStandards'
        list: '/eam/equipment/showEquipmentList',
        getStandards: '/eam/equipmentMaintenancePlan/getStandards'
      },
    }
  },
@@ -280,34 +280,34 @@
        this.isorter.order = 'ascend' === sorter.order ? 'asc' : 'desc';
      }
      this.ipagination = pagination;
      this.loadData();
      this.loadData();
    },
    handleSubmit() {
      this.loading = true
      let that = this;
      var ids = '';
      if(this.selectionRows.length==0){
      if (this.selectionRows.length == 0) {
        that.$message.warning("请选择保养设备");
        this.loading=false;
        this.loading = false;
        return false;
      }
      for(var i = 0;i<this.selectionRows.length;i++){
          ids = ids+this.selectionRows[i].id+',';
      for (var i = 0; i < this.selectionRows.length; i++) {
        ids = ids + this.selectionRows[i].id + ',';
      }
      getAction(this.url.getStandards,{ids:ids,maintenanceType:this.maintenanceType}).then(res=>{
        if(res.success){
          if(res.result.records.length!==that.selectionRows.length){
      getAction(this.url.getStandards, { ids: ids, maintenanceType: this.maintenanceType }).then(res => {
        if (res.success) {
          if (res.result.records.length !== that.selectionRows.length) {
            that.$message.warning(res.result.message);
          }
          that.$emit('selectionEquipmentRows', res.result.records);
          that.searchReset(0)
          that.close();
        }
      }).finally(res=>{
        this.loading=false;
      }).finally(res => {
        this.loading = false;
      })
    },
    onSelectChange(selectionRows) {
      this.selectionRows = selectionRows;
src/views/eam/modules/precisionParametersTemplate/PrecisionParametersTemplateEditForm.vue
@@ -2,7 +2,12 @@
  <a-spin :spinning="confirmLoading">
    <j-form-container :disabled="formDisabled">
      <!-- ä¸»è¡¨å•区域 -->
      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
      <a-form-model
        ref="form"
        :model="model"
        :rules="validatorRules"
        slot="detail"
      >
        <a-row :gutter="24">
          <a-col :span="12">
            <a-form-model-item
@@ -12,15 +17,15 @@
              prop="num"
            >
              <a-auto-complete
                  v-model="model.num"
                  :data-source="numList"
                  :disabled="formDisabled"
                  placeholder="请输入精度参数模板编码"
                  @search="onSearchNums"
                v-model="model.num"
                :data-source="numList"
                :disabled="formDisabled"
                placeholder="请输入精度参数模板编码"
                @search="onSearchNums"
              />
            </a-form-model-item>
          </a-col>
          <a-col :span="12" >
          <a-col :span="12">
            <a-form-model-item
              label="名称"
              :labelCol="labelCol"
@@ -55,9 +60,16 @@
        </a-row>
      </a-form-model>
    </j-form-container>
      <!-- å­è¡¨å•区域 -->
    <a-tabs v-model="activeKey" @change="handleChangeTabs">
      <a-tab-pane tab="精度参数明细" :key="refKeys[0]" :forceRender="true">
    <!-- å­è¡¨å•区域 -->
    <a-tabs
      v-model="activeKey"
      @change="handleChangeTabs"
    >
      <a-tab-pane
        tab="精度参数明细"
        :key="refKeys[0]"
        :forceRender="true"
      >
        <j-vxe-table
          keep-source
          :ref="refKeys[0]"
@@ -72,218 +84,226 @@
          bordered
          :alwaysEdit="true"
          :toolbarConfig='toolbarConfig'
          >
        >
          <!-- @valueChange="changeDate" -->
          <template slot='toolbarPrefix'>
            <a-button type='primary' @click='precisionParametersDetailSelect' :disabled="formDisabled"  icon="plus">选择精度参数
            <a-button
              type='primary'
              @click='precisionParametersDetailSelect'
              :disabled="formDisabled"
              icon="plus"
            >选择精度参数
            </a-button>
          </template>
        </j-vxe-table>
      </a-tab-pane>
    </a-tabs>
    <j-select-precision-parameters-modal @selectionRows='selectionRows' ref='JSelectPrecisionParametersModal' ></j-select-precision-parameters-modal>
    <j-select-precision-parameters-modal
      @selectionRows='selectionRows'
      ref='JSelectPrecisionParametersModal'
    ></j-select-precision-parameters-modal>
  </a-spin>
</template>
<script>
  import { getAction } from '@/api/manage'
  import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js'
  import { duplicateCheck } from '@/api/api'
  import { JVXETypes } from '@/components/jeecg/JVxeTable'
  import { getRefPromise,VALIDATE_FAILED} from '@/components/jeecg/JVxeTable/utils/vxeUtils.js'
  import { validateDuplicateValue } from '@/utils/util'
  import JFormContainer from '@/components/jeecg/JFormContainer'
  import dayjs from 'dayjs'
  import JSelectPrecisionParametersModal from './JSelectPrecisionParametersModal'
  export default {
    name: 'PrecisionParameters',
    mixins: [JVxeTableModelMixin],
    components: {
      JFormContainer,
      dayjs,
      JSelectPrecisionParametersModal
    },
    data() {
      return {
        toolbarConfig: {
import { getAction } from '@/api/manage'
import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js'
import { duplicateCheck } from '@/api/api'
import { JVXETypes } from '@/components/jeecg/JVxeTable'
import { getRefPromise, VALIDATE_FAILED } from '@/components/jeecg/JVxeTable/utils/vxeUtils.js'
import { validateDuplicateValue } from '@/utils/util'
import JFormContainer from '@/components/jeecg/JFormContainer'
import dayjs from 'dayjs'
import JSelectPrecisionParametersModal from './JSelectPrecisionParametersModal'
export default {
  name: 'PrecisionParameters',
  mixins: [JVxeTableModelMixin],
  components: {
    JFormContainer,
    dayjs,
    JSelectPrecisionParametersModal
  },
  data() {
    return {
      toolbarConfig: {
        // prefix å‰ç¼€ï¼›suffix åŽç¼€
        slot: ['prefix', 'suffix'],
        // add æ–°å¢žæŒ‰é’®ï¼›remove åˆ é™¤æŒ‰é’®ï¼›clearSelection æ¸…空选择按钮
        btn: ['remove', 'clearSelection']
        },
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },
        model:{
         },
        // æ–°å¢žæ—¶å­è¡¨é»˜è®¤æ·»åŠ å‡ è¡Œç©ºæ•°æ®
        addDefaultRowNum: 0,
        validatorRules: {
          num: [
      },
      labelCol: {
        xs: { span: 24 },
        sm: { span: 5 },
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 16 },
      },
      model: {
      },
      // æ–°å¢žæ—¶å­è¡¨é»˜è®¤æ·»åŠ å‡ è¡Œç©ºæ•°æ®
      addDefaultRowNum: 0,
      validatorRules: {
        num: [
          { required: true, message: '请输入编码!' },
          { min: 1, max: 30, message: '长度在 2 åˆ° 30 ä¸ªå­—符', trigger: 'blur' },
          { validator: this.validateNum },
        ],
          name: [
        name: [
          { required: true, message: '请输入名称!' },
          { min: 1, max: 30, message: '长度在 2 åˆ° 30 ä¸ªå­—符', trigger: 'blur' },
        ],
        },
        refKeys: ['precisionParametersList', ],
        tableKeys:['precisionParametersList', ],
        activeKey: 'precisionParametersList',
        precisionParameters: {
          loading: false,
          dataSource: [],
          columns: [
            {
              title: 'id',
              key: 'id',
               type: JVXETypes.hidden,
              disabled:true,
              align:'center',
            },
            {
              title: '检验项目名称',
              key: 'precisionParametersName',
               type: JVXETypes.normal,
              width:"350px",
              placeholder: '请输入${title}',
              disabled:true,
              align:'center',
              defaultValue:'',
            },
            {
              title: '方向',
              key: 'precisionParametersUda1',
               type: JVXETypes.normal,
              width:"350px",
              placeholder: '请输入${title}',
              disabled:true,
              align:'center',
              defaultValue:'',
            },
            {
              title: '允差(mm)',
              key: 'tolerance',
              type: JVXETypes.input,
              width:"350px",
              placeholder: '请输入${title}',
              align:'center',
              validateRules: [
              { handler({ cellValue, row, column }, callback, target) {
                    const regex = /^[+]?\d*\.?\d+\/[+]?\d*\.?\d+$/;
                    if (!new RegExp(regex).test(cellValue)&&cellValue!=null) {
                        callback(false, '允差要符合【上限/距离】的填写规则,如: 0.16/300') // false = æœªé€šè¿‡ï¼Œå¯ä»¥è·Ÿè‡ªå®šä¹‰æç¤º
                    } else {
                        callback(true) // true = é€šè¿‡éªŒè¯
                    }
                },
                message: '${title}默认提示'
              },
              ]
            },
          ]
        },
        url: {
          getNums:'/eam/precisionParametersTemplate/getNums',
          add: '/eam/precisionParametersTemplate/addNew',
          edit:'/eam/precisionParametersTemplate/editNew',
          precisionParametersList: {
            list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId'
      },
      refKeys: ['precisionParametersList',],
      tableKeys: ['precisionParametersList',],
      activeKey: 'precisionParametersList',
      precisionParameters: {
        loading: false,
        dataSource: [],
        columns: [
          {
            title: 'id',
            key: 'id',
            type: JVXETypes.hidden,
            disabled: true,
            align: 'center',
          },
          {
            title: '检验项目名称',
            key: 'precisionParametersName',
            type: JVXETypes.normal,
            width: "350px",
            placeholder: '请输入${title}',
            disabled: true,
            align: 'center',
            defaultValue: '',
          },
          {
            title: '方向',
            key: 'precisionParametersUda1',
            type: JVXETypes.normal,
            width: "350px",
            placeholder: '请输入${title}',
            disabled: true,
            align: 'center',
            defaultValue: '',
          },
          {
            title: '允差(mm)',
            key: 'tolerance',
            type: JVXETypes.input,
            width: "350px",
            placeholder: '请输入${title}',
            align: 'center',
            // validateRules: [
            // { handler({ cellValue, row, column }, callback, target) {
            //       const regex = /^[+]?\d*\.?\d+\/[+]?\d*\.?\d+$/;
            //       if (!new RegExp(regex).test(cellValue)&&cellValue!=null) {
            //           callback(false, '允差要符合【上限/距离】的填写规则,如: 0.16/300') // false = æœªé€šè¿‡ï¼Œå¯ä»¥è·Ÿè‡ªå®šä¹‰æç¤º
            //       } else {
            //           callback(true) // true = é€šè¿‡éªŒè¯
            //       }
            //   },
            //   message: '${title}默认提示'
            // },
            // ]
          },
        ]
      },
      url: {
        getNums: '/eam/precisionParametersTemplate/getNums',
        add: '/eam/precisionParametersTemplate/addNew',
        edit: '/eam/precisionParametersTemplate/editNew',
        precisionParametersList: {
          list: '/eam/precisionParametersTemplateDetail/listByPrecisionParametersTemplateId'
        },
        numList:[],
      },
      numList: [],
    }
  },
  props: {
    //表单禁用
    disabled: {
      type: Boolean,
      default: false,
      required: false
    },
  },
  computed: {
    formDisabled() {
      return this.disabled
    },
  },
  created() {
  },
  methods: {
    addBefore() {
      this.precisionParameters
    },
    getAllTable() {
      let values = this.tableKeys.map(key => getRefPromise(this, key))
      return Promise.all(values)
    },
    /** è°ƒç”¨å®Œedit()方法之后会自动调用此方法 */
    editAfter() {
      this.$nextTick(() => {
      })
      // åŠ è½½å­è¡¨æ•°æ®
      if (this.model.id) {
        let params = {
          precisionParametersTemplateId: this.model.id,
          pageSize: 9999,
        }
        this.requestSubTableData(this.url.precisionParametersList.list, params, this.precisionParameters)
      }
      if (this.model.num == '') {
        this.model.id = ''
      }
    },
    props: {
      //表单禁用
      disabled: {
        type: Boolean,
        default: false,
        required: false
      },
    },
    computed: {
      formDisabled(){
        return this.disabled
      },
    },
    created () {
    },
    methods: {
      addBefore(){
        this.precisionParameters
      },
      getAllTable() {
        let values = this.tableKeys.map(key => getRefPromise(this, key))
        return Promise.all(values)
      },
      /** è°ƒç”¨å®Œedit()方法之后会自动调用此方法 */
      editAfter() {
        this.$nextTick(() => {
        })
        // åŠ è½½å­è¡¨æ•°æ®
        if (this.model.id) {
          let params = {
            precisionParametersTemplateId: this.model.id,
            pageSize:9999,
    //校验所有一对一子表表单
    validateSubForm(allValues) {
      return new Promise((resolve, reject) => {
        Promise.all([
        ]).then(() => {
          resolve(allValues)
        }).catch(e => {
          if (e.error === VALIDATE_FAILED) {
            // å¦‚果有未通过表单验证的子表,就自动跳转到它所在的tab
            this.activeKey = e.index == null ? this.activeKey : this.refKeys[e.index]
          } else {
            console.error(e)
          }
          this.requestSubTableData(this.url.precisionParametersList.list, params, this.precisionParameters)
        })
      })
    },
    /** æ•´ç†æˆformData */
    classifyIntoFormData(allValues) {
      let main = Object.assign(this.model, allValues.formValue)
      let details = allValues.tablesValue[0].tableData;
      for (var i = 0; i < details.length; i++) {
        details[i].sort = i + 1;
        if (details[i].tolerance != null && details[i].tolerance != '' && details[i].tolerance != undefined) {
          var inf = details[i].tolerance.split('/');
          var distance = inf[1];
          var upper = inf[0];
          details[i].distance = parseFloat(distance);
          details[i].upper = parseFloat(upper);
          details[i].lower = 0;
        }
        if(this.model.num==''){
           this.model.id = ''
        }
      },
      //校验所有一对一子表表单
        validateSubForm(allValues){
            return new Promise((resolve,reject)=>{
              Promise.all([
              ]).then(() => {
                resolve(allValues)
              }).catch(e => {
                if (e.error === VALIDATE_FAILED) {
                  // å¦‚果有未通过表单验证的子表,就自动跳转到它所在的tab
                  this.activeKey = e.index == null ? this.activeKey : this.refKeys[e.index]
                } else {
                  console.error(e)
                }
              })
            })
        },
      /** æ•´ç†æˆformData */
      classifyIntoFormData(allValues) {
        let main = Object.assign(this.model, allValues.formValue)
        let details = allValues.tablesValue[0].tableData;
        for(var i=0;i<details.length;i++){
            details[i].sort=i+1;
            if(details[i].tolerance!=null&&details[i].tolerance!=''&&details[i].tolerance!=undefined){
                var inf = details[i].tolerance.split('/');
                var distance = inf[1];
                var upper = inf[0];
                details[i].distance = parseFloat(distance);
                details[i].upper = parseFloat(upper);
                details[i].lower = 0;
            }
        }
        return {
          ...main, // å±•å¼€
          precisionParametersTemplateDetailList: details,
        }
      },
      validateError(msg){
        this.$message.error(msg)
      },
      precisionParametersDetailSelect() {
      }
      return {
        ...main, // å±•å¼€
        precisionParametersTemplateDetailList: details,
      }
    },
    validateError(msg) {
      this.$message.error(msg)
    },
    precisionParametersDetailSelect() {
      let ids = []
      let tableData = this.$refs.precisionParametersList.getTableData()
      for (let i = 0; i < tableData.length; i++) {
@@ -304,10 +324,10 @@
        var precisionParameters = {}
        if (tableStr.indexOf(data[i].id) == -1) {
          precisionParameters = {
            precisionParametersId:data[i].id,
            precisionParametersId: data[i].id,
            precisionParametersName: data[i].name,
            precisionParametersUda1:data[i].precisionParametersUda1,
            precisionParametersTemplateId:this.model.id,
            precisionParametersUda1: data[i].precisionParametersUda1,
            precisionParametersTemplateId: this.model.id,
          }
        }
        addRows.push(precisionParameters)
@@ -319,11 +339,11 @@
      this.addSelected(data)
    },
    onSearchNums(searchText){
      getAction(this.url.getNums,{searchText:searchText}).then(res=>{
             if(res.success){
                this.numList = res.result
             }
    onSearchNums(searchText) {
      getAction(this.url.getNums, { searchText: searchText }).then(res => {
        if (res.success) {
          this.numList = res.result
        }
      })
    },
@@ -345,8 +365,8 @@
      })
    },
    }
  }
}
</script>
<style scoped>