|
|
@@ -158,20 +158,6 @@
|
|
|
const datas = ref([])
|
|
|
const propertyChange = () => {
|
|
|
if(workData.value.Gd_gdbh.length!==7){
|
|
|
- workData.value = {
|
|
|
- maobao:'',
|
|
|
- mabao:'',
|
|
|
- peijian:'',
|
|
|
- tldx:3000,
|
|
|
- num:'',
|
|
|
- liucheng_total:'',
|
|
|
- version:'',
|
|
|
- start_liucheng:1,
|
|
|
- liucheng_num:1,
|
|
|
- remark:'',
|
|
|
- x_offset:0,
|
|
|
- y_offset:0
|
|
|
- }
|
|
|
shuang.value=false
|
|
|
selectedPaper.value=[]
|
|
|
selectedPeijian.value=[]
|
|
|
@@ -256,21 +242,23 @@
|
|
|
|
|
|
if (getDocumentInfos.code === 0) {
|
|
|
const data = getDocumentInfos.data
|
|
|
- for (let i = 0; i < Object.keys(data).length - 4; i++) {
|
|
|
+ for (let i = workData.value.start_liucheng; i <= workData.value.liucheng_num; i++) {
|
|
|
const printdata = {
|
|
|
- "scpch": getDocumentInfos.data[i].Gd_gdbh,
|
|
|
- "xsddh": getDocumentInfos.data[i].销售订单号.split(' ')[1],
|
|
|
- "mbh": getDocumentInfos.data[i].mabao,
|
|
|
- "lcdh": getDocumentInfos.data[i].liucheng_num,
|
|
|
- "gdsm": workData.value.remark,
|
|
|
- "cpmc": getDocumentInfos.data[i].Gd_cpmc,
|
|
|
+ "scpch": getDocumentInfos.data[0].Gd_gdbh,
|
|
|
+ "xsddh": getDocumentInfos.data[0].销售订单号.split(' ')[1],
|
|
|
+ "mbh": getDocumentInfos.data[0].mabao,
|
|
|
+ "lcdh": `${workData.value.liucheng_total}-${i}`,
|
|
|
+ "qrcode": `${getDocumentInfos.data[0].Gd_gdbh}-${workData.value.liucheng_total}-${i}`,
|
|
|
+ "gdsm": getDocumentInfos.data[0].technique_sequence,
|
|
|
+ "cpmc": getDocumentInfos.data[0].Gd_cpmc,
|
|
|
"ztzs": workData.value.num,
|
|
|
- "gjh": getDocumentInfos.data[i].version,
|
|
|
+ // "gjh": getDocumentInfos.data[0].version,
|
|
|
'table': getDocumentInfos.data.gy_data.map(item=>({
|
|
|
gxmc:item
|
|
|
}))
|
|
|
}
|
|
|
- hiprintTemplate.print(printdata);
|
|
|
+ hiprintTemplate.print2(printdata);
|
|
|
+ // hiprintTemplate.toPdf(printdata,'流程单');
|
|
|
}
|
|
|
// const printdata = {
|
|
|
// "scpch": "123456",
|
|
|
@@ -335,6 +323,7 @@
|
|
|
"bottom": 77,
|
|
|
"vCenter": 552.25,
|
|
|
"hCenter": 44.5,
|
|
|
+ "field": "qrcode",
|
|
|
"coordinateSync": false,
|
|
|
"widthHeightSync": false,
|
|
|
"qrCodeLevel": 0
|