Browse Source

问题修复

branch_ccpg_220107
songnan.zhang 3 years ago
parent
commit
09941de276
  1. BIN
      vue/dist20211222-4.rar
  2. 78
      vue/src/views/pg-fis/basedate/m100Online/ScrapMB.vue
  3. 82
      vue/src/views/pg-fis/basedate/m100Online/ScrapZHB.vue
  4. 12
      vue/src/views/pg-fis/basedate/m100Online/index.vue
  5. 28
      vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

BIN
vue/dist20211222-4.rar

Binary file not shown.

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

@ -47,7 +47,6 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form-item> </el-form-item>
<!-- <el-form-item label="底盘号码"> <!-- <el-form-item label="底盘号码">
@ -94,7 +93,7 @@
@click="resetQuery('queryForm')" @click="resetQuery('queryForm')"
>重置</el-button >重置</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
type="danger" type="danger"
@ -565,6 +564,7 @@ export default {
// //
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
let myalertcount = [];
if (row) { if (row) {
// //
params.push(row.id); params.push(row.id);
@ -577,31 +577,59 @@ export default {
}); });
myalert = "选中项"; myalert = "选中项";
} }
this.$confirm("是否作废" + myalert + "?", "提示", { console.log("作废查询参数:" + JSON.stringify(params));
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts("/api/newjit/MenBanPackingList/get-all-del-List", params)
type: "warning", .then((response) => {
}) //alert(response.status);
.then(() => { const index = this.list.indexOf(row);
this.$axios if (response.status === false) {
.posts("/api/newjit/MenBanPackingList/scrap", params) this.$message({
.then((response) => { message: response.message,
const index = this.list.indexOf(row); type: "error",
this.$notify({ });
title: "成功", return;
message: "作废成功", } else {
type: "success", this.fileQuery.dataname = JSON.stringify(response);
duration: 2000, response.forEach((itemsss) => {
}); myalertcount.push(itemsss.billNum);
this.getList();
}); });
console.log(
"门板-调用Handlers/Handler1.ashx?report=menban传的值:" +
JSON.stringify(this.fileQuery.dataname)
);
this.$confirm(
"是否作废选中的" + response.length + "条记录?",
"提示",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(() => {
this.$axios
.posts("/api/newjit/MenBanPackingList/scrap", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "作废成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
}
}) })
.catch(() => { .catch(() => {});
this.$message({
type: "info",
message: "已取消操作",
});
});
}, },
fetchData(id) { fetchData(id) {
// //

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

@ -118,7 +118,7 @@
@click="resetQuery('queryForm')" @click="resetQuery('queryForm')"
>重置</el-button >重置</el-button
> >
<el-button <el-button
class="filter-item" class="filter-item"
type="danger" type="danger"
@ -454,7 +454,8 @@ export default {
ifr.setAttribute("name", "printPdf" + date); ifr.setAttribute("name", "printPdf" + date);
ifr.src = window.URL.createObjectURL(blob); ifr.src = window.URL.createObjectURL(blob);
document.body.appendChild(ifr); document.body.appendChild(ifr);
this.doPrint("printPdf" + date);alert("ifr.src:"+JSON.stringify(ifr.src)) this.doPrint("printPdf" + date);
alert("ifr.src:" + JSON.stringify(ifr.src));
window.URL.revokeObjectURL(ifr.src); // URL window.URL.revokeObjectURL(ifr.src); // URL
this.dialogFormVisible = false; this.dialogFormVisible = false;
}, },
@ -579,8 +580,9 @@ export default {
//- //-
handleDelete(row) { handleDelete(row) {
// //
var params = []; var params = [];
let myalert = ""; //使 let myalert = ""; //使
let myalertcount = [];
if (row) { if (row) {
// //
params.push(row.id); params.push(row.id);
@ -593,31 +595,59 @@ export default {
}); });
myalert = "选中项"; myalert = "选中项";
} }
this.$confirm("是否作废" + myalert + "?", "提示", { console.log("作废查询参数:" + JSON.stringify(params));
confirmButtonText: "确定", this.$axios
cancelButtonText: "取消", .posts("/api/newjit/ZhuHuBanPackingList/get-all-del-List", params)
type: "warning", .then((response) => {
}) //alert(response.status);
.then(() => { const index = this.list.indexOf(row);
this.$axios if (response.status === false) {
.posts("/api/newjit/ZhuHuBanPackingList/scrap", params) this.$message({
.then((response) => { message: response.message,
const index = this.list.indexOf(row); type: "error",
this.$notify({ });
title: "成功", return;
message: "作废成功", } else {
type: "success", this.fileQuery.dataname = JSON.stringify(response);
duration: 2000, response.forEach((itemsss) => {
}); myalertcount.push(itemsss.billNum);
this.getList();
}); });
console.log(
"门板-调用Handlers/Handler1.ashx?report=menban传的值:" +
JSON.stringify(this.fileQuery.dataname)
);
this.$confirm(
"是否作废选中的" + response.length + "条记录?",
"提示",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(() => {
this.$axios
.posts("/api/newjit/ZhuHuBanPackingList/scrap", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({
title: "成功",
message: "作废成功",
type: "success",
duration: 2000,
});
this.getList();
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消操作",
});
});
}
}) })
.catch(() => { .catch(() => {});
this.$message({
type: "info",
message: "已取消操作",
});
});
}, },
fetchData(id) { fetchData(id) {
// //

12
vue/src/views/pg-fis/basedate/m100Online/index.vue

@ -701,6 +701,12 @@ export default {
width: 120, width: 120,
}); });
tempsTabs.push({
label: "柱护板状态",
prop: "billStatus",
width: 120,
});
tempsTabs.push({ tempsTabs.push({
label: "备注", label: "备注",
prop: "remark", prop: "remark",
@ -867,7 +873,11 @@ export default {
if (this.listQuery.state == 1) { if (this.listQuery.state == 1) {
this.listQuery.billStatus = this.listQuery.state[0]; this.listQuery.billStatus = this.listQuery.state[0];
} }
if (this.listQuery.productType === 2) {
this.listQuery.ZHBBillStatus = 2;
} else {
this.listQuery.ZHBBillStatus = 0;
}
this.$axios this.$axios
.gets("/api/newjit/bill-m100/list", this.listQuery) .gets("/api/newjit/bill-m100/list", this.listQuery)
.then((response) => { .then((response) => {

28
vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

@ -437,7 +437,7 @@ export default {
], ],
}, },
billState: [ billState: [
{ id: 2, name: "已匹配" }, { id: 2, name: "未打印" },
{ id: 3, name: "已打印" }, { id: 3, name: "已打印" },
], ],
valueSelect: "", valueSelect: "",
@ -494,6 +494,7 @@ export default {
ProductLine: undefined, ProductLine: undefined,
BillStatus: undefined, BillStatus: undefined,
CanNotPrint: false, CanNotPrint: false,
ZHBBillStatus:undefined,
}, },
listExportQuery: { listExportQuery: {
erpAssemblyCode: undefined, erpAssemblyCode: undefined,
@ -631,6 +632,12 @@ export default {
width: 120, width: 120,
}); });
tempsTabs.push({
label: "柱护板状态",
prop: "billStatus",
width: 120,
});
tempsTabs.push({ tempsTabs.push({
label: "备注", label: "备注",
prop: "remark", prop: "remark",
@ -876,7 +883,7 @@ export default {
/** 格式化字段 */ /** 格式化字段 */
fieldFormatter(row, column) { fieldFormatter(row, column) {
if (column.property === "billStatus") { if (column.property === "billStatus") {
return { 1: "未匹配", 2: "已匹配", 3: "已打印" }[row[column.property]]; return { 1: "未匹配", 2: "未打印", 3: "已打印" }[row[column.property]];
} }
if (column.property == "onlineTime" || column.property == "receiveTime") { if (column.property == "onlineTime" || column.property == "receiveTime") {
var date = row[column.property]; var date = row[column.property];
@ -897,6 +904,16 @@ export default {
} else { } else {
this.listQueryList.SkipCount = (this.page - 1) * 15; this.listQueryList.SkipCount = (this.page - 1) * 15;
} }
if (this.listQuery.productType === 2) {
this.listQueryList.ZHBBillStatus = 2;
} else {
this.listQueryList.ZHBBillStatus = 0;
}
if (this.listQuery.productType === 2) {
this.listQuery.ZHBBillStatus = 2;
} else {
this.listQuery.ZHBBillStatus = 0;
}
this.listQueryList.BillStatus = 2; // this.listQueryList.BillStatus = 2; //
this.listQueryList.ProductLine = this.listQuery.productLine; //线 this.listQueryList.ProductLine = this.listQuery.productLine; //线
this.listQueryList.CanNotPrint = false; // this.listQueryList.CanNotPrint = false; //
@ -2019,6 +2036,13 @@ export default {
this.listQuery.state = []; this.listQuery.state = [];
this.isShowState = false; this.isShowState = false;
} }
if (this.listQuery.productType === 2) {
this.listQueryList.ZHBBillStatus = 2;
} else {
this.listQueryList.ZHBBillStatus = 0;
}
}, },
/*单据状态变更 */ /*单据状态变更 */
checkedListChange(index) { checkedListChange(index) {

Loading…
Cancel
Save