Browse Source

10点啦晚上

branch_ccpg_220107
44673626 3 years ago
parent
commit
0dbc3f5448
  1. 10
      vue/src/router/index.js
  2. 12
      vue/src/views/pg-fis/basedate/m100Online/detailMB.vue
  3. 43
      vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue
  4. 117
      vue/src/views/pg-fis/basedate/m100Online/index.vue

10
vue/src/router/index.js

@ -168,13 +168,13 @@ export const asyncRoutes = [
/** when your routing map is too long, you can split it into small modules **/
managerRouter,//系统首页
personRouter,//系统管理
basedataRouter,//基础数据维护
vwFisDataRouter,//结算与开票数据导入
billdataRouter,//销售结算与开票报表
//basedataRouter,//基础数据维护
//vwFisDataRouter,//结算与开票数据导入
//billdataRouter,//销售结算与开票报表
//businessdataRouter,
wheeldataRouter,//大众看板和备件
//wheeldataRouter,//大众看板和备件
pgfis,//派格fis
JobTimeDataRouter,//后台作业监控
//JobTimeDataRouter,//后台作业监控
// 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true }

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

@ -378,7 +378,7 @@ export default {
watch: {
customerInfosMB: {
handler(newVal) {
//alert(JSON.stringify(newVal))
console.log("门板-接收的父组件的值:"+JSON.stringify(newVal))
if (newVal == "" || newVal == "undefined") {
//TODO
} else {
@ -535,10 +535,10 @@ export default {
this.listQuery.ProductLine = this.customerInfo.productLine;
}
alert(JSON.stringify(this.listQuery));
console.log(JSON.stringify(this.listQuery));
this.$axios
.posts(
"/api/newjit1/MenBanPackingList/MenBanPackingList-List",
"/api/newjit/MenBanPackingList/MenBanPackingList-List",
this.listQuery
)
.then((response) => {
@ -577,7 +577,7 @@ export default {
this.$axios
.posts("/api/newjit/bill-m100/print-menban-packing-list", params)
.then((response) => {
alert(response.status);
//alert(response.status);
const index = this.list.indexOf(row);
if (response.status === false) {
this.$message({
@ -587,6 +587,7 @@ export default {
return;
} else {
let dataname = JSON.stringify(response.item);
console.log("门板-调用Handlers/Handler1.ashx?report=menban传的值:"+dataname)
this.$axios
.posts(
"/Handlers/Handler1.ashx?report=menban",
@ -617,7 +618,6 @@ export default {
});
myalert = "选中项";
}
alert(params);
this.$confirm("是否作废" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -625,7 +625,7 @@ export default {
})
.then(() => {
this.$axios
.posts("/api/newjit1/MenBanPackingList/delete", params)
.posts("/api/newjit/MenBanPackingList/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({

43
vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue

@ -169,32 +169,12 @@
label="大众顺序号"
></el-table-column>
<el-table-column
prop="vehicleModel_DoorPlankCode"
label="车型门板代码"
prop="partCode"
label="柱护板零件号"
></el-table-column>
<el-table-column
prop="topBoxPositionNum"
label="上箱位号"
></el-table-column>
<el-table-column
prop="topSAPMaterialNum"
label="上箱位 SAP物料号"
></el-table-column>
<el-table-column
prop="topMaterialDescription"
label="上箱位 物料描述"
></el-table-column>
<el-table-column
prop="belowBoxPositionNum"
label="下箱位号"
></el-table-column>
<el-table-column
prop="belowSAPMaterialNum"
label="下箱位 SAP物料号"
></el-table-column>
<el-table-column
prop="belowMaterialDescription "
label="下箱位 物料描述"
prop="partCode2"
label="柱护板零件号2"
></el-table-column>
</el-table>
</template>
@ -378,14 +358,15 @@ export default {
watch: {
customerInfosZHB: {
handler(newVal) {
//alert(JSON.stringify(newVal))
console.log("柱护板-接收的父组件的值:"+JSON.stringify(newVal))
if (newVal == "" || newVal == "undefined") {
//TODO
} else {
newVal.forEach((element) => {
this.customerInfo.printType = element.PrintType;
this.customerInfo.productLine = element.ProductLine;
});alert(JSON.stringify(this.customerInfo))
});
console.log("柱护板监控传值:"+JSON.stringify(this.customerInfo))
if (
this.customerInfo.productLine != ""
) {
@ -535,10 +516,10 @@ export default {
this.listQuery.ProductLine = this.customerInfo.productLine;
}
alert(JSON.stringify(this.listQuery));
console.log("柱护板-列表查询条件:"+JSON.stringify(this.listQuery));
this.$axios
.posts(
"/api/newjit1/ZhuHuBanPackingList/ZhuHuBanPackingList-List",
"/api/newjit/ZhuHuBanPackingList/ZhuHuBanPackingList-List",
this.listQuery
)
.then((response) => {
@ -577,7 +558,7 @@ export default {
this.$axios
.posts("/api/newjit/bill-m100/print-zhuhuban-packing-list", params)
.then((response) => {
alert(response.status);
console.log("柱护版-打印返回的状态:"+response.status);
const index = this.list.indexOf(row);
if (response.status === false) {
this.$message({
@ -587,6 +568,7 @@ export default {
return;
} else {
let dataname = JSON.stringify(response.item);
console.log("柱板-调用Handlers/Handler1.ashx?report=menban传的值:"+dataname)
this.$axios
.posts(
"/Handlers/Handler1.ashx?report=menban",
@ -617,7 +599,6 @@ export default {
});
myalert = "选中项";
}
alert(params);
this.$confirm("是否作废" + myalert + "?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -625,7 +606,7 @@ export default {
})
.then(() => {
this.$axios
.posts("/api/newjit1/ZhuHuBanPackingList/delete", params)
.posts("/api/newjit/ZhuHuBanPackingList/delete", params)
.then((response) => {
const index = this.list.indexOf(row);
this.$notify({

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

@ -255,8 +255,7 @@
direction="rtl"
size="65%"
>
<MBDetail
v-bind:customerInfosMB="customerInfosMB"></MBDetail>
<MBDetail v-bind:customerInfosMB="customerInfosMB"></MBDetail>
</el-drawer>
<!--柱护板重打和作废-->
<el-drawer
@ -265,8 +264,7 @@
direction="rtl"
size="65%"
>
<ZHBDetail
v-bind:customerInfosZHB="customerInfosZHB"></ZHBDetail>
<ZHBDetail v-bind:customerInfosZHB="customerInfosZHB"></ZHBDetail>
</el-drawer>
<div class="l-table" style="margin-top: -30px">
@ -900,11 +898,10 @@ export default {
];
}
if (this.listQuery.productType === 2) {
alert(val);
//线
this.customerInfosZHB = [
{
PrintType: 2,
PrintType: 1,
ProductLine: val,
},
];
@ -975,29 +972,90 @@ export default {
}
this.hostSNQuery.productLine = this.listQuery.productLine;
this.hostPrintQuery.productLine = this.listQuery.productLine;
this.$axios
.gets("/api/newjit/bill-m100/get-print-start-hostsn", this.hostSNQuery)
.then((response) => {
console.log("获取hostsn大众顺序号起始");
console.log(response.item);
if (response.item !== null) {
this.form.beginHostSN = parseInt(response.item);
if (this.listQuery.productType === 1) {
//
this.form.endHostSN = parseInt(response.item) + 11;
} else if (this.listQuery.productType === 2) {
//
this.form.endHostSN = parseInt(response.item) + 23;
//
if (this.listQuery.productType === 1) {
//
this.hostSNQuery.isZhuHuBan = "0";
console.log("门板hostsn2参数" + JSON.stringify(this.hostSNQuery));
this.$axios
.gets(
"/api/newjit/bill-m100/get-print-start-hostsn2",
this.hostSNQuery
)
.then((response) => {
console.log("获取hostsn大众顺序号起始");
console.log(response.item);
if (response.item !== null) {
this.form.beginHostSN = parseInt(response.item);
if (this.listQuery.productType === 1) {
//
this.form.endHostSN = parseInt(response.item) + 11;
} else if (this.listQuery.productType === 2) {
//
this.form.endHostSN = parseInt(response.item) + 23;
}
} else {
this.$message({
message: "获取不到大众顺序号",
type: "warning",
});
return;
}
} else {
this.$message({
message: "获取不到大众顺序号",
type: "warning",
});
return;
}
})
.catch(() => {});
});
} else if (this.listQuery.productType === 2) {
//
this.hostSNQuery.isZhuHuBan = "1";
console.log("柱护板hostsn2参数" + JSON.stringify(this.hostSNQuery));
this.$axios
.gets(
"/api/newjit/bill-m100/get-print-start-hostsn2",
this.hostSNQuery
)
.then((response) => {
console.log("获取hostsn大众顺序号起始");
console.log(response.item);
if (response.item !== null) {
this.form.beginHostSN = parseInt(response.item);
if (this.listQuery.productType === 1) {
//
this.form.endHostSN = parseInt(response.item) + 11;
} else if (this.listQuery.productType === 2) {
//
this.form.endHostSN = parseInt(response.item) + 23;
}
} else {
this.$message({
message: "获取不到大众顺序号",
type: "warning",
});
return;
}
});
}
// this.$axios
// .gets("/api/newjit/bill-m100/get-print-start-hostsn", this.hostSNQuery)
// .then((response) => {
// console.log("hostsn");
// console.log(response.item);
// if (response.item !== null) {
// this.form.beginHostSN = parseInt(response.item);
// if (this.listQuery.productType === 1) {
// //
// this.form.endHostSN = parseInt(response.item) + 11;
// } else if (this.listQuery.productType === 2) {
// //
// this.form.endHostSN = parseInt(response.item) + 23;
// }
// } else {
// this.$message({
// message: "",
// type: "warning",
// });
// return;
// }
// })
// .catch(() => {});
this.formTitle = "打印";
this.dialogFormVisible = true;
this.form = {
@ -1328,7 +1386,7 @@ export default {
this.hostPrintQuery
)
.then((response) => {
console.log("重新或补打打印门板装箱单");
console.log("重新或补打打印门板装箱单"+JSON.stringify(this.hostPrintQuery));
console.log(response);
if (response.status === false) {
this.$message({
@ -1517,6 +1575,7 @@ export default {
document.body.appendChild(ifr);
this.doPrint("printPdf" + date);
window.URL.revokeObjectURL(ifr.src); // URL
alert()
this.dialogFormVisible = false;
},
httpPost(URL, PARAMS) {

Loading…
Cancel
Save