| | |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:SW'" |
| | | >开工</a-button> |
| | | |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleNormalReport" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:normalReport'" |
| | | >结果全部正常</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReport" |
| | |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:report'" |
| | | >报工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleNormalReport" |
| | | :disabled="buttonDistable" |
| | | type="primary" |
| | | v-has="'dailyInspectionOrder:normalReport'" |
| | | >结果正常并报工</a-button> |
| | | <a-button |
| | | :style="{marginRight: '8px'}" |
| | | @click="handleReset" |
| | |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | <span |
| | | <!-- <span |
| | | v-if=" col.dataIndex == 'photo' && !text" |
| | | style="font-size: 12px;font-style: italic;" |
| | | >无图片</span> |
| | |
| | | height="25px" |
| | | alt="" |
| | | style="max-width:80px;font-size: 12px;font-style: italic;" |
| | | /> |
| | | /> --> |
| | | <!-- <j-dict-select-tag |
| | | v-if="col.dataIndex == 'inspectionProjectResult' " |
| | | allow-clear |
| | | @input="handleChange()" |
| | | :disabled="record.disabled" |
| | | :placeholder="'请选择点检结果'" |
| | | :triggerChange="true" |
| | | style="width: 100%" |
| | | dictCode="inspection_project_result" |
| | | /> --> |
| | | <a-select |
| | | v-if="col.dataIndex == 'inspectionProjectResult' " |
| | | :value="text" |
| | |
| | | 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> |
| | |
| | | :disabled="record.disabled" |
| | | /> |
| | | |
| | | <j-image-upload |
| | | <!-- <j-image-upload |
| | | :value="text" |
| | | v-if="col.dataIndex == 'abnormalPhoto'" |
| | | :isMultiple="false" |
| | |
| | | @change="(e)=>handleChange(e, record.key, col, index)" |
| | | :disabled="record.disabled" |
| | | > |
| | | </j-image-upload> |
| | | </j-image-upload> --> |
| | | |
| | | <!-- <Tooltip |
| | | placement="top" |
| | |
| | | this.loadData1(1) |
| | | }, |
| | | loadData() { |
| | | this.loadData1(1) |
| | | // this.loadData1(1) |
| | | }, |
| | | getBackground() { |
| | | return "background-color:rgba(127, 127, 127,0.08)"; |
| | |
| | | }) |
| | | }, |
| | | |
| | | //报工 |
| | | //所有结果正常 |
| | | handleNormalReport() { |
| | | const that = this; |
| | | for (let i = 0; i < that.dataSource.length; i++) { |
| | | let o = this.dataSource[i] |
| | | o.inspectionProjectResult = "1" |
| | | o.abnormalDesc = "" |
| | | o.treatmentMeasure = null |
| | | } |
| | | }, |
| | | |
| | | |
| | | //报工 |
| | | handleNormalReport1() { |
| | | const that = this; |
| | | that.confirmLoading = true; |
| | | let formData = Object.assign(this.model); |
| | |
| | | // } |
| | | // } else { |
| | | target[column.dataIndex] = value; |
| | | // if (value == "1") { |
| | | // target['judgmentResult'] = "pass"; |
| | | // } else { |
| | | // target['judgmentResult'] = "fail"; |
| | | // } |
| | | if (value == 1) { |
| | | target['abnormalDesc'] = null; |
| | | } |
| | | target['treatmentMeasure'] = null; |
| | | |
| | | // if (value == null || value == "") { |
| | | // target['judgmentResult'] = ""; |
| | | // } |