| | |
| | | <a-row> |
| | | <a-form-model-item prop="imageFilesResult" label="点检图片" :labelCol="{span:2}" :wrapperCol="{span:21}"> |
| | | <lx-upload :returnUrl="false" :isMultiple="true" file-type="image" :number="3" |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='UNDER_INSPECTION'" |
| | | v-model="tableRowRecord.imageFiles"/> |
| | | :disabled="isDisableOperation||!hasInspectionDateArrived" |
| | | v-model="tableRowRecord.fileList"/> |
| | | </a-form-model-item> |
| | | </a-row> |
| | | |
| | |
| | | > |
| | | <template v-slot:inspectionResult="props"> |
| | | <j-dict-select-tag v-model="props.row.inspectionResult" dictCode="eam_inspection_result" |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='UNDER_INSPECTION'" |
| | | :disabled="isDisableOperation" |
| | | placeholder="请选择点检结果" |
| | | @change="handleInspectionResultSelectChange($event,props.row)" |
| | | style="width: 100%"/> |
| | |
| | | <template v-slot:exceptionDescription="props"> |
| | | <a-textarea style="height: 32px" v-model="props.row.exceptionDescription" |
| | | :placeholder="props.row.inspectionResult==='2'?'请输入异常描述':''" |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='UNDER_INSPECTION'||!props.row.inspectionResult||props.row.inspectionResult==='1'"/> |
| | | :disabled="isDisableOperation||!props.row.inspectionResult||props.row.inspectionResult==='1'"/> |
| | | </template> |
| | | |
| | | <template v-slot:reportFlag="props"> |
| | | <j-dict-select-tag v-model="props.row.reportFlag" |
| | | :placeholder="props.row.inspectionResult==='2'?'请选择异常是否保修':''" |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='UNDER_INSPECTION'||!props.row.inspectionResult||props.row.inspectionResult==='1'" |
| | | :disabled="isDisableOperation||!props.row.inspectionResult||props.row.inspectionResult==='1'" |
| | | dictCode="yn" |
| | | style="width: 100%"/> |
| | | </template> |
| | |
| | | </template> |
| | | |
| | | <a-button |
| | | v-if="selectedRowKeys.length>0&&!disableSubmit&&tableRowRecord.inspectionStatus==='UNDER_INSPECTION'&&hasInspectionDateArrived&&activeTabKey==='1'" |
| | | v-if="selectedRowKeys.length>0&&!isDisableOperation&&hasInspectionDateArrived&&activeTabKey==='1'" |
| | | slot="tabBarExtraContent" type="primary" |
| | | @click="handleSelectAllInspectionResult">批量点检正常 |
| | | </a-button> |
| | |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="confirmDealType" label="处理类型"> |
| | | <j-dict-select-tag type='radio' v-model='tableRowRecord.confirmDealType' dictCode='approved_rejected' |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='WAIT_CONFIRM'" |
| | | placeholder="请选择处理类型"/> |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='WAIT_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | |
| | | } |
| | | ] |
| | | }, |
| | | isDisplayBmp: false, |
| | | showBmpButtonLoading: false, |
| | | selectedRowKeys: [], |
| | | disableSubmit: false, |
| | | activeTabKey: '1', |
| | |
| | | }, |
| | | isDisplayConfirm() { |
| | | return ['WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.inspectionStatus) |
| | | }, |
| | | isDisableOperation() { |
| | | return this.disableSubmit || this.tableRowRecord.inspectionStatus !== 'UNDER_INSPECTION' |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * 获取流程节点 |
| | | * 获取流程节点和流程图 |
| | | * @param record 待办记录信息 |
| | | */ |
| | | getAllApproveData(record) { |
| | |
| | | getAction(this.url.queryBomDataById, param) |
| | | .then((res => { |
| | | if (res.success) { |
| | | that.tableRowRecord = res.result[0] |
| | | that.tableRowRecord = { ... res.result[0], fileList: JSON.parse(res.result[0].imageFiles) } |
| | | if (!this.hasInspectionDateArrived && !this.disableSubmit) this.title += `(未到点检日期不能提前点检)` |
| | | that.detail.dataSource = res.result[0].tableDetailList |
| | | console.log('that.tableRowRecord----->', that.tableRowRecord) |
| | |
| | | flowTaskVo.values = this.selectShenpiData.variables |
| | | flowTaskVo.confirmDealType = this.tableRowRecord.confirmDealType |
| | | flowTaskVo.confirmComment = this.tableRowRecord.confirmComment |
| | | flowTaskVo.fileList = this.tableRowRecord.fileList |
| | | flowTaskVo.tableDetailList = this.$refs.editableDetailTable.getTableData() |
| | | const that = this |
| | | console.log('表单提交数据', flowTaskVo) |