修改确认表与刀具清单展示
新增程序确认表前端流程展示
| | |
| | | |
| | | <a-divider type="vertical" /> |
| | | |
| | | <a @click="handleDetail(record)">åèµ·æµç¨</a> |
| | | <a v-if="record.flowStatus === '1'" @click="handleStartFlow(record)">åèµ·æµç¨</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-divider v-if="record.flowStatus === '1'" type="vertical" /> |
| | | |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | |
| | |
| | | deleteBatch: "/dnc/guideCardBatch/deleteBatch", |
| | | exportXlsUrl: "/dnc/guideCardBatch/exportXls", |
| | | importExcelUrl: "dnc/guideCardBatch/importExcel", |
| | | startGuideCardBatch: "/dnc/guideCardBatch/startGuideCardBatch" |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | |
| | | handleOpenPrintKnifeListModal(record){ |
| | | this.$refs.knifeListPrintModal.visible = true |
| | | this.$refs.knifeListPrintModal.detail = Object.assign({},record) |
| | | this.$refs.knifeListPrintModal.handleCutter(record.docId) |
| | | }, |
| | | |
| | | handleStartFlow(record){ |
| | | const that = this |
| | | that.$confirm({ |
| | | this: 'æç¤º', |
| | | content: `确认å起确认æµç¨åï¼`, |
| | | okText: '确认', |
| | | cancelText: 'åæ¶', |
| | | onOk: () => { |
| | | getAction(this.url.startGuideCardBatch,{id:record.id}).then(res => { |
| | | if (res.success) { |
| | | that.$notification.success({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } else { |
| | | that.$notification.error({ |
| | | message: 'æ¶æ¯', |
| | | description: res.message |
| | | }) |
| | | } |
| | | }) |
| | | .catch(err => { |
| | | that.$notification.error({ |
| | | message: 'æ¶æ¯', |
| | | description: err.message |
| | | }) |
| | | }) |
| | | .finally(() => { |
| | | that.$destroyAll() |
| | | }) |
| | | }, |
| | | onCancel: () => { |
| | | that.$destroyAll() |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | |
| | | <div class="table-header"> |
| | | <h3>æ°æ§å å·¥ç¨åºç¡®è®¤è¡¨</h3> |
| | | <div> |
| | | <div>åä½ï¼<span>æºå ä¸å¿</span></div> |
| | | <div>ç¼å·ï¼<span>25-C140-PST-293</span></div> |
| | | <div>åä½ï¼<span>{{detail.unit}}</span></div> |
| | | <div>ç¼å·ï¼<span>{{detail.serialNumber}}</span></div> |
| | | </div> |
| | | </div> |
| | | |
| | | <table border="1"> |
| | | <tr> |
| | | <th colspan="2">ç¨åºæä»¶å</th> |
| | | <td colspan="9">TY9F-11-2507-002-TY9F1W0130-30-3</td> |
| | | <td colspan="9">{{detail.docName}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">é¶ä»¶å¾å·</th> |
| | | <td colspan="4">TY9F-11-2507-002-TY9F1W0130</td> |
| | | <td colspan="4">{{detail.partsCode}}</td> |
| | | <th>é¶ä»¶åç§°</th> |
| | | <td colspan="4">转æ¥å¤´</td> |
| | | <td colspan="4">{{detail.partsName}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">é¶ä»¶ææ</th> |
| | | <td colspan="4">颿£</td> |
| | | <td colspan="4">{{detail.materielDesp}}</td> |
| | | <th>夹å
·</th> |
| | | <td colspan="4">{{detail.fixtureInformation}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">å·¥åºï¼å·¥æ¥å·ï¼</th> |
| | | <td colspan="2">30-3</td> |
| | | <td colspan="2">{{detail.processWorkCode}}</td> |
| | | <th>å å·¥æ¹æ¬¡</th> |
| | | <td>S2501</td> |
| | | <td>{{detail.processingBatch}}</td> |
| | | <th>å å·¥æ°é</th> |
| | | <td colspan="2">20</td> |
| | | <td colspan="2">{{detail.processingQuantity}}</td> |
| | | <th>å 工设å¤</th> |
| | | <td>3140123</td> |
| | | <td>{{detail.processingEquipment}}</td> |
| | | </tr> |
| | | |
| | | <tr style="height: 500px"> |
| | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">ç¼åæ¥æ</th> |
| | | <td colspan="2">å¼ ä¸/2025-4-16</td> |
| | | <th>å å·¥æ¹æ¬¡</th> |
| | | <td colspan="2">æå/2025-4-18</td> |
| | | <th colspan="2">ç¼å/æ¥æ</th> |
| | | <td colspan="2">{{detail.compiler_dictText}}/{{detail.compilerTime}}</td> |
| | | <th>æ ¡å¯¹/æ¥æ</th> |
| | | <td colspan="2">{{detail.proofreader_dictText}}/{{detail.proofreaderTime}}</td> |
| | | <th colspan="2">æä½è
/馿£æ¥æ</th> |
| | | <td colspan="2">èµµäº/2025-4-18</td> |
| | | <td colspan="2">{{detail.operator_dictText}}/{{detail.inspectionTime}}</td> |
| | | </tr> |
| | | |
| | | <tr style="height: 70px"> |
| | | <th colspan="7">æ ¹æ®é¦ä»¶æ£éªæ
åµï¼åæè¯¥ç¨åºç¨äºæ¬æ¹æ¬¡ç产ï¼</th> |
| | | <th colspan="7">{{detail.inspectionOpinion}}</th> |
| | | <th colspan="2">审æ¹/æ¥æ</th> |
| | | <td colspan="2">çå
/2025-4-20</td> |
| | | <td colspan="2">{{detail.approver_dictText}}/{{detail.approverTime}}</td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | |
| | | <div class="table-header"> |
| | | <h3>åå
·æ¸
å</h3> |
| | | <div> |
| | | <div>åä½ï¼<span>æºå ä¸å¿</span></div> |
| | | <div>ç¼å·ï¼<span>25-C140-PST-293</span></div> |
| | | <div>åä½ï¼<span>{{detail.unit}}</span></div> |
| | | <div>ç¼å·ï¼<span>{{detail.serialNumber}}</span></div> |
| | | </div> |
| | | </div> |
| | | |
| | | <table border="1"> |
| | | <tr> |
| | | <th colspan="2">ç¨åºå¤é¨æä»¶å</th> |
| | | <td colspan="9">TY9F-11-2507-002-TY9F1W0130-30-3</td> |
| | | <td colspan="9">{{detail.docName}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">é¶ä»¶å¾å·</th> |
| | | <td colspan="5">TY9F-11-2507-002-TY9F1W0130</td> |
| | | <td colspan="5">{{detail.partsCode}}</td> |
| | | <th>é¶ä»¶åç§°</th> |
| | | <td colspan="3">转æ¥å¤´</td> |
| | | <td colspan="3">{{detail.partsName}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">é¶ä»¶ææ</th> |
| | | <td colspan="3">颿£</td> |
| | | <td colspan="3">{{detail.materielDesp}}</td> |
| | | <th colspan="2">夹å
·</th> |
| | | <td colspan="4">{{detail.fixtureInformation}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">å·¥åºï¼å·¥æ¥å·ï¼</th> |
| | | <td>30-3</td> |
| | | <td>{{detail.processWorkCode}}</td> |
| | | <th colspan="2">å å·¥æ¹æ¬¡</th> |
| | | <td colspan="2">S2501</td> |
| | | <td colspan="2">{{detail.processingBatch}}</td> |
| | | <th>å å·¥æ°é</th> |
| | | <td>20</td> |
| | | <td>{{detail.processingQuantity}}</td> |
| | | <th>å 工设å¤</th> |
| | | <td>3140123</td> |
| | | <td>{{detail.processingEquipment}}</td> |
| | | </tr> |
| | | |
| | | <tr> |
| | | <th colspan="2">åä½å·</th> |
| | | <th>åå
·æè¿°</th> |
| | | <th colspan="2">æçå·¥ä½é¿åº¦</th> |
| | | <th colspan="2">åå
·ç¼å·</th> |
| | | <th>è§æ ¼</th> |
| | | <th>åºä½</th> |
| | | <th colspan="2">夿³¨</th> |
| | | <th>åå
·åç§°</th> |
| | | <th colspan="2">åå
·ç®ç§°</th> |
| | | <th colspan="2">åå
·è§æ ¼</th> |
| | | <th>åä½</th> |
| | | <th>åå
·æ°é</th> |
| | | <th colspan="2">æè¿°</th> |
| | | </tr> |
| | | |
| | | <tr v-for="item in knifeList" :key="item.knifeId"> |
| | | <td colspan="2">{{item.knifeNo}}</td> |
| | | <td>{{item.knifeDescription}}</td> |
| | | <td colspan="2">{{item.minWorkLength}}</td> |
| | | <td colspan="2">{{item.knifeId}}</td> |
| | | <td>{{item.spec}}</td> |
| | | <td>{{item.position}}</td> |
| | | <td colspan="2">{{item.remark}}</td> |
| | | <td colspan="2">{{item.cutterCode}}</td> |
| | | <td>{{item.cutterName}}</td> |
| | | <td colspan="2">{{item.cutterType}}</td> |
| | | <td colspan="2">{{item.cutterSpec}}</td> |
| | | <td>{{item.cutterSpacing}}</td> |
| | | <td>{{item.quantity}}</td> |
| | | <td colspan="2">{{item.description}}</td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'KnifeListPrintModal', |
| | | data() { |
| | | return { |
| | | visible: false, |
| | | detail: {}, |
| | | knifeList: [ |
| | | { |
| | | knifeNo: '1', |
| | | knifeDescription: '8E', |
| | | minWorkLength: '35', |
| | | knifeId: 'Q20110211', |
| | | spec: '', |
| | | position: '05070201', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '2', |
| | | knifeDescription: '6E', |
| | | minWorkLength: '35', |
| | | knifeId: 'Q20110212', |
| | | spec: '', |
| | | position: '05070202', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '5', |
| | | knifeDescription: '6R', |
| | | minWorkLength: '20', |
| | | knifeId: 'Q20110213', |
| | | spec: '', |
| | | position: '05070203', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '1', |
| | | knifeDescription: '8E', |
| | | minWorkLength: '35', |
| | | knifeId: 'Q20110214', |
| | | spec: '', |
| | | position: '05070201', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '2', |
| | | knifeDescription: '6E', |
| | | minWorkLength: '35', |
| | | knifeId: 'Q20110215', |
| | | spec: '', |
| | | position: '05070202', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '5', |
| | | knifeDescription: '6R', |
| | | minWorkLength: '20', |
| | | knifeId: 'Q20110216', |
| | | spec: '', |
| | | position: '05070203', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '1', |
| | | knifeDescription: '8E', |
| | | minWorkLength: '35', |
| | | knifeId: 'Q20110217', |
| | | spec: '', |
| | | position: '05070201', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '2', |
| | | knifeDescription: '6E', |
| | | minWorkLength: '35', |
| | | knifeId: 'Q20110218', |
| | | spec: '', |
| | | position: '05070202', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '5', |
| | | knifeDescription: '6R', |
| | | minWorkLength: '20', |
| | | knifeId: 'Q20110219', |
| | | spec: '', |
| | | position: '05070203', |
| | | remark: '' |
| | | }, |
| | | { |
| | | knifeNo: '1', |
| | | knifeDescription: '8E', |
| | | minWorkLength: '35', |
| | | knifeId: 'Q20110220', |
| | | spec: '', |
| | | position: '05070201', |
| | | remark: '' |
| | | knifeList: [], |
| | | url:{ |
| | | getByBusinessId: '/nc/cutter/getList' |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | methods: { |
| | | getImageUrl(imgSrcSuffix) { |
| | | return `${window._CONFIG['domianURL']}/${imgSrcSuffix}` |
| | | }, |
| | | |
| | | handleCancel() { |
| | | this.visible = false |
| | | }, |
| | | handleCutter(docId){ |
| | | getAction(this.url.getByBusinessId,{docId:docId}).then((res)=>{ |
| | | if(res.success){ |
| | | this.knifeList = res.result |
| | | this.visible = true |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | :selectSparePartApplyData='selectSparePartApplyData' |
| | | @searchReset='searchReset' |
| | | ></spare-part-apply-handle> |
| | | <guide-card-batch-handle |
| | | ref='guideCardBatchHandle' |
| | | :selectShenpiData='selectGuideCardData' |
| | | @searchReset='searchReset' |
| | | ></guide-card-batch-handle> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import AssignFileStreamHandle from '@views/flowable/workflow/assignFileStream/AssignFileStreamHandle.vue' |
| | | import DispatchFileHandle from '@views/flowable/workflow/dispatchFile/DispatchFileHandle.vue' |
| | | import DispatchFileBachHandleStyle from '@views/flowable/workflow/dispatchFile/DispatchFileBachHandleStyle#Drawer.vue' |
| | | import GuideCardBatchHandle from '@views/flowable/workflow/guideCardBatch/GuideCardBatchHandle.vue' |
| | | import OutBoundOrderHandle from '@views/flowable/workflow/outBoundOrder/OutBoundOrderHandle.vue' |
| | | import EquipmentLeanOutApprovalModal from '@views/flowable/workflow/leanOut/EquipmentLeanOutApprovalModal.vue' |
| | | import SecondMaintenanceApprovalModal |
| | |
| | | EquipmentTransferApprovalModal, |
| | | EquipmentScrapApprovalModal, |
| | | SparePartApplyHandle, |
| | | StandardizedProcessHandle |
| | | StandardizedProcessHandle, |
| | | GuideCardBatchHandle |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | selectStocktakingBoundOrderData: {}, |
| | | selectInboundOrderData: {}, |
| | | selectSparePartApplyData: {}, |
| | | selectGuideCardData:{}, |
| | | //ä¸å¡ä¿¡æ¯ID |
| | | dataId: undefined |
| | | } |
| | |
| | | break |
| | | case 'spare_part_apply': |
| | | this.handleSparePartApplyApproval(item) |
| | | break |
| | | case 'programConfirmApproval': |
| | | this.handleGuideCardApproval(item) |
| | | break |
| | | default: |
| | | alert('没æ¾å°è¯¥æµç¨') |
| | |
| | | this.$refs.sparePartApplyModal.getAllApproveData(item) |
| | | } |
| | | }, |
| | | handleGuideCardApproval(item) { |
| | | console.log('item----->', item) |
| | | this.selectGuideCardData = item |
| | | this.$refs.guideCardBatchHandle.clearTableSource() |
| | | this.$refs.guideCardBatchHandle.getAllApproveData(item) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | Description: 工使µ-ç¨åºå 工确认表æµç¨å¤çé¡µé¢ List |
| | | Author: ä½è
liuyh |
| | | Date: 2025-02-27 |
| | | --> |
| | | <template> |
| | | <a-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | :footer="null" |
| | | @cancel="handCancel" |
| | | > |
| | | <a-card :bordered="false"> |
| | | <div> |
| | | <b>{{ selectShenpiData.description }}</b> |
| | | <br> |
| | | <br> |
| | | <a-tag color="blue"> |
| | | å½åå¤ç人 {{ selectShenpiData.assignee_dictText }} |
| | | </a-tag> |
| | | <a-tag color="blue"> |
| | | ä»»å¡å建æ¶é´ {{ selectShenpiData.createTime }} |
| | | </a-tag> |
| | | <br> |
| | | <br> |
| | | <button @click="fetchAndShowBmp" class="btn-custom">æå¼æµç¨å¾</button> |
| | | <div v-if="imageSrc"> |
| | | <img :src="imageSrc" alt="Fetched Image" /> |
| | | </div> |
| | | <hr class="shallow-hr"> |
| | | </div> |
| | | <div> |
| | | <b>审ç¾è¯¦æ
</b> |
| | | <br> |
| | | <a-form :form='form'> |
| | | <a-spin :spinning="spinning"> |
| | | <a-tabs default-active-key='1' @change='callback'> |
| | | <a-tab-pane key='1' tab='åºæ¬ä¿¡æ¯'> |
| | | <a-form-model ref='form' :model='tableRowRecord' :rules='validatorRules'> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="æµæ°´å·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="serialNumber"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.serialNumber" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="ç¨åºæä»¶å" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="docName"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.docName" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="é¶ä»¶å¾å·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partsCode"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.partsCode" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="é¶ä»¶åç§°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="partsName"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.partsName" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="é¶ä»¶ææ" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materielDesp"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.materielDesp"></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="夹å
·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fixtureInformation"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.fixtureInformation" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="å·¥åºï¼å·¥æ¥å·ï¼" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processWorkCode"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.processWorkCode" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="å å·¥æ¹æ¬¡" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processingBatch"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.processingBatch" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="å å·¥æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processingQuantity"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.processingQuantity" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span='span'> |
| | | <a-form-model-item label="å 工设å¤" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processingEquipment"> |
| | | <a-input :disabled='coldisabled' v-model="tableRowRecord.processingEquipment" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-tab-pane> |
| | | <a-tab-pane key='2' tab='æµç¨èç¹'> |
| | | <a-card> |
| | | <a-timeline style="padding:0 1% 0 12%" > |
| | | <a-timeline-item color='white' v-for="(item,index1) in hitaskDataSource" :key="index1"> |
| | | <div class="bottom"> |
| | | <p>å¤ç人ï¼{{item.assignee_dictText}}</p> |
| | | <p v-if="index1 !==0">å¤çæ¶é¿ï¼{{item.duration}}</p> |
| | | <p v-if="item.name !== 'æäº¤ç³è¯·'">å¤çç±»åï¼{{item.sequenceFlowName}}</p> |
| | | <p v-if="item.description != null">å¤çæè§ï¼{{item.description}}</p> |
| | | <div class="left_qiu"><span>{{item.taskName}}</span></div> |
| | | </div> |
| | | </a-timeline-item> |
| | | </a-timeline> |
| | | </a-card> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-spin> |
| | | </a-form> |
| | | </div> |
| | | <div> |
| | | <hr class="shallow-hr"> |
| | | <br> |
| | | <b>审æ¹è¯¦æ
</b> |
| | | <br> |
| | | <a-form-model ref="form" :model="approveData" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-col ::span='span' class="btxx"> |
| | | <a-form-model-item label="å¤çç±»å" :labelCol="labelCol" :wrapperCol="wrapperCol" prop='status'> |
| | | <j-dict-select-tag type='list' v-model='assignFileStream.status' dictCode='nc_sq_handle_type' placeholder="è¯·éæ©å¤çç±»å" /> |
| | | </a-form-model-item > |
| | | </a-col> |
| | | <a-col :span="24" class="btxx"> |
| | | <a-form-model-item label="å¤çæè§" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-textarea v-model="assignFileStream.approveContent" rows="4" placeholder="请è¾å
¥å¤çæè§"/> |
| | | </a-form-model-item > |
| | | </a-col> |
| | | |
| | | <a-col :span="24" class="btxx" v-if="this.selectShenpiData.taskDefKey == 'operation'"> |
| | | <a-form-model-item label="馿£æè§" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
| | | <a-textarea v-model="assignFileStream.inspectionOpinion" rows="4" placeholder="请è¾å
¥é¦æ£æè§"/> |
| | | </a-form-model-item > |
| | | </a-col> |
| | | </a-row> |
| | | <div class="table-operator" style="text-align: right;"> |
| | | <a-button @click="handleQueXiaoTask" type="primary" icon="close">åæ¶</a-button> |
| | | <a-button @click="submitForm">æ 交</a-button> |
| | | </div> |
| | | </a-form-model> |
| | | </div> |
| | | </a-card> |
| | | |
| | | |
| | | </a-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { getAction, deleteAction, postAction, downFile, httpAction } from '@api/manage' |
| | | export default { |
| | | name: 'FlowShenPi', |
| | | mixins: [mixinDevice], |
| | | props: { |
| | | selectShenpiData: { |
| | | type: Object, |
| | | required: true |
| | | } |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | form: this.$form.createForm(this), |
| | | span: 12, |
| | | span1: 8, |
| | | coldisabled: true, |
| | | spinning: false, |
| | | tableRowRecord: {}, |
| | | assignFileStream:{}, |
| | | tableDataSource: [], |
| | | usageDataSource: [], |
| | | hitaskDataSource:[], |
| | | bomForm: {}, |
| | | imageSrc: null, |
| | | drawerVisible: true, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 30 }, |
| | | sm: { span: 16 } |
| | | }, |
| | | validatorRules: { |
| | | status: { |
| | | rules: [ |
| | | { required: true, message: 'è¯·éæ©å®¡æ¹ç¶æ!'}, |
| | | ] |
| | | }, |
| | | }, |
| | | approveData: {}, |
| | | flowData: {}, |
| | | title: '详æ
页é¢', |
| | | width: 1000, |
| | | visible: false, |
| | | // 表头 |
| | | url: { |
| | | queryBomDataById: '/dnc/guideCardBatch/queryById', |
| | | diagramView: '/assign/flow/diagramView', |
| | | queryHisTaskList:'/dncFlow/dispatchFile/queryHisTaskList', |
| | | auditGuideCardBatch:"/dnc/guideCardBatch/auditGuideCardBatch", |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [], |
| | | workflowSource: [] |
| | | } |
| | | }, |
| | | created() { |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | callback() { |
| | | }, |
| | | handCancel() { |
| | | this.visible = false |
| | | }, |
| | | clearTableSource() { |
| | | this.tableDataSource = [] |
| | | this.usageDataSource = [] |
| | | }, |
| | | fetchAndShowBmp() { |
| | | console.log('flowData----->', this.flowData) |
| | | try { |
| | | let parm = { |
| | | processDefinitionId: this.flowData.processDefinitionId, |
| | | processInstanceId:this.flowData.processInstanceId, |
| | | TaskDefinitionKey:this.flowData.processDefinitionKey |
| | | } |
| | | downFile(this.url.diagramView,parm,'get').then((res=>{ |
| | | console.log('Pica------>',res) |
| | | const urlObject = window.URL.createObjectURL(new Blob([res])) |
| | | this.imageSrc = urlObject |
| | | })) |
| | | } catch (error) { |
| | | console.error('Error fetching image blob:', error) |
| | | alert('æ æ³å è½½å¾çï¼è¯·ç¨ååè¯ã') |
| | | } |
| | | }, |
| | | handleQueXiaoTask(){ |
| | | this.visible = false |
| | | this.routeReload() |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | if (!that.assignFileStream.status==null || that.assignFileStream.status===undefined){ |
| | | this.$message.warning('è¯·éæ©å¤çç±»åï¼') |
| | | return false; |
| | | } |
| | | if (!that.assignFileStream.approveContent==null || that.assignFileStream.approveContent===undefined) { |
| | | this.$message.warning('请è¾å
¥å¤çæè§ï¼') |
| | | return false; |
| | | } |
| | | if ((!that.selectShenpiData.inspectionOpinion==null || that.selectShenpiData.taskDefKey===undefined)&&that.selectShenpiData.taskDefKey==="proofread") { |
| | | this.$message.warning('请è¾å
¥é¦æ£æè§ï¼') |
| | | } |
| | | // 触å表åéªè¯ |
| | | this.form.validateFields((err, values) => { |
| | | if (!err) { |
| | | that.confirmLoading = true; |
| | | let url=this.url.auditGuideCardBatch |
| | | let method = 'post'; |
| | | let handle =that.assignFileStream.status === '1'; |
| | | let flowTaskVo = {} |
| | | switch (that.selectShenpiData.taskDefKey){ |
| | | case "proofread": |
| | | flowTaskVo.checkType=handle; |
| | | break; |
| | | case "operation": |
| | | flowTaskVo.confirmType=handle; |
| | | break; |
| | | case "approval": |
| | | flowTaskVo.approveType=handle; |
| | | break; |
| | | } |
| | | flowTaskVo.comment =that.assignFileStream.approveContent; |
| | | flowTaskVo.dataId = this.selectShenpiData.dataId |
| | | flowTaskVo.taskId = this.selectShenpiData.id |
| | | flowTaskVo.userId = this.selectShenpiData.assignee |
| | | flowTaskVo.instanceId = this.selectShenpiData.procInstId |
| | | flowTaskVo.values = this.selectShenpiData.variables |
| | | flowTaskVo.inspectionOpinion=that.assignFileStream.inspectionOpinion |
| | | console.log("表åæäº¤æ°æ®",flowTaskVo) |
| | | httpAction(url,flowTaskVo,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.visible = false |
| | | //å·æ°è¡¨æ ¼ |
| | | that.$emit('searchReset') |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | getAllApproveData(item) { |
| | | console.log('selectShenpiData----->', this.selectShenpiData) |
| | | this.flowData = item |
| | | let param = { |
| | | 'id': item.dataId |
| | | } |
| | | let parmhis={ |
| | | 'procInstId': item.procInstId |
| | | } |
| | | getAction(this.url.queryHisTaskList,parmhis).then(res=>{ |
| | | this.hitaskDataSource=res.result |
| | | getAction(this.url.queryBomDataById, param).then((res => { |
| | | if (res.success) { |
| | | this.tableRowRecord = res.result |
| | | console.log('this.tableRowRecord----->', this.tableRowRecord) |
| | | } |
| | | })) |
| | | }).finally( |
| | | this.visible = true, |
| | | console.log('this.approveData---->', this.approveData) |
| | | ) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .shallow-hr { |
| | | border: 0; |
| | | height: 1px; /* åç线çé«åº¦ */ |
| | | background-color: rgba(0, 0, 0, 0.1); /* ä½¿ç¨ RGBA é¢è²ï¼å¹¶è®¾ç½®è¾ä½çéæåº¦ */ |
| | | margin: 20px 0; /* åç线ä¸ä¸çå¤è¾¹è· */ |
| | | } |
| | | .btn-custom { |
| | | background-color: #4CAF50; /* 绿è²èæ¯ */ |
| | | color: white; /* ç½è²æå */ |
| | | border: none; /* æ è¾¹æ¡ */ |
| | | padding: 5px 15px; /* å
è¾¹è· */ |
| | | text-align: center; /* æåå±
ä¸ */ |
| | | text-decoration: none; /* æ ä¸å线 */ |
| | | display: inline-block; /* è¡å
åå
ç´ */ |
| | | font-size: 12px; /* åä½å¤§å° */ |
| | | margin: 4px 2px; /* å¤è¾¹è· */ |
| | | cursor: pointer; /* é¼ æ æ¬åæ¶æ¾ç¤ºæå */ |
| | | border-radius: 4px; /* åè§è¾¹æ¡ */ |
| | | } |
| | | |
| | | .bold-large-label { |
| | | font-weight: bold; |
| | | font-size: 20px; /* æä½ éè¦çä»»ä½å¤§å° */ |
| | | } |
| | | .left_qiu{ |
| | | position: absolute; |
| | | left: -74px; |
| | | top: 0; |
| | | width:54px; |
| | | border-radius: 50%; |
| | | height:54px; |
| | | font-size: 13px; |
| | | margin: auto; |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | align-items: center; |
| | | justify-content: center; |
| | | background: #0099ff; |
| | | transform: translate(0, 0); |
| | | } |
| | | /deep/ .ant-timeline-item-tail{ |
| | | left: -29px !important; |
| | | } |
| | | .left_qiu span{ |
| | | width: 3em; |
| | | display: block; |
| | | color: #fff; |
| | | text-align: center; |
| | | } |
| | | .img{ |
| | | width: 75%; |
| | | } |
| | | |
| | | .wrap{ |
| | | clear: both; |
| | | width: 100%; |
| | | display: flex; |
| | | height: 50px; |
| | | border: 1px solid #ccc; |
| | | /* background-color: aqua; */ |
| | | } |
| | | .box{ |
| | | width:21%; |
| | | height:50px; |
| | | border-right: 1px solid #ccc; |
| | | line-height: 50px; |
| | | /* background: red; */ |
| | | text-align:center; |
| | | margin: auto; |
| | | } |
| | | |
| | | @import '~@assets/less/common.less'; |
| | | </style> |