Commit 32b121e5 authored by 沈翠玲's avatar 沈翠玲

包装标签打印

parent 45f8826f
......@@ -484,8 +484,31 @@ export default {
console.log(response, 'response')
if (response.code === 200) {
const valueList = response.data.map((item) => {
const obj = {}
if(item.standardSize) {
const arr = item.standardSize.split('|')
if(arr && arr.length > 0){
arr.forEach((item1, index) => {
let [size, jh] = item1.split(":")
let zl, loss
if (jh) {
[zl, loss] = jh.split("+")
if(loss) {
jh = (Number(zl) + Number(loss)) + ''
} else {
jh = zl
}
}
obj['size' + (index + 1)] = size
obj['zl' + (index + 1)] = zl
obj['loss' + (index + 1)] = loss
obj['jh' + (index + 1)] = jh
})
}
}
return {
packagePrint: item,
standardSizeobj: obj
}
})
postBatchPrintPdf(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment