src/views/eam/dispose/EamEquipmentLeanOutList.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/eam/repair/modules/EamReportRepairList/EamReportRepairModal.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/flowable/workflow/FlowTodo.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/flowable/workflow/leanOut/EquipmentLeanOutApprovalModal.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/flowable/workflow/leanOut/EquipmentReturnApprovalModal.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/eam/dispose/EamEquipmentLeanOutList.vue
@@ -145,7 +145,14 @@ </a-menu> </a-dropdown> </template> <template v-else> <template v-if="record.leanStatus === 'WAIT_RETURN'"> <a-popconfirm title='ç¡®å®å½è¿å?' @confirm='() => equipmentReturn(record.id)'> <a>å½è¿</a> </a-popconfirm> <a-divider type='vertical' /> <a @click='handleDetail(record)'>详æ </a> </template> <template v-if="record.leanStatus !== 'WAIT_RETURN' && record.leanStatus !== 'WAIT_SUBMIT'"> <a href="javascript:;" @click="handleDetail(record)" @@ -291,11 +298,37 @@ delete: '/eam/eamEquipmentLeanOut/delete', deleteBatch: '/eam/eamEquipmentLeanOut/deleteBatch', submit: '/eam/eamEquipmentLeanOut/submit', equipmentReturn: '/eam/eamEquipmentLeanOut/equipmentReturn', } } }, computed: {}, methods: { equipmentReturn(id) { if (!this.url.equipmentReturn) { this.$message.error('请设置url.submit屿§!') return } let that = this getAction(that.url.equipmentReturn, { id: id }).then((res) => { if (res.success) { //éæ°è®¡ç®å页é®é¢ that.reCalculatePage(1) // that.$message.success(res.message); that.$notification.success({ message: 'æ¶æ¯', description: res.message }) that.loadData() } else { // that.$message.warning(res.message); that.$notification.warning({ message: 'æ¶æ¯', description: res.message }) } }) }, handleSubmit(id) { if (!this.url.submit) { this.$message.error('请设置url.submit屿§!') src/views/eam/repair/modules/EamReportRepairList/EamReportRepairModal.vue
@@ -19,7 +19,7 @@ </a-col> <a-col :span="12"> <a-form-model-item prop="faultName" label="æ éç®ç§°"> <a-form-model-item prop="faultName" label="驱å¨ç±»å"> <a-select placeholder="è¯·éæ©æ éç®ç§°" v-model="model.faultName" @change="handleFaultNameChange"> <a-select-option v-for="item in faultReasonList" :key="item.faultName"> {{ item.faultName }} src/views/flowable/workflow/FlowTodo.vue
@@ -242,6 +242,10 @@ ref='equipmentLeanOutApprovalModelRef' @searchReset='searchReset' /> <equipment-return-approval-modal ref='equipmentReturnApprovalModelRef' @searchReset='searchReset' /> <second-maintenance-approval-modal ref='secondMaintenanceApprovalModal' @@ -307,6 +311,7 @@ import AssignEquipmentFileStreamHandle from '@views/flowable/workflow/assignEquipmentFileStream/AssignEquipmentFileStreamHandle.vue' import OutBoundOrderHandle from '@views/flowable/workflow/outBoundOrder/OutBoundOrderHandle.vue' import EquipmentLeanOutApprovalModal from '@views/flowable/workflow/leanOut/EquipmentLeanOutApprovalModal.vue' import EquipmentReturnApprovalModal from '@views/flowable/workflow/leanOut/EquipmentReturnApprovalModal.vue' import SecondMaintenanceApprovalModal from '@views/flowable/workflow/secondMaintenance/SecondMaintenanceApprovalModal.vue' import ThirdMaintenanceApprovalModal from '@views/flowable/workflow/thirdMaintenance/ThirdMaintenanceApprovalModal.vue' import EquipmentSealUpApprovalModal from '@views/flowable/workflow/sealUp/EquipmentSealUpApprovalModal.vue' @@ -334,6 +339,7 @@ RepairOrderApprovalModal, InspectionOrderHandle, EquipmentLeanOutApprovalModal, EquipmentReturnApprovalModal, SecondMaintenanceApprovalModal, ThirdMaintenanceApprovalModal, OutBoundOrderHandle, @@ -512,6 +518,9 @@ case 'equipment_lean_out': this.handleEquipmentLeanOut(item) break case 'equipment_return': this.handleEquipmentReturn(item) break case 'second_maintenance': this.handleSecondMaintenance(item) break @@ -666,6 +675,12 @@ this.$refs.equipmentLeanOutApprovalModelRef.handleDetail(item) this.$refs.equipmentLeanOutApprovalModelRef.disableSubmit = false }, handleEquipmentReturn(item) { this.$refs.equipmentReturnApprovalModelRef.visible = true this.$refs.equipmentReturnApprovalModelRef.title = item.name this.$refs.equipmentReturnApprovalModelRef.handleDetail(item) this.$refs.equipmentReturnApprovalModelRef.disableSubmit = false }, handleSecondMaintenance(item) { if (item && item.dataId) { this.selectSecondMaintenanceData = Object.assign({}, item) src/views/flowable/workflow/leanOut/EquipmentLeanOutApprovalModal.vue
@@ -52,7 +52,7 @@ </a-form-model-item> </a-col> </a-row> <div v-if="approvalDisable"> <div v-if="confirmDisable"> <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 管çåå®¡æ¹ </a-divider> <a-row :gutter="24"> @@ -63,26 +63,26 @@ </a-form-model-item> </a-col> <a-col :span="12"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="approvalComment" label="å®¡æ¹æè§"> <a-textarea placeholder="请è¾å ¥æè§" v-model="model.approvalComment" <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="approvalComment" label="确认æè§"> <a-textarea placeholder="请è¾å ¥ç¡®è®¤æè§" v-model="model.confirmComment" :disabled="disableSubmit || returnDisable" /> </a-form-model-item> </a-col> </a-row> </div> <div v-if="returnDisable"> <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> å½è¿ä¿¡æ¯ </a-divider> <a-row :gutter="24"> <a-col :span="24"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="returnComment" label="å½è¿å¤æ³¨"> <a-textarea placeholder="请è¾å ¥å½è¿å¤æ³¨" v-model="model.returnComment" :disabled="disableSubmit || confirmDisable" /> </a-form-model-item> </a-col> </a-row> </div> <!-- <div v-if="returnDisable">--> <!-- <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> å½è¿ä¿¡æ¯--> <!-- </a-divider>--> <!-- <a-row :gutter="24">--> <!-- <a-col :span="24">--> <!-- <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="returnComment"--> <!-- label="å½è¿å¤æ³¨">--> <!-- <a-textarea placeholder="请è¾å ¥å½è¿å¤æ³¨" v-model="model.returnComment"--> <!-- :disabled="disableSubmit || confirmDisable" />--> <!-- </a-form-model-item>--> <!-- </a-col>--> <!-- </a-row>--> <!-- </div>--> <div v-if="confirmDisable"> <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 管çå确认 </a-divider> src/views/flowable/workflow/leanOut/EquipmentReturnApprovalModal.vue
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,226 @@ <template> <j-modal :title="title" :width="800" :visible="visible" :confirmLoading="confirmLoading" :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" switchFullscreen @ok="handleOk" @cancel="handleCancel" centered cancelText="å ³é"> <a-spin :spinning="spinning"> <a-form-model ref="form" :model="model" :rules="validatorRules"> <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> åç¨ä¿¡æ¯ </a-divider> <a-row :gutter="24"> <a-col :span="12"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="code" label="åæ®å·"> <a-input v-model="model.code" disabled /> </a-form-model-item> </a-col> <a-col :span="12"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentId" label="设å¤ç¼ç "> <lx-search-equipment-select placeholder="请è¾å ¥è®¾å¤ç¼å·æåç§°æç´¢" v-model="model.equipmentId" disabled></lx-search-equipment-select> </a-form-model-item> </a-col> </a-row> <a-row :guitter="24"> <a-col :span="12"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leanDepartId_dictText" label="åå ¥è½¦é´"> <a-input v-model="model.leanDepartId_dictText" disabled /> </a-form-model-item> </a-col> <a-col :span="12"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leanPerson_dictText" label="åç¨äºº"> <a-input v-model="model.leanPerson_dictText" disabled /> </a-form-model-item> </a-col> </a-row> <a-row :gutter="24"> <a-col :span="12"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="leanReason" label="åç¨åå "> <a-textarea v-model="model.leanReason" disabled /> </a-form-model-item> </a-col> <a-col :span="12"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark" label="夿³¨"> <a-textarea v-model="model.remark" disabled /> </a-form-model-item> </a-col> </a-row> <div v-if="confirmDisable"> <a-divider orientation="center" style="font-size: large;font-style: italic;color: #66aeed;"> 管çå确认 </a-divider> <a-row :gutter="24"> <a-col :span="24"> <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="confirmComment" label="确认æè§"> <a-textarea placeholder="请è¾å ¥æè§" v-model="model.confirmComment" :disabled="disableSubmit || completionDisable" /> </a-form-model-item> </a-col> </a-row> </div> </a-form-model> </a-spin> </j-modal> </template> <script> import { getAction, httpAction } from '@/api/manage' import LxSearchEquipmentSelect from '@views/eam/equipment/modules/LxSearchEquipmentSelect.vue' export default { name: 'EquipmentLeanOutApprovalModal', components: { LxSearchEquipmentSelect }, props: { selectShenpiData: { type: Object } }, data() { return { title: 'æä½', visible: false, editable: false, model: {}, treeData: [], labelCol: { xs: { span: 24 }, sm: { span: 5 } }, wrapperCol: { xs: { span: 24 }, sm: { span: 18 } }, labelColLong: { xs: { span: 24 }, sm: { span: 2 } }, wrapperColLong: { xs: { span: 24 }, sm: { span: 21 } }, confirmLoading: false, spinning: false, imageSrc: null, validatorRules: { approvalDealType: [ { required: true, message: 'è¯·éæ©éè¿æé©³å!' } ], approvalComment: [ { required: true, message: '请è¾å ¥å®¡æ¹æè§!' } ], returnComment: [ { required: true, message: '请è¾å ¥å½è¿å¤æ³¨!' } ], confirmComment: [ { required: true, message: '请è¾å ¥ç¡®è®¤æè§!' } ] }, url: { queryById: '/eam/eamEquipmentLeanOut/queryById', approval: '/eam/eamEquipmentLeanOut/approval', loadProductionOptions: '/mdc/mdcProduction/loadProductionTreeOptions' }, disableSubmit: false } }, created() { this.loadAllProductionTree() }, computed: { approvalDisable: function() { return ['WAIT_APPROVAL', 'WAIT_RETURN', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.model.leanStatus) }, returnDisable: function() { return ['WAIT_RETURN', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.model.leanStatus) }, confirmDisable: function() { return ['WAIT_CONFIRM', 'COMPLETE'].includes(this.model.leanStatus) }, completionDisable: function() { return ['COMPLETE'].includes(this.model.leanStatus) } }, methods: { async handleDetail(item) { this.initParams() this.model = {} let res = await getAction(this.url.queryById, { id: item.dataId }) this.model = Object.assign({}, res.result) this.model.dataId = item.dataId this.model.taskId = item.id this.model.userId = item.assignee this.model.instanceId = item.procInstId this.model.values = item.variables this.spinning = false; }, recordDetail(record) { console.log('record', record) this.initParams() this.model = Object.assign({}, record) }, initParams() { this.visible = true this.spinning = true }, async handleOk() { const that = this // 触å表åéªè¯ this.$refs.form.validate(valid => { if (valid) { that.confirmLoading = that.spinning = true let httpurl = this.url.approval let method = 'put' httpAction(httpurl, this.model, method).then((res) => { if (res.success) { that.$message.success(res.message) that.$emit('searchReset') that.close() } else { that.$message.warning(res.message) } }).finally(() => { that.confirmLoading = that.spinning = false }) } else { return false } }) }, handleCancel() { this.close() }, close() { this.$emit('close') this.visible = false this.$refs.form.clearValidate() }, loadAllProductionTree() { //å 载车é´éæ©æ getAction(this.url.loadProductionOptions).then(res => { if (res.success) { this.treeData = [...res.result] } else { that.$message.warning(res.message) } }) } } } </script> <style lang="less" scoped> </style>