|
|
@ -63,7 +63,7 @@ |
|
|
|
--> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="底盘号码"> |
|
|
|
<!-- <el-form-item label="底盘号码"> |
|
|
|
<el-col :span="11"> |
|
|
|
<el-form-item prop="Vin"> |
|
|
|
<el-input |
|
|
@ -74,8 +74,8 @@ |
|
|
|
style="width: 140px" |
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-form-item> --> |
|
|
|
<!-- </el-col> --> |
|
|
|
<!-- <el-col class="line" :span="2">-</el-col> |
|
|
|
<el-col :span="11"> |
|
|
|
<el-form-item prop="endVin"> |
|
|
@ -90,7 +90,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
--> |
|
|
|
</el-form-item> |
|
|
|
<!-- </el-form-item> --> |
|
|
|
|
|
|
|
<el-form-item label="打印日期"> |
|
|
|
<el-date-picker |
|
|
@ -538,18 +538,22 @@ export default { |
|
|
|
}, |
|
|
|
//重新打印-门板 |
|
|
|
handleUpdate(row) { |
|
|
|
this.isEdit = true; |
|
|
|
if (this.multipleSelection.length != 1) { |
|
|
|
this.$message({ |
|
|
|
message: "重新打印必须选择单行,不能多选!", |
|
|
|
type: "warning", |
|
|
|
}); |
|
|
|
return; |
|
|
|
var MBVin1 = []; |
|
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
|
if (row) { |
|
|
|
//单行 |
|
|
|
MBVin1.push(row.id); |
|
|
|
myalert = row.name; |
|
|
|
} else { |
|
|
|
//this.fetchData(this.multipleSelection[0].id); |
|
|
|
//重新打印方法 |
|
|
|
let MBVin1 = this.multipleSelection[0].id; |
|
|
|
let MBId = [MBVin1]; |
|
|
|
//多选 |
|
|
|
this.multipleSelection.forEach((element) => { |
|
|
|
let id = element.id; |
|
|
|
MBVin1.push(id); |
|
|
|
}); |
|
|
|
myalert = "选中项"; |
|
|
|
} |
|
|
|
// let MBVin1 = this.multipleSelection[0].id; |
|
|
|
let MBId = MBVin1; |
|
|
|
var params = { |
|
|
|
printType: 1, |
|
|
|
productLine: this.customerInfo.productLine, |
|
|
@ -581,10 +585,64 @@ export default { |
|
|
|
.then((response) => { |
|
|
|
this.printpdf(response); //打印我文件流 |
|
|
|
}); |
|
|
|
this.getList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// this.isEdit = true; |
|
|
|
// if (this.multipleSelection.length != 1) { |
|
|
|
// this.$message({ |
|
|
|
// message: "重新打印必须选择单行,不能多选!", |
|
|
|
// type: "warning", |
|
|
|
// }); |
|
|
|
// return; |
|
|
|
// } else { |
|
|
|
// //this.fetchData(this.multipleSelection[0].id); |
|
|
|
// //重新打印方法 |
|
|
|
// let MBVin1 = this.multipleSelection[0].id; |
|
|
|
// let MBId = [MBVin1]; |
|
|
|
// var params = { |
|
|
|
// printType: 1, |
|
|
|
// productLine: this.customerInfo.productLine, |
|
|
|
// reportIdList: MBId, |
|
|
|
// }; |
|
|
|
// console.log("门板打印-主界面传过来的值:" + JSON.stringify(params)); |
|
|
|
// this.$axios |
|
|
|
// .posts("/api/newjit/bill-m100/print-menban-packing-list", params) |
|
|
|
// .then((response) => { |
|
|
|
// //alert(response.status); |
|
|
|
// const index = this.list.indexOf(row); |
|
|
|
// if (response.status === false) { |
|
|
|
// this.$message({ |
|
|
|
// message: response.message, |
|
|
|
// type: "error", |
|
|
|
// }); |
|
|
|
// return; |
|
|
|
// } else { |
|
|
|
// this.fileQuery.dataname = JSON.stringify(response.item); |
|
|
|
// console.log( |
|
|
|
// "门板-调用Handlers/Handler1.ashx?report=menban传的值:" + |
|
|
|
// JSON.stringify(this.fileQuery.dataname) |
|
|
|
// ); |
|
|
|
// this.$axios |
|
|
|
// .posts( |
|
|
|
// "/Handlers/Handler1.ashx?report=menban", |
|
|
|
// qs.stringify(this.fileQuery) |
|
|
|
// ) |
|
|
|
// .then((response) => { |
|
|
|
// this.printpdf(response); //打印我文件流 |
|
|
|
// }); |
|
|
|
// this.getList(); |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// .catch(() => {}); |
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
//作废操作,支持批量操作-门板 |
|
|
|
handleDelete(row) { |
|
|
|