|
@ -128,7 +128,7 @@ |
|
|
@keyup.enter.native="handleQuery" |
|
|
@keyup.enter.native="handleQuery" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="-" prop="VINEnd "> |
|
|
<el-form-item label="-" prop="VINEnd"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="listQuery.VINEnd" |
|
|
v-model="listQuery.VINEnd" |
|
|
placeholder="" |
|
|
placeholder="" |
|
@ -694,26 +694,10 @@ export default { |
|
|
}, |
|
|
}, |
|
|
/** 重置按钮操作 */ |
|
|
/** 重置按钮操作 */ |
|
|
resetQuery(refName) { |
|
|
resetQuery(refName) { |
|
|
//this.$refs[refName].resetFields(); |
|
|
this.$refs[refName].resetFields(); |
|
|
this.listQuery.billType = undefined; |
|
|
|
|
|
this.listQuery.productLine = undefined; |
|
|
|
|
|
this.listQuery.Version = undefined; |
|
|
|
|
|
this.listQuery.serialNumBegin = undefined; |
|
|
|
|
|
this.listQuery.serialNumEnd = undefined; |
|
|
|
|
|
this.listQuery.HostSNBegin = undefined; |
|
|
|
|
|
this.listQuery.HostSNEnd = undefined; |
|
|
|
|
|
this.listQuery.KNRBegin = undefined; |
|
|
|
|
|
this.listQuery.KNREnd = undefined; |
|
|
|
|
|
this.listQuery.VINBegin = undefined; |
|
|
|
|
|
this.listQuery.VINEnd = undefined; |
|
|
|
|
|
this.listQuery.OnlineTimeValue = []; |
|
|
this.listQuery.OnlineTimeValue = []; |
|
|
this.listQuery.OnlineTimeBegin = undefined; |
|
|
|
|
|
this.listQuery.OnlineTimeEnd = undefined; |
|
|
|
|
|
this.listQuery.ReceiveTimeValue = []; |
|
|
this.listQuery.ReceiveTimeValue = []; |
|
|
this.listQuery.ReceiveTimeBegin = undefined; |
|
|
|
|
|
this.listQuery.ReceiveTimeEnd = undefined; |
|
|
|
|
|
this.listQuery.state = []; |
|
|
this.listQuery.state = []; |
|
|
this.listQuery.billStatus = undefined; |
|
|
|
|
|
this.handleQuery(); |
|
|
this.handleQuery(); |
|
|
this.getProductLine(); |
|
|
this.getProductLine(); |
|
|
}, |
|
|
}, |
|
@ -1060,6 +1044,7 @@ export default { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
/**打印时传递大众顺序号范围,接口1获取大众顺序号,接口2验证是否断号,接口3获取打印数据,接口4获得grid++模板的base64编码 */ |
|
|
if(this.formTitle === "打印") |
|
|
if(this.formTitle === "打印") |
|
|
{ |
|
|
{ |
|
|
this.hostPrintQuery.beginHostSN = parseInt(this.form.beginHostSN ); |
|
|
this.hostPrintQuery.beginHostSN = parseInt(this.form.beginHostSN ); |
|
@ -1105,105 +1090,6 @@ export default { |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
//this.fileQuery.report = "menban"; |
|
|
//this.fileQuery.report = "menban"; |
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
this.fileQuery.dataname = `[{ |
|
|
|
|
|
"masters": [{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"billSerialNum": "04", |
|
|
|
|
|
"billLocation": "左", |
|
|
|
|
|
"providerCode": "0709FAW-VW7XH", |
|
|
|
|
|
"partType": "C8 DP", |
|
|
|
|
|
"capacity": "12", |
|
|
|
|
|
"printDate": "2021-11-27 10:12:04", |
|
|
|
|
|
"printType": 0, |
|
|
|
|
|
"productLine": "01", |
|
|
|
|
|
"beginVin": "LFV2A24K2M3303677", |
|
|
|
|
|
"endVin": "LFV2A24K2M3303792" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "2", |
|
|
|
|
|
"billNum": " 10000000010", |
|
|
|
|
|
"billSerialNum": "04", |
|
|
|
|
|
"billLocation": "右", |
|
|
|
|
|
"providerCode": "0709FAW-VW7XH", |
|
|
|
|
|
"partType": "C8 DP", |
|
|
|
|
|
"capacity": "12", |
|
|
|
|
|
"printDate": "2021-11-27 10:12:04", |
|
|
|
|
|
"printType": 0, |
|
|
|
|
|
"productLine": "01", |
|
|
|
|
|
"beginVin": "LFV2A24K2M3303677", |
|
|
|
|
|
"endVin": "LFV2A24K2M3303792" |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
"details": [{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303677", |
|
|
|
|
|
"hostSN": 85, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "01", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303680", |
|
|
|
|
|
"hostSN": 86, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "02", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303694", |
|
|
|
|
|
"hostSN": 87, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "03", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "2", |
|
|
|
|
|
"billNum": " 10000000010", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303713", |
|
|
|
|
|
"hostSN": 88, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "04", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "2", |
|
|
|
|
|
"billNum": " 10000000010", |
|
|
|
|
|
"knr": " 21321502851001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303727", |
|
|
|
|
|
"hostSN": 89, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "05", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
}]` |
|
|
|
|
|
//this.fileQuery.dataname = ""; |
|
|
//this.fileQuery.dataname = ""; |
|
|
console.log("打印json"); |
|
|
console.log("打印json"); |
|
|
console.log(this.fileQuery.dataname); |
|
|
console.log(this.fileQuery.dataname); |
|
@ -1239,8 +1125,20 @@ export default { |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
//传给grid++接口json数据,得到返回的文件流pdfstream |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
this.printpdf(pdfstream);//打印我文件流 |
|
|
//this.fileQuery.report = "menban"; |
|
|
|
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
|
|
|
//this.fileQuery.dataname = ""; |
|
|
|
|
|
console.log("打印json"); |
|
|
|
|
|
console.log(this.fileQuery.dataname); |
|
|
|
|
|
this.$axios |
|
|
|
|
|
.posts( |
|
|
|
|
|
"/Handlers/Handler1.ashx?report=zhuhuban",qs.stringify(this.fileQuery)) |
|
|
|
|
|
.then((response) => { |
|
|
|
|
|
console.log("获取文件base64编码"); |
|
|
|
|
|
console.log(response); |
|
|
|
|
|
this.printpdf(response);//打印我文件流 |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -1274,105 +1172,6 @@ export default { |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
//this.fileQuery.report = "menban"; |
|
|
//this.fileQuery.report = "menban"; |
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
this.fileQuery.dataname = `[{ |
|
|
|
|
|
"masters": [{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"billSerialNum": "04", |
|
|
|
|
|
"billLocation": "左", |
|
|
|
|
|
"providerCode": "0709FAW-VW7XH", |
|
|
|
|
|
"partType": "C8 DP", |
|
|
|
|
|
"capacity": "12", |
|
|
|
|
|
"printDate": "2021-11-27 10:12:04", |
|
|
|
|
|
"printType": 0, |
|
|
|
|
|
"productLine": "01", |
|
|
|
|
|
"beginVin": "LFV2A24K2M3303677", |
|
|
|
|
|
"endVin": "LFV2A24K2M3303792" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "2", |
|
|
|
|
|
"billNum": " 10000000010", |
|
|
|
|
|
"billSerialNum": "04", |
|
|
|
|
|
"billLocation": "右", |
|
|
|
|
|
"providerCode": "0709FAW-VW7XH", |
|
|
|
|
|
"partType": "C8 DP", |
|
|
|
|
|
"capacity": "12", |
|
|
|
|
|
"printDate": "2021-11-27 10:12:04", |
|
|
|
|
|
"printType": 0, |
|
|
|
|
|
"productLine": "01", |
|
|
|
|
|
"beginVin": "LFV2A24K2M3303677", |
|
|
|
|
|
"endVin": "LFV2A24K2M3303792" |
|
|
|
|
|
} |
|
|
|
|
|
] |
|
|
|
|
|
"details": [{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303677", |
|
|
|
|
|
"hostSN": 85, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "01", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303680", |
|
|
|
|
|
"hostSN": 86, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "02", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "1", |
|
|
|
|
|
"billNum": " 10000000009", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303694", |
|
|
|
|
|
"hostSN": 87, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "03", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "2", |
|
|
|
|
|
"billNum": " 10000000010", |
|
|
|
|
|
"knr": " 21321501481001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303713", |
|
|
|
|
|
"hostSN": 88, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "04", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
"id": "2", |
|
|
|
|
|
"billNum": " 10000000010", |
|
|
|
|
|
"knr": " 21321502851001", |
|
|
|
|
|
"vin": "LFV2A24K2M3303727", |
|
|
|
|
|
"hostSN": 89, |
|
|
|
|
|
"vehicleModel_DoorPlankCode": "PHEFZ_N5W_7HB_7Y0_3Y0 9VD GS0 0K3 3L5 QQ2 3FU4V020", |
|
|
|
|
|
"topBoxPositionNum": "05", |
|
|
|
|
|
"topSAPMaterialNum": "30052525", |
|
|
|
|
|
"topMaterialDescription": "C8-PHEV.黑4024-左后 FZ(黑PVC多孔低扬无电镀)", |
|
|
|
|
|
"belowSAPMaterialNum": "30052524", |
|
|
|
|
|
"belowMaterialDescription": "C8-PHEV.黑4024-右前 FZ(黑PVC多孔低扬无电镀)" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
}]` |
|
|
|
|
|
//this.fileQuery.dataname = ""; |
|
|
//this.fileQuery.dataname = ""; |
|
|
console.log("打印json"); |
|
|
console.log("打印json"); |
|
|
console.log(this.fileQuery.dataname); |
|
|
console.log(this.fileQuery.dataname); |
|
@ -1410,8 +1209,20 @@ export default { |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
//传给grid++接口json数据,得到返回的文件流pdfstream |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
this.printpdf(pdfstream);//打印我文件流 |
|
|
//this.fileQuery.report = "menban"; |
|
|
|
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
|
|
|
//this.fileQuery.dataname = ""; |
|
|
|
|
|
console.log("打印json"); |
|
|
|
|
|
console.log(this.fileQuery.dataname); |
|
|
|
|
|
this.$axios |
|
|
|
|
|
.posts( |
|
|
|
|
|
"/Handlers/Handler1.ashx?report=zhuhuban",qs.stringify(this.fileQuery)) |
|
|
|
|
|
.then((response) => { |
|
|
|
|
|
console.log("获取文件base64编码"); |
|
|
|
|
|
console.log(response); |
|
|
|
|
|
this.printpdf(response);//打印我文件流 |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
@ -1422,6 +1233,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
/**接口1获取打印数据,接口2获得grid++模板的base64编码 */ |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
this.hostPrintQuery.beginVin = this.form.beginVin; |
|
|
this.hostPrintQuery.beginVin = this.form.beginVin; |
|
@ -1447,8 +1259,20 @@ export default { |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
//传给grid++接口json数据,得到返回的文件流pdfstream |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
this.printpdf(pdfstream);//打印我文件流 |
|
|
//this.fileQuery.report = "menban"; |
|
|
|
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
|
|
|
//this.fileQuery.dataname = ""; |
|
|
|
|
|
console.log("打印json"); |
|
|
|
|
|
console.log(this.fileQuery.dataname); |
|
|
|
|
|
this.$axios |
|
|
|
|
|
.posts( |
|
|
|
|
|
"/Handlers/Handler1.ashx?report=menban",qs.stringify(this.fileQuery)) |
|
|
|
|
|
.then((response) => { |
|
|
|
|
|
console.log("获取文件base64编码"); |
|
|
|
|
|
console.log(response); |
|
|
|
|
|
this.printpdf(response);//打印我文件流 |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
@ -1475,8 +1299,20 @@ export default { |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
//传给grid++接口json数据,得到返回的文件流pdfstream |
|
|
//传给grid++接口json数据,得到返回的文件base64 |
|
|
this.printpdf(pdfstream);//打印我文件流 |
|
|
//this.fileQuery.report = "menban"; |
|
|
|
|
|
this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
|
|
|
//this.fileQuery.dataname = ""; |
|
|
|
|
|
console.log("打印json"); |
|
|
|
|
|
console.log(this.fileQuery.dataname); |
|
|
|
|
|
this.$axios |
|
|
|
|
|
.posts( |
|
|
|
|
|
"/Handlers/Handler1.ashx?report=zhuhuban",qs.stringify(this.fileQuery)) |
|
|
|
|
|
.then((response) => { |
|
|
|
|
|
console.log("获取文件base64编码"); |
|
|
|
|
|
console.log(response); |
|
|
|
|
|
this.printpdf(response);//打印我文件流 |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(() => { |
|
|
.catch(() => { |
|
|