qushaowei
2023-12-12 f3fcd30cadbcbd406a6e10e3c7df64e5306db069
src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue
@@ -129,7 +129,7 @@
          </a-col> -->
        </a-row>
        <a-row :gutter="24">
          <a-col :span="12">
          <!-- <a-col :span="12">
            <a-form-item
              label="派工方式"
              :labelCol="labelCol"
@@ -144,7 +144,7 @@
                v-decorator="['assignMode', validatorRules.assignMode]"
              />
            </a-form-item>
          </a-col>
          </a-col> -->
          <a-col :span="12">
            <a-form-item
              label="版本"
@@ -226,7 +226,7 @@
            style="width: 100%"
            :disabled="false"
          />
          <j-image-upload
          <!-- <j-image-upload
            :value="text"
            v-if="col.dataIndex == 'photo'"
            :isMultiple="false"
@@ -234,7 +234,7 @@
            placeholder="请上传图片"
            @change="(e)=>handleChange(e, record.key, col, index)"
          >
          </j-image-upload>
          </j-image-upload> -->
          <a-input
            :value="text"
            v-if="col.dataIndex == 'location'"
@@ -352,13 +352,13 @@
          scopedSlots: { customRender: 'inspectionCycleId' },
          width: 170,
        },
        {
          title: '示意图',
          align: 'center',
          dataIndex: 'photo',
          scopedSlots: { customRender: 'photo' },
          width: 170,
        },
        // {
        //   title: '示意图',
        //   align: 'center',
        //   dataIndex: 'photo',
        //   scopedSlots: { customRender: 'photo' },
        //   width: 170,
        // },
        {
          title: '部位',
          align: 'center',
@@ -475,7 +475,7 @@
    edit(record) {
      let that = this;
      that.getInspectionCycle()
      that.initOptions();
      // that.initOptions();
      that.dataSource = [];
      that.form.resetFields();
      that.model = Object.assign({}, record);
@@ -563,10 +563,12 @@
          let obj;
          if (!this.model.id) {
            formData.versionStatus = '1'
            formData.approvalStatus = '1'
            obj = postAction(this.url.add, formData);
          } else {
            if (this.isRevise) {
              formData.versionStatus = '1'
              formData.approvalStatus = '1'
              obj = postAction(this.url.revise, formData);
            } else {
              obj = requestPut(this.url.edit, formData, { id: this.model.id });