| | |
| | | <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="请填写验收未通过原因" |
| | | /> |
| | |
| | | <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> |
| | |
| | | }, |
| | | |
| | | handleChange(value, key, column, index) { |
| | | debugger |
| | | let that = this; |
| | | const temp = [...that.dataSource]; |
| | | const target = temp.filter(item => key === item.key)[index]; |
| | |
| | | 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; |
| | |
| | | } |
| | | }, |
| | | |
| | | 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) { |