Browse Source

增加点击打印按钮,自动刷新列表

branch_ccpg_220107
songnan.zhang 3 years ago
parent
commit
794cb2e42f
  1. 90
      vue/src/views/pg-fis/basedate/m100Online/RepetitionMB.vue
  2. 32
      vue/src/views/pg-fis/basedate/m100Online/RepetitionZHB.vue
  3. 4
      vue/src/views/pg-fis/basedate/m100Online/ScrapMB.vue
  4. 4
      vue/src/views/pg-fis/basedate/m100Online/ScrapZHB.vue

90
vue/src/views/pg-fis/basedate/m100Online/RepetitionMB.vue

@ -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) {

32
vue/src/views/pg-fis/basedate/m100Online/RepetitionZHB.vue

@ -49,7 +49,7 @@
</el-col> </el-col>
</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
@ -63,7 +63,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
@ -493,18 +493,22 @@ export default {
}, },
//- //-
handleUpdate(row) { handleUpdate(row) {
this.isEdit = true; var beginVin1 = [];
if (this.multipleSelection.length != 1) { let myalert = ""; //使
this.$message({ if (row) {
message: "重新打印必须选择单行,不能多选!", //
type: "warning", beginVin1.push(row.id);
}); myalert = row.name;
return;
} else { } else {
//this.fetchData(this.multipleSelection[0].id); //
// this.multipleSelection.forEach((element) => {
let beginVin1 = this.multipleSelection[0].id; let id = element.id;
let ZHBId = [beginVin1]; beginVin1.push(id);
});
myalert = "选中项";
}
//let beginVin1 = this.multipleSelection[0].id;
let ZHBId = beginVin1;
var params = { var params = {
printType: "1", printType: "1",
productLine: this.customerInfo.productLine, productLine: this.customerInfo.productLine,
@ -536,10 +540,10 @@ export default {
.then((response) => { .then((response) => {
this.printpdf(response); // this.printpdf(response); //
}); });
this.getList();
} }
}) })
.catch(() => {}); .catch(() => {});
}
}, },
//- //-
handleDelete(row) { handleDelete(row) {

4
vue/src/views/pg-fis/basedate/m100Online/ScrapMB.vue

@ -50,7 +50,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
@ -64,7 +64,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

4
vue/src/views/pg-fis/basedate/m100Online/ScrapZHB.vue

@ -62,7 +62,7 @@
</el-col> </el-col>
</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="beginVin"> <el-form-item prop="beginVin">
<el-input <el-input
@ -88,7 +88,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

Loading…
Cancel
Save