| | |
| | | |
| | | <!--使ç¨é¨é¨--> |
| | | <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] |
| | |
| | | <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"> |
| | | <!--ä¿å
ȍȾ--> |