| | |
| | | |
| | | <a-divider v-has="'standard:edit'" type="vertical"/> |
| | | |
| | | <a-popconfirm title="ç¡®å®åèµ·æµç¨å?" @confirm="() => startProcess(record.id)"> |
| | | <a v-has="'standard:saveFlow'" @click.stop="event=>event.stopPropagation()">åèµ·æµç¨</a> |
| | | <a-popconfirm title="ç¡®å®æäº¤å?" @confirm="() => startProcess(record.id)"> |
| | | <a v-has="'standard:saveFlow'" @click.stop="event=>event.stopPropagation()">æäº¤</a> |
| | | </a-popconfirm> |
| | | |
| | | |
| | |
| | | <a-row style="margin-left: 14px"> |
| | | <a-button @click="handleAdd(1)" type="primary">æ·»å ç»´ä¿®é¨é¨</a-button> |
| | | <a-button @click="handleAdd(2)" type="primary">æ·»å ä¸çº§</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('ç»´ä¿®é¨é¨ä¿¡æ¯')">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" |
| | | :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> |
| | | <a-button @click="handleDelete" v-if="selectedKeys.length>0">å é¤</a-button> |
| | | <a-button title="å é¤å¤æ¡æ°æ®" @click="batchDel" v-if="checkedKeys.length>0">æ¹éå é¤</a-button> |
| | | <!--<a-button @click="refresh" type="default" icon="reload" :loading="loading">å·æ°</a-button>--> |
| | |
| | | |
| | | <!--使ç¨é¨é¨--> |
| | | <template slot="factoryOrgCode" slot-scope="text,record"> |
| | | {{[record.gsfactoryOrgCode_dictText,record.zxfactoryOrgCode_dictText,record.gqfactoryOrgCode_dictText,record.factoryOrgCode_dictText].filter(item=>item).join('/')}} |
| | | {{[record.zxfactoryOrgCode_dictText,record.gqfactoryOrgCode_dictText,record.factoryOrgCode_dictText].filter(item=>item).join('/')}} |
| | | </template> |
| | | |
| | | <!--å®è£
ä½ç½®--> |
| | |
| | | }, |
| | | { |
| | | title: '使ç¨é¨é¨', |
| | | align: 'center', |
| | | dataIndex: 'factoryOrgCode', |
| | | scopedSlots: { customRender: 'factoryOrgCode' } |
| | | }, |
| | |
| | | </a-dropdown> |
| | | </template> |
| | | |
| | | <a v-else @click="handleDetail(record)">详æ
</a> |
| | | <template v-else> |
| | | <template v-if="record.inspectionStatus=='COMPLETE'"> |
| | | <a @click="handlePrint(record)">é¢è§</a> |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </template> |
| | | </span> |
| | | </a-table> |
| | | </div> |
| | |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'equipmentCode' |
| | | dataIndex: 'equipmentCode', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName' |
| | | dataIndex: 'equipmentName', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: '设å¤åå·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentModel' |
| | | dataIndex: 'equipmentModel', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | |
| | | dataIndex: 'inspectionDate', |
| | | customRender: function(text) { |
| | | return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text) |
| | | } |
| | | }, |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'ç¹æ£è¿ææ¥æ', |
| | |
| | | dataIndex: 'expirationTime', |
| | | customRender: function(text) { |
| | | return !text ? '' : (text.length > 10 ? text.substr(0, 10) : text) |
| | | } |
| | | }, |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'å建æ¹å¼', |
| | |
| | | { |
| | | title: 'ç¹æ£æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'operateTime' |
| | | dataIndex: 'operateTime', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '维修工', |
| | |
| | | { |
| | | title: '确认æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'confirmTime' |
| | | dataIndex: 'confirmTime', |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: 'HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCode' |
| | | dataIndex: 'hfCode', |
| | | width: 250 |
| | | } |
| | | ], |
| | | url: { |
| | |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' } |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right' |
| | | } |
| | | this.columns = [...this.columns, operationColumn] |
| | | this.loadData(1) |
| | |
| | | this.$refs.modalFormXq.visible = true |
| | | this.$refs.modalFormXq.title = '详æ
' |
| | | this.$refs.modalFormXq.disableSubmit = true |
| | | this.$refs.modalFormXq.getAllApproveData(record) |
| | | this.$refs.modalFormXq.getBasicInformation({ ...record, dataId: record.id }) |
| | | this.$refs.modalFormXq.handleDetail(record) |
| | | }, |
| | | |
| | | handleInspection(id) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | batchZf(type) { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | batchLq(type) { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handlePrint(record) { |
| | | let href = `${window._CONFIG['domianURL']}/jmreport/view/1105664887569121280?equipmentCode=` + record.equipmentCode |
| | | window.open(href, '_blank') |
| | | }, |
| | | |
| | | onInspectionDateChange: function(value, dateString) { |
| | | this.queryParam.inspectionDateBegin = dateString[0] |
| | | this.queryParam.inspectionDateEnd = dateString[1] |
| | |
| | | <a-icon type="form"/> |
| | | é¢å |
| | | </a-menu-item> |
| | | <a-menu-item key="3" @click="handlerBatchRestore"> |
| | | <a-icon type="form"/> |
| | | è¿å |
| | | </a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ |
| | | <a-icon type="down"/> |
| | |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="ç¡®å®ä½åºå?" @confirm="() => handlerAbolish(record.id)"> |
| | | <a>ä½åº</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down"/></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a-popconfirm title="ç¡®å®ä½åºå?" @confirm="() => handleAbolish(record.id)"> |
| | | <a>ä½åº</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </template> |
| | | |
| | | <template v-else> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | |
| | | |
| | | <a-divider v-if="record.maintenanceStatus === 'ABOLISH'" type="vertical"/> |
| | | |
| | | <a-popconfirm v-if="record.maintenanceStatus === 'ABOLISH'" title="ç¡®å®è¿åå?" @confirm="() => handlerRestore(record.id)"> |
| | | <a>è¿å</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-divider type="vertical" v-if="record.maintenanceStatus === 'COMPLETE'"/> |
| | | <a v-if="record.maintenanceStatus === 'COMPLETE'" @click="handlePrint(record)">æå°</a> |
| | | </template> |
| | |
| | | list: '/eam/secondMaintenanceOrder/list', |
| | | abolish: '/eam/secondMaintenanceOrder/abolish', |
| | | collect: '/eam/secondMaintenanceOrder/collect', |
| | | restore:'/eam/secondMaintenanceOrder/restore', |
| | | abolishBatch: '/eam/secondMaintenanceOrder/abolishBatch', |
| | | collectBatch: '/eam/secondMaintenanceOrder/collectBatch' |
| | | collectBatch: '/eam/secondMaintenanceOrder/collectBatch', |
| | | restoreBatch: '/eam/secondMaintenanceOrder/restoreBatch', |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | //è¿å |
| | | handlerRestore(id){ |
| | | let that = this |
| | | this.loading = true |
| | | getAction(that.url.restore, { id }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | //æ¹éè¿å |
| | | handlerBatchRestore(){ |
| | | if (!this.url.restoreBatch) { |
| | | this.$message.error('请设置url.restoreBatch屿§!') |
| | | return |
| | | } |
| | | if (this.selectedRowKeys.length <= 0) { |
| | | // this.$message.warning('è¯·éæ©ä¸æ¡è®°å½ï¼'); |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: 'è¯·éæ©ä¸æ¡è®°å½' |
| | | }) |
| | | return |
| | | } else { |
| | | var ids = '' |
| | | for (var a = 0; a < this.selectedRowKeys.length; a++) { |
| | | ids += this.selectedRowKeys[a] + ',' |
| | | } |
| | | var that = this |
| | | this.$confirm({ |
| | | title: '确认è¿å', |
| | | content: 'æ¯å¦è¿åé䏿°æ®ï¼åªæä½åºç¶æçæ°æ®æå¯è¿åæå?', |
| | | onOk: function() { |
| | | that.loading = true |
| | | deleteAction(that.url.restoreBatch, { ids: ids }).then((res) => { |
| | | if (res.success) { |
| | | //éæ°è®¡ç®å页é®é¢ |
| | | that.reCalculatePage(that.selectedRowKeys.length) |
| | | // that.$message.success(res.message); |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | that.onClearSelected() |
| | | } else { |
| | | // that.$message.warning(res.message); |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }).finally(() => { |
| | | that.loading = false |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | //æ¹éé¢å |
| | | handlerBatchCollect() { |
| | | if (!this.url.collectBatch) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal :title="title" :width="1200" :visible="visible" switchFullscreen centered |
| | | :okButtonProps="{ class:{'jee-hidden': true} }" @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <a-spin :spinning="spinning"> |
| | | <a-tabs default-active-key="1"> |
| | | <a-tab-pane tab="æä½å·¥" key="1"> |
| | | <j-vxe-table rowNumber bordered keep-source :height="500" :dataSource="detail.operatorMaintenanceList" |
| | | :columns="detail.columns"/> |
| | | </a-tab-pane> |
| | | <a-tab-pane tab="维修工" key="2" forceRender> |
| | | <j-vxe-table rowNumber bordered keep-source :height="500" :dataSource="detail.repairerMaintenanceList" |
| | | :columns="detail.columns"/> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, httpAction } from '@/api/manage' |
| | | import MaintenanceEquipmentSelect from '@views/eam/equipment/modules/MaintenanceEquipmentSelect.vue' |
| | | import { JVXETypes } from '@comp/jeecg/JVxeTable' |
| | | |
| | | export default { |
| | | name: 'EamSecondMaintenanceBatchOrderDetailModal', |
| | | components: { MaintenanceEquipmentSelect }, |
| | | data() { |
| | | return { |
| | | title: 'é¢è§æç»', |
| | | visible: false, |
| | | spinning: false, |
| | | url: { |
| | | standardDetail: '/eam/eamMaintenanceStandardDetail/queryList' |
| | | }, |
| | | detail: { |
| | | operatorMaintenanceList: [], |
| | | repairerMaintenanceList: [], |
| | | columns: [ |
| | | { |
| | | title: 'ID', |
| | | key: 'id', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'orderId', |
| | | key: 'orderId', |
| | | type: JVXETypes.hidden |
| | | }, |
| | | { |
| | | title: 'åºå·', |
| | | key: 'itemCode', |
| | | type: JVXETypes.normal, |
| | | width: 60, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»é¡¹', |
| | | key: 'itemName', |
| | | type: JVXETypes.normal, |
| | | align: 'center' |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * è·åä¿å
»è§èæ°æ® |
| | | * @param standardId è§èId |
| | | */ |
| | | loadStandardDetail(standardId) { |
| | | this.spinning = true |
| | | getAction(this.url.standardDetail, { standardId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.operatorMaintenanceList = res.result.filter(item => item.itemCategory == 'OPERATOR_MAINTENANCE') |
| | | this.detail.repairerMaintenanceList = res.result.filter(item => item.itemCategory == 'REPAIRER_MAINTENANCE') |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | this.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <j-modal :title="title" :width="1200" :visible="visible" :confirmLoading="confirmLoading" switchFullscreen centered |
| | | :mask-closable="false" @ok="handleOk" @cancel="handleCancel" cancelText="å
³é"> |
| | | <a-spin :spinning="spinning"> |
| | | <j-vxe-table ref="editableDetailTable" rowNumber rowSelection bordered alwaysEdit toolbar @added="addNewRow" |
| | | <j-vxe-table ref="editableDetailTable" rowNumber rowSelection bordered alwaysEdit toolbar |
| | | :toolbarConfig="detail.toolbarConfig" keep-source :height="500" |
| | | :dataSource="detail.dataSource" :columns="detail.columns"/> |
| | | :dataSource="detail.dataSource" :columns="detail.columns"> |
| | | <!--ç»ä¸ç¼ç --> |
| | | <template v-slot:equipmentId="props"> |
| | | <maintenance-equipment-select placeholder="请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢" v-model="props.row.equipmentId" |
| | | maintenanceCategory="SECOND_MAINTENANCE" :allowClear="false" |
| | | @autocompleteForm="autocompleteForm($event,props.row)"/> |
| | | </template> |
| | | |
| | | <!-- ä¿å
»æ¥æ--> |
| | | <template v-slot:maintenanceDate="props"> |
| | | <a-date-picker v-model="props.row.maintenanceDate" value-format="YYYY-MM-DD"/> |
| | | </template> |
| | | |
| | | <!-- æä½--> |
| | | <template v-slot:action="props"> |
| | | <a :disabled="!props.row.equipmentId" @click="handlePreviewDetail(props.row.standardId)">é¢è§æç»</a> |
| | | </template> |
| | | </j-vxe-table> |
| | | </a-spin> |
| | | |
| | | <eam-second-maintenance-batch-order-detail-modal ref="detailModal"/> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction, httpAction } from '@/api/manage' |
| | | import { postAction } from '@/api/manage' |
| | | import MaintenanceEquipmentSelect from '@views/eam/equipment/modules/MaintenanceEquipmentSelect.vue' |
| | | import { JVXETypes } from '@comp/jeecg/JVxeTable' |
| | | import EamSecondMaintenanceBatchOrderDetailModal from './EamSecondMaintenanceBatchOrderDetailModal' |
| | | |
| | | export default { |
| | | name: 'EamSecondMaintenanceBatchOrderModal', |
| | | components: { MaintenanceEquipmentSelect }, |
| | | components: { EamSecondMaintenanceBatchOrderDetailModal, MaintenanceEquipmentSelect }, |
| | | data() { |
| | | return { |
| | | title: 'æä½', |
| | |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | dataIndex: 'orderNum', |
| | | key: 'orderNum', |
| | | align: 'center', |
| | | type: JVXETypes.inputNumber, |
| | | disabled: true, |
| | | placeholder: 'å·¥åå·ç³»ç»èªå¨çæ' |
| | | placeholder: '${title}ç³»ç»èªå¨çæ', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'ç»ä¸ç¼ç ', |
| | | dataIndex: 'equipmentId', |
| | | key: 'equipmentId', |
| | | align: 'center', |
| | | type: JVXETypes.slot, |
| | | slotName: 'equipmentId' |
| | | slotName: 'equipmentId', |
| | | width: 300, |
| | | validateRules: [ |
| | | { required: true, message: '请è¾å
¥${title}æåç§°æç´¢' }, |
| | | { unique: true, message: '${title}ä¸è½éå¤' } |
| | | ] |
| | | }, |
| | | { |
| | | title: 'è§èåç§°', |
| | | dataIndex: 'standardName', |
| | | key: 'standardName', |
| | | align: 'center', |
| | | type: JVXETypes.input, |
| | | disabled: true, |
| | | placeholder: 'éæ©è®¾å¤åèªå¨å¸¦åº' |
| | | type: JVXETypes.normal, |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ¥æ', |
| | | dataIndex: 'maintenanceDate', |
| | | key: 'maintenanceDate', |
| | | align: 'center', |
| | | type: JVXETypes.date |
| | | type: JVXETypes.slot, |
| | | width: 200, |
| | | slotName: 'maintenanceDate', |
| | | validateRules: [{ required: true, message: 'è¯·éæ©${title}' }] |
| | | }, |
| | | { |
| | | title: 'ä¿å
»å¨æ', |
| | | dataIndex: 'maintenancePeriod', |
| | | key: 'maintenancePeriod', |
| | | align: 'center', |
| | | type: JVXETypes.inputNumber, |
| | | defaultValue: '6' |
| | | type: JVXETypes.normal, |
| | | width: 150 |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | key: 'remark', |
| | | align: 'center', |
| | | type: JVXETypes.textarea, |
| | | placeholder: '请è¾å
¥å¤æ³¨', |
| | | width: 300 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | align: 'center', |
| | | type: JVXETypes.slot, |
| | | width: 150, |
| | | slotName: 'action', |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | toolbarConfig: { |
| | |
| | | this.detail.operatorMaintenanceList = this.detail.repairerMaintenanceList = [] |
| | | }, |
| | | |
| | | addNewRow({ row }) { |
| | | console.log('row', row) |
| | | row.maintenancePeriod = 6 |
| | | this.$refs.editableDetailTable.updateData() |
| | | handlePreviewDetail(standardId) { |
| | | this.$refs.detailModal.visible = true |
| | | this.$refs.detailModal.loadStandardDetail(standardId) |
| | | }, |
| | | |
| | | autocompleteForm(selectObj) { |
| | | this.$set(this.model, 'standardName', selectObj.standardName) |
| | | this.$set(this.model, 'standardId', selectObj.id) |
| | | this.$set(this.model, 'equipmentId', selectObj.equipmentId) |
| | | if (!this.model.id) this.loadStandardDetail(selectObj.id) |
| | | autocompleteForm(selectObj, record) { |
| | | this.$set(record, 'standardName', selectObj.standardName) |
| | | this.$set(record, 'standardId', selectObj.id) |
| | | this.$set(record, 'equipmentId', selectObj.equipmentId) |
| | | this.$set(record, 'maintenancePeriod', selectObj.maintenancePeriod) |
| | | this.$refs.editableDetailTable.validateTable() |
| | | }, |
| | | |
| | | async handleOk() { |
| | | const that = this |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = that.spinning = true |
| | | let httpUrl = '' |
| | | let method = '' |
| | | if (!this.model.id) { |
| | | httpUrl += this.url.add |
| | | method = 'post' |
| | | const requests = this.$refs.editableDetailTable.getTableData() |
| | | if (requests.length == 0) { |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: '请è³å°æ°å¢ä¸æ¡è®°å½' |
| | | }) |
| | | return |
| | | } |
| | | |
| | | const errMap = await this.$refs.editableDetailTable.validateTable() |
| | | if (errMap) return |
| | | |
| | | this.confirmLoading = this.spinning = true |
| | | postAction(this.url.batchAdd, requests) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | this.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | this.$emit('ok') |
| | | this.close() |
| | | } else { |
| | | httpUrl += this.url.edit |
| | | method = 'put' |
| | | this.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | httpAction(httpUrl, this.model, method) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.$emit('ok') |
| | | that.close() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.confirmLoading = that.spinning = false |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }) |
| | | .finally(() => { |
| | | this.confirmLoading = this.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | handleCancel() { |
| | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | /deep/ .ant-select-dropdown-menu { |
| | | text-align: left; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('æ
é维修人å')">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>å é¤</a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <eam-repair-person-modal ref="modalForm" @ok="modalFormOk"></eam-repair-person-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import EamRepairPersonModal from './modules/EamRepairPersonModal' |
| | | |
| | | export default { |
| | | name: 'EamRepairPersonList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | EamRepairPersonModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'æ
é维修人å管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'维修工åId', |
| | | align:"center", |
| | | dataIndex: 'repairId' |
| | | }, |
| | | { |
| | | title:'维修人', |
| | | align:"center", |
| | | dataIndex: 'repairUser' |
| | | }, |
| | | { |
| | | title:'æ¯å¦æ¯ä¸»ç»´ä¿®äºº', |
| | | align:"center", |
| | | dataIndex: 'repairPrimary' |
| | | }, |
| | | { |
| | | title:'ç»´ä¿®æ¶é¿', |
| | | align:"center", |
| | | dataIndex: 'repairDuration' |
| | | }, |
| | | { |
| | | title:'夿³¨', |
| | | align:"center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/eamRepairPerson/list", |
| | | delete: "/eam/eamRepairPerson/delete", |
| | | deleteBatch: "/eam/eamRepairPerson/deleteBatch", |
| | | exportXlsUrl: "/eam/eamRepairPerson/exportXls", |
| | | importExcelUrl: "eam/eamRepairPerson/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'repairId',text:'维修工åId',dictCode:''}) |
| | | fieldList.push({type:'string',value:'repairUser',text:'维修人',dictCode:''}) |
| | | fieldList.push({type:'string',value:'repairPrimary',text:'æ¯å¦æ¯ä¸»ç»´ä¿®äºº',dictCode:''}) |
| | | fieldList.push({type:'string',value:'repairDuration',text:'ç»´ä¿®æ¶é¿',dictCode:''}) |
| | | fieldList.push({type:'string',value:'remark',text:'夿³¨',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator" v-if="isDisplayOperation"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" v-if="isShowAuth('eam:reportRepair:add')">æ°å¢</a-button> |
| | | <a-button @click="handleAdd" type="primary" icon="plus" >æ°å¢</a-button> |
| | | <!--<a-button type="primary" icon="download" @click="handleExportXls('æ
éæ¥ä¿®')">导åº</a-button>--> |
| | | <!--<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"--> |
| | | <!--@change="handleImportExcel">--> |
| | |
| | | <!--</a-upload>--> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel" v-if="isShowAuth('eam:reportRepair:abolish')"> |
| | | <a-menu-item key="1" @click="batchDel"> |
| | | <a-icon type="delete"/> |
| | | ä½åº |
| | | </a-menu-item> |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record" v-if="record.reportStatus=='WAIT_REPAIR'"> |
| | | <a @click="handleEdit(record)" v-if="isShowAuth('eam:reportRepair:edit')">ç¼è¾</a> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:edit')"/> |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a @click="handleAssign(record)" v-if="isShowAuth('eam:reportRepair:assign')">ææ´¾</a> |
| | | <a @click="handleAssign(record)" >ææ´¾</a> |
| | | |
| | | <a-divider type="vertical" v-if="isShowAuth('eam:reportRepair:assign')"/> |
| | | <a-divider type="vertical" /> |
| | | |
| | | <a-popconfirm title="ç¡®å®ä½åºå?" @confirm="() => handleDelete(record.id)" v-if="isShowAuth('eam:reportRepair:abolish')"> |
| | | <a-popconfirm title="ç¡®å®ä½åºå?" @confirm="() => handleDelete(record.id)" > |
| | | <a>ä½åº</a> |
| | | </a-popconfirm> |
| | | </span> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="维修工åId" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="repairId"> |
| | | <a-input v-model="model.repairId" placeholder="请è¾å
¥ç»´ä¿®å·¥åId" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="维修人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="repairUser"> |
| | | <a-input v-model="model.repairUser" placeholder="请è¾å
¥ç»´ä¿®äºº" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æ¯å¦æ¯ä¸»ç»´ä¿®äºº" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="repairPrimary"> |
| | | <a-input v-model="model.repairPrimary" placeholder="请è¾å
¥æ¯å¦æ¯ä¸»ç»´ä¿®äºº" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="ç»´ä¿®æ¶é¿" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="repairDuration"> |
| | | <a-input v-model="model.repairDuration" placeholder="请è¾å
¥ç»´ä¿®æ¶é¿" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="夿³¨" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark"> |
| | | <a-input v-model="model.remark" placeholder="请è¾å
¥å¤æ³¨" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </j-form-container> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | |
| | | export default { |
| | | name: 'EamRepairPersonForm', |
| | | components: { |
| | | }, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | model:{ |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | }, |
| | | url: { |
| | | add: "/eam/eamRepairPerson/add", |
| | | edit: "/eam/eamRepairPerson/edit", |
| | | queryById: "/eam/eamRepairPerson/queryById" |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | created () { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit (record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | method = 'put'; |
| | | } |
| | | httpAction(httpurl,this.model,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-drawer |
| | | :title="title" |
| | | :width="width" |
| | | placement="right" |
| | | :closable="false" |
| | | @close="close" |
| | | destroyOnClose |
| | | :visible="visible"> |
| | | <eam-repair-person-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></eam-repair-person-form> |
| | | <div class="drawer-footer"> |
| | | <a-button @click="handleCancel" style="margin-bottom: 0;">å
³é</a-button> |
| | | <a-button v-if="!disableSubmit" @click="handleOk" type="primary" style="margin-bottom: 0;">æäº¤</a-button> |
| | | </div> |
| | | </a-drawer> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import EamRepairPersonForm from './EamRepairPersonForm' |
| | | |
| | | export default { |
| | | name: 'EamRepairPersonModal', |
| | | components: { |
| | | EamRepairPersonForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:"æä½", |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }); |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | /** Buttonæé®é´è· */ |
| | | .ant-btn { |
| | | margin-left: 30px; |
| | | margin-bottom: 30px; |
| | | float: right; |
| | | } |
| | | .drawer-footer{ |
| | | position: absolute; |
| | | bottom: -8px; |
| | | width: 100%; |
| | | border-top: 1px solid #e8e8e8; |
| | | padding: 10px 16px; |
| | | text-align: right; |
| | | left: 0; |
| | | background: #fff; |
| | | border-radius: 0 0 2px 2px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <eam-repair-person-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></eam-repair-person-form> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import EamRepairPersonForm from './EamRepairPersonForm' |
| | | export default { |
| | | name: 'EamRepairPersonModal', |
| | | components: { |
| | | EamRepairPersonForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:'', |
| | | width:800, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="800" |
| | | fullscreen |
| | | :visible="visible" |
| | | centered |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @ok="handleOk" |
| | | @cancel="close" |
| | | :mask-closable="false" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="equipmentId" label="设å¤ç¼å·"> |
| | | <lx-search-equipment-select placeholder="请è¾å
¥è®¾å¤ç¼å·æåç§°æç´¢" v-model="model.equipmentId"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <j-form-container :disabled="disableSubmit"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" slot="detail"> |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item prop="equipmentId" label="设å¤ç¼å·"> |
| | | <lx-search-equipment-select placeholder="请è¾å
¥è®¾å¤ç¼å·æåç§°æç´¢" v-model="model.equipmentId"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ¯å¦å å·¥"> |
| | | <j-dict-select-tag dict-code="is_processed" type="radio" v-model="model.isProcessed" |
| | | @change="handleRadioChange($event,'faultStartTime,breakdownFlag,' + |
| | | 'faultDescription,batchNumber,processingPart,quantity')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ
éå¼å§æ¶é´"> |
| | | <a-date-picker :disabled="!Boolean(+model.isProcessed)" v-model="model.faultStartTime" value-format="YYYY-MM-DD" style="width:100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ¯å¦åæº"> |
| | | <j-dict-select-tag :disabled="!Boolean(+model.isProcessed)" dict-code="yn" placeholder="è¯·éæ©æ¯å¦åæº" v-model="model.breakdownFlag"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-col :span="12"> |
| | | <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 }} |
| | | </a-select-option> |
| | | </a-select> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ
éç°è±¡"> |
| | | <a-input :disabled="!Boolean(+model.isProcessed)" placeholder="请è¾å
¥æ
éç°è±¡" v-model="model.faultDescription"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ¹æ¬¡å·"> |
| | | <a-input :disabled="!Boolean(+model.isProcessed)" placeholder="请è¾å
¥æ¹æ¬¡å·" v-model="model.batchNumber"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="å å·¥é¶ä»¶å·"> |
| | | <a-input :disabled="!Boolean(+model.isProcessed)" placeholder="请è¾å
¥å å·¥é¶ä»¶å·" v-model="model.processingPart"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="ä»¶æ°"> |
| | | <a-input-number :disabled="!Boolean(+model.isProcessed)" placeholder="请è¾å
¥ä»¶æ°" v-model="model.quantity" :min="0" style="width: 100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="æ
éåç±»"> |
| | | <a-input placeholder="请è¾å
¥æ
éåç±»" v-model="model.faultType_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="设å¤äºæ
"> |
| | | <j-dict-select-tag dict-code="yn" placeholder="è¯·éæ©è®¾å¤äºæ
" v-model="model.isAccidentsRegister"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="åºåä»¶å·"> |
| | | <a-input placeholder="请è¾å
¥åºåä»¶å·" v-model="model.scrapPartNumber"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="åºåä»¶æ°"> |
| | | <a-input-number placeholder="请è¾å
¥åºåä»¶æ°" v-model="model.scrapPartQuantity" :min="0" style="width: 100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="åºåä»·å¼"> |
| | | <a-input placeholder="请è¾å
¥åºåä»·å¼" v-model="model.scrapPartValue"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="æ
éæè¿°" prop="faultDescription" :labelCol="labelColLong" |
| | | :wrapperCol="wrapperColLong"> |
| | | <a-textarea placeholder="请è¾å
¥æ
éæè¿°" v-model="model.faultDescription"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ¯å¦æè®¾å¤æä½è¯"> |
| | | <j-dict-select-tag dict-code="yn" placeholder="è¯·éæ©æ¯å¦æè®¾å¤æä½è¯" v-model="model.operationCertificate"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ¯å¦æçµéå¯"> |
| | | <j-dict-select-tag dict-code="yn" placeholder="è¯·éæ©æ¯å¦æçµéå¯" v-model="model.powerOffRestart"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ¯å¦ä¸ºæ¹æ¬¡é¦ä»¶"> |
| | | <j-dict-select-tag dict-code="yn" placeholder="è¯·éæ©æ¯å¦ä¸ºæ¹æ¬¡é¦ä»¶" v-model="model.batchFirstPiece"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="åå¨å ç´ "> |
| | | <j-dict-select-tag dict-code="yn" placeholder="è¯·éæ©åå¨å ç´ " v-model="model.variableFactors"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="faultStartTime" label="æ
éå¼å§æ¶é´"> |
| | | <a-date-picker showTime placeholder="è¯·éæ©æ
éå¼å§æ¶é´" v-model="model.faultStartTime" |
| | | :allow-clear="false" value-format="YYYY-MM-DD HH:mm:ss" :disabledDate="disabledDate" |
| | | :disabledTime="disabledTime"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="åå¨å ç´ å
容"> |
| | | <j-dict-select-tag dict-code="variable_factors_value" placeholder="è¯·éæ©åå¨å ç´ å
容" v-model="model.variableFactorsValue"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="æ§è¡ç¨åº"> |
| | | <a-input placeholder="请è¾å
¥æ§è¡ç¨åº" v-model="model.executeNc"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="äºæ
ç°è±¡"> |
| | | <a-input placeholder="请è¾å
¥äºæ
ç°è±¡" v-model="model.accidentPhenomenon"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="éåæªæ½"> |
| | | <a-input placeholder="请è¾å
¥éåæªæ½" v-model="model.measure"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-col :span="12"> |
| | | <a-form-model-item prop="breakdownFlag" label="æ¯å¦åæº"> |
| | | <a-radio-group v-model="model.breakdownFlag"> |
| | | <a-radio v-for="item in breakdownFlagList" :value="item.value">{{ item.label }}</a-radio> |
| | | </a-radio-group> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="é æç»æ"> |
| | | <a-input placeholder="请è¾å
¥é æç»æ" v-model="model.causingResults"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="imageFiles" label="æ¥ä¿®å¾ç" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <lx-upload :returnUrl="false" :isMultiple="true" file-type="image" :number="3" |
| | | v-model="model.imageFilesResult"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-col :span="customSpan"> |
| | | <a-form-model-item label="夿³¨"> |
| | | <a-input placeholder="请è¾å
¥å¤æ³¨" v-model="model.measure"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="remark" label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea placeholder="请è¾å
¥å¤æ³¨" v-model="model.remark"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-form-model> |
| | | </j-form-container> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | |
| | | return { |
| | | title: 'æä½', |
| | | visible: false, |
| | | //详æ
æ§å¶ |
| | | disableSubmit: false, |
| | | model: {}, |
| | | customSpan: 6, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 8 } |
| | |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.editable = true |
| | | //åå§åé»è®¤å¼ |
| | | this.edit({ |
| | | faultDescription: '', |
| | | breakdownFlag: this.breakdownFlagList.find(item => item.label === 'å¦').value |
| | | }) |
| | | this.model = { |
| | | isProcessed: 0, |
| | | } |
| | | this.visible = true |
| | | }, |
| | | |
| | | edit(record) { |
| | |
| | | } |
| | | }, |
| | | |
| | | /**\ |
| | | * åéæ¡å¼åçæ¹åæ¶è§¦å |
| | | * @param value åéæ¡å¼ |
| | | * @param key åéæ¡å
³èåæ®µ |
| | | */ |
| | | handleRadioChange(value, key) { |
| | | //keyå
å«,è¯´ææ¯å¤éæ¡ |
| | | if (key.includes(',')) { |
| | | const keys = key.split(',') |
| | | keys.forEach(key => { |
| | | if (value === '0') delete this.model[key] |
| | | }) |
| | | }else { |
| | | if (value === '0') delete this.model[key] |
| | | } |
| | | }, |
| | | |
| | | /** |
| | | * ç¦ç¨æ¥æ |
| | | * @params current 被ç¦ç¨çæ¶é´ |
| | |
| | | this.$emit('close') |
| | | this.visible = false |
| | | if (this.$refs.form) this.$refs.form.clearValidate() |
| | | } |
| | | }, |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å 餿 è®°"> |
| | | <a-input placeholder="请è¾å
¥å 餿 è®°" v-model="queryParam.delFlag"></a-input> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="ç»ä¸ç¼ç "> |
| | | <lx-search-equipment-select placeholder="请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢" v-model="queryParam.equipmentId"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åID"> |
| | | <a-input placeholder="请è¾å
¥å·¥åID" v-model="queryParam.orderId"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <template v-if="toggleSearchStatus"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="åæ´åå·"> |
| | | <a-input placeholder="请è¾å
¥åæ´åå·" v-model="queryParam.changeOrderNum"></a-input> |
| | | <a-input placeholder="请è¾å
¥åæ´åå·" v-model="queryParam.changeOrderNum"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç³è¯·äºº"> |
| | | <a-input placeholder="请è¾å
¥ç³è¯·äºº" v-model="queryParam.applicant"></a-input> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="ç³è¯·æ¶é´"> |
| | | <a-range-picker v-model="queryParam.dates" @change="handleDateRangeChange" value-format="YYYY-MM-DD"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç³è¯·é¨é¨"> |
| | | <a-input placeholder="请è¾å
¥ç³è¯·é¨é¨" v-model="queryParam.factoryOrgCode"></a-input> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="åæ´ç¶æ"> |
| | | <j-dict-select-tag dict-code=" technical_status_evaluation_order_change_status" placeholder="è¯·éæ©åæ´ç¶æ" |
| | | v-model="queryParam.changeStatus"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | </template> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="12"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="info" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | <a @click="handleToggleSearch" style="margin-left: 8px"> |
| | | {{ toggleSearchStatus ? 'æ¶èµ·' : 'å±å¼' }} |
| | | <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> |
| | | </a> |
| | | </span> |
| | | </a-col> |
| | | |
| | |
| | | </a-form> |
| | | </div> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('ææ¯ç¶æé´å®å·¥ååæ´')">导åº</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>å é¤</a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已鿩 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">æ¸
空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | |
| | | <a-table ref="table" size="middle" bordered rowKey="id" :columns="columns" :dataSource="dataSource" |
| | | :pagination="ipagination" :loading="loading" :scroll="{x:'max-content'}" @change="handleTableChange"> |
| | | <span slot="action" slot-scope="text, record"> |
| | | <tamplate v-if="record.changeStatus=='WAIT_SUBMIT'"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | <a-divider type="vertical"/> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <a-popconfirm title="ç¡®å®æäº¤åï¼" @confirm="handleSubmit(record.id)"> |
| | | <a>æäº¤</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="ç¡®å®ä½åºåï¼" @confirm="handleAbolish(record.id)"> |
| | | <a>ä½åº</a> |
| | | </a-popconfirm> |
| | | </tamplate> |
| | | |
| | | <a @click="handleDetail(record)" |
| | | v-if="record.changeStatus!='WAIT_SUBMIT'&&record.changeStatus!='ABOLISH'">详æ
</a> |
| | | </span> |
| | | </a-table> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <eamTechnicalStatusEvaluationOrderChange-modal ref="modalForm" @ok="modalFormOk"></eamTechnicalStatusEvaluationOrderChange-modal> |
| | | <eamTechnicalStatusEvaluationOrderChange-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <!--åæ´æµç¨å¼¹çª--> |
| | | <technical-status-evaluation-order-change-approval-modal ref="evaluationOrderChangeApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import EamTechnicalStatusEvaluationOrderChangeModal from './modules/EamTechnicalStatusEvaluationOrderChangeModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | import { getAction } from '@/api/manage' |
| | | import TechnicalStatusEvaluationOrderChangeApprovalModal |
| | | from '../../flowable/workflow/TechnicalStatusEvaluation/TechnicalStatusEvaluationOrderChangeApprovalModal' |
| | | |
| | | export default { |
| | | name: "EamTechnicalStatusEvaluationOrderChangeList", |
| | | mixins:[JeecgListMixin], |
| | | name: 'EamTechnicalStatusEvaluationOrderChangeList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | TechnicalStatusEvaluationOrderChangeApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | EamTechnicalStatusEvaluationOrderChangeModal |
| | | }, |
| | | data () { |
| | | data() { |
| | | return { |
| | | description: 'ææ¯ç¶æé´å®å·¥ååæ´ç®¡ç页é¢', |
| | | // 表头 |
| | |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title: 'å 餿 è®°', |
| | | align:"center", |
| | | dataIndex: 'delFlag' |
| | | }, |
| | | { |
| | | title: 'å·¥åID', |
| | | align:"center", |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | }, |
| | | 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: 'orderId' |
| | | }, |
| | | { |
| | | }, |
| | | { |
| | | title: 'åæ´åå·', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'changeOrderNum' |
| | | }, |
| | | { |
| | | }, |
| | | { |
| | | title: 'ç³è¯·äºº', |
| | | align:"center", |
| | | dataIndex: 'applicant' |
| | | }, |
| | | { |
| | | align: 'center', |
| | | dataIndex: 'applicant_dictText' |
| | | }, |
| | | { |
| | | title: 'ç³è¯·é¨é¨', |
| | | align:"center", |
| | | dataIndex: 'factoryOrgCode' |
| | | }, |
| | | { |
| | | align: 'center', |
| | | dataIndex: 'factoryOrgCode_dictText' |
| | | }, |
| | | { |
| | | title: 'ç³è¯·æ¥æ', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'applyDate' |
| | | }, |
| | | { |
| | | title: 'åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿', |
| | | align:"center", |
| | | dataIndex: 'changeStatus' |
| | | }, |
| | | { |
| | | title: 'åæ´åå ;çäº§ä»»å¡æ¥æ æ³åæºãè®¾å¤æ
鿣å¤äºç»´ä¿®ç¶æã设å¤å·²æ¥åºã设å¤å¤§ä¿®ãæ¬è¿ãæ¹é ', |
| | | align:"center", |
| | | dataIndex: 'applyReason' |
| | | }, |
| | | { |
| | | }, |
| | | { |
| | | title: 'åæ´ç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'changeStatus_dictText' |
| | | }, |
| | | { |
| | | title: 'åæ´åå ', |
| | | align: 'center', |
| | | dataIndex: 'applyReason_dictText' |
| | | }, |
| | | { |
| | | title: 'åæ´é´å®æ¥æ', |
| | | align:"center", |
| | | dataIndex: 'deferredMaintenanceDate' |
| | | }, |
| | | { |
| | | align: 'center', |
| | | dataIndex: 'deferredEvaluationDate' |
| | | }, |
| | | { |
| | | title: '主管é¢å¯¼ç¾å', |
| | | align:"center", |
| | | dataIndex: 'equipmentManagerSignature' |
| | | }, |
| | | { |
| | | align: 'center', |
| | | dataIndex: 'equipmentManagerSignature_dictText' |
| | | }, |
| | | { |
| | | title: '主管é¢å¯¼ç¾åæ¶é´', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'equipmentManagerSignatureTime' |
| | | }, |
| | | { |
| | | title: 'é¨é¨é¢å¯¼ç¾å;æ ¹æ®åæ´åå ç±»ååºåä¸åç人审æ¹', |
| | | align:"center", |
| | | dataIndex: 'departManagerSignature' |
| | | }, |
| | | { |
| | | }, |
| | | { |
| | | title: 'é¨é¨é¢å¯¼ç¾å', |
| | | align: 'center', |
| | | dataIndex: 'departManagerSignature_dictText' |
| | | }, |
| | | { |
| | | title: 'é¨é¨é¢å¯¼ç¾åæ¶é´', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'departManagerSignatureTime' |
| | | }, |
| | | { |
| | | title: 'é¨é¨é¢å¯¼æè§', |
| | | align:"center", |
| | | dataIndex: 'departManagerComment' |
| | | }, |
| | | { |
| | | }, |
| | | { |
| | | title: 'ç产ä¿éé¨é¢å¯¼ç¾å', |
| | | align:"center", |
| | | dataIndex: 'productionSupportSignature' |
| | | }, |
| | | { |
| | | align: 'center', |
| | | dataIndex: 'productionSupportSignature_dictText' |
| | | }, |
| | | { |
| | | title: 'ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'productionSupportSignatureTime' |
| | | }, |
| | | { |
| | | title: 'ç产ä¿éé¨é¢å¯¼æè§', |
| | | align:"center", |
| | | dataIndex: 'productionSupportComment' |
| | | }, |
| | | { |
| | | }, |
| | | { |
| | | title: 'HFç¼ç ', |
| | | align:"center", |
| | | align: 'center', |
| | | dataIndex: 'hfCode' |
| | | }, |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right', |
| | | width: 200 |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/eamTechnicalStatusEvaluationOrderChange/list", |
| | | delete: "/eam/eamTechnicalStatusEvaluationOrderChange/delete", |
| | | deleteBatch: "/eam/eamTechnicalStatusEvaluationOrderChange/deleteBatch", |
| | | exportXlsUrl: "eam/eamTechnicalStatusEvaluationOrderChange/exportXls", |
| | | importExcelUrl: "eam/eamTechnicalStatusEvaluationOrderChange/importExcel", |
| | | }, |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | selectedRowData: {}, |
| | | url: { |
| | | list: '/eam/eamTechnicalStatusEvaluationOrderChange/list', |
| | | edit: '/eam/eamTechnicalStatusEvaluationOrderChange/edit', |
| | | submit: '/eam/eamTechnicalStatusEvaluationOrderChange/submit', |
| | | abolish: '/eam/eamTechnicalStatusEvaluationOrderChange/abolish' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | /** |
| | | * æäº¤æ¶è§¦å |
| | | * @param id |
| | | */ |
| | | handleSubmit(id) { |
| | | const that = this |
| | | that.loading = true |
| | | getAction(this.url.submit, { id }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | that.loading = false |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * ä½åºæ¶è§¦å |
| | | * @param id |
| | | */ |
| | | handleAbolish(id) { |
| | | const that = this |
| | | that.loading = true |
| | | getAction(this.url.abolish, { 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 |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»è¯¦æ
æ¶è§¦åæ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleDetail(record) { |
| | | this.$refs.evaluationOrderChangeApprovalModal.title = '详æ
' |
| | | this.$refs.evaluationOrderChangeApprovalModal.disableSubmit = true |
| | | this.$refs.evaluationOrderChangeApprovalModal.visible = true |
| | | this.$refs.evaluationOrderChangeApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç³è¯·æ¶é´åçæ¹åæ¶è§¦å |
| | | * @param dateStringArray |
| | | */ |
| | | handleDateRangeChange(dateStringArray) { |
| | | this.queryParam.dateBegin = dateStringArray[0] |
| | | this.queryParam.dateEnd = dateStringArray[1] |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | | </script> |
| | |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <template v-if="record.evaluationStatus === 'WAIT_EVALUATION'"> |
| | | <a-popconfirm title="ç¡®å®é¢ååï¼" |
| | | @confirm="handleReceive(record.id)"> |
| | | <a-popconfirm title="ç¡®å®é¢ååï¼" @confirm="handleReceive(record.id)"> |
| | | <a>é¢å</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | <template v-if="record.evaluationStatus == 'WAIT_EVALUATION'||record.evaluationStatus=='LOCKED'"> |
| | | <a @click="handleOrderChange(record)">åæ´</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | </template> |
| | | |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </span> |
| | | </a-table> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <!--å·¥åå¼¹çª--> |
| | | <eamTechnicalStatusEvaluationOrder-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <technical-status-evaluation-approval-modal ref="technicalStatusEvaluationApprovalModal" |
| | | :selectShenpiData="selectedOrderData"/> |
| | | |
| | | <!--å·¥ååæ´å¼¹çª--> |
| | | <eamTechnicalStatusEvaluationOrderChange-modal ref="orderChangeModal" @ok="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import EamTechnicalStatusEvaluationOrderModal from './modules/EamTechnicalStatusEvaluationOrderModal' |
| | | import EamTechnicalStatusEvaluationOrderChangeModal from './modules/EamTechnicalStatusEvaluationOrderChangeModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { getAction } from '@/api/manage' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | |
| | | components: { |
| | | TechnicalStatusEvaluationApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | EamTechnicalStatusEvaluationOrderModal |
| | | EamTechnicalStatusEvaluationOrderModal, |
| | | EamTechnicalStatusEvaluationOrderChangeModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * ç¹å»é¢åæ¶è§¦å |
| | | * @param id |
| | | */ |
| | | handleReceive(id) { |
| | | let that = this |
| | | this.loading = true |
| | |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»åæ´æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleOrderChange(record) { |
| | | this.$refs.orderChangeModal.title = 'åæ´' |
| | | this.$refs.orderChangeModal.add(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»è¯¦æ
æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleDetail(record) { |
| | | this.selectedOrderData = Object.assign({}, record) |
| | | this.$refs.technicalStatusEvaluationApprovalModal.recordDetail(record) |
| | | this.$refs.technicalStatusEvaluationApprovalModal.title = '详æ
' |
| | | this.$refs.technicalStatusEvaluationApprovalModal.visible = true |
| | | this.$refs.technicalStatusEvaluationApprovalModal.disableSubmit = true |
| | | this.$refs.technicalStatusEvaluationApprovalModal.recordDetail(record) |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="800" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | |
| | | <j-modal :title="title" :width="1300" :visible="visible" :confirmLoading="confirmLoading" switchFullscreen |
| | | @ok="handleOk" @cancel="handleCancel" cancelText="å
³é"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag" label="å 餿 è®°"> |
| | | <a-input-number v-model="model.delFlag"/> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orderId" label="å·¥åID"> |
| | | <a-input placeholder="请è¾å
¥å·¥åID" v-model="model.orderId" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="changeOrderNum" label="åæ´åå·"> |
| | | <a-input placeholder="请è¾å
¥åæ´åå·" v-model="model.changeOrderNum" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="applicant" label="ç³è¯·äºº"> |
| | | <a-input placeholder="请è¾å
¥ç³è¯·äºº" v-model="model.applicant" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="factoryOrgCode" label="ç³è¯·é¨é¨"> |
| | | <a-input placeholder="请è¾å
¥ç³è¯·é¨é¨" v-model="model.factoryOrgCode" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="applyDate" label="ç³è¯·æ¥æ"> |
| | | <a-input placeholder="请è¾å
¥ç³è¯·æ¥æ" v-model="model.applyDate" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="changeStatus" label="åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿"> |
| | | <a-input placeholder="请è¾å
¥åæ´ç¶æ;å¾
æäº¤ãå¾
ä¸»ç®¡å®¡æ ¸ãå¾
é¨é¨ç¡®è®¤ãå¾
ä¿éé¨ç¡®è®¤ãå·²ä½åºã已宿" v-model="model.changeStatus" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="applyReason" label="åæ´åå ;çäº§ä»»å¡æ¥æ æ³åæºãè®¾å¤æ
鿣å¤äºç»´ä¿®ç¶æã设å¤å·²æ¥åºã设å¤å¤§ä¿®ãæ¬è¿ãæ¹é "> |
| | | <a-input placeholder="请è¾å
¥åæ´åå ;çäº§ä»»å¡æ¥æ æ³åæºãè®¾å¤æ
鿣å¤äºç»´ä¿®ç¶æã设å¤å·²æ¥åºã设å¤å¤§ä¿®ãæ¬è¿ãæ¹é " v-model="model.applyReason" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="deferredMaintenanceDate" label="åæ´é´å®æ¥æ"> |
| | | <a-input placeholder="请è¾å
¥åæ´é´å®æ¥æ" v-model="model.deferredMaintenanceDate" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentManagerSignature" label="主管é¢å¯¼ç¾å"> |
| | | <a-input placeholder="请è¾å
¥ä¸»ç®¡é¢å¯¼ç¾å" v-model="model.equipmentManagerSignature" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentManagerSignatureTime" label="主管é¢å¯¼ç¾åæ¶é´"> |
| | | <a-input placeholder="请è¾å
¥ä¸»ç®¡é¢å¯¼ç¾åæ¶é´" v-model="model.equipmentManagerSignatureTime" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departManagerSignature" label="é¨é¨é¢å¯¼ç¾å;æ ¹æ®åæ´åå ç±»ååºåä¸åç人审æ¹"> |
| | | <a-input placeholder="请è¾å
¥é¨é¨é¢å¯¼ç¾å;æ ¹æ®åæ´åå ç±»ååºåä¸åç人审æ¹" v-model="model.departManagerSignature" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departManagerSignatureTime" label="é¨é¨é¢å¯¼ç¾åæ¶é´"> |
| | | <a-input placeholder="请è¾å
¥é¨é¨é¢å¯¼ç¾åæ¶é´" v-model="model.departManagerSignatureTime" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="departManagerComment" label="é¨é¨é¢å¯¼æè§"> |
| | | <a-input placeholder="请è¾å
¥é¨é¨é¢å¯¼æè§" v-model="model.departManagerComment" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productionSupportSignature" label="ç产ä¿éé¨é¢å¯¼ç¾å"> |
| | | <a-input placeholder="请è¾å
¥ç产ä¿éé¨é¢å¯¼ç¾å" v-model="model.productionSupportSignature" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productionSupportSignatureTime" label="ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´"> |
| | | <a-input placeholder="请è¾å
¥ç产ä¿éé¨é¢å¯¼ç¾åæ¶é´" v-model="model.productionSupportSignatureTime" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productionSupportComment" label="ç产ä¿éé¨é¢å¯¼æè§"> |
| | | <a-input placeholder="请è¾å
¥ç产ä¿éé¨é¢å¯¼æè§" v-model="model.productionSupportComment" /> |
| | | </a-form-model-item> |
| | | <a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" prop="hfCode" label="HFç¼ç "> |
| | | <a-input placeholder="请è¾å
¥HFç¼ç " v-model="model.hfCode" /> |
| | | </a-form-model-item> |
| | | |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="å·¥åå·"> |
| | | <a-input placeholder="éæ©è®¾å¤åèªå¨å¸¦åº" disabled v-model="model.orderId"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="åæ´åå·"> |
| | | <a-input placeholder="ç³»ç»èªå¨çæ" disabled v-model="model.changeOrderNum"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item label="ç»ä¸ç¼ç "> |
| | | <technical-status-equipment-select placeholder="请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢" v-model="model.equipmentId" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="deferredEvaluationDate" label="åæ´é´å®æ¥æ"> |
| | | <a-date-picker v-model="model.deferredEvaluationDate" value-format="YYYY-MM-DD" style="width: 100%"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="8"> |
| | | <a-form-model-item prop="applyReason" label="åæ´åå "> |
| | | <j-dict-select-tag v-model="model.applyReason" placeholder="è¯·éæ©åæ´åå " |
| | | dict-code="technical_status_evaluation_order_change_reason"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="夿³¨" :labelCol="{span:2}" :wrapperCol="{span:21}"> |
| | | <a-textarea v-model="model.remark" placeholder="请è¾å
¥å¤æ³¨"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction } from '@/api/manage' |
| | | import moment from "moment" |
| | | import { postAction } from '@/api/manage' |
| | | import TechnicalStatusEquipmentSelect from '../../equipment/modules/TechnicalStatusEquipmentSelect' |
| | | |
| | | export default { |
| | | name: "EamTechnicalStatusEvaluationOrderChangeModal", |
| | | data () { |
| | | name: 'EamTechnicalStatusEvaluationOrderChangeModal', |
| | | components: { TechnicalStatusEquipmentSelect }, |
| | | data() { |
| | | return { |
| | | title:"æä½", |
| | | title: 'æä½', |
| | | visible: false, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | sm: { span: 6 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | sm: { span: 15 } |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules:{ |
| | | validatorRules: { |
| | | deferredEvaluationDate: [{ required: true, message: 'è¯·éæ©æ¥æ', trigger: 'change' }], |
| | | applyReason: [{ required: true, message: 'è¯·éæ©åæ´åå ', trigger: 'change' }] |
| | | }, |
| | | url: { |
| | | add: "/eam/eamTechnicalStatusEvaluationOrderChange/add", |
| | | edit: "/eam/eamTechnicalStatusEvaluationOrderChange/edit", |
| | | }, |
| | | add: '/eam/eamTechnicalStatusEvaluationOrderChange/add', |
| | | edit: '/eam/eamTechnicalStatusEvaluationOrderChange/edit' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | }, |
| | | methods: { |
| | | add () { |
| | | //åå§åé»è®¤å¼ |
| | | this.edit({}); |
| | | add({ id, equipmentId }) { |
| | | this.model = Object.assign({ orderId: id, equipmentId }) |
| | | this.visible = true |
| | | }, |
| | | edit (record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.visible = true |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | handleOk () { |
| | | const that = this; |
| | | |
| | | handleOk() { |
| | | const that = this |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | method = 'put'; |
| | | that.confirmLoading = true |
| | | |
| | | let httpUrl |
| | | if (!that.model.id) { |
| | | httpUrl = that.url.add |
| | | } else { |
| | | httpUrl = that.url.edit |
| | | } |
| | | httpAction(httpurl,this.model,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | }else{ |
| | | return false; |
| | | |
| | | postAction(httpUrl, that.model) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | if (!that.model.id) { |
| | | that.$router.push('/eam/technical/order/change') |
| | | return |
| | | } |
| | | that.close() |
| | | that.$emit('ok') |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.confirmLoading = false |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel () { |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | </style> |
| | | </script> |
| | |
| | | v-model="queryParams.name" |
| | | placeholder="请è¾å
¥åç§°" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | |
| | | <!-- |
| | | Description: 工使µ-æçå·²å List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-02-27 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | |
| | | </a-col> |
| | | <a-col :xl="10" :lg="11" :md="12" :sm="24"> |
| | | <a-form-item label="æä½æ¶é´"> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©å¼å§æ¶é´" |
| | | class="query-group-cust" |
| | | v-model="queryParam.startTime"></j-date> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©å¼å§æ¶é´" class="query-group-cust" |
| | | v-model="queryParam.startTime"/> |
| | | <span class="query-group-split-cust"></span> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©ç»ææ¶é´" |
| | | class="query-group-cust" |
| | | v-model="queryParam.endTime"></j-date> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©ç»ææ¶é´" class="query-group-cust" |
| | | v-model="queryParam.endTime"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | <a-table ref="table" size="middle" :scroll="{x:true}" bordered rowKey="id" :columns="columns" |
| | | :dataSource="dataSource" :pagination="ipagination" :loading="loading" class="j-table-force-nowrap" |
| | | @change="handleTableChange"> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handelDetial(record,text)">详æ
</a> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </span> |
| | | </a-table> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <third-maintenance-approval-modal ref="thirdMaintenanceApprovalModal" :selectShenpiData="selectedRowData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import ThirdMaintenanceApprovalModal from './thirdMaintenance/ThirdMaintenanceApprovalModal' |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag.vue' |
| | | export default { |
| | | name: 'NcDeviceCharactersList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { |
| | | JDictSelectTag, |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '工使µ-å·²å', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 200, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | export default { |
| | | name: 'FlowCompleted', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | ThirdMaintenanceApprovalModal |
| | | }, |
| | | data() { |
| | | return { |
| | | description: '工使µ-å·²å', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: 'åºå·', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | }, |
| | | { |
| | | title: 'æµç¨åç±»', |
| | | align: 'center', |
| | | dataIndex: 'category_dictText' |
| | | }, |
| | | { |
| | | title: 'æµç¨åç§°', |
| | | align: 'center', |
| | | dataIndex: 'procDefName' |
| | | }, |
| | | { |
| | | title: 'æµç¨ä¸å¡ç®è¦æè¿°', |
| | | align: 'center', |
| | | dataIndex: 'description' |
| | | }, |
| | | { |
| | | title: 'æµç¨å起人åç§°', |
| | | align: 'center', |
| | | dataIndex: 'proposer_dictText' |
| | | }, |
| | | { |
| | | title: 'ä»»å¡åç§°', |
| | | align: 'center', |
| | | dataIndex: 'taskName' |
| | | }, |
| | | { |
| | | title: 'æä½æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'finishTime', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 200 |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/assign/flow/finishedList' |
| | | }, |
| | | { |
| | | title: 'æµç¨åç±»', |
| | | align: 'center', |
| | | dataIndex: 'category_dictText', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'æµç¨åç§°', |
| | | align: 'center', |
| | | dataIndex: 'procDefName', |
| | | width: 200 |
| | | }, |
| | | { |
| | | title: 'æµç¨ä¸å¡ç®è¦æè¿°', |
| | | align: 'center', |
| | | dataIndex: 'description', |
| | | width: 300 |
| | | }, |
| | | { |
| | | title: 'æµç¨å起人åç§°', |
| | | align: 'center', |
| | | dataIndex: 'proposer_dictText', |
| | | width: 250 |
| | | }, |
| | | { |
| | | title: 'ä»»å¡åç§°', |
| | | align: 'center', |
| | | dataIndex: 'taskName', |
| | | width: 250 |
| | | }, |
| | | { |
| | | title: 'æä½æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'finishTime', |
| | | width: 300 |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: { customRender: 'action' }, |
| | | align: 'center', |
| | | width: 200, |
| | | fixed: 'right' |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/assign/flow/finishedList' |
| | | }, |
| | | dictOptions: {}, |
| | | selectShenpiData: {}, |
| | | selectDispatchFileXqData: {}, |
| | | selectWeekMaintenanceData: {}, |
| | | selectInspectionOrderXqData: {}, |
| | | selectRepairOrderData: {}, |
| | | selectOutBoundOrderData: {}, |
| | | selectLossBoundOrderData: {}, |
| | | selectStocktakingBoundOrderData: {} |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | | methods: { |
| | | handelDetial(item, index) { |
| | | console.log('ç¹å»äºè¯¦æ
') |
| | | console.log('item----->', item) |
| | | console.log('index----->', index) |
| | | let approcesstype = this.splitAprocessType(item.category) |
| | | console.log('approcesstype--->', approcesstype) |
| | | switch (approcesstype) { |
| | | case 'drApproval': |
| | | this.handDrDetial(item) |
| | | break |
| | | case 'ggApproval': |
| | | this.handDispatchFileDetial(item) |
| | | break |
| | | case 'sbdjApproval': |
| | | this.handInspectionOrder(item) |
| | | break |
| | | case 'WEEK_MAINTENANCE': |
| | | this.handleWeekMaintenance(item) |
| | | break |
| | | case 'eam_repair': |
| | | this.handleRepairOrder(item) |
| | | break |
| | | case 'toolOutStorageApproval': |
| | | this.handleToolOutStorageApproval(item) |
| | | break |
| | | case 'toolsStocktakingBound': |
| | | this.handleToolStocktakingApproval(item) |
| | | break |
| | | case 'toolsLossApproval': |
| | | this.handleToolLossApproval(item) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥æµç¨') |
| | | selectedRowData: {} |
| | | } |
| | | }, |
| | | methods: { |
| | | handleDetail(record) { |
| | | console.log('ç¹å»äºè¯¦æ
') |
| | | console.log('record----->', record) |
| | | let processType = this.splitProcessType(record.category) |
| | | console.log('processType--->', processType) |
| | | switch (processType) { |
| | | case 'sbdjApproval': |
| | | this.handInspectionOrder(record) |
| | | break |
| | | case 'eam_repair': |
| | | this.handleRepairOrder(record) |
| | | break |
| | | case 'third_maintenance': |
| | | this.handleThirdMaintenance(record) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥æµç¨') |
| | | } |
| | | }, |
| | | |
| | | splitAprocessType(title) { |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | | return result |
| | | }, |
| | | handDrDetial(item) { |
| | | this.selectShenpiData = item |
| | | this.selectShenpiData.assignee_dictText = item.todoUsers_dictText |
| | | this.selectShenpiData.procInstId = item.procInsId |
| | | this.selectShenpiData.title = item.description |
| | | this.$refs.modalFormApproval.clearTableSource() |
| | | this.$refs.modalFormApproval.getAllApproveData(item) |
| | | }, |
| | | handDispatchFileDetial(item) { |
| | | console.log('item----->', item) |
| | | this.selectDispatchFileXqData = item |
| | | this.selectDispatchFileXqData.assignee_dictText = item.todoUsers_dictText |
| | | this.selectDispatchFileXqData.procInstId = item.procInsId |
| | | this.selectDispatchFileXqData.processInstanceId = item.procInsId |
| | | this.selectDispatchFileXqData.title = item.description |
| | | this.$refs.modalFormDispatchFileXq.clearTableSource() |
| | | this.$refs.modalFormDispatchFileXq.getAllApproveData(item) |
| | | }, |
| | | handleWeekMaintenance(record) { |
| | | this.selectWeekMaintenanceData = Object.assign({}, record) |
| | | this.$refs.weekMaintenanceApprovalModal.handleDetail(record) |
| | | this.$refs.weekMaintenanceApprovalModal.title = '详æ
' |
| | | this.$refs.weekMaintenanceApprovalModal.disableSubmit = true |
| | | }, |
| | | /** |
| | | * ç¹å»ä¸ä¿æµç¨è¯¦æ
æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleThirdMaintenance(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceApprovalModal.title = record.name |
| | | this.$refs.thirdMaintenanceApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | handInspectionOrder(record) { |
| | | console.log('record----->', record) |
| | | this.selectInspectionOrderXqData = Object.assign({}, record) |
| | | const { todoUsers_dictText, procInsId, description, taskName } = this.selectInspectionOrderXqData |
| | | this.selectInspectionOrderXqData.assignee_dictText = todoUsers_dictText |
| | | this.selectInspectionOrderXqData.procInstId = procInsId |
| | | this.selectInspectionOrderXqData.processInstanceId = procInsId |
| | | this.selectInspectionOrderXqData.title = description |
| | | this.$refs.modalFormInspectionOrderXq.visible = true |
| | | this.$refs.modalFormInspectionOrderXq.title = taskName |
| | | this.$refs.modalFormInspectionOrderXq.disableSubmit = true |
| | | this.$refs.modalFormInspectionOrderXq.getAllApproveData({ |
| | | ...record, |
| | | procInstId: procInsId, |
| | | processInstanceId: procInsId |
| | | }) |
| | | this.$refs.modalFormInspectionOrderXq.getBasicInformation(record) |
| | | }, |
| | | /** |
| | | * ç¹å»ç¹æ£æµç¨è¯¦æ
æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handInspectionOrder(record) { |
| | | console.log('record----->', record) |
| | | this.selectInspectionOrderXqData = Object.assign({}, record) |
| | | const { todoUsers_dictText, procInsId, description, taskName } = this.selectInspectionOrderXqData |
| | | this.selectInspectionOrderXqData.assignee_dictText = todoUsers_dictText |
| | | this.selectInspectionOrderXqData.procInstId = procInsId |
| | | this.selectInspectionOrderXqData.processInstanceId = procInsId |
| | | this.selectInspectionOrderXqData.title = description |
| | | this.$refs.modalFormInspectionOrderXq.visible = true |
| | | this.$refs.modalFormInspectionOrderXq.title = taskName |
| | | this.$refs.modalFormInspectionOrderXq.disableSubmit = true |
| | | this.$refs.modalFormInspectionOrderXq.getAllApproveData({ |
| | | ...record, |
| | | procInstId: procInsId, |
| | | processInstanceId: procInsId |
| | | }) |
| | | this.$refs.modalFormInspectionOrderXq.getBasicInformation(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»è®¾å¤ç»´ä¿®åç±»æµç¨è¯¦æ
æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleRepairOrder(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | const { procInsId, taskName } = this.selectRepairOrderData |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.disableSubmit = true |
| | | this.$refs.repairOrderApprovalModal.title = taskName |
| | | this.$refs.modalFormInspectionOrderXq.getAllApproveData({ |
| | | ...record, |
| | | procInstId: procInsId, |
| | | processInstanceId: procInsId |
| | | }) |
| | | this.$refs.repairOrderApprovalModal.getBasicInformation(record) |
| | | }, |
| | | /** |
| | | * ç¹å»è®¾å¤ç»´ä¿®åç±»æµç¨è¯¦æ
æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleRepairOrder(record) { |
| | | this.selectRepairOrderData = Object.assign({}, record) |
| | | const { procInsId, taskName } = this.selectRepairOrderData |
| | | this.$refs.repairOrderApprovalModal.visible = true |
| | | this.$refs.repairOrderApprovalModal.disableSubmit = true |
| | | this.$refs.repairOrderApprovalModal.title = taskName |
| | | this.$refs.modalFormInspectionOrderXq.getAllApproveData({ |
| | | ...record, |
| | | procInstId: procInsId, |
| | | processInstanceId: procInsId |
| | | }) |
| | | this.$refs.repairOrderApprovalModal.getBasicInformation(record) |
| | | }, |
| | | |
| | | handleToolOutStorageApproval(item) { |
| | | this.selectOutBoundOrderData = Object.assign({}, item) |
| | | item.procInstId = item.procInsId |
| | | item.processInstanceId = item.procInsId |
| | | this.selectOutBoundOrderData.assignee_dictText = item.todoUsers_dictText |
| | | this.$refs.outBoundOrderHandle.auditVisible = false |
| | | this.$refs.outBoundOrderHandle.clearTableSource() |
| | | this.$refs.outBoundOrderHandle.getAllApproveData(item) |
| | | }, |
| | | |
| | | handleToolStocktakingApproval(item) { |
| | | |
| | | this.selectStocktakingBoundOrderData = Object.assign({}, item) |
| | | item.procInstId = item.procInsId |
| | | item.processInstanceId = item.procInsId |
| | | this.selectStocktakingBoundOrderData.assignee_dictText = item.todoUsers_dictText |
| | | this.$refs.stocktakingBoundHandle.auditVisible = false |
| | | this.$refs.stocktakingBoundHandle.disableSubmit = true |
| | | this.$refs.stocktakingBoundHandle.clearTableSource() |
| | | this.$refs.stocktakingBoundHandle.getAllApproveData(item) |
| | | |
| | | }, |
| | | handleToolLossApproval(item) { |
| | | this.selectLossBoundOrderData = Object.assign({}, item) |
| | | item.procInstId = item.procInsId |
| | | item.processInstanceId = item.procInsId |
| | | this.selectStocktakingBoundOrderData.assignee_dictText = item.todoUsers_dictText |
| | | this.$refs.lossBoundHandle.auditVisible = false |
| | | this.$refs.lossBoundHandle.disableSubmit = true |
| | | this.$refs.lossBoundHandle.clearTableSource() |
| | | this.$refs.lossBoundHandle.getAllApproveData(item) |
| | | |
| | | splitProcessType(title) { |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | | return result |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | | </script> |
| | |
| | | <!-- |
| | | Description: 工使µ-æ»å°è´¦ List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-02-27 |
| | | --> |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="24"> |
| | | <a-form-item label="æµç¨åç±»"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©æµç¨åç±»" v-model="queryParam.category" |
| | | dictCode="flow_type"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="24"> |
| | | <a-form-item label="æµç¨åç§°"> |
| | | <a-input placeholder="请è¾å
¥æµç¨åç§°" v-model="queryParam.flowName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="24"> |
| | | <a-form-item label="ç®è¦æè¿°"> |
| | | <a-input placeholder="请è¾å
¥ç®è¦æè¿°" v-model="queryParam.title"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="10" :lg="11" :md="12" :sm="24"> |
| | | <a-col :xl="8" :lg="12" :md="12" :sm="24"> |
| | | <a-form-item label="æä½æ¶é´"> |
| | | <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="è¯·éæ©å¼å§æ¶é´" class="query-group-cust" |
| | | v-model="queryParam.startTime"></j-date> |
| | |
| | | v-model="queryParam.endTime"></j-date> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-col :xl="4" :lg="6" :md="8" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag.vue' |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag.vue' |
| | | |
| | | export default { |
| | | name: 'FlowLedger', |
| | |
| | | { |
| | | title: 'æµç¨ä¸å¡ç®è¦æè¿°', |
| | | align: 'center', |
| | | dataIndex: 'description', |
| | | dataIndex: 'description' |
| | | }, |
| | | { |
| | | title: 'ç³è¯·äºº', |
| | |
| | | console.log('approcesstype--->', approcesstype) |
| | | switch (approcesstype) { |
| | | case 'drApproval': |
| | | item.description=item.description |
| | | item.description = item.description |
| | | this.handDrDetial(item) |
| | | break |
| | | case 'ggApproval': |
| | | item.description=item.description |
| | | item.description = item.description |
| | | this.handDispatchFileDetial(item) |
| | | break |
| | | case 'sbdjApproval': |
| | |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | | return result |
| | | }, |
| | | handDrDetial(item) { |
| | | this.selectShenpiData = item |
| | | this.selectShenpiData.assignee_dictText=item.todoUsers_dictText |
| | | this.selectShenpiData.createTime=item.startTime |
| | | this.selectShenpiData.procInstId=item.processInstanceId |
| | | this.$refs.modalFormApproval.clearTableSource() |
| | | this.$refs.modalFormApproval.getAllApproveData(item) |
| | | }, |
| | | handDispatchFileDetial(item){ |
| | | this.selectDispatchFileXqData = item |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | this.selectDispatchFileXqData.assignee_dictText=item.todoUsers_dictText |
| | | this.selectDispatchFileXqData.createTime=item.startTime |
| | | this.selectDispatchFileXqData.procInstId=item.processInstanceId |
| | | this.$refs.modalFormDispatchFileXq.clearTableSource() |
| | | this.$refs.modalFormDispatchFileXq.getAllApproveData(item) |
| | | }, |
| | | handInspectionOrderDetail(item) { |
| | | this.selectInspectionOrderXqData = item |
| | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <!--ä¿å
»è§è--> |
| | | <maintenance-standard-approval-modal ref="maintenanceStandardApprovalModal" @modalFormOk="modalFormOk" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <!--ç¹æ£--> |
| | | <inspection-order-handle ref="inspectionOrderHandle" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | |
| | | <!--ææ¯é´å®å·¥å--> |
| | | <technical-status-evaluation-approval-modal ref="technicalStatusApprovalModal" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | |
| | | <!--äºä¿å·¥å--> |
| | | <second-maintenance-approval-modal ref="secondMaintenanceApprovalModal" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | |
| | | <!--ä¸ä¿å·¥å--> |
| | | <third-maintenance-approval-modal ref="thirdMaintenanceApprovalModal" :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | |
| | | <!--ææ¯é´å®å·¥ååæ´--> |
| | | <technical-status-evaluation-order-change-approval-modal ref="evaluationOrderChangeApprovalModal" |
| | | :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | from './TechnicalStatusEvaluation/TechnicalStatusEvaluationApprovalModal' |
| | | import SecondMaintenanceApprovalModal from './secondMaintenance/SecondMaintenanceApprovalModal' |
| | | import ThirdMaintenanceApprovalModal from './thirdMaintenance/ThirdMaintenanceApprovalModal' |
| | | import TechnicalStatusEvaluationOrderChangeApprovalModal |
| | | from './TechnicalStatusEvaluation/TechnicalStatusEvaluationOrderChangeApprovalModal' |
| | | |
| | | export default { |
| | | name: 'FlowTodo', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | TechnicalStatusEvaluationOrderChangeApprovalModal, |
| | | ThirdMaintenanceApprovalModal, |
| | | SecondMaintenanceApprovalModal, |
| | | TechnicalStatusEvaluationApprovalModal, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | handelDetail(item, index) { |
| | | let processType = this.splitProcessType(item.category) |
| | | handelDetail(record) { |
| | | let processType = this.splitProcessType(record.category) |
| | | console.log('processType', processType) |
| | | switch (processType) { |
| | | case 'maintenance_standard': |
| | | this.handleMaintenanceStandard(item) |
| | | this.handleMaintenanceStandard(record) |
| | | break |
| | | case 'sbdjApproval': |
| | | this.handInspectionOrder(item) |
| | | this.handInspectionOrder(record) |
| | | break |
| | | case 'eam_repair': |
| | | this.handleRepairOrder(item) |
| | | this.handleRepairOrder(record) |
| | | break |
| | | case 'second_maintenance': |
| | | this.handleSecondMaintenance(item) |
| | | this.handleSecondMaintenance(record) |
| | | break |
| | | case 'third_maintenance': |
| | | this.handleThirdMaintenance(item) |
| | | this.handleThirdMaintenance(record) |
| | | break |
| | | case 'TECHNICAL_STATUS_EVALUATION': |
| | | this.handleTechnicalStatusEvaluation(item) |
| | | this.handleTechnicalStatusEvaluation(record) |
| | | break |
| | | case 'toolsStocktakingBound': |
| | | this.handleToolStocktakingApproval(item) |
| | | break |
| | | case 'toolsLossApproval': |
| | | this.handleToolLossApproval(item) |
| | | case 'EVALUATION_ORDER_CHANGE_PROCESS': |
| | | this.handleEvaluationOrderChange(record) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥æµç¨') |
| | |
| | | this.$refs.technicalStatusApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | handleEvaluationOrderChange(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.evaluationOrderChangeApprovalModal.visible = true |
| | | this.$refs.evaluationOrderChangeApprovalModal.title = record.name |
| | | this.$refs.evaluationOrderChangeApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»äºä¿æµç¨æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param 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) |
| | | this.$refs.inspectionOrderHandle.handleApprove(record) |
| | | }, |
| | | |
| | | /** |
| | |
| | | handleThirdMaintenance(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(record) |
| | | this.$refs.thirdMaintenanceApprovalModal.title = record.name |
| | | this.$refs.thirdMaintenanceApprovalModal.handleDetail(record) |
| | | }, |
| | | |
| | | /** |
| | |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" @ok="submitForm" |
| | | @cancel="handleCancel" :mask-closable="false" :confirmLoading="confirmLoading" fullscreen> |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref='form' :model='tableRowRecord' :labelCol="labelCol" :wrapperCol="wrapperCol" |
| | | :rules="validatorRules"> |
| | | <a-row :gutter="48"> |
| | | <a-col :span="8"> |
| | | <a-form-model ref='form' :model='model' :labelCol="labelCol" :wrapperCol="wrapperCol" :rules="validatorRules"> |
| | | <a-row :gutter="48" id="outer-row"> |
| | | <a-col :span="8" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="åºç¡ä¿¡æ¯"> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="å·¥åå·"> |
| | | <a-input readOnly v-model="tableRowRecord.orderNum"/> |
| | | <a-input readOnly v-model="model.orderNum"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="设å¤ç¼å·"> |
| | | <MaintenanceEquipmentSelect v-model="tableRowRecord.equipmentId" |
| | | <MaintenanceEquipmentSelect v-model="model.equipmentId" |
| | | :maintenanceCategory="'POINT_INSPECTION'" |
| | | disabled @autocompleteForm="autoCompleteForm"/> |
| | | </a-form-model-item> |
| | |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="è§èåç§°"> |
| | | <a-input readOnly v-model="tableRowRecord.standardName"/> |
| | | <a-input readOnly v-model="model.standardName"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="è§èç¼ç "> |
| | | <a-input readOnly v-model="tableRowRecord.standardCode"/> |
| | | <a-input readOnly v-model="model.standardCode"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="ç¹æ£æ¥æ"> |
| | | <a-input v-model="tableRowRecord.inspectionDate" readOnly/> |
| | | <a-input v-model="model.inspectionDate" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="ç¹æ£è¿ææ¶é´"> |
| | | <a-input v-model="tableRowRecord.expirationTime" readOnly/> |
| | | <a-form-model-item label="è¿ææ¶é´"> |
| | | <a-input v-model="model.expirationTime" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="ä¿å
»å¨æ"> |
| | | <a-input v-model="tableRowRecord.maintenancePeriod" readOnly/> |
| | | <a-input v-model="model.maintenancePeriod" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="ç¹æ£äºº"> |
| | | <a-input v-model="tableRowRecord.operator_dictText" readOnly/> |
| | | <a-input v-model="model.operator_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <a-row> |
| | | <a-col :span="span*2"> |
| | | <a-form-model-item label="夿³¨" :labelCol="{span:4}" :wrapperCol="{span:20}"> |
| | | <a-textarea v-model="tableRowRecord.remark" rows="3" readOnly/> |
| | | <a-textarea v-model="model.remark" rows="3" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <a-col :span="!isDisplayConfirm?16:10"> |
| | | <a-col :span="!isDisplayConfirm?16:10" class="scroll-col"> |
| | | <a-tabs :active-key="activeTabKey" @change="handleTabChange"> |
| | | <a-tab-pane key="1" tab="æ¥ç¹æ£"> |
| | | <j-vxe-table ref="editableDetailTable1" :rowNumber="false" rowSelection bordered |
| | | alwaysEdit :toolbar="false" keep-source :height="300" :loading="detail.loading" |
| | | alwaysEdit :toolbar="false" keep-source :height="500" |
| | | :dataSource="detail.dayInspectionList" :columns="detail.columns" |
| | | @selectRowChange="handleTableSelectRowChange($event,'Day')"> |
| | | <template v-slot:inspectionResult="props"> |
| | |
| | | </template> |
| | | |
| | | <template v-slot:exceptionDescription="props"> |
| | | <a-textarea style="height: 32px" v-model="props.row.exceptionDescription" |
| | | <a-textarea :rows="1" style="resize: none" v-model="props.row.exceptionDescription" |
| | | :placeholder="props.row.inspectionResult&&props.row.inspectionResult!='NORMAL'?'请è¾å
¥å¼å¸¸æè¿°':''" |
| | | :disabled="isDisableOperation||!props.row.inspectionResult||props.row.inspectionResult=='NORMAL'"/> |
| | | </template> |
| | |
| | | |
| | | <a-tab-pane key="2" tab="å¨ç¹æ£" forceRender> |
| | | <j-vxe-table ref="editableDetailTable2" :rowNumber="false" rowSelection bordered |
| | | alwaysEdit :toolbar="false" keep-source :height="300" :loading="detail.loading" |
| | | alwaysEdit :toolbar="false" keep-source :height="500" |
| | | :dataSource="detail.weekInspectionList" :columns="detail.columns" |
| | | @selectRowChange="handleTableSelectRowChange($event,'Week')"> |
| | | <template v-slot:inspectionResult="props"> |
| | |
| | | </template> |
| | | |
| | | <template v-slot:exceptionDescription="props"> |
| | | <a-textarea style="height: 32px" v-model="props.row.exceptionDescription" |
| | | <a-textarea :rows="1" style="resize: none" v-model="props.row.exceptionDescription" |
| | | :placeholder="props.row.inspectionResult&&props.row.inspectionResult!='NORMAL'?'请è¾å
¥å¼å¸¸æè¿°':''" |
| | | :disabled="isDisableOperation||!props.row.inspectionResult||props.row.inspectionResult=='NORMAL'"/> |
| | | </template> |
| | |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <a-col v-if="isDisplayConfirm" :span="6"> |
| | | <a-col v-if="isDisplayConfirm" :span="6" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="维修工确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="confirmDealType" label="å¤çç±»å"> |
| | | <j-dict-select-tag type='radio' v-model='tableRowRecord.confirmDealType' |
| | | <j-dict-select-tag type='radio' v-model='model.confirmDealType' |
| | | dictCode='approved_rejected' |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='WAIT_CONFIRM'"/> |
| | | :disabled="disableSubmit||model.inspectionStatus!=='WAIT_CONFIRM'"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="confirmComment" label="å¤çæè§"> |
| | | <a-textarea placeholder="请è¾å
¥å¤çæè§" |
| | | :disabled="disableSubmit||tableRowRecord.inspectionStatus!=='WAIT_CONFIRM'" |
| | | v-model="tableRowRecord.confirmComment"/> |
| | | <a-form-model-item label="å¤çæè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" |
| | | :disabled="disableSubmit||model.inspectionStatus!=='WAIT_CONFIRM'" |
| | | v-model="model.confirmComment"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | span: 12, |
| | | confirmLoading: false, |
| | | spinning: false, |
| | | tableRowRecord: {}, |
| | | model: {}, |
| | | validatorRules: { |
| | | confirmDealType: [ |
| | | { required: true, message: 'è¯·éæ©å¤çç±»å' } |
| | | ], |
| | | confirmComment: [ |
| | | { required: true, message: '请è¾å
¥å¤çæè§' } |
| | | ] |
| | | }, |
| | | imageSrc: null, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 9 } |
| | | sm: { span: 8 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 30 }, |
| | | sm: { span: 15 } |
| | | sm: { span: 16 } |
| | | }, |
| | | visible: false, |
| | | // 表头 |
| | |
| | | }, |
| | | computed: { |
| | | isDisplayConfirm() { |
| | | return ['WAIT_CONFIRM', 'COMPLETE'].includes(this.tableRowRecord.inspectionStatus) |
| | | return ['WAIT_CONFIRM', 'COMPLETE'].includes(this.model.inspectionStatus) |
| | | }, |
| | | isDisableOperation() { |
| | | return this.disableSubmit || this.tableRowRecord.inspectionStatus !== 'UNDER_INSPECTION' |
| | | return this.disableSubmit || this.model.inspectionStatus !== 'UNDER_INSPECTION' |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * è·åæµç¨èç¹åæµç¨å¾ |
| | | * @param record å¾
åè®°å½ä¿¡æ¯ |
| | | */ |
| | | getAllApproveData(record) { |
| | | if (record.procInstId) { |
| | | const { processDefinitionId, processInstanceId, processDefinitionKey, procInstId } = record |
| | | const param = { procInstId } |
| | | const imageParam = { processDefinitionId, processInstanceId, TaskDefinitionKey: processDefinitionKey } |
| | | const that = this |
| | | handleApprove(record) { |
| | | this.spinning = true |
| | | this.activeTabKey = '1' |
| | | this.detail.dayInspectionList = this.detail.weekInspectionList = [] |
| | | this.getBasicInformationByApi(record) |
| | | this.getFlowChartImageByApi(record) |
| | | }, |
| | | |
| | | downFile(this.url.diagramView, imageParam, 'get') |
| | | .then((res => { |
| | | const urlObject = window.URL.createObjectURL(new Blob([res])) |
| | | that.imageSrc = urlObject |
| | | })) |
| | | .catch(err => { |
| | | that.$notification.error({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | }) |
| | | } |
| | | handleDetail(record) { |
| | | this.spinning = true |
| | | this.activeTabKey = '1' |
| | | this.detail.dayInspectionList = this.detail.weekInspectionList = [] |
| | | this.model = Object.assign({}, record) |
| | | this.getDayInspectionOrderListByApi(record.id) |
| | | this.getWeekInspectionOrderListByApi(record.standardId) |
| | | }, |
| | | |
| | | /** |
| | | * è·åå¾
åè®°å½çåºæ¬ä¿¡æ¯ |
| | | * @param record å¾
åè®°å½ä¿¡æ¯ |
| | | * è·ååºç¡ä¿¡æ¯ |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | async getBasicInformation(record) { |
| | | this.activeTabKey = '1' |
| | | this.detail.dayInspectionList = this.detail.weekInspectionList = [] |
| | | this.spinning = true |
| | | const param = { id: record.dataId } |
| | | let res = await getAction(this.url.queryById, param) |
| | | this.tableRowRecord = Object.assign({}, res.result) |
| | | this.getDayInspectionOrderListByApi(record.dataId) |
| | | console.log('record', record) |
| | | this.getWeekInspectionOrderListByApi(this.tableRowRecord.standardId) |
| | | getBasicInformationByApi(record) { |
| | | const that = this |
| | | getAction(this.url.queryById, { id: record.dataId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.model = Object.assign({}, res.result) |
| | | that.model.dataId = record.dataId |
| | | that.model.taskId = record.id |
| | | that.model.userId = record.assignee |
| | | that.model.instanceId = record.procInstId |
| | | this.getDayInspectionOrderListByApi(record.dataId) |
| | | this.getWeekInspectionOrderListByApi(this.model.standardId) |
| | | } |
| | | else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * è·åæµç¨å¾ |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | getFlowChartImageByApi(record) { |
| | | const { processDefinitionId, processInstanceId, processDefinitionKey } = record |
| | | const imageParam = { processDefinitionId, processInstanceId, TaskDefinitionKey: processDefinitionKey } |
| | | const that = this |
| | | |
| | | downFile(this.url.diagramView, imageParam, 'get') |
| | | .then((res => { |
| | | that.imageSrc = window.URL.createObjectURL(new Blob([res])) |
| | | })) |
| | | .catch(err => { |
| | | that.$notification.error({ |
| | | message: 'æ¶æ¯', |
| | | description: err.message |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | |
| | | getAction(this.url.detailList, { orderId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.dayInspectionList = [...res.result] |
| | | this.detail.dayInspectionList = res.result |
| | | } |
| | | }) |
| | | .finally(() => { |
| | |
| | | * @param standardId è§èid |
| | | */ |
| | | getWeekInspectionOrderListByApi(standardId) { |
| | | console.log('standardId-------------------------', standardId) |
| | | getAction(this.url.weekInspectionOrderList, { standardId, inspectionDate: this.tableRowRecord.inspectionDate }) |
| | | getAction(this.url.weekInspectionOrderList, { standardId, inspectionDate: this.model.inspectionDate }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | this.detail.weekInspectionList = res.result.list |
| | |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * tabæ 忢æ¶è§¦å |
| | | * @param tabKey 忢åçtabKey |
| | | */ |
| | | handleTabChange(tabKey) { |
| | | if (this.activeTabKey == '1') this.$refs.editableDetailTable1.clearValidate() |
| | | this.activeTabKey = tabKey |
| | |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | this.confirmLoading = this.spinning = true |
| | | const flowTaskVo = {} |
| | | flowTaskVo.dataId = this.selectShenpiData.dataId |
| | | flowTaskVo.taskId = this.selectShenpiData.id |
| | | flowTaskVo.userId = this.selectShenpiData.assignee |
| | | flowTaskVo.instanceId = this.selectShenpiData.procInstId |
| | | flowTaskVo.confirmDealType = this.tableRowRecord.confirmDealType |
| | | flowTaskVo.confirmComment = this.tableRowRecord.confirmComment |
| | | flowTaskVo.tableDetailList = this.$refs.editableDetailTable1.getTableData() |
| | | if (!this.detail.weekInspectionFinishedFlag) flowTaskVo.tableWeekDetailList = this.$refs.editableDetailTable2.getTableData() |
| | | this.model.tableDetailList = this.$refs.editableDetailTable1.getTableData() |
| | | if (!this.detail.weekInspectionFinishedFlag) this.model.tableWeekDetailList = this.$refs.editableDetailTable2.getTableData() |
| | | const that = this |
| | | postAction(this.url.approve, flowTaskVo) |
| | | postAction(this.url.approve, this.model) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | |
| | | }, |
| | | |
| | | autoCompleteForm({ standardName, maintenancePeriod, standardCode }) { |
| | | this.$set(this.tableRowRecord, 'standardName', standardName) |
| | | this.$set(this.tableRowRecord, 'maintenancePeriod', maintenancePeriod) |
| | | this.$set(this.tableRowRecord, 'standardCode', standardCode) |
| | | this.$set(this.model, 'standardName', standardName) |
| | | this.$set(this.model, 'maintenancePeriod', maintenancePeriod) |
| | | this.$set(this.model, 'standardCode', standardCode) |
| | | }, |
| | | |
| | | // æ¹ééæ©ææç¹æ£ç»æ |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | <style scoped lang="less"> |
| | | /deep/ .ant-select-dropdown-menu { |
| | | text-align: left; |
| | | } |
| | | |
| | | /deep/ .ant-spin-nested-loading { |
| | | height: 100%; |
| | | |
| | | .ant-spin-container { |
| | | height: 100%; |
| | | |
| | | .ant-form { |
| | | height: 100%; |
| | | |
| | | #outer-row { |
| | | height: 100%; |
| | | |
| | | .scroll-col { |
| | | height: 100%; |
| | | overflow: auto; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref='form' :model='tableRowRecord' :labelCol="labelCol" :wrapperCol="wrapperCol" |
| | | :rules="validatorRules"> |
| | | <a-row :gutter="48"> |
| | | <a-col :span="10"> |
| | | <a-tabs default-active-key="1"> |
| | | <a-row :gutter="24" id="outer-row"> |
| | | <a-col :span="8" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="åºç¡ä¿¡æ¯" key="1"> |
| | | <a-row> |
| | | <a-col :span="span"> |
| | |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <a-tab-pane key="2" tab="ä¿å
»é¡¹æç»" forceRender> |
| | | <a-col :span="10" class="scroll-col"> |
| | | <a-tabs default-active-key="1"> |
| | | <a-tab-pane key="1" tab="ä¿å
»é¡¹æç»"> |
| | | <j-vxe-table ref="editableDetailTable" :rowNumber="false" :bordered="true" |
| | | :alwaysEdit="true" :toolbar="false" keep-source :loading="detail.loading" |
| | | :dataSource="detail.dataSource" :columns="detail.columns"> |
| | |
| | | </template> |
| | | </j-vxe-table> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <a-col :span="8"> |
| | | <a-tabs> |
| | | <template v-if="selectShenpiData.procInstId"> |
| | | <a-tab-pane tab='æµç¨å¾'> |
| | | <a-tab-pane tab='æµç¨å¾' forceRender> |
| | | <img :src="imageSrc" width="100%" v-if="imageSrc"/> |
| | | </a-tab-pane> |
| | | </template> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | | <a-col :span="6" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="维修主任审æ¹"> |
| | | <a-row :gutter="24"> |
| | |
| | | </a-col> |
| | | |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="repairManagerApproveComment" label="å¤çæè§"> |
| | | <a-textarea placeholder="请è¾å
¥å¤çæè§" |
| | | <a-form-model-item label="å¤çæè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" |
| | | :disabled="disableSubmit||tableRowRecord.standardStatus!=='WAIT_REPAIR_DIRECTOR'" |
| | | v-model="tableRowRecord.repairManagerApproveComment"/> |
| | | </a-form-model-item> |
| | |
| | | </a-col> |
| | | |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="technicalManagerApproveComment" label="å¤çæè§"> |
| | | <a-textarea placeholder="请è¾å
¥å¤çæè§" v-model="tableRowRecord.technicalManagerApproveComment"/> |
| | | <a-form-model-item label="å¤çæè§"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="tableRowRecord.technicalManagerApproveComment"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | repairManagerApproveResult: [ |
| | | { required: true, message: 'è¯·éæ©å¤çç±»å' } |
| | | ], |
| | | repairManagerApproveComment: [ |
| | | { required: true, message: '请è¾å
¥å¤çæè§' } |
| | | ], |
| | | technicalManagerApproveResult: [ |
| | | { required: true, message: 'è¯·éæ©å¤çç±»å' } |
| | | ], |
| | | technicalManagerApproveComment: [ |
| | | { required: true, message: '请è¾å
¥å¤çæè§' } |
| | | ] |
| | | }, |
| | | imageSrc: null, |
| | |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | <style scoped lang="less"> |
| | | /deep/ .ant-select-dropdown-menu { |
| | | text-align: left; |
| | | } |
| | | |
| | | /deep/ .ant-spin-nested-loading { |
| | | height: 100%; |
| | | |
| | | .ant-spin-container { |
| | | height: 100%; |
| | | |
| | | .ant-form { |
| | | height: 100%; |
| | | |
| | | #outer-row { |
| | | height: 100%; |
| | | |
| | | .scroll-col { |
| | | height: 100%; |
| | | overflow: auto; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <j-modal :title="title" :width="1200" :visible="visible" :confirmLoading="confirmLoading" |
| | | <j-modal :title="title" :visible="visible" :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" fullscreen @ok="handleOk" |
| | | @cancel="handleCancel" centered cancelText="å
³é"> |
| | | <a-spin :spinning="spinning"> |
| | |
| | | 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 { |
| | |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | TechnicalStatusEquipmentSelect, |
| | | MaintenanceEquipmentSelect |
| | | }, |
| | | props: { |
| | | selectShenpiData: { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal :title="title" :width="1300" :fullscreen="fullScreen" :visible="visible" :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" @ok="handleOk" |
| | | @cancel="handleCancel" cancelText="å
³é"> |
| | | <a-spin :spinning="spinning"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-row id="outer-row" :gutter="24"> |
| | | <!--左侧åºç¡ä¿¡æ¯å--> |
| | | <a-col :span="!disableSubmit?8:14" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="åºç¡ä¿¡æ¯"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åå·"> |
| | | <a-input v-model="model.orderId_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åæ´åå·"> |
| | | <a-input v-model="model.changeOrderNum" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <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-col :span="12"> |
| | | <a-form-model-item label="ç³è¯·äºº"> |
| | | <a-input v-model="model.applicant_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç³è¯·é¨é¨"> |
| | | <a-input v-model="model.factoryOrgCode_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åæ´åå "> |
| | | <a-input v-model="model.applyReason_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | |
| | | |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="åæ´é´å®æ¥æ"> |
| | | <a-input v-model="model.deferredEvaluationDate" 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 v-if="selectShenpiData.procInstId" :span="10" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane key='1' tab='æµç¨å¾'> |
| | | <img :src="imageSrc" alt="Fetched Image" style="width: 100%" v-if="imageSrc"/> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | |
| | | <!--å³ä¾§å®¡æ¹å--> |
| | | <a-col :span="!disableSubmit?6:10" class="scroll-col"> |
| | | <a-tabs v-if="displayEquipmentManagerFlag"> |
| | | <a-tab-pane tab="使ç¨åä½å®¤çº§é¢å¯¼ç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="equipmentManagerSignatureResult" label="确认类å" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.equipmentManagerSignatureResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.changeStatus&&model.changeStatus!='EQUIPMENT_MANAGER_SIGNING')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.equipmentManagerComment" |
| | | :disabled="disableSubmit||(model.changeStatus&&model.changeStatus!='EQUIPMENT_MANAGER_SIGNING')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayDepartManagerFlag"> |
| | | <a-tab-pane tab="é¨é¨é¢å¯¼ç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="departManagerSignatureResult" label="确认类å" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.departManagerSignatureResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.changeStatus&&model.changeStatus!='DEPART_MANAGER_SIGNING')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.departManagerComment" |
| | | :disabled="disableSubmit||(model.changeStatus&&model.changeStatus!='DEPART_MANAGER_SIGNING')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayProductionSupportFlag"> |
| | | <a-tab-pane tab="ç产ä¿éé¨é¢å¯¼ç¡®è®¤"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="productionSupportSignatureResult" label="确认类å" |
| | | :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.productionSupportSignatureResult' |
| | | dictCode='approve_reject' |
| | | :disabled="disableSubmit||(model.changeStatus&&model.changeStatus!='PRODUCTION_SUPPORT_SIGNING')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="确认æè§" :labelCol="rightColLabelCol" :wrapperCol="rightColWrapperCol"> |
| | | <a-textarea placeholder="请è¾å
¥æè§" v-model="model.productionSupportComment" |
| | | :disabled="disableSubmit||(model.changeStatus&&model.changeStatus!='PRODUCTION_SUPPORT_SIGNING')"/> |
| | | </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, postAction } from '@/api/manage' |
| | | import TechnicalStatusEquipmentSelect from '../../../eam/equipment/modules/TechnicalStatusEquipmentSelect' |
| | | |
| | | export default { |
| | | name: 'TechnicalStatusEvaluationOrderChangeApprovalModal', |
| | | components: { |
| | | TechnicalStatusEquipmentSelect |
| | | }, |
| | | 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: 6 } |
| | | }, |
| | | rightColWrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | confirmLoading: false, |
| | | spinning: false, |
| | | imageSrc: null, |
| | | fullScreen: true, |
| | | validatorRules: { |
| | | equipmentManagerSignatureResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | departManagerSignatureResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }], |
| | | productionSupportSignatureResult: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }] |
| | | }, |
| | | url: { |
| | | queryById: '/eam/eamTechnicalStatusEvaluationOrderChange/queryById', |
| | | approval: '/eam/eamTechnicalStatusEvaluationOrderChange/approval', |
| | | diagramView: '/assign/flow/diagramView' |
| | | }, |
| | | disableSubmit: false, |
| | | selectedRowKeys: [] |
| | | } |
| | | }, |
| | | computed: { |
| | | displayEquipmentManagerFlag() { |
| | | return this.model.changeStatus && ['EQUIPMENT_MANAGER_SIGNING', 'DEPART_MANAGER_SIGNING', 'PRODUCTION_SUPPORT_SIGNING', 'COMPLETED'].includes(this.model.changeStatus) |
| | | }, |
| | | displayDepartManagerFlag() { |
| | | return this.model.changeStatus && ['DEPART_MANAGER_SIGNING', 'PRODUCTION_SUPPORT_SIGNING', 'COMPLETED'].includes(this.model.changeStatus) |
| | | }, |
| | | displayProductionSupportFlag() { |
| | | return this.model.changeStatus && ['PRODUCTION_SUPPORT_SIGNING', 'COMPLETED'].includes(this.model.changeStatus) |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * 主页é¢ç¹å»æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | handleApprove(record) { |
| | | this.fullScreen = true |
| | | this.model = {} |
| | | this.getBasicInformationByApi(record) |
| | | this.getFlowChartImageByApi(record) |
| | | }, |
| | | |
| | | /** |
| | | * 主页é¢ç¹å»è¯¦æ
æ¶è§¦å |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | handleDetail(record) { |
| | | this.fullScreen = false |
| | | this.model = Object.assign({}, record) |
| | | }, |
| | | |
| | | /** |
| | | * è·ååºç¡ä¿¡æ¯ |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | getBasicInformationByApi(record) { |
| | | this.spinning = true |
| | | const that = this |
| | | getAction(this.url.queryById, { id: record.dataId }) |
| | | .then(res => { |
| | | if (res.success) { |
| | | that.model = Object.assign({}, res.result) |
| | | that.model.dataId = record.dataId |
| | | that.model.taskId = record.id |
| | | that.model.userId = record.assignee |
| | | that.model.instanceId = record.procInstId |
| | | } |
| | | else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * è·åæµç¨å¾ |
| | | * @param record 主页é¢å表è¡è®°å½ |
| | | */ |
| | | getFlowChartImageByApi(record) { |
| | | const { processDefinitionId, processInstanceId, processDefinitionKey } = record |
| | | this.imageSrc = null |
| | | 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: err.message |
| | | }) |
| | | }) |
| | | }, |
| | | |
| | | async handleOk() { |
| | | const that = this |
| | | |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = that.spinning = true |
| | | |
| | | postAction(this.url.approval, this.model) |
| | | .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, 'equipmentId', selectObj.equipmentId) |
| | | this.spinning = false |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | this.$refs.form.clearValidate() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | /deep/ .ant-spin-nested-loading { |
| | | height: 100%; |
| | | |
| | | .ant-spin-container { |
| | | height: 100%; |
| | | |
| | | .ant-form { |
| | | height: 100%; |
| | | |
| | | #outer-row { |
| | | height: 100%; |
| | | |
| | | .scroll-col { |
| | | height: 100%; |
| | | overflow: auto; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='operator_task'|| |
| | | (model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"> |
| | | <j-vxe-table ref="editableDetailTable1" :rowNumber="false" rowSelection bordered |
| | | alwaysEdit keep-source :height="300" |
| | | alwaysEdit keep-source |
| | | :dataSource="detail.operatorMaintenanceList" :columns="detail.columns" |
| | | @selectRowChange="handleTableSelectRowChange($event,'Operator')"> |
| | | <template v-slot:maintenanceResult="props"> |
| | |
| | | v-if="selectShenpiData.taskDefKey&&selectShenpiData.taskDefKey=='maintenance_task'|| |
| | | (model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"> |
| | | <j-vxe-table ref="editableDetailTable2" :rowNumber="false" rowSelection bordered |
| | | alwaysEdit kee-source :height="300" |
| | | alwaysEdit kee-source |
| | | :dataSource="detail.repairerMaintenanceList" :columns="detail.columns" |
| | | @selectRowChange="handleTableSelectRowChange($event,'Repairer')"> |
| | | <template v-slot:maintenanceResult="props"> |
| | |
| | | <a-col :span="model.maintenanceStatus&&model.maintenanceStatus!='WAIT_MAINTENANCE'?10:16" class="scroll-col"> |
| | | <a-tabs v-model="activeTabKey" @change="$refs.editableDetailTable.clearValidate()"> |
| | | <a-tab-pane key="1" tab="ä¿å
»é¡¹æç»"> |
| | | <j-vxe-table ref="editableDetailTable" rowSelection bordered alwaysEdit keep-source :height="300" |
| | | <j-vxe-table ref="editableDetailTable" rowSelection bordered alwaysEdit keep-source |
| | | :dataSource="detail.dataSource" :columns="detail.columns" |
| | | @selectRowChange="handleTableSelectRowChange"> |
| | | <!--ä¿å
ȍȾ--> |