| | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </a-spin> |
| | | <a-table |
| | | ref="table" |
| | | bordered |
| | |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="false" |
| | | /> |
| | | <a-input |
| | | :value="text" |
| | | <a-select |
| | | v-if="col.dataIndex == 'firstInspect'" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="false" |
| | | placeholder="请输入第一次检" |
| | | /> |
| | | <a-input |
| | | :value="text" |
| | | v-if="col.dataIndex == 'secondInspect'" |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="false" |
| | | placeholder="请输入第二次检" |
| | | /> |
| | | style="width: 100%" |
| | | > |
| | | <a-select-option value="1">通过</a-select-option> |
| | | <a-select-option value="2">未通过</a-select-option> |
| | | </a-select> |
| | | <a-select |
| | | v-if="col.dataIndex == 'secondInspect'" |
| | | :value="text" |
| | | @change="(e) => handleChange(e, record.key, col, index)" |
| | | style="width: 100%" |
| | | > |
| | | <a-select-option value="1">通过</a-select-option> |
| | | <a-select-option value="2">未通过</a-select-option> |
| | | </a-select> |
| | | |
| | | </div> |
| | | </template> |
| | | </a-table> |
| | | <div :style="{height: '60px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <!-- <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> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:21}" |
| | | label="备注" |
| | | > |
| | | <a-textarea |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请输入备注'" |
| | | v-decorator="['remark', {}]" |
| | | /> |
| | | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </div> --> |
| | | </a-form> |
| | | </a-spin> |
| | | |
| | | <div :style="{height: '60px',width: '100%',border: '1px solid #e9e9e9',padding: '10px 16px',background: '#fff',}"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="7"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | <span v-else>-</span> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-col :span="17"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | <a-button |
| | | <!-- <a-button |
| | | style="width: 100%; margin-top: 0px; margin-bottom: 8px" |
| | | type="dashed" |
| | | icon="plus" |
| | | @click="addHour" |
| | | >添加内容</a-button> |
| | | >添加内容</a-button> --> |
| | | <template slot="footer"> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | |
| | | |
| | | methods: { |
| | | |
| | | addHour() { |
| | | this.dataSource.push({ id: '', maintenanceOrderId: this.model.id, position: '', content: '', standard: '', firstInspect: '', secondInspect: '' }) |
| | | }, |
| | | // addHour() { |
| | | // this.dataSource.push({ id: '', maintenanceOrderId: this.model.id, position: '', content: '', standard: '', firstInspect: '', secondInspect: '' }) |
| | | // }, |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | |
| | | target['standard'] = value.target.value; |
| | | } |
| | | if (column.dataIndex == 'firstInspect') { |
| | | target[column.dataIndex] = value.target.value; |
| | | target[column.dataIndex] = value; |
| | | } |
| | | if (column.dataIndex == 'secondInspect') { |
| | | target[column.dataIndex] = value.target.value; |
| | | target[column.dataIndex] = value; |
| | | } |
| | | //显示带过来的数据 |
| | | that.dataSource = temp; |
| | |
| | | un-checked-children="否" |
| | | :checked="model.result_21 == '1'" |
| | | @change="handle21Switch(model.result_21)" |
| | | :disabled=this.disabled21Switch |
| | | /> |
| | | <span |
| | | class="ant-descriptions-title" |
| | |
| | | v-model="model.sort" |
| | | :min=0 |
| | | :max=20 |
| | | :disabled=this.disabled22Switch |
| | | /> |
| | | <span |
| | | class="ant-descriptions-title" |
| | |
| | | un-checked-children="否" |
| | | :checked="model.result_22 == '1'" |
| | | @change="handle22Switch(model.result_22)" |
| | | :disabled=this.disabled22Switch |
| | | /> |
| | | <span |
| | | class="ant-descriptions-title" |
| | |
| | | dataSource: [], |
| | | model: {}, |
| | | departs: [], |
| | | disabled21Switch: false, |
| | | disabled22Switch: false, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | |
| | | |
| | | edit(record) { |
| | | let that = this; |
| | | |
| | | this.disabled21Switch = false |
| | | this.disabled22Switch = false |
| | | this.form.resetFields(); |
| | | this.model = Object.assign({}, record); |
| | | this.getStoveCategory() |
| | |
| | | } else { |
| | | this.model.result_1 = '0' |
| | | } |
| | | |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | |
| | |
| | | handle21Switch(result_21) { |
| | | if ('0' == result_21) { |
| | | this.model.result_21 = '1' |
| | | this.disabled22Switch = true |
| | | } else { |
| | | this.model.result_21 = '0' |
| | | this.disabled22Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | |
| | | handle22Switch(result_22) { |
| | | if ('0' == result_22) { |
| | | this.model.result_22 = '1' |
| | | this.disabled21Switch = true |
| | | } else { |
| | | this.model.result_22 = '0' |
| | | this.disabled21Switch = false |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }, |