qushaowei
2024-03-28 e7eca504e167de53fd97e5c2cc1fc039a8e758cc
src/views/eam/modules/daily3MaintenanceOrder/EquipmentPrecisionCheckOrderModal.vue
@@ -7,6 +7,7 @@
    cancelText="关闭"
    @cancel="handleCancel"
    :confirmLoading="confirmLoading"
    title="附录6"
  >
    <!-- :title="title" -->
    <a-spin :spinning="confirmLoading">
@@ -69,7 +70,7 @@
              :wrapperCol="wrapperCol"
              label="保养单位"
            >
              <span v-if="this.model != null">{{ this.model.actualEndTime }}</span>
              <span v-if="this.model != null">{{ this.model.manageName }}</span>
              <span v-else>-</span>
            </a-form-item>
          </a-col>
@@ -179,19 +180,29 @@
        </a-col>
      </a-row>
    </div>
    <div :style="{height: '115px',float: 'left',width: '10%',border: '1px solid #e9e9e9',padding: '50px 20px',background: '#fff',}">
    <div :style="{height: '175px',float: 'left',width: '10%',border: '1px solid #e9e9e9',padding: '50px 20px',background: '#fff',}">
      <span
        class="ant-descriptions-title"
        style="font-size: large;font-style: normal;font-size: 15px;"
      >零件状态</span>
    </div>
    <div :style="{height: '115px',float: 'right',width: '90%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
    <div :style="{height: '175px',float: 'right',width: '90%',border: '1px solid #e9e9e9',padding: '10px 10px',background: '#fff',}">
      <a-row :gutter="24">
        <a-col :span="12">
          <a-form-item
            :labelCol="{ span: 8 }"
            :wrapperCol="{ span: 4 }"
            :wrapperCol="{ span: 12 }"
            label="检测调试后试加工零件号:"
          >
            <a-input v-model="model.sparePart" />
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item
            :labelCol="{ span: 8 }"
            :wrapperCol="{ span: 4 }"
            label="零件加工:"
          >
            <a-switch
              checked-children="合格"
@@ -201,7 +212,10 @@
            />
          </a-form-item>
        </a-col>
        <a-col :span="12">
      </a-row>
      <a-row :gutter="24">
        <!-- <a-col :span="12">
          <a-form-item
            :labelCol="{ span: 8 }"
            :wrapperCol="{ span: 4 }"
@@ -213,6 +227,35 @@
              @change="handle5Switch(model.meetProcessRequire)"
              :checked="model.meetProcessRequire == '1'"
            />
          </a-form-item>
        </a-col> -->
        <a-col :span="12">
          <a-form-item
            style="font-size: large;font-style: normal;font-size: 15px;"
            :labelCol="{ span: 8 }"
            :wrapperCol="{ span: 12 }"
            label="能否满足加工工艺要求"
          >
            <j-dict-select-tag
              style="font-size: large;font-style: normal;font-size: 15px;width: 100%"
              allow-clear
              :triggerChange="true"
              dictCode="meet_process_require"
              v-model="model.meetProcessRequire"
            />
          </a-form-item>
        </a-col>
        <a-col
          v-if="model.meetProcessRequire =='3'"
          :span="12"
        >
          <a-form-item
            :labelCol="{ span: 8 }"
            :wrapperCol="{ span: 12 }"
            label="自定义说明:"
          >
            <a-input v-model="model.meetProcessRequireRemark" />
          </a-form-item>
        </a-col>
      </a-row>
@@ -300,8 +343,9 @@
        @click="handleOk()"
        type="primary"
        :loading="confirmLoading"
        :disabled="disableSubmit || confirmLoading"
        :disabled="this.model.precisionInspectionStatus == '5'"
      >确定</a-button>
    </template>
  </a-modal>
@@ -364,6 +408,7 @@
      dataSource: [],
      model: {},
      departs: [],
      labelCol: {
        xs: { span: 24 },
        sm: { span: 6 },
@@ -425,9 +470,19 @@
    },
    handleOk() {
      // if (this.model.precisionInspectionStatus === '2') {
      //   if ((this.model.eachTolerance === "0" || this.model.eachTolerance === 0) && (this.model.partTolerance === "0" || this.model.partTolerance === 0)) {
      //     this.$message.warning("请对精度状态结果勾选!");
      //     return
      //   }
      // }
      // if (this.model.precisionInspectionStatus === '3') {
      //   if ((this.model.processPass === "0" || this.model.processPass === 0) && (this.model.meetProcessRequire === "0" || this.model.meetProcessRequire === 0)) {
      //     this.$message.warning("请对零件状态结果勾选!");
      //     return
      //   }
      // }
      const that = this;
      // 触发表单验证
      that.form.validateFields((err, values) => {
        if (!err) {
          this.$confirm({
@@ -465,6 +520,7 @@
        if (res.success) {
          this.dataSource = res.result[0].precisionInspectionDetails
          this.model = Object.assign(this.model, res.result[0]);
          this.model = Object.assign({}, this.model);
        }
      })
    },
@@ -507,6 +563,7 @@
    onChangeJudgmentResult(e) {
      this.model.judgmentResult = e.target.value
      this.model = Object.assign({}, this.model);
    },
    handleChange(value, key, column, index) {