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

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

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

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

@ -50,7 +50,7 @@
</el-form-item>
<el-form-item label="底盘号码">
<!-- <el-form-item label="底盘号码">
<el-col :span="11">
<el-form-item prop="Vin">
<el-input
@ -64,7 +64,7 @@
</el-form-item>
</el-col>
</el-form-item>
</el-form-item> -->
<el-form-item label="打印日期">
<el-date-picker

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

@ -62,7 +62,7 @@
</el-col>
</el-form-item>
<el-form-item label="底盘号码">
<!-- <el-form-item label="底盘号码">
<el-col :span="11">
<el-form-item prop="beginVin">
<el-input
@ -88,7 +88,7 @@
/>
</el-form-item>
</el-col>
</el-form-item>
</el-form-item> -->
<el-form-item label="打印日期">
<el-date-picker

Loading…
Cancel
Save