¶Ô±ÈÐÂÎļþ |
| | |
| | | <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="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="4" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="å·¥åå·"> |
| | | <a-input placeholder="请è¾å
¥å·¥åå·" v-model="queryParam.orderNum"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="计åä¿å
»æ¥æ"> |
| | | <a-range-picker v-model="queryParam.maintenanceDate" value-format="YYYY-MM-DD" |
| | | @change="handleDateRangeChange"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="5" :lg="6" :md="8" :sm="12"> |
| | | <a-form-item label="ä¿å
»ç¶æ"> |
| | | <j-dict-select-tag placeholder="è¯·éæ©ä¿å
»ç¶æ" v-model="queryParam.maintenanceStatus" |
| | | dict-code="third_maintenance_furnace_status"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <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> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="handleBatchCollect"> |
| | | <a-icon type="form"/> |
| | | é¢å |
| | | </a-menu-item> |
| | | <a-menu-item key="1" @click="handleBatchAbolish"> |
| | | <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" :scroll="{x:'max-content'}" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" @change="handleTableChange"> |
| | | |
| | | <!--è½å¦æ»¡è¶³å 工鿱--> |
| | | <template slot="processingRequirementsFlag" slot-scope="text"> |
| | | <a-switch v-if="text" checked-children="æ¯" un-checked-children="å¦" :checked="Boolean(+text)" disabled/> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <template v-if="record.maintenanceStatus==='WAIT_MAINTENANCE'"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="ç¡®å®é¢åå?" @confirm="() => handleCollect(record.id)"> |
| | | <a>é¢å</a> |
| | | </a-popconfirm> |
| | | |
| | | <a-divider type="vertical"/> |
| | | |
| | | <a-popconfirm title="ç¡®å®ä½åºå?" @confirm="() => handleAbolish(record.id)"> |
| | | <a>ä½åº</a> |
| | | </a-popconfirm> |
| | | </template> |
| | | |
| | | <a v-else @click="handleDetail(record)">详æ
</a> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | |
| | | <!-- 表ååºå --> |
| | | <eamThirdMaintenanceFurnace-modal ref="modalForm" @ok="modalFormOk"/> |
| | | |
| | | <!--审æ¹çªå£--> |
| | | <third-maintenance-furnace-approval-modal ref="thirdMaintenanceFurnaceApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import EamThirdMaintenanceFurnaceModal from './modules/EamThirdMaintenanceFurnaceModal' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import LxSearchEquipmentSelect from '../equipment/modules/LxSearchEquipmentSelect' |
| | | import { getAction, deleteAction } from '@/api/manage' |
| | | import ThirdMaintenanceFurnaceApprovalModal |
| | | from '../../flowable/workflow/thirdMaintenance/ThirdMaintenanceFurnaceApprovalModal' |
| | | |
| | | export default { |
| | | name: 'EamThirdMaintenanceFurnaceList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | ThirdMaintenanceFurnaceApprovalModal, |
| | | LxSearchEquipmentSelect, |
| | | EamThirdMaintenanceFurnaceModal |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'ç空çå¤ççä¸ä¿ç®¡ç页é¢', |
| | | selectedRowData: {}, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | 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: 'maintenanceStatus_dictText', |
| | | fixed: 'left' |
| | | }, |
| | | { |
| | | title: 'å·¥åå·', |
| | | align: 'center', |
| | | dataIndex: 'orderNum' |
| | | }, |
| | | { |
| | | title: '计åä¿å
»æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'maintenanceDate' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»äºº', |
| | | align: 'center', |
| | | dataIndex: 'operator_dictText' |
| | | }, |
| | | { |
| | | title: 'ä¿å
»æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'operateTime' |
| | | }, |
| | | { |
| | | title: 'å缩空æ°åå(MPa)', |
| | | align: 'center', |
| | | dataIndex: 'compressedAirPressureValue' |
| | | }, |
| | | { |
| | | title: 'æéç空(Pa)', |
| | | align: 'center', |
| | | dataIndex: 'ultimateVacuumValue' |
| | | }, |
| | | { |
| | | title: 'æ³æ¼ç(Pa/h)', |
| | | align: 'center', |
| | | dataIndex: 'leakRate' |
| | | }, |
| | | { |
| | | title: 'ååå¤ç', |
| | | align: 'center', |
| | | dataIndex: 'purificationTreatment' |
| | | }, |
| | | { |
| | | title: 'çæ¸©ååæ§æ£æµ', |
| | | align: 'center', |
| | | dataIndex: 'furnaceTemperatureUniformityTesting' |
| | | }, |
| | | { |
| | | title: 'å çåçæµè¯', |
| | | align: 'center', |
| | | dataIndex: 'heatingPowerTest' |
| | | }, |
| | | { |
| | | title: 'è½å¦æ»¡è¶³å 工鿱', |
| | | align: 'center', |
| | | dataIndex: 'processingRequirementsFlag', |
| | | scopedSlots: { customRender: 'processingRequirementsFlag' } |
| | | }, |
| | | { |
| | | title: '确认人', |
| | | align: 'center', |
| | | dataIndex: 'confirmUser_dictText' |
| | | }, |
| | | { |
| | | title: 'ç¡®è®¤æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'confirmTime' |
| | | }, |
| | | { |
| | | title: 'HFç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'hfCode' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | scopedSlots: { customRender: 'action' }, |
| | | fixed: 'right', |
| | | width: 200 |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/eam/eamThirdMaintenanceFurnace/list', |
| | | collect: '/eam/eamThirdMaintenanceFurnace/collect', |
| | | collectBatch: '/eam/eamThirdMaintenanceFurnace/collectBatch', |
| | | abolish: '/eam/eamThirdMaintenanceFurnace/abolish', |
| | | abolishBatch: '/eam/eamThirdMaintenanceFurnace/abolishBatch' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | /** |
| | | * ä¿å
»æ¥æåçæ¹åæ¶è§¦å |
| | | * @param dateStringArray |
| | | */ |
| | | handleDateRangeChange(dateStringArray) { |
| | | this.queryParam.maintenanceDateBegin = dateStringArray[0] |
| | | this.queryParam.maintenanceDateEnd = dateStringArray[1] |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»é¢åæ¶è§¦å |
| | | * @param id è¡è®°å½id |
| | | */ |
| | | handleCollect(id) { |
| | | let that = this |
| | | this.loading = true |
| | | getAction(that.url.collect, { 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 |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // æ¹éé¢å |
| | | handleBatchCollect() { |
| | | 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.collectBatch, { ids }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | //éæ°è®¡ç®å页é®é¢ |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | that.onClearSelected() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loading = false |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»ä½åºæ¶è§¦å |
| | | * @param id è¡è®°å½id |
| | | */ |
| | | handleAbolish(id) { |
| | | var that = this |
| | | this.loading = true |
| | | getAction(that.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 |
| | | }) |
| | | this.loading = false |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // æ¹éä½åº |
| | | handleBatchAbolish() { |
| | | 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.abolishBatch, { ids }) |
| | | .then((res) => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loadData() |
| | | that.onClearSelected() |
| | | } else { |
| | | that.$notification.warning({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | that.loading = false |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»è¯¦æ
æ¶è§¦åæ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleDetail(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.title = '详æ
' |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.handleDetail(record) |
| | | } |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal :title="title" :width="800" :visible="visible" :confirmLoading="confirmLoading" switchFullscreen |
| | | @ok="handleOk" @cancel="handleCancel" cancelText="å
³é"> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-form-model-item label="å·¥åå·"> |
| | | <a-input placeholder="å·¥åå·èªå¨çæ" v-model="model.orderNum" disabled/> |
| | | </a-form-model-item> |
| | | <a-form-model-item prop="equipmentId" label="ç»ä¸ç¼ç "> |
| | | <lx-search-equipment-select placeholder="请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢" v-model="model.equipmentId" :allowClear="false" |
| | | :disabled="!editable"/> |
| | | </a-form-model-item> |
| | | <a-form-model-item prop="maintenanceDate" label="计åä¿å
»æ¥æ"> |
| | | <a-date-picker v-model="model.maintenanceDate" value-format="YYYY-MM-DD" :allowClear="false" |
| | | style="width: 100%"/> |
| | | </a-form-model-item> |
| | | <a-form-model-item label="夿³¨"> |
| | | <a-textarea placeholder="请è¾å
¥å¤æ³¨" v-model="model.remark"/> |
| | | </a-form-model-item> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { httpAction } from '@/api/manage' |
| | | import LxSearchEquipmentSelect from '../../equipment/modules/LxSearchEquipmentSelect' |
| | | |
| | | export default { |
| | | name: 'EamThirdMaintenanceFurnaceModal', |
| | | components: { LxSearchEquipmentSelect }, |
| | | data() { |
| | | return { |
| | | title: 'æä½', |
| | | visible: false, |
| | | editable: true, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | equipmentId: [{ required: true, message: '请è¾å
¥ç»ä¸ç¼ç æåç§°æç´¢', trigger: 'change' }], |
| | | maintenanceDate: [{ required: true, message: 'è¯·éæ©ä¿å
»æ¥æ', trigger: 'change' }] |
| | | }, |
| | | url: { |
| | | add: '/eam/eamThirdMaintenanceFurnace/add', |
| | | edit: '/eam/eamThirdMaintenanceFurnace/edit' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this.model = {} |
| | | this.visible = true |
| | | this.editable = true |
| | | }, |
| | | |
| | | edit(record) { |
| | | this.model = Object.assign({}, record) |
| | | this.visible = true |
| | | this.editable = false |
| | | }, |
| | | |
| | | handleOk() { |
| | | 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, that.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 |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | close() { |
| | | this.$emit('close') |
| | | this.visible = false |
| | | if (this.$refs.form) this.$refs.form.clearValidate() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <!--ä¸ä¿åæ´--> |
| | | <third-maintenance-order-change-approval-modal ref="thirdMaintenanceOrderChangeApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | |
| | | <!--ç空çå¤ççä¸ä¿--> |
| | | <third-maintenance-furnace-approval-modal ref="thirdMaintenanceFurnaceApprovalModal" |
| | | :selectShenpiData="selectedRowData"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import RepairOrderApprovalModal from './repairOrder/RepairOrderApprovalModal' |
| | | import MaintenanceStandardApprovalModal from './MaintenanceStandard/MaintenanceStandardApprovalModal' |
| | | import ThirdMaintenanceOrderChangeApprovalModal from './thirdMaintenance/ThirdMaintenanceOrderChangeApprovalModal' |
| | | import ThirdMaintenanceFurnaceApprovalModal from './thirdMaintenance/ThirdMaintenanceFurnaceApprovalModal' |
| | | |
| | | export default { |
| | | name: 'FlowCompleted', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | ThirdMaintenanceFurnaceApprovalModal, |
| | | ThirdMaintenanceOrderChangeApprovalModal, |
| | | MaintenanceStandardApprovalModal, |
| | | RepairOrderApprovalModal, |
| | |
| | | break |
| | | case 'third_maintenance_change': |
| | | this.handleThirdMaintenanceOrderChange(record) |
| | | break |
| | | case 'third_maintenance_furnace_process': |
| | | this.handleThirdMaintenanceFurnace(record) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥æµç¨') |
| | |
| | | this.$refs.thirdMaintenanceOrderChangeApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»ç空çå¤ççä¸ä¿å·¥åæµç¨æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleThirdMaintenanceFurnace(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.title = record.name |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.disableSubmit = true |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | splitProcessType(title) { |
| | | let parts = title.split('ï¼') // 注æåå·æ¯å
¨è§å符ï¼ä½¿ç¨å¯¹åºçåè¿è¡åå² |
| | | let result = parts[0] |
| | |
| | | <third-maintenance-order-change-approval-modal ref="thirdMaintenanceOrderChangeApprovalModal" |
| | | :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | |
| | | <!--ç空çå¤ççä¸ä¿--> |
| | | <third-maintenance-furnace-approval-modal ref="thirdMaintenanceFurnaceApprovalModal" |
| | | :selectShenpiData="selectedRowData" |
| | | @modalFormOk="modalFormOk"/> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | from './TechnicalStatusEvaluation/TechnicalStatusEvaluationApplicationApprovalModal' |
| | | import TechnicalStatusDeactivateApprovalModal from './TechnicalStatus/TechnicalStatusDeactivateApprovalModal' |
| | | import ThirdMaintenanceOrderChangeApprovalModal from './thirdMaintenance/ThirdMaintenanceOrderChangeApprovalModal' |
| | | import ThirdMaintenanceFurnaceApprovalModal from './thirdMaintenance/ThirdMaintenanceFurnaceApprovalModal' |
| | | |
| | | export default { |
| | | name: 'FlowTodo', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | ThirdMaintenanceFurnaceApprovalModal, |
| | | ThirdMaintenanceOrderChangeApprovalModal, |
| | | TechnicalStatusDeactivateApprovalModal, |
| | | TechnicalStatusEvaluationApplicationApprovalModal, |
| | |
| | | case 'third_maintenance_change': |
| | | this.handleThirdMaintenanceOrderChange(record) |
| | | break |
| | | case 'third_maintenance_furnace_process': |
| | | this.handleThirdMaintenanceFurnace(record) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥æµç¨') |
| | | } |
| | |
| | | this.$refs.thirdMaintenanceOrderChangeApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | /** |
| | | * ç¹å»ç空çå¤ççä¸ä¿å·¥åæµç¨æ§è¡å®¡æ¹æ¶è§¦å |
| | | * @param record |
| | | */ |
| | | handleThirdMaintenanceFurnace(record) { |
| | | this.selectedRowData = Object.assign({}, record) |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.visible = true |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.title = record.name |
| | | this.$refs.thirdMaintenanceFurnaceApprovalModal.handleApprove(record) |
| | | }, |
| | | |
| | | batchHandle() { |
| | | const categorySet = new Set(this.selectionRows.map(item => item.category)) |
| | | const nameSet = new Set(this.selectionRows.map(item => item.name)) |
| | |
| | | <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-col :span="selectShenpiData.procInstId?8:14" class="scroll-col"> |
| | | <a-tabs> |
| | | <a-tab-pane tab="åºç¡ä¿¡æ¯"> |
| | | <a-row> |
| | |
| | | </a-col> |
| | | |
| | | <!--å³ä¾§å®¡æ¹å--> |
| | | <a-col :span="!disableSubmit?6:10" class="scroll-col"> |
| | | <a-col :span="selectShenpiData.procInstId?6:10" class="scroll-col"> |
| | | <a-tabs v-if="displayEquipmentManagerFlag"> |
| | | <a-tab-pane tab="使ç¨åä½å®¤çº§é¢å¯¼ç¡®è®¤"> |
| | | <a-row> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal :title="title" :width="1300" :fullscreen="fullScreen" :visible="visible" :confirmLoading="confirmLoading" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" @ok="handleOk" centered |
| | | @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="selectShenpiData.procInstId?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.orderNum" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç»ä¸ç¼ç "> |
| | | <lx-search-equipment-select v-model="model.equipmentId" disabled/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="计åä¿å
»æ¥æ"> |
| | | <a-input v-model="model.maintenanceDate" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ä¿å
»äºº"> |
| | | <a-input v-model="model.operator_dictText" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item :labelCol="labelColLong" :wrapperCol="wrapperColLong" label="夿³¨"> |
| | | <a-textarea v-model="model.remark" readOnly/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </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="selectShenpiData.procInstId?6:10" class="scroll-col"> |
| | | <a-tabs v-if="displayRepairConfirmFlag"> |
| | | <a-tab-pane tab="维修工确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="compressedAirPressureValue" label="å缩空æ°åå(MPa)" |
| | | :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-input v-model='model.compressedAirPressureValue' placeholder="请è¾å
¥å缩空æ°åå(MPa)" |
| | | :disabled="disableSubmit||(model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="ultimateVacuumValue" label="æéç空(Pa)" |
| | | :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-input v-model='model.ultimateVacuumValue' placeholder="请è¾å
¥æéç空(Pa)" |
| | | :disabled="disableSubmit||(model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="leakRate" label="æ³æ¼ç(Pa/h)" |
| | | :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-input v-model='model.leakRate' placeholder="请è¾å
¥æ³æ¼ç(Pa/h)" |
| | | :disabled="disableSubmit||(model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="purificationTreatment" label="ååå¤ç" |
| | | :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-input v-model='model.purificationTreatment' placeholder="请è¾å
¥ååå¤ç" |
| | | :disabled="disableSubmit||(model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="furnaceTemperatureUniformityTesting" label="çæ¸©ååæ§æ£æµ" |
| | | :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-input v-model='model.furnaceTemperatureUniformityTesting' placeholder="请è¾å
¥ç温ååæ§æ£æµ" |
| | | :disabled="disableSubmit||(model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="heatingPowerTest" label="å çåçæµè¯" |
| | | :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <a-input v-model='model.heatingPowerTest' placeholder="请è¾å
¥å çåçæµè¯" |
| | | :disabled="disableSubmit||(model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="processingRequirementsFlag" label="è½å¦æ»¡è¶³å 工鿱" |
| | | :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type="radio" dict-code="yn" v-model='model.processingRequirementsFlag' |
| | | :disabled="disableSubmit||(model.maintenanceStatus&&model.maintenanceStatus!='UNDER_MAINTENANCE')"/> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | |
| | | <a-tabs v-if="displayRepairLeaderConfirmFlag"> |
| | | <a-tab-pane tab="维修室主任确认"> |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item prop="confirmDealType" label="确认类å" :labelCol="rightColLabelCol" |
| | | :wrapperCol="rightColWrapperCol"> |
| | | <j-dict-select-tag type='radio' v-model='model.confirmDealType' dictCode='approved_rejected' |
| | | disabled/> |
| | | </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, putAction } from '@/api/manage' |
| | | import LxSearchEquipmentSelect from '../../../eam/equipment/modules/LxSearchEquipmentSelect' |
| | | |
| | | export default { |
| | | name: 'ThirdMaintenanceFurnaceApprovalModal', |
| | | components: { |
| | | LxSearchEquipmentSelect |
| | | }, |
| | | 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: 10 } |
| | | }, |
| | | rightColWrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 12 } |
| | | }, |
| | | confirmLoading: false, |
| | | spinning: false, |
| | | imageSrc: null, |
| | | fullScreen: true, |
| | | validatorRules: { |
| | | compressedAirPressureValue: [{ required: true, message: '请è¾å
¥å缩空æ°åå(MPa)', trigger: 'change' }], |
| | | ultimateVacuumValue: [{ required: true, message: '请è¾å
¥æéç空(Pa)', trigger: 'change' }], |
| | | leakRate: [{ required: true, message: '请è¾å
¥æ³æ¼ç(Pa/h)', trigger: 'change' }], |
| | | purificationTreatment: [{ required: true, message: '请è¾å
¥ååå¤ç', trigger: 'change' }], |
| | | furnaceTemperatureUniformityTesting: [{ required: true, message: '请è¾å
¥ç温ååæ§æ£æµ', trigger: 'change' }], |
| | | heatingPowerTest: [{ required: true, message: '请è¾å
¥å çåçæµè¯', trigger: 'change' }], |
| | | processingRequirementsFlag: [{ required: true, message: 'è¯·éæ©è½å¦æ»¡è¶³å 工鿱' }], |
| | | confirmDealType: [{ required: true, message: 'è¯·éæ©ç¡®è®¤ç±»å' }] |
| | | }, |
| | | url: { |
| | | queryById: '/eam/eamThirdMaintenanceFurnace/queryById', |
| | | approval: '/eam/eamThirdMaintenanceFurnace/approval', |
| | | diagramView: '/assign/flow/diagramView' |
| | | }, |
| | | disableSubmit: false, |
| | | selectedRowKeys: [] |
| | | } |
| | | }, |
| | | computed: { |
| | | displayRepairConfirmFlag() { |
| | | return this.model.maintenanceStatus && ['UNDER_MAINTENANCE', 'WAIT_CONFIRM', 'COMPLETE'].includes(this.model.maintenanceStatus) |
| | | }, |
| | | displayRepairLeaderConfirmFlag() { |
| | | return this.model.maintenanceStatus && ['WAIT_CONFIRM', 'COMPLETE'].includes(this.model.maintenanceStatus) |
| | | } |
| | | }, |
| | | 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({ confirmDealType: '1' }, 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 |
| | | }) |
| | | } |
| | | }) |
| | | .finally(() => { |
| | | that.spinning = false |
| | | }) |
| | | }, |
| | | |
| | | /** |
| | | * è·åæµç¨å¾ |
| | | * @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 |
| | | |
| | | putAction(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 |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | 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> |