| | |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="ç»ä¸ç¼ç "> |
| | | <technical-status-equipment-select placeholder="请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢" |
| | | v-model="queryParam.equipmentId" /> |
| | | <lx-search-equipment-select placeholder="请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="å·¥åå·"> |
| | | <a-input placeholder="请è¾å
¥å·¥åå·" v-model="queryParam.orderNum" /> |
| | | <a-input placeholder="请è¾å
¥å·¥åå·" v-model="queryParam.orderNum"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="计åé´å®æ¥æ"> |
| | | <a-date-picker v-model="queryParam.evaluationDate" style="width: 100%" /> |
| | | <a-date-picker v-model="queryParam.evaluationDate" style="width: 100%"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="é´å®ç¶æ"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©é´å®ç¶æ" dict-code="technical_status_evaluation_order_status" |
| | | v-model="queryParam.evaluationStatus"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="12"> |
| | |
| | | :scroll="{ x: 'max-content' }" :loading="loading" @change="handleTableChange"> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a-popconfirm v-if="record.evaluationStatus === 'WAIT_EVALUATION'" title="ç¡®å®é¢ååï¼" |
| | | @confirm="handleReceive(record.id)"> |
| | | <template v-if="record.evaluationStatus === 'WAIT_EVALUATION'"> |
| | | <a-popconfirm title="ç¡®å®é¢ååï¼" |
| | | @confirm="handleReceive(record.id)"> |
| | | <a>é¢å</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </span> |
| | | </a-table> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <eamTechnicalStatusEvaluationOrder-modal ref="modalForm" @ok="modalFormOk" /> |
| | | <eamTechnicalStatusEvaluationOrder-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <technical-status-evaluation-approval-modal ref="technicalStatusEvaluationApprovalModal" |
| | | :selectShenpiData="selectedOrderData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import EamTechnicalStatusEvaluationOrderModal from './modules/EamTechnicalStatusEvaluationOrderModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import TechnicalStatusEquipmentSelect from '../equipment/modules/TechnicalStatusEquipmentSelect' |
| | | import { getAction } from '@/api/manage' |
| | | import EamTechnicalStatusEvaluationOrderModal from './modules/EamTechnicalStatusEvaluationOrderModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@/api/manage' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | import TechnicalStatusEvaluationApprovalModal |
| | | from '../../flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal' |
| | | |
| | | export default { |
| | | name: 'EamTechnicalStatusEvaluationOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | TechnicalStatusEquipmentSelect, |
| | | EamTechnicalStatusEvaluationOrderModal |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'ææ¯ç¶æé´å®å·¥å管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | export default { |
| | | name: 'EamTechnicalStatusEvaluationOrderList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | TechnicalStatusEvaluationApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | EamTechnicalStatusEvaluationOrderModal |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'ææ¯ç¶æé´å®å·¥å管ç页é¢', |
| | | selectedOrderData: {}, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | align: 'center', |
| | | dataIndex: 'orderNum', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '计åé´å®æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationDate', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'éå®å·¥åæ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'freezeOrderDate' |
| | | }, |
| | | { |
| | | title: 'å·¥åè¿ææ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'orderExpirationDate' |
| | | }, |
| | | { |
| | | title: 'å®é
å¼å§æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime' |
| | | }, |
| | | { |
| | | title: 'å®é
ç»ææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualEndTime' |
| | | }, |
| | | { |
| | | title: 'é´å®äºº', |
| | | align: 'center', |
| | | dataIndex: 'evaluator' |
| | | }, |
| | | { |
| | | title: 'é´å®ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationStatus_dictText' |
| | | }, |
| | | { |
| | | title: 'å建æ¹å¼', |
| | | align: 'center', |
| | | dataIndex: 'creationMethod_dictText' |
| | | }, |
| | | { |
| | | title: 'å®å
¨è£
ç½®æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'safetyEquipmentCheckResult' |
| | | }, |
| | | { |
| | | title: 'ç²¾åº¦åæ°æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'precisionCheckResult' |
| | | }, |
| | | { |
| | | title: 'åè½ç¶ææ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'functionalCheckResult' |
| | | }, |
| | | { |
| | | title: 'å
¶ä»æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'otherCheckResult' |
| | | }, |
| | | { |
| | | title: '维修室主任ç¾å', |
| | | align: 'center', |
| | | dataIndex: 'repairManagerSignature' |
| | | }, |
| | | { |
| | | title: '维修室主任ç¾åæ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'repairManagerSignatureTime1' |
| | | }, |
| | | { |
| | | title: 'è¯ä»¶æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'sampleCheckResult' |
| | | }, |
| | | { |
| | | title: 'å·¥èºåç¾å', |
| | | align: 'center', |
| | | dataIndex: 'processTechnicianSignature' |
| | | }, |
| | | { |
| | | title: 'å·¥èºåç¾åæ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'processTechnicianSignatureTime' |
| | | }, |
| | | { |
| | | title: 'é´å®ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationResult' |
| | | }, |
| | | { |
| | | title: 'é/ç¦ç¨åå ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationReason' |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ£æ¥äººç¾å', |
| | | align: 'center', |
| | | dataIndex: 'inspectorSignature' |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ£æ¥äººç¾åæ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'inspectorSignatureTime' |
| | | }, |
| | | { |
| | | title: 'éå½A HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeA' |
| | | }, |
| | | { |
| | | title: 'éå½B HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeB' |
| | | }, |
| | | { |
| | | title: 'éå½C HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeC' |
| | | }, |
| | | { |
| | | title: 'éå½D HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeD' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right' |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | align: 'center', |
| | | dataIndex: 'orderNum' |
| | | }, |
| | | { |
| | | title: '计åé´å®æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationDate' |
| | | }, |
| | | { |
| | | title: 'éå®å·¥åæ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'freezeOrderDate' |
| | | }, |
| | | { |
| | | title: 'å·¥åè¿ææ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'orderExpirationDate' |
| | | }, |
| | | { |
| | | title: 'å®é
å¼å§æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualStartTime' |
| | | }, |
| | | { |
| | | title: 'å®é
ç»ææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'actualEndTime' |
| | | }, |
| | | { |
| | | title: 'é¢å人', |
| | | align: 'center', |
| | | dataIndex: 'evaluator_dictText' |
| | | }, |
| | | { |
| | | title: 'é´å®ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationStatus_dictText' |
| | | }, |
| | | { |
| | | title: 'å建æ¹å¼', |
| | | align: 'center', |
| | | dataIndex: 'creationMethod_dictText' |
| | | }, |
| | | { |
| | | title: 'å®å
¨è£
ç½®æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'safetyEquipmentCheckResult' |
| | | }, |
| | | { |
| | | title: 'ç²¾åº¦åæ°æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'precisionCheckResult' |
| | | }, |
| | | { |
| | | title: 'åè½ç¶ææ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'functionalCheckResult' |
| | | }, |
| | | { |
| | | title: 'å
¶ä»æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'otherCheckResult' |
| | | }, |
| | | { |
| | | title: '维修室主任ç¾å', |
| | | align: 'center', |
| | | dataIndex: 'repairManagerSignature' |
| | | }, |
| | | { |
| | | title: '维修室主任ç¾åæ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'repairManagerSignatureTime1' |
| | | }, |
| | | { |
| | | title: 'è¯ä»¶æ£æ¥ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'sampleCheckResult' |
| | | }, |
| | | { |
| | | title: 'å·¥èºåç¾å', |
| | | align: 'center', |
| | | dataIndex: 'processTechnicianSignature' |
| | | }, |
| | | { |
| | | title: 'å·¥èºåç¾åæ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'processTechnicianSignatureTime' |
| | | }, |
| | | { |
| | | title: 'é´å®ç»æ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationResult' |
| | | }, |
| | | { |
| | | title: 'é/ç¦ç¨åå ', |
| | | align: 'center', |
| | | dataIndex: 'evaluationReason' |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ£æ¥äººç¾å', |
| | | align: 'center', |
| | | dataIndex: 'inspectorSignature' |
| | | }, |
| | | { |
| | | title: 'è®¾å¤æ£æ¥äººç¾åæ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'inspectorSignatureTime' |
| | | }, |
| | | { |
| | | title: 'éå½A HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeA' |
| | | }, |
| | | { |
| | | title: 'éå½B HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeB' |
| | | }, |
| | | { |
| | | title: 'éå½C HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeC' |
| | | }, |
| | | { |
| | | title: 'éå½D HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCodeD' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/eam/eamTechnicalStatusEvaluationOrder/list', |
| | | receive: '/eam/eamTechnicalStatusEvaluationOrder/collect' |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/eam/eamTechnicalStatusEvaluationOrder/list', |
| | | receive: '/eam/eamTechnicalStatusEvaluationOrder/collect', |
| | | } |
| | | }, |
| | | methods: { |
| | | handleReceive(id) { |
| | | let that = this |
| | | this.loading = true |
| | | getAction(that.url.receive, { id }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleDetail(record) { |
| | | this.selectedOrderData = Object.assign({}, record) |
| | | this.$refs.technicalStatusEvaluationApprovalModal.recordDetail(record) |
| | | this.$refs.technicalStatusEvaluationApprovalModal.title = '详æ
' |
| | | this.$refs.technicalStatusEvaluationApprovalModal.disableSubmit = true |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | }, |
| | | methods: { |
| | | handleReceive(id) { |
| | | let that = this |
| | | this.loading = true |
| | | getAction(that.url.receive, { id }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData(); |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loading = false |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: '项ç®åºå·', |
| | | title: 'åºå·', |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | width: 150 |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: 'æ£æ¥é¡¹ç®', |
| | |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: '项ç®åºå·', |
| | | title: 'åºå·', |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | width: 150 |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: 'æ£æ¥é¡¹ç®', |
| | |
| | | <maintenance-standard-approval-modal ref="maintenanceStandardApprovalModal" @modalFormOk="modalFormOk" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <inspection-order-handle ref="modalFormInspectionOrder" :selectShenpiData="selectedRowData" |
| | | <inspection-order-handle ref="inspectionOrderHandle" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | |
| | | <technical-status-evaluation-approval-modal ref="technicalStatusApprovalModal" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import { getAction } from '@api/manage' |
| | | import MaintenanceStandardApprovalModal from './MaintenanceStandard/MaintenanceStandardApprovalModal' |
| | | import InspectionOrderHandle from './InspectionOrder/InspectionOrderHandle' |
| | | import TechnicalStatusEvaluationApprovalModal |
| | | from './TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal' |
| | | |
| | | export default { |
| | | name: 'NcDeviceCharactersList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { InspectionOrderHandle, MaintenanceStandardApprovalModal }, |
| | | components: { TechnicalStatusEvaluationApprovalModal, InspectionOrderHandle, MaintenanceStandardApprovalModal }, |
| | | data() { |
| | | return { |
| | | description: '工使µ-æçå¾
å', |
| | |
| | | case 'sbdjApproval': |
| | | this.handInspectionOrder(item) |
| | | break |
| | | case 'WEEK_MAINTENANCE': |
| | | this.handleWeekMaintenance(item) |
| | | break |
| | | case 'eam_repair': |
| | | this.handleRepairOrder(item) |
| | | break |
| | |
| | | case 'third_maintenance': |
| | | this.handleThirdMaintenance(item) |
| | | break |
| | | case 'toolOutStorageApproval': |
| | | this.handleToolOutStorageApproval(item) |
| | | case 'TECHNICAL_STATUS_EVALUATION': |
| | | this.handleTechnicalStatusEvaluation(item) |
| | | break |
| | | case 'toolsStocktakingBound': |
| | | this.handleToolStocktakingApproval(item) |
| | |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»ä¿å
»è§èåç±»æµç¨è¯¦æ
æ¶è§¦å |
| | | * ç¹å»ä¿å
»è§èåç±»æµç¨æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleMaintenanceStandard(record) { |
| | |
| | | this.$refs.maintenanceStandardApprovalModal.title = 'ä¿å
»è§è' |
| | | this.$refs.maintenanceStandardApprovalModal.getAllApproveData(record) |
| | | this.$refs.maintenanceStandardApprovalModal.getBasicInformation(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»ææ¯ç¶æé´å®æµç¨æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleTechnicalStatusEvaluation(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.technicalStatusApprovalModal.visible = true |
| | | this.$refs.technicalStatusApprovalModal.title = record.name |
| | | this.$refs.technicalStatusApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»ç¹æ£å·¥åæµç¨æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handInspectionOrder(record) { |
| | | console.log('record----->', record) |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.inspectionOrderHandle.visible = true |
| | | this.$refs.inspectionOrderHandle.title = record.name |
| | | this.$refs.inspectionOrderHandle.getAllApproveData(record) |
| | | this.$refs.inspectionOrderHandle.getBasicInformation(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»è®¾å¤ç»´ä¿®åç±»æµç¨æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleRepairOrder(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.title = record.name |
| | | this.$refs.repairOrderApprovalModal.getAllApproveData(record) |
| | | this.$refs.repairOrderApprovalModal.getBasicInformation(record) |
| | | }, |
| | | handleSecondMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectSecondMaintenanceData = Object.assign({}, item) |
| | | this.$refs.secondMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.secondMaintenanceApprovalModal.title = item.name |
| | | this.$refs.secondMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | handleThirdMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectThirdMaintenanceData = Object.assign({}, item) |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = item.name |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | |
| | | batchHandle() { |
| | |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | | return result |
| | | }, |
| | | |
| | | handInspectionOrder(record) { |
| | | console.log('record----->', record) |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.modalFormInspectionOrder.visible = true |
| | | this.$refs.modalFormInspectionOrder.title = record.name |
| | | this.$refs.modalFormInspectionOrder.getAllApproveData(record) |
| | | this.$refs.modalFormInspectionOrder.getBasicInformation(record) |
| | | }, |
| | | |
| | | handleWeekMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectWeekMaintenanceData = Object.assign({}, item) |
| | | this.$refs.weekMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.weekMaintenanceApprovalModal.title = item.name |
| | | this.$refs.weekMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»è®¾å¤ç»´ä¿®åç±»æµç¨è¯¦æ
æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleRepairOrder(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.title = record.name |
| | | this.$refs.repairOrderApprovalModal.getAllApproveData(record) |
| | | this.$refs.repairOrderApprovalModal.getBasicInformation(record) |
| | | }, |
| | | handleSecondMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectSecondMaintenanceData = Object.assign({}, item) |
| | | this.$refs.secondMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.secondMaintenanceApprovalModal.title = item.name |
| | | this.$refs.secondMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | }, |
| | | handleThirdMaintenance(item) { |
| | | if (item && item.dataId) { |
| | | this.selectThirdMaintenanceData = Object.assign({}, item) |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(item) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = item.name |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = false |
| | | } |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal :title="title" :width="1200" :visible="visible" :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" fullscreen @ok="handleOk" |
| | | @cancel="handleCancel" centered cancelText="å
³é"> |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="8"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="åºç¡ä¿¡æ¯"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åå·"> |
| | | <a-input v-model="model.orderNum" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç»ä¸ç¼ç "> |
| | | <technical-status-equipment-select v-model="model.equipmentId" |
| | | @autocompleteForm="autocompleteForm" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="计åé´å®æ¥æ"> |
| | | <a-input v-model="model.evaluationDate" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="é¢å人"> |
| | | <a-input v-model="model.evaluator_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-form-model-item :labelCol="labelColLong" :wrapperCol="wrapperColLong" label="夿³¨"> |
| | | <a-textarea v-model="model.remark" readOnly/> |
| | | </a-form-model-item> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <a-col :span="model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'?10:16"> |
| | | |
| | | <a-tabs :active-key="activeTabKey" @change="handleTabChange"> |
| | | <a-tab-pane :key="1" tab="å®å
¨è£
ç½®æ£æ¥" forceRender |
| | | v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='safety_equipment_check'||!Boolean(selectShenpiData.taskDefKey)"> |
| | | <j-vxe-table ref="editableDetailTable1" rowNumber bordered alwaysEdit keep-source :height="300" |
| | | :dataSource="detail.safetyEquipmentCheckList" |
| | | :columns="detail.safetyEquipmentCheckColumns"> |
| | | <template v-slot:safetyEquipmentCheckResult="props"> |
| | | <j-dict-select-tag v-model="props.row.safetyEquipmentCheckResult" :disabled="disableSubmit" |
| | | placeholder="è¯·éæ©æ£æ¥ç»æ" |
| | | @change="$refs['editableDetailTable'+activeTabKey].validateTable()" |
| | | dictCode="yes_no_none" style="width: 100%"/> |
| | | </template> |
| | | </j-vxe-table> |
| | | |
| | | <a-tabs v-if="model.safetyCheckCompleted"> |
| | | <a-tab-pane tab="维修室主任确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="safetyCheckConfirmResult" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong" label="确认类å"> |
| | | <j-dict-select-tag type='radio' v-model='model.safetyCheckConfirmResult' |
| | | dictCode='approved_rejected' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="safetyCheckConfirmComment" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong" label="确认æè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.safetyCheckConfirmComment"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="2" tab="设å¤ç²¾åº¦æ£æ¥" forceRender |
| | | v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='equipment_precision_check'||!Boolean(selectShenpiData.taskDefKey)"> |
| | | <j-vxe-table ref="editableDetailTable2" rowNumber bordered |
| | | alwaysEdit keep-source :height="300" |
| | | :dataSource="detail.precisionCheckList" :columns="detail.precisionCheckColumns"> |
| | | <template v-slot:precisionCheckResult="props"> |
| | | <a-input-number v-model="props.row.precisionCheckResult" :disabled="disableSubmit" |
| | | @blur="$refs['editableDetailTable'+activeTabKey].validateTable()" |
| | | placeholder="请è¾å
¥æ£æ¥ç»æ" style="width: 100%"/> |
| | | </template> |
| | | </j-vxe-table> |
| | | |
| | | <a-tabs v-if="model.precisionCheckCompleted"> |
| | | <a-tab-pane tab="维修室主任确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="precisionCheckConfirmResult" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong" label="确认类å"> |
| | | <j-dict-select-tag type='radio' v-model='model.precisionCheckConfirmResult' |
| | | dictCode='approved_rejected' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="precisionCheckConfirmComment" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong" label="确认æè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.precisionCheckConfirmComment"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane :key="3" tab="å
¶ä»æ£æ¥" forceRender |
| | | v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='other_check'||!Boolean(selectShenpiData.taskDefKey)"> |
| | | <j-vxe-table ref="editableDetailTable3" rowNumber bordered |
| | | alwaysEdit keep-source :height="300" |
| | | :dataSource="detail.otherCheckList" :columns="detail.otherCheckColumns"> |
| | | <template v-slot:otherCheckResult="props"> |
| | | <a-textarea v-model="props.row.otherCheckResult" :rows="1" :disabled="disableSubmit" |
| | | @blur="$refs['editableDetailTable'+activeTabKey].validateTable()" |
| | | placeholder="请è¾å
¥æ£æ¥ç»æ" |
| | | :autoSize="false"/> |
| | | </template> |
| | | </j-vxe-table> |
| | | |
| | | <a-tabs v-if="model.otherCheckCompleted"> |
| | | <a-tab-pane tab="维修室主任确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="otherCheckConfirmResult" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong" label="确认类å"> |
| | | <j-dict-select-tag type='radio' v-model='model.otherCheckConfirmResult' |
| | | dictCode='approved_rejected' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="otherCheckConfirmComment" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong" label="确认æè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.otherCheckConfirmComment"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-tab-pane> |
| | | |
| | | <template v-if="selectShenpiData.procInstId"> |
| | | <a-tab-pane key='4' tab='æµç¨å¾'> |
| | | <img :src="imageSrc" alt="Fetched Image"/> |
| | | </a-tab-pane> |
| | | </template> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <a-col :span="6" v-if="model.evaluationStatus&&model.evaluationStatus!='UNDER_EVALUATION'"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="维修工确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="confirmDealType" label="å®å
¨è£
ç½®æ¯å¦é½å
¨" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.safetyEquipmentCheckResult' dictCode='yn' |
| | | :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="confirmDealType" label="设å¤åè½æ¯å¦é½å
¨" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.precisionCheckResult' dictCode='yn' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å" :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="confirmDealType" label="精度æ¯å¦è¾¾å°è¦æ±" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.functionalCheckResult' dictCode='yes_no_none' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å" :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="confirmDealType" label="æ£æ¥æ¯å¦åæ ¼" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.otherCheckResult' dictCode='yes_no_none' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å" :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs> |
| | | <a-tab-pane tab="维修室主任确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="repairManagerSignatureResult" label="确认类å" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.repairManagerSignatureResult' |
| | | dictCode='approved_rejected' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å" :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="repairManagerComment" label="确认æè§" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.repairManagerComment" |
| | | :disabled="disableSubmit || completionDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs> |
| | | <a-tab-pane tab="å·¥èºå确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="sampleCheckResult" label="è¯ä»¶æ£æ¥ç»æ" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.sampleCheckResult' dictCode='yn' |
| | | :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="processTechnicianComment" label="确认æè§" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.processTechnicianComment" |
| | | :disabled="disableSubmit || completionDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs> |
| | | <a-tab-pane tab="使ç¨å使æ¯ä¸»ç®¡ç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="departTechnicalLeaderSignatureResult" label="确认类å" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.departTechnicalLeaderSignatureResult' |
| | | dictCode='approved_rejected' |
| | | :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="departTechnicalLeaderComment" label="确认æè§" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.departTechnicalLeaderComment" |
| | | :disabled="disableSubmit || completionDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs> |
| | | <a-tab-pane tab="è®¾å¤æ£éªå确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="evaluationResult" label="é´å®ç»æ" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.evaluationResult' |
| | | dictCode='equipment_technology_status' |
| | | placeholder="è¯·éæ©ç¡®è®¤ç±»å" :disabled="disableSubmit || inspectorConfirmDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="evaluationReason" label="é/ç¦ç¨åå " :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-select-multiple v-model='model.evaluationReason' |
| | | dictCode='technical_status_evaluation_result_reason' |
| | | placeholder="è¯·éæ©é/ç¦ç¨åå "/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="inspectorComment" label="确认æè§" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.inspectorComment" |
| | | :disabled="disableSubmit || completionDisable"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { downFile, getAction, httpAction } from '@/api/manage' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@comp/jeecg/JVxeTable' |
| | | import MaintenanceEquipmentSelect from '@views/eam/equipment/modules/MaintenanceEquipmentSelect' |
| | | import TechnicalStatusEquipmentSelect from '../../../eam/equipment/modules/TechnicalStatusEquipmentSelect' |
| | | |
| | | export default { |
| | | name: 'TechnicalStatusEvaluationApprovalModal', |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | TechnicalStatusEquipmentSelect, |
| | | MaintenanceEquipmentSelect |
| | | }, |
| | | props: { |
| | | selectShenpiData: { |
| | | type: Object |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: 'æä½', |
| | | visible: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | labelColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 4 } |
| | | }, |
| | | wrapperColLong: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 20 } |
| | | }, |
| | | rightColLabelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 9 } |
| | | }, |
| | | rightColWrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 15 } |
| | | }, |
| | | confirmLoading: false, |
| | | spinning: false, |
| | | imageSrc: null, |
| | | activeTabKey: 1, |
| | | validatorRules: { |
| | | confirmDealType: [ |
| | | { required: true, message: 'è¯·éæ©éè¿æé©³å!' } |
| | | ], |
| | | confirmComment: [ |
| | | { required: true, message: '请è¾å
¥ç¡®è®¤æè§!' } |
| | | ], |
| | | leaderConfirmComment: [ |
| | | { required: true, message: '请è¾å
¥åéªæ¶æè§!' } |
| | | ] |
| | | }, |
| | | url: { |
| | | queryById: '/eam/eamTechnicalStatusEvaluationOrder/queryById', |
| | | detail: '/eam/eamTechnicalStatusEvaluationOrderDetail/queryList', |
| | | approval: '/eam/eamTechnicalStatusEvaluationOrder/approval', |
| | | diagramView: '/assign/flow/diagramView' |
| | | }, |
| | | disableSubmit: false, |
| | | selectedRowKeys: [], |
| | | detail: { |
| | | safetyEquipmentCheckList: [], |
| | | precisionCheckList: [], |
| | | otherCheckList: [], |
| | | safetyEquipmentCheckColumns: [ |
| | | { |
| | | title: 'ID', |
| | | key: 'id', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'standardId', |
| | | key: 'standardId', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'åºå·', |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: 'æ£æ¥é¡¹ç®', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: 'æ£æ¥ç»æ', |
| | | key: 'safetyEquipmentCheckResult', |
| | | type: JVXETypes.slot, |
| | | slotName: 'safetyEquipmentCheckResult', |
| | | validateRules: [{ handler: this.customValidate }], |
| | | align: 'center' |
| | | } |
| | | ], |
| | | precisionCheckColumns: [ |
| | | { |
| | | title: 'ID', |
| | | key: 'id', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'standardId', |
| | | key: 'standardId', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'åºå·', |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: 'æ£æ¥é¡¹ç®', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: 'æ£æ¥å项ç®', |
| | | key: 'subItemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: 'å
å·®å¼', |
| | | key: 'toleranceValue', |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: 'æ£æ¥ç»æ', |
| | | key: 'precisionCheckResult', |
| | | type: JVXETypes.slot, |
| | | slotName: 'precisionCheckResult', |
| | | align: 'center', |
| | | validateRules: [{ handler: this.customValidate }] |
| | | } |
| | | ], |
| | | otherCheckColumns: [ |
| | | { |
| | | title: 'ID', |
| | | key: 'id', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'standardId', |
| | | key: 'standardId', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'åºå·', |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | align: 'center', |
| | | width: 60 |
| | | }, |
| | | { |
| | | title: 'æ£æ¥é¡¹ç®', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: 'æ£æ¥ç»æ', |
| | | key: 'otherCheckResult', |
| | | type: JVXETypes.slot, |
| | | slotName: 'otherCheckResult', |
| | | align: 'center', |
| | | validateRules: [{ handler: this.customValidate }] |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | confirmDisable: function() { |
| | | return ['WAIT_ADMIN_CONFIRM', 'WAIT_INSPECTOR_CONFIRM', 'COMPLETE'].includes(this.model.maintenanceStatus) |
| | | }, |
| | | inspectorConfirmDisable: function() { |
| | | return ['WAIT_INSPECTOR_CONFIRM', 'COMPLETE'].includes(this.model.maintenanceStatus) |
| | | }, |
| | | completionDisable: function() { |
| | | return ['COMPLETE'].includes(this.model.maintenanceStatus) |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * 主页é¢ç¹å»æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | async handleDetail(record) { |
| | | this.initParams() |
| | | this.getFlowChartImageByApi(record) |
| | | let res = await getAction(this.url.queryById, { id: record.dataId }) |
| | | this.model = Object.assign({}, res.result) |
| | | this.model.dataId = record.dataId |
| | | this.model.taskId = record.id |
| | | this.model.userId = record.assignee |
| | | this.model.instanceId = record.procInstId |
| | | this.loadDetail(record.dataId) |
| | | }, |
| | | |
| | | /** |
| | | * 主页é¢ç¹å»è¯¦æ
æ¶è§¦å |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | recordDetail(record) { |
| | | this.initParams() |
| | | this.model = Object.assign({}, record) |
| | | this.loadDetail(record.id) |
| | | }, |
| | | |
| | | /** |
| | | * è·åæµç¨å¾ |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | getFlowChartImageByApi(record) { |
| | | const { processDefinitionId, processInstanceId, processDefinitionKey } = record |
| | | |
| | | downFile(this.url.diagramView, { |
| | | processDefinitionId, |
| | | processInstanceId, |
| | | TaskDefinitionKey: processDefinitionKey |
| | | }, 'get') |
| | | .then((res => { |
| | | this.imageSrc = window.URL.createObjectURL(new Blob([res])) |
| | | })) |
| | | .catch(err => { |
| | | this.$notification.error({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | async handleOk() { |
| | | const that = this |
| | | |
| | | let errMap |
| | | if (that.$refs['editableDetailTable' + this.activeTabKey]) { |
| | | // æ ¡éªå½åtabè¡¨æ ¼ |
| | | errMap = await that.$refs['editableDetailTable' + this.activeTabKey].validateTable() |
| | | } else { |
| | | // å½åtab䏿¯è¡¨æ ¼æ¶åæ ¡éªæè¡¨æ ¼ç |
| | | for (let index = 1; index <= 3; index++) { |
| | | if (that.$refs['editableDetailTable' + index]) { |
| | | errMap = await that.$refs['editableDetailTable' + index].validateTable() |
| | | if (errMap) { |
| | | that.activeTabKey = index |
| | | that.$refs['editableDetailTable' + this.activeTabKey].clearValidate() |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: 'æ£æ¥ç»æä¸è½ä¸ºç©º' |
| | | }) |
| | | break |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (errMap) return |
| | | |
| | | |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = that.spinning = true |
| | | for (let index = 1; index <= 3; index++) { |
| | | if (that.$refs['editableDetailTable' + index]) { |
| | | this.model.tableDetailList = that.$refs['editableDetailTable' + index].getTableData() |
| | | break |
| | | } |
| | | } |
| | | console.log('model', this.model.tableDetailList) |
| | | |
| | | httpAction(this.url.approval, this.model, 'put') |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.$emit('modalFormOk') |
| | | that.close() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.confirmLoading = that.spinning = false |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | autocompleteForm(selectObj) { |
| | | this.$set(this.model, 'standardName', selectObj.standardName) |
| | | this.$set(this.model, 'standardId', selectObj.id) |
| | | this.$set(this.model, 'equipmentId', selectObj.equipmentId) |
| | | }, |
| | | |
| | | //è§èéæ©åå |
| | | loadDetail(orderId) { |
| | | getAction(this.url.detail, { orderId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.safetyEquipmentCheckList = res.result.filter(item => item.checkCategory == 'SAFETY_EQUIPMENT_CHECK') |
| | | this.detail.precisionCheckList = res.result.filter(item => item.checkCategory == 'PRECISION_CHECK') |
| | | this.detail.otherCheckList = res.result.filter(item => item.checkCategory == 'OTHER_CHECK') |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | // åå§åæ°æ® |
| | | initParams() { |
| | | this.model = {} |
| | | this.detail.safetyEquipmentCheckList = this.detail.precisionCheckList = this.detail.otherCheckList = [] |
| | | this.visible = true |
| | | this.spinning = true |
| | | this.$nextTick(() => { |
| | | for (let index = 1; index <= 3; index++) { |
| | | if (this.$refs['editableDetailTable' + index]) { |
| | | this.activeTabKey = index |
| | | return |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * æ£æ¥æç»æ ç¾åæ¢æ¶è§¦å |
| | | * @param tabKey 忢åçtabKey |
| | | */ |
| | | handleTabChange(tabKey) { |
| | | if (this.$refs['editableDetailTable' + this.activeTabKey]) this.$refs['editableDetailTable' + this.activeTabKey].clearValidate() |
| | | this.activeTabKey = tabKey |
| | | }, |
| | | |
| | | /** |
| | | * èªå®ä¹è¡¨æ ¼åå
æ ¼æ ¡éª |
| | | * @param cellValue åå
æ ¼å¼ |
| | | * @param callback ç»æåè°å½æ° |
| | | */ |
| | | customValidate({ cellValue }, callback) { |
| | | if (cellValue) { |
| | | callback(true) |
| | | } else { |
| | | callback(false, '${title}ä¸è½ä¸ºç©º') |
| | | } |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | /deep/ .ant-select-dropdown-menu { |
| | | text-align: left; |
| | | } |
| | | </style> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="设å¤ç¼ç "> |
| | | <a-form-model-item label="ç»ä¸ç¼ç "> |
| | | <maintenance-equipment-select v-model="model.equipmentId" maintenanceCategory="SECOND_MAINTENANCE" |
| | | @autocompleteForm="autocompleteForm" disabled/> |
| | | </a-form-model-item> |