diff --git a/src/api/distribution/truckLoadingDetails.js b/src/api/distribution/truckLoadingDetails.js index 77d3296b..5df4b86a 100644 --- a/src/api/distribution/truckLoadingDetails.js +++ b/src/api/distribution/truckLoadingDetails.js @@ -92,10 +92,10 @@ export const postLoadingDetailExport = (data = {}) => { /** * 零担二维码 */ -export const postShowOrderCodeByCode = params => { +export const postShowOrderCodeByCode = data => { return request({ url: '/api/logpm-distribution/distributionStockArticle/showOrderCodeByCode', - method: 'get', - params, + method: 'post', + data, }); }; diff --git a/src/views/distribution/artery/truckLoadingDetails.vue b/src/views/distribution/artery/truckLoadingDetails.vue index f67c554a..28087c63 100644 --- a/src/views/distribution/artery/truckLoadingDetails.vue +++ b/src/views/distribution/artery/truckLoadingDetails.vue @@ -219,23 +219,14 @@ - -
-
-
- - - 关 闭 - 打 印 - -
+ width="780px" + type="titlePrint" + :isShowExport="false" + /> ({ /** 是否开启搜索 */ @@ -1219,9 +1209,12 @@ const printOrderByZero = async ({ row }) => { try { details.loadingObj.pageLoading = true; - let ids = { - orderCodes: row.orderCode, - }; + let ids = [ + { + orderCode: row.orderCode, + fromWarehouseId: row.fromWarehouseId, + }, + ]; details.html = ''; const res = await postShowOrderCodeByCode(ids); @@ -1278,9 +1271,14 @@ const handleBatchBarcode = async () => { ); _zeroArr.length > 0 && _promiseArr.push( - postShowOrderCodeByCode({ - orderCodes: _zeroArr.map(val => val.orderCode).join(','), - }).then(res => { + postShowOrderCodeByCode( + _zeroArr.map(val => { + return { + orderCode: val.orderCode, + fromWarehouseId: val.fromWarehouseId, + }; + }) + ).then(res => { const { code, data } = res.data; if (code !== 200 || getObjType(data.moldList) !== 'array') return; @@ -1300,12 +1298,6 @@ const handleBatchBarcode = async () => { } }; -/** 打印包条码 */ -const printTemplate = () => { - const orderNodeList = document.querySelectorAll('.el-dialog-QRCode-container>div>div'); - print(orderNodeList); -}; - /** 批量移除 */ const handleBatchRemove = async () => { const WarehouseName = localStorage.getItem('WarehouseName');