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 @@