From edc17132d4226ee1bbb7e9d225168cc31d0c5182 Mon Sep 17 00:00:00 2001 From: zhangdi <1104545947@qq.com> Date: Tue, 31 Mar 2026 12:48:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + src/main.js | 3 + .../components/addTemplateDialog.vue | 9 +- .../components/afterPlatingEntryDialog.vue | 6 +- .../components/beforePlatingBoundDialog.vue | 28 +-- .../components/beforePlatingEntryDialog.vue | 73 +------ .../components/handoverRec.vue | 22 +- .../components/print.vue | 204 ++++++++++++------ .../beforeAndAfterPlating/index.vue | 2 +- .../blbWorkOrder/components/glass.vue | 31 ++- .../blbWorkOrder/components/others.vue | 29 ++- .../productionMonitoring/index.vue | 83 ++++--- .../sinTerWorkOrder/index.vue | 78 +++++-- src/views/workRate/index.vue | 83 +++++-- 14 files changed, 416 insertions(+), 236 deletions(-) diff --git a/package.json b/package.json index f1933fd..1ffaa15 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "js-base64": "^3.7.4", "js-cookie": "^3.0.0", "js-md5": "^0.7.3", + "jsbarcode": "^3.12.3", "jspdf": "^3.0.4", "nprogress": "^0.2.0", "pinyin": "^4.0.0", diff --git a/src/main.js b/src/main.js index 866150c..d93755b 100644 --- a/src/main.js +++ b/src/main.js @@ -37,6 +37,8 @@ import tenantDatasource from './views/system/tenantdatasource.vue'; import * as echarts from 'echarts'; import 'virtual:svg-icons-register' import print from 'vue3-print-nb' +// import Barcode from 'vue-barcode'; + // import print from 'vue3-print-nb' // 打印插件 @@ -70,6 +72,7 @@ app.use(i18n); app.use(store); app.use(router); app.use(print) +// app.component('vue-barcode', Barcode); // app.use(print) app.use(ElementPlus, { locale: messages[language], diff --git a/src/views/processManagement/components/addTemplateDialog.vue b/src/views/processManagement/components/addTemplateDialog.vue index dbf50d4..f377bfa 100644 --- a/src/views/processManagement/components/addTemplateDialog.vue +++ b/src/views/processManagement/components/addTemplateDialog.vue @@ -678,6 +678,7 @@ export default { _tempId: this.tempId, // 临时唯一标识 id: null, processNo: this.getProcessNo(this.ruleForm.tableData), + isMain:'2' }); } if (this.activeName == '2') { @@ -796,7 +797,7 @@ export default { console.log('提交数据:', query); // 修改 - if (!this.moldAddMore) { + if (this.title=='修改') { update() .then(res => { this.formLoading = false; @@ -805,7 +806,7 @@ export default { message: '操作成功!', }); this.$emit('closeDialog'); - // this.getDetail(); + this.getDetail(); }) .catch(err => { this.formLoading = false; @@ -819,8 +820,8 @@ export default { type: 'success', message: '操作成功!', }); - // this.$emit('closeDialog'); - this.getDetail(); + this.$emit('closeDialog'); + // this.getDetail(); }) .catch(err => { this.formLoading = false; diff --git a/src/views/productionManagement/beforeAndAfterPlating/components/afterPlatingEntryDialog.vue b/src/views/productionManagement/beforeAndAfterPlating/components/afterPlatingEntryDialog.vue index 55878aa..1bf7567 100644 --- a/src/views/productionManagement/beforeAndAfterPlating/components/afterPlatingEntryDialog.vue +++ b/src/views/productionManagement/beforeAndAfterPlating/components/afterPlatingEntryDialog.vue @@ -70,11 +70,11 @@ - + - + - + diff --git a/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingBoundDialog.vue b/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingBoundDialog.vue index c2a4a20..36b8c27 100644 --- a/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingBoundDialog.vue +++ b/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingBoundDialog.vue @@ -32,35 +32,23 @@ height="500px" > - - - + - + - + - + - - + + @@ -179,7 +167,7 @@ export default { quantity: item.inQuantity, }); }); - + savePlateAroundPlateFrontIssue(query) .then(res => { this.$message.success('提交成功'); diff --git a/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingEntryDialog.vue b/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingEntryDialog.vue index 985058c..b03c478 100644 --- a/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingEntryDialog.vue +++ b/src/views/productionManagement/beforeAndAfterPlating/components/beforePlatingEntryDialog.vue @@ -32,81 +32,26 @@ :height="tableHeight" > - - - + + - + - + - + - - + + - @@ -257,7 +202,7 @@ export default { wpId: item.wpId, tsId: item.teamId, ocId: item.ocId ? item.ocId : null, - quantity:item.inQuantity + quantity: item.inQuantity, }); }); savePlateAroundPlateFrontEnter(query) diff --git a/src/views/productionManagement/beforeAndAfterPlating/components/handoverRec.vue b/src/views/productionManagement/beforeAndAfterPlating/components/handoverRec.vue index aa695bf..26f7ba9 100644 --- a/src/views/productionManagement/beforeAndAfterPlating/components/handoverRec.vue +++ b/src/views/productionManagement/beforeAndAfterPlating/components/handoverRec.vue @@ -31,7 +31,13 @@ - + @@ -240,6 +246,7 @@ export default { }, data: [], + rowData: [], }; }, methods: { @@ -257,10 +264,17 @@ export default { this.list.push(item.id); }); this.printShow = true; - handoverRecordPrint({ hrIds: this.list.join(',') }).then(res => { - console.log(res, 'res'); + this.rowData = this.list; + setTimeout(() => { this.printLoading = false; - }); + }, 1000); + // this.$refs.printNew.open() + // handoverRecordPrint({ hrIds: this.list.join(',') }).then(res => { + // console.log(res, 'res'); + // this.printLoading = false; + // }).catch(err=>{ + // this.printLoading = false; + // }) // this.$refs.printClick.open('prHandoverRecord/print', { // list: this.list, // hrType: this.hrType diff --git a/src/views/productionManagement/beforeAndAfterPlating/components/print.vue b/src/views/productionManagement/beforeAndAfterPlating/components/print.vue index 060ffbb..4703c05 100644 --- a/src/views/productionManagement/beforeAndAfterPlating/components/print.vue +++ b/src/views/productionManagement/beforeAndAfterPlating/components/print.vue @@ -1,39 +1,51 @@ + diff --git a/src/views/productionManagement/sinTerWorkOrder/index.vue b/src/views/productionManagement/sinTerWorkOrder/index.vue index 684d36c..0a0920c 100644 --- a/src/views/productionManagement/sinTerWorkOrder/index.vue +++ b/src/views/productionManagement/sinTerWorkOrder/index.vue @@ -30,15 +30,38 @@ 已完工