|
@ -63,7 +63,7 @@ |
|
|
--> |
|
|
--> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="底盘号码"> |
|
|
<!-- <el-form-item label="底盘号码"> |
|
|
<el-col :span="11"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item prop="Vin"> |
|
|
<el-form-item prop="Vin"> |
|
|
<el-input |
|
|
<el-input |
|
@ -74,8 +74,8 @@ |
|
|
style="width: 140px" |
|
|
style="width: 140px" |
|
|
@keyup.enter.native="handleQuery" |
|
|
@keyup.enter.native="handleQuery" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> --> |
|
|
</el-col> |
|
|
<!-- </el-col> --> |
|
|
<!-- <el-col class="line" :span="2">-</el-col> |
|
|
<!-- <el-col class="line" :span="2">-</el-col> |
|
|
<el-col :span="11"> |
|
|
<el-col :span="11"> |
|
|
<el-form-item prop="endVin"> |
|
|
<el-form-item prop="endVin"> |
|
@ -90,7 +90,7 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
--> |
|
|
--> |
|
|
</el-form-item> |
|
|
<!-- </el-form-item> --> |
|
|
|
|
|
|
|
|
<el-form-item label="打印日期"> |
|
|
<el-form-item label="打印日期"> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
@ -538,18 +538,22 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//重新打印-门板 |
|
|
//重新打印-门板 |
|
|
handleUpdate(row) { |
|
|
handleUpdate(row) { |
|
|
this.isEdit = true; |
|
|
var MBVin1 = []; |
|
|
if (this.multipleSelection.length != 1) { |
|
|
let myalert = ""; //声明变量,其变量必须在此声明后使用 |
|
|
this.$message({ |
|
|
if (row) { |
|
|
message: "重新打印必须选择单行,不能多选!", |
|
|
//单行 |
|
|
type: "warning", |
|
|
MBVin1.push(row.id); |
|
|
}); |
|
|
myalert = row.name; |
|
|
return; |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
//this.fetchData(this.multipleSelection[0].id); |
|
|
//多选 |
|
|
//重新打印方法 |
|
|
this.multipleSelection.forEach((element) => { |
|
|
let MBVin1 = this.multipleSelection[0].id; |
|
|
let id = element.id; |
|
|
let MBId = [MBVin1]; |
|
|
MBVin1.push(id); |
|
|
|
|
|
}); |
|
|
|
|
|
myalert = "选中项"; |
|
|
|
|
|
} |
|
|
|
|
|
// let MBVin1 = this.multipleSelection[0].id; |
|
|
|
|
|
let MBId = MBVin1; |
|
|
var params = { |
|
|
var params = { |
|
|
printType: 1, |
|
|
printType: 1, |
|
|
productLine: this.customerInfo.productLine, |
|
|
productLine: this.customerInfo.productLine, |
|
@ -581,10 +585,64 @@ export default { |
|
|
.then((response) => { |
|
|
.then((response) => { |
|
|
this.printpdf(response); //打印我文件流 |
|
|
this.printpdf(response); //打印我文件流 |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.getList(); |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
.catch(() => {}); |
|
|
.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) { |
|
|
handleDelete(row) { |
|
|