qushaowei
2024-03-22 3376c3106bef417ca184947c1afc6ef2532929a7
src/views/eam/modules/daily3MaintenanceOrder/Maintenance3ReceiptModal.vue
@@ -104,8 +104,9 @@
                <a-select-option value="2">未通过</a-select-option>
              </a-select>
              <a-input
                v-if="col.dataIndex == 'firstInspect'"
                @change="(e)=>handleChange(e, record.key, col, index)"
                v-if="col.dataIndex == 'firstInspect' && record.firstInspect == '2'"
                :value="record.firstNotPass"
                @change="(e)=>handleChange2(e, record.key, col, index)"
                :disabled="false"
                placeholder="请填写验收未通过原因"
              />
@@ -118,7 +119,13 @@
                <a-select-option value="1">通过</a-select-option>
                <a-select-option value="2">未通过</a-select-option>
              </a-select>
              <!-- <a-input
                v-if="col.dataIndex == 'secondInspect' && record.secondInspect == '2'"
                :value="record.secondNotPass"
                @change="(e)=>handleChange2(e, record.key, col, index)"
                :disabled="false"
                placeholder="请填写验收未通过原因"
              /> -->
            </div>
          </template>
        </a-table>
@@ -383,6 +390,7 @@
    },
    handleChange(value, key, column, index) {
      debugger
      let that = this;
      const temp = [...that.dataSource];
      const target = temp.filter(item => key === item.key)[index];
@@ -397,7 +405,8 @@
          target['standard'] = value.target.value;
        }
        if (column.dataIndex == 'firstInspect') {
          target[column.dataIndex] = value;
          debugger
          target["firstInspect"] = value;
        }
        if (column.dataIndex == 'secondInspect') {
          target[column.dataIndex] = value;
@@ -407,6 +416,24 @@
      }
    },
    handleChange2(value, key, column, index, record) {
      let that = this;
      const temp = [...that.dataSource];
      const target = temp.filter(item => key === item.key)[index];
      if (target) {
        // target[column.dataIndex] = value;
        if ('firstInspect' == column.dataIndex) {
          target['firstNotPass'] = value.target.value;
        }
        // if ('secondInspect' == column.dataIndex) {
        //   target['secondNotPass'] = value.target.value;
        // }
        //显示带过来的数据
        that.dataSource = temp;
      }
    },
    getSysFileName() {
      getAction(this.url.getSysFileName, { name: '19' }).then((res) => {
        if (res.success) {