From 78e792ebead647456fd35f508b9b76a68d12c83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Sat, 15 Apr 2023 16:52:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E6=89=93=E5=8D=B0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=89=B9=E6=AE=8A=E5=88=97=E8=A1=A8=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=A4=84=E7=90=86+=E6=89=93=E5=8D=B0=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/src/api/wms-api.js | 16 ++++ fe/PC/src/mixins/mixins.js | 5 ++ fe/PC/src/mixins/printMixin.js | 2 +- fe/PC/src/utils/index.js | 5 +- .../PartiallyPreparedProducts.vue | 7 +- .../RecycledMaterialsLabel.vue | 7 +- .../productionReturnLabel.vue | 7 +- .../beforeGroundingReturnNote.vue | 25 +++--- .../materialDirectSendNote.vue | 37 ++++++--- .../purchaseOnShelves/PutawayNote.vue | 9 ++- .../PurchaseReceiptNote-msQuery.vue | 80 +++++++++++-------- .../purchaseReturn/returnNote.vue | 28 +++---- 12 files changed, 142 insertions(+), 86 deletions(-) diff --git a/fe/PC/src/api/wms-api.js b/fe/PC/src/api/wms-api.js index 876d5a6d6..bc2f58d28 100644 --- a/fe/PC/src/api/wms-api.js +++ b/fe/PC/src/api/wms-api.js @@ -532,6 +532,22 @@ export function allSupplierByCodes(data) { data }) } + +// 根据code获取当前供应商信息 打印需要获取供应商信息(供应商简称等)相关位置 +export function getOneSupplierInfoByCode(code) { + return request({ + url: baseURL + 'basedata/supplier/by-code/' + code, + method: 'get' + }) +} + +// 根据code获取当前客户信息 打印需要获取供应商信息(客户地址等)相关位置 +export function getOneCustomerInfoByCode(code) { + return request({ + url: baseURL + 'basedata/customer/by-code/' + code, + method: 'get' + }) +} // 根据编号获取字典信息 // export function getDictByCode(code) { // return request({ diff --git a/fe/PC/src/mixins/mixins.js b/fe/PC/src/mixins/mixins.js index 9624bd714..f2a27299b 100644 --- a/fe/PC/src/mixins/mixins.js +++ b/fe/PC/src/mixins/mixins.js @@ -166,6 +166,11 @@ export const mixins = { }, //打印标签 Print(val) { + let that = this + if(!val){ + that.$warningMsg('暂无可打印数据') + return + } const loading = this.$loading({ lock: true, text: 'Loading', diff --git a/fe/PC/src/mixins/printMixin.js b/fe/PC/src/mixins/printMixin.js index 7f9f54e50..090681b65 100644 --- a/fe/PC/src/mixins/printMixin.js +++ b/fe/PC/src/mixins/printMixin.js @@ -146,7 +146,7 @@ const printEnumOption = { */ // export function initPrintAllData(propsData,name,enumOption,options,url){ - if(!propsData || propsData.details.length <= 0)return {} + if(!propsData || propsData.details.length <= 0)return false let _printData = {details:[]} let _outData = {} for(var key in propsData){ diff --git a/fe/PC/src/utils/index.js b/fe/PC/src/utils/index.js index aec7bb21e..523b8365c 100644 --- a/fe/PC/src/utils/index.js +++ b/fe/PC/src/utils/index.js @@ -542,4 +542,7 @@ export function dictFormatData() { // }) // } - +// 像接口传参时候需要补充.0000000 否则会报错情况下转义 +export function initDataToHttpFormat (date) { + return date ? date + '.0000000' : undefined +} \ No newline at end of file diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue index 9767e2e4c..3556f2d6b 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue @@ -57,6 +57,7 @@