| | |
| | | auto-size |
| | | placeholder="请输入保养内容" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="true" |
| | | /> |
| | | <a-textarea |
| | | :value="text" |
| | |
| | | auto-size |
| | | placeholder="请输入保养标准" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="false" |
| | | :disabled="true" |
| | | /> |
| | | <a-select |
| | | v-if="col.dataIndex == 'firstInspect'" |
| | |
| | | <a-select-option value="1">通过</a-select-option> |
| | | <a-select-option value="2">未通过</a-select-option> |
| | | </a-select> |
| | | <a-input |
| | | v-if="col.dataIndex == 'firstInspect' && record.firstInspect == '2'" |
| | | :value="record.firstNotPass" |
| | | @change="(e)=>handleChange2(e, record.key, col, index)" |
| | | :disabled="false" |
| | | placeholder="请填写验收未通过原因" |
| | | /> |
| | | <a-select |
| | | v-if="col.dataIndex == 'secondInspect'" |
| | | :value="text" |
| | |
| | | <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> |
| | | <div :style="{height: '140px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="验收结果" |
| | | > |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> --> |
| | | <!-- <div :style="{height: '140px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | </div> --> |
| | | </a-form> |
| | | </a-spin> |
| | | |
| | |
| | | dataIndex: 'standard', |
| | | scopedSlots: { customRender: 'standard' } |
| | | }, |
| | | // { |
| | | // title: '验收次数', |
| | | // children: [ |
| | | // { |
| | | // title: '第一次检', |
| | | // dataIndex: 'firstInspect', |
| | | // align: 'center', |
| | | // scopedSlots: { customRender: 'firstInspect' } |
| | | // }, |
| | | // { |
| | | // title: '第二次检', |
| | | // dataIndex: 'secondInspect', |
| | | // align: 'center', |
| | | // scopedSlots: { customRender: 'secondInspect' } |
| | | // }, |
| | | // ], |
| | | // }, |
| | | { |
| | | title: '第一次检', |
| | | align: 'center', |
| | |
| | | target['standard'] = value.target.value; |
| | | } |
| | | if (column.dataIndex == 'firstInspect') { |
| | | target[column.dataIndex] = value; |
| | | 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) { |