| | |
| | | @click="handleSW" |
| | | :disabled=SWbuttonDistable |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:SW'" |
| | | >开工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReport" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:report'" |
| | | >报工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReset" |
| | | :disabled="revocationDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:reset'" |
| | | >撤销</a-button> |
| | | </a-row> |
| | | </div> |
| | |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | label="设备编码" |
| | | label="统一编码" |
| | | class="hightColor" |
| | | > |
| | | <span |
| | |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | @change="handleTableChange" |
| | | :scroll="{ x: 'calc(1200px + 50%)', y: 900 }" |
| | | :scroll="{ x: 'calc(1000px + 50%)', y: 900 }" |
| | | > |
| | | <template |
| | | v-for="col in columns" |
| | |
| | | <a-select |
| | | v-if="col.dataIndex == 'inspectionProjectResult' && record.testValueType == '2'" |
| | | :value="text" |
| | | :options="record.inspectionCycles" |
| | | @change="(e) => handleChange(e, record.key, col, index)" |
| | | style="width: 100%" |
| | | :disabled="record.disabled" |
| | | /> |
| | | > |
| | | <!-- :options="record.inspectionCycles" --> |
| | | <a-select-option value="1">正常</a-select-option> |
| | | <a-select-option value="2">异常</a-select-option> |
| | | <a-select-option value="3">故障停机</a-select-option> |
| | | <a-select-option value="4">没开机</a-select-option> |
| | | </a-select> |
| | | <a-input-number |
| | | :value="text" |
| | | v-if="col.dataIndex == 'inspectionProjectResult' && record.testValueType == '1'" |
| | |
| | | @click="handleTS" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:TS'" |
| | | >暂存</a-button> |
| | | <a-button |
| | | @click="handleOk" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:save'" |
| | | >保存</a-button> |
| | | </a-row> |
| | | </div> |
| | |
| | | align: 'center', |
| | | dataIndex: 'detectionStandard', |
| | | }, |
| | | { |
| | | title: '合格范围', |
| | | align: 'center', |
| | | dataIndex: 'acceptabilityLimit', |
| | | }, |
| | | { |
| | | title: '方法', |
| | | align: 'center', |
| | | dataIndex: 'inspectionMethod_dictText', |
| | | }, |
| | | { |
| | | title: '工具', |
| | | align: 'center', |
| | | dataIndex: 'inspectionTool', |
| | | }, |
| | | // { |
| | | // title: '合格范围', |
| | | // align: 'center', |
| | | // dataIndex: 'acceptabilityLimit', |
| | | // }, |
| | | // { |
| | | // title: '方法', |
| | | // align: 'center', |
| | | // dataIndex: 'inspectionMethod_dictText', |
| | | // }, |
| | | // { |
| | | // title: '工具', |
| | | // align: 'center', |
| | | // dataIndex: 'inspectionTool', |
| | | // }, |
| | | { |
| | | title: '*点检结果', |
| | | align: 'center', |
| | | dataIndex: 'inspectionProjectResult', |
| | | scopedSlots: { customRender: 'inspectionProjectResult' }, |
| | | className: 'red', |
| | | }, |
| | | // className: 'red', |
| | | { |
| | | title: '判定', |
| | | align: 'center', |
| | |
| | | dataIndex: 'abnormalDesc', |
| | | scopedSlots: { customRender: 'abnormalDesc' }, |
| | | }, |
| | | { |
| | | title: '异常拍照', |
| | | align: 'center', |
| | | dataIndex: 'abnormalPhoto', |
| | | scopedSlots: { customRender: 'abnormalPhoto' }, |
| | | // dataIndex: 'action', |
| | | // scopedSlots: { customRender: 'action' }, |
| | | }, |
| | | // { |
| | | // title: '异常拍照', |
| | | // align: 'center', |
| | | // dataIndex: 'abnormalPhoto', |
| | | // scopedSlots: { customRender: 'abnormalPhoto' }, |
| | | // }, |
| | | { |
| | | title: '*异常处置', |
| | | align: 'center', |
| | | dataIndex: 'treatmentMeasure', |
| | | className: 'red', |
| | | scopedSlots: { customRender: 'treatmentMeasure' }, |
| | | }, |
| | | // className: 'red', |
| | | ], |
| | | url: { |
| | | list: "/eam/inspectionOrderDetail/list", |
| | |
| | | target['judgmentResult'] = ""; |
| | | } |
| | | } else { |
| | | |
| | | target[column.dataIndex] = value; |
| | | if (value == "1") { |
| | | target['judgmentResult'] = "pass"; |
| | | } else { |
| | | target['judgmentResult'] = "fail"; |
| | | } |
| | | if (value == null || value == "") { |
| | | target['judgmentResult'] = ""; |
| | | } |
| | | } |
| | | } |
| | | if (column.dataIndex == 'abnormalDesc') { |