|
|
|
@ -1196,13 +1196,17 @@ const printOrder = async ({ row }) => {
|
|
|
|
|
orderPackageCodes: row.scanCode, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
details.html = ''; |
|
|
|
|
const res = await getShowAdvancePackgeCode(qr); |
|
|
|
|
|
|
|
|
|
if (res.data.code !== 200) return; |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
|
|
|
|
|
if (code !== 200 || getObjType(data.moldList) !== 'array') return; |
|
|
|
|
|
|
|
|
|
for (let i = 0; i < data.moldList.length; i++) { |
|
|
|
|
details.html += data.moldList[i]; |
|
|
|
|
} |
|
|
|
|
details.popUpShow.QRCodeVisible = true; |
|
|
|
|
console.log(res.data); |
|
|
|
|
details.html = ''; |
|
|
|
|
details.html = getHtmls(res.data.data.dataList, res.data.data.templateHtml); |
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
@ -1219,13 +1223,15 @@ const printOrderByZero = async ({ row }) => {
|
|
|
|
|
orderCodes: row.orderCode, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
details.html = ''; |
|
|
|
|
const res = await postShowOrderCodeByCode(ids); |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200 || getObjType(data.moldList) !== 'array') return; |
|
|
|
|
|
|
|
|
|
if (res.data.code !== 200) return; |
|
|
|
|
for (let i = 0; i < data.moldList.length; i++) { |
|
|
|
|
details.html += data.moldList[i]; |
|
|
|
|
} |
|
|
|
|
details.popUpShow.QRCodeVisible = true; |
|
|
|
|
console.log(res.data); |
|
|
|
|
details.html = ''; |
|
|
|
|
details.html = getHtmls(res.data.data.dataList, res.data.data.templateHtml); |
|
|
|
|
} catch (error) { |
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
} finally { |
|
|
|
@ -1263,20 +1269,24 @@ const handleBatchBarcode = async () => {
|
|
|
|
|
orderPackageCodes: _arr.map(val => val.scanCode).join(','), |
|
|
|
|
}).then(res => { |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200) return; |
|
|
|
|
if (code !== 200 || getObjType(data.moldList) !== 'array') return; |
|
|
|
|
|
|
|
|
|
details.html += getHtmls(data.dataList, data.templateHtml); |
|
|
|
|
for (let i = 0; i < data.moldList.length; i++) { |
|
|
|
|
details.html += data.moldList[i]; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
_zeroArr.length > 0 && |
|
|
|
|
_promiseArr.push( |
|
|
|
|
postShowOrderCode({ |
|
|
|
|
postShowOrderCodeByCode({ |
|
|
|
|
orderCodes: _zeroArr.map(val => val.orderCode).join(','), |
|
|
|
|
}).then(res => { |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200) return; |
|
|
|
|
if (code !== 200 || getObjType(data.moldList) !== 'array') return; |
|
|
|
|
|
|
|
|
|
details.html += getHtmls(data.dataList, data.templateHtml); |
|
|
|
|
for (let i = 0; i < data.moldList.length; i++) { |
|
|
|
|
details.html += data.moldList[i]; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|