From bdb416e5a4f19808c4af533ce5498f1789079d81 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Sat, 28 Jan 2023 18:02:32 +0800 Subject: [PATCH] =?UTF-8?q?0412=20=E6=96=B0=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/board.js | 2 +- src/router/index.js | 1 + src/views/modules/autoPrint/autoPrint.vue | 91 +++++++++++++++++++ .../modules/print/print_package_label.js | 2 +- src/views/modules/production/dailyPlan.vue | 6 +- .../modules/production/scheduleForSOTask.vue | 62 +++++++++++++ .../production/scheduleForShopOrder.vue | 38 +++++++- 7 files changed, 194 insertions(+), 8 deletions(-) create mode 100644 src/views/modules/autoPrint/autoPrint.vue diff --git a/src/api/board.js b/src/api/board.js index 40c110a..8201bff 100644 --- a/src/api/board.js +++ b/src/api/board.js @@ -9,7 +9,7 @@ export const soLiuhuaBoard= data => createAPI(`board/soLiuhuaBoard`,'post',data) export const transFerBoard= data => createAPI(`board/transFerBoard`,'post',data) export const SORoutingBoard= data => createAPI(`board/SORoutingBoard`,'post',data) - +export const getPrintsList = data => createAPI(`board/getPrintsList/${data}`,'get',data) export const getStockPrintList= data => createAPI(`board/getStockPrintList/${data}`,'get',data) export const getStockPrintListHunlian= data => createAPI(`board/getStockPrintListHunlian`,'post',data) export const updateStockPrintFlag= data => createAPI(`board/updateStockPrintFlag`,'post',data) diff --git a/src/router/index.js b/src/router/index.js index 0e1fc02..b0ec168 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -32,6 +32,7 @@ const globalRoutes = [ { path: '/padPartPhoto', component: _import('modules/pad/padPartPhoto'), name: 'padPartPhoto', meta: { title: '产品图片' } }, { path: '/taskReport', component: _import('modules/taskmanage/taskReport'), name: 'taskReport', meta: { title: '任务看板' } }, { path: '/autoPrintStock', component: _import('modules/autoPrint/autoPrintStock'), name: 'autoPrintStock', meta: { title: '自动打印库存' } }, + { path: '/autoPrint', component: _import('modules/autoPrint/autoPrint'), name: 'autoPrint', meta: { title: '自动打印标签' } }, { path: '/autoPrintStockHunlian', component: _import('modules/autoPrint/autoPrintStockHunlian'), name: 'autoPrintStockHunlian', meta: { title: '自动打印混炼胶库存' } }, { path: '/SORoutingBoardForXiuBian', component: _import('modules/board/SORoutingBoardForXiuBian'), name: 'SORoutingBoardForXiuBian', meta: { title: '修边工序看板' } }, { path: '/PODetailForW', component: _import('modules/board/PODetailForW'), name: 'PODetailForW', meta: { title: '外购件检验看板' } }, diff --git a/src/views/modules/autoPrint/autoPrint.vue b/src/views/modules/autoPrint/autoPrint.vue new file mode 100644 index 0000000..9c89828 --- /dev/null +++ b/src/views/modules/autoPrint/autoPrint.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/src/views/modules/print/print_package_label.js b/src/views/modules/print/print_package_label.js index 6edd341..15d5b35 100644 --- a/src/views/modules/print/print_package_label.js +++ b/src/views/modules/print/print_package_label.js @@ -74,7 +74,7 @@ export function printPackageLabel(printList) { LODOP.SET_PRINT_STYLEA(0,"Bold",1); LODOP.ADD_PRINT_LINE(37,12,36,364,0,1); LODOP.ADD_PRINT_LINE(216,12,215,364,0,1); - LODOP.ADD_PRINT_TEXT(116,294,76,25,printData.unitQty); + LODOP.ADD_PRINT_TEXT(116,294,76,25,printData.unitQty + printData.umid); LODOP.SET_PRINT_STYLEA(0,"FontName","Arial"); LODOP.SET_PRINT_STYLEA(0,"FontSize",12); LODOP.SET_PRINT_STYLEA(0,"Bold",1); diff --git a/src/views/modules/production/dailyPlan.vue b/src/views/modules/production/dailyPlan.vue index fa8320a..9e39c77 100644 --- a/src/views/modules/production/dailyPlan.vue +++ b/src/views/modules/production/dailyPlan.vue @@ -29,7 +29,7 @@ placeholder="选择日期"> - + + label="要求完工日期"> - + diff --git a/src/views/modules/production/scheduleForSOTask.vue b/src/views/modules/production/scheduleForSOTask.vue index 18be3c4..5924ea8 100644 --- a/src/views/modules/production/scheduleForSOTask.vue +++ b/src/views/modules/production/scheduleForSOTask.vue @@ -35,6 +35,27 @@ placeholder="选择日期"> + + + + + + + + + + + @@ -63,6 +84,27 @@ + + + + + + + + + + + 查询 + + + + - + 物料编码 + + + + + + + + + + + @@ -203,8 +224,17 @@ prop="needDate" header-align="center" align="left" + sortable + width="130" + label="要求完工日期"> + + + label="计划发货日期"> ROUND(ISNULL(SL.scheduledQty,0),3)', itemNo:'',