diff --git a/vue/src/router/index.js b/vue/src/router/index.js index 7548c9b6..3e231d38 100644 --- a/vue/src/router/index.js +++ b/vue/src/router/index.js @@ -64,10 +64,10 @@ export const constantRoutes = [ }, { path: '/login', - //component: () => import('@/views/login/index'), + component: () => import('@/views/login/index'), //component: () => import('@/views/pg-fis/basedate/partSwitch'), //?? one //component: () => import('@/views/pg-fis/basedate/assemblyCfg'), //?? one - component: () => import('@/views/pg-fis/basedate/m100Online/normalPritIndex.vue'), + // component: () => import('@/views/pg-fis/basedate/m100Online/normalPritIndex.vue'), hidden: true }, { diff --git a/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue b/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue index 4b72b6c9..e7d9f3ba 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/budaZHB.vue @@ -286,19 +286,17 @@ export default { mounted() { this.$nextTick(() => { var offsetHei = document.documentElement.clientHeight; - //console.log(offsetHei); let boxH = this.$refs.box.offsetHeight; this.tableHeight = offsetHei - boxH - 57 - 79; //57为footer高度,79为页面上部标签高度 //this.tableHeight = offsetHei -260 }); }, - created() { - this.getList(); - }, + // created() { + // this.getList(); + // }, watch: { customerInfosZHB: { handler(newVal) { - debugger console.log("柱护板-接收的父组件的值:" + JSON.stringify(newVal)); if (newVal == "" || newVal == "undefined") { //TODO @@ -306,6 +304,7 @@ export default { newVal.forEach((element) => { this.customerInfo.printType = 2; //2时补打 this.customerInfo.productLine = element.ProductLine; + this.customerInfo.productGroup = element.productGroup }); if (this.customerInfo.productLine != "") { this.getList(); @@ -453,7 +452,6 @@ export default { * @param {Object} data */ getList(data) { - //debugger this.listLoading = true; let inputParam = {}; if (data != undefined) { @@ -474,7 +472,7 @@ export default { if (this.customerInfo.productLine != "") { inputParam.productLine = this.customerInfo.productLine; } - + inputParam.Groupname = this.customerInfo.productGroup; console.log('取柱护板补打列表replenish-print-zhb-list方法输入参数:' + JSON.stringify(this.listQuery)); this.$axios .gets( @@ -495,7 +493,6 @@ export default { }, //补打-柱护板 handleReplenishPrint() { - debugger this.isEdit = true; if (this.multipleSelection == null || this.multipleSelection.length == 0) { this.$message({ @@ -510,6 +507,7 @@ export default { var params = { printType: 2, productLine: this.customerInfo.productLine, + Groupname: this.customerInfo.productGroup, beginVin: beginVin1, endVin: endVin1, m100IdList: [] @@ -558,18 +556,15 @@ export default { */ private_printZhuHuBan(input) { - debugger - //门板 + //门板 /api/newjit/bill-m100/save-zhuhuban-report //传递大众顺序号起止 this.$axios .posts( - "/api/newjit/bill-m100/save-zhuhuban-report", + "/api/newjit/bill-m100/save-group-zhuhuban-report", input ) .then((response) => { - console.log("保存柱护板报表"); - console.log(response); - console.log(response.status); + console.log("保存柱护板报表",response,response.status); if (response.status === false) { this.$message({ message: response.message, @@ -590,9 +585,7 @@ export default { loadInput ) .then((response) => { - console.log("加载柱护板报表"); - console.log(response); - console.log(response.status); + console.log("加载柱护板报表",response,response.status); if (response.status === false) { this.$message({ message: response.message, @@ -606,8 +599,7 @@ export default { response.item ); //this.fileQuery.dataname = ""; - console.log("打印json"); - console.log(this.fileQuery.dataname); + console.log("打印json",this.fileQuery.dataname); this.$axios .posts( "/Handlers/Handler1.ashx?report=zhuhuban", @@ -615,7 +607,6 @@ export default { ) .then((response) => { console.log("获取文件base64编码"); - console.log(response); this.formLoading = false; this.isDisable = false; this.printpdf(response); //打印我文件流 diff --git a/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue b/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue index 7c63f6b6..144d5c5d 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue @@ -27,13 +27,13 @@ /> - + + + + + + +
-
+
{{ content01 }}              {{ content05 }} @@ -174,6 +188,7 @@ - - - 确认 +
@@ -414,7 +427,7 @@ { var offsetHei = document.documentElement.clientHeight; - //console.log(offsetHei); let boxH = this.$refs.box.offsetHeight; - this.tableHeight = offsetHei - boxH - 67 - 79; //57为footer高度,79为页面上部标签高度 + this.tableHeight = offsetHei - boxH - 67 - 79 - 70; //57为footer高度,79为页面上部标签高度 //this.tableHeight = offsetHei -260 }); - + this.getPLChildGroupList() let timer = setInterval(() => { this.open(); }, 5000); @@ -742,12 +758,10 @@ export default { }, methods: { opens() { - this.getList(); }, open() { // let productLineList = []; - // //console.log("门版-主界面传过来的值:11111111111111111111111111111111111111111" ); // productLineList.forEach(element => { // element=this.listQuery.productLine; // }); @@ -764,9 +778,7 @@ export default { productLineListMain.productLineList.push(itm.productLineCode); }); - console.log( - "门版-主界面传过来的值:" + JSON.stringify(productLineListMain) - ); + console.log("门版-主界面传过来的值:" + JSON.stringify(productLineListMain)); this.$axios .posts( "/api/newjit/bill-m100/product-line-timeout-remind", @@ -780,9 +792,7 @@ export default { }); return; } else { - console.log( - "超时提醒-接口传过来的值:" + JSON.stringify(response.item) - ); + console.log("超时提醒-接口传过来的值:" + JSON.stringify(response.item)); if (response.item !== null) { response.item.forEach((JKITEM) => { @@ -794,9 +804,6 @@ export default { "分钟没收到报文\xa0\xa0\xa0\xa0"; if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) { //写提示信息 - console.log( - "222222222222222222222222222222222222222222222222" - ); this.$refs.sp01.style.color = "red"; this.$refs.sp01.style.fontWeight = "bold"; } else { @@ -811,9 +818,6 @@ export default { "分钟没收到报文\xa0\xa0\xa0\xa0"; if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) { //写提示信息 - console.log( - "222222222222222222222222222222222222222222222222" - ); this.$refs.sp05.style.color = "red"; this.$refs.sp05.style.fontWeight = "bold"; } else { @@ -828,9 +832,6 @@ export default { "分钟没收到报文\xa0\xa0\xa0\xa0"; if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) { //写提示信息 - console.log( - "222222222222222222222222222222222222222222222222" - ); this.$refs.sp07.style.color = "red"; this.$refs.sp07.style.fontWeight = "bold"; } else { @@ -846,9 +847,6 @@ export default { "分钟没收到报文"; if (JKITEM.timeoutMinutes >= JKITEM.configMinutes) { //写提示信息 - console.log( - "222222222222222222222222222222222222222222222222" - ); this.$refs.sp08.style.color = "red"; this.$refs.sp08.style.fontWeight = "bold"; } else { @@ -980,8 +978,6 @@ export default { //抽屉 handleDrawerOpen(param) { this.drawer = true; - //console.log(510) - //console.log(param) var parentId = param.assemblyID; //主键id this.customerInfos = [ { @@ -1000,7 +996,6 @@ export default { .then((response) => { this.form = response.item; //this.details = response.item.details; - //console.log(this.details); }); }, /** 导出功能 */ @@ -1080,7 +1075,6 @@ export default { handleAddDetails() { if (this.form.details === undefined) { this.form.details = []; - //console.log(679); } let obj = {}; obj.partCode = ""; @@ -1088,14 +1082,10 @@ export default { obj.partNum = ""; obj.isKey = false; obj.description = ""; - - //console.log(this.form.details); this.form.details.push(obj); - //console.log(688); }, handleDeleteDetails(index) { this.form.details.splice(index, 1); - //console.log(693); }, /** 格式化字段 */ @@ -1138,9 +1128,8 @@ export default { this.listQueryList.BillStatus = 2; //状态 this.listQueryList.ProductLine = this.listQuery.productLine; //产线 this.listQueryList.CanNotPrint = false; //不可打印 - console.log( - "日常打印M100查询条件:" + JSON.stringify(this.listQueryList) - ); + this.listQueryList.GroupNmae = this.listQuery.productGroup + console.log("日常打印M100查询条件:" + JSON.stringify(this.listQueryList)); //this.click(); this.$axios .gets("/api/newjit/bill-m100/list", this.listQueryList) @@ -1163,9 +1152,7 @@ export default { this.$axios .gets("/api/newjit/assembly-cfg-erp/" + this.customerInfo.parentId) .then((response) => { - //console.log(partCode) if (partCode !== "" && partCode !== undefined) { - //console.log(partCode) this.list = response.item.details.filter( (u) => u.partCode === partCode ); @@ -1207,6 +1194,9 @@ export default { ]; } }, + GroupselectChange(val){ + this.customerInfosZHB[0].productGroup = val + }, handleImportSAP() {}, handleFilter() { @@ -1256,6 +1246,7 @@ export default { endHostSN: undefined, beginVin: undefined, endVin: undefined, + Groupname: undefined, }), (this.hostCheckQuery.printType = 0); this.hostPrintQuery.printType = 0; @@ -1274,6 +1265,7 @@ export default { (this.printNumZHB = "24"), (this.hostSNQuery.productLine = this.listQuery.productLine); this.hostPrintQuery.productLine = this.listQuery.productLine; + this.hostPrintQuery.Groupname = this.listQuery.productGroup; //后端服务更改了 前端跟着更改成以下方式 if (this.listQuery.productType === 1) { //门板 @@ -1285,8 +1277,7 @@ export default { this.hostSNQuery ) .then((response) => { - console.log("获取hostsn大众顺序号起始"); - console.log(response.item); + console.log("获取hostsn大众顺序号起始",response.item); if (response.item !== null) { this.form.beginHostSN = parseInt(response.item); if (this.listQuery.productType === 1) { @@ -1315,7 +1306,6 @@ export default { ) .then((response) => { console.log("获取hostsn大众顺序号起始"); - console.log(response.item); if (response.item !== null) { this.form.beginHostSN = parseInt(response.item); if (this.listQuery.productType === 1) { @@ -1616,7 +1606,6 @@ export default { */ private_printMenBan() { - debugger this.$axios .posts( "/api/newjit/bill-m100/save-menban-report", @@ -1624,8 +1613,6 @@ export default { ) .then((response) => { console.log("保存门板报表"); - console.log(response); - console.log(response.status); if (response.status === false) { this.$message({ message: response.message, @@ -1642,8 +1629,6 @@ export default { ) .then((response) => { console.log("加载门板报表"); - console.log(response); - console.log(response.status); if (response.status === false) { this.$message({ message: response.message, @@ -1658,7 +1643,6 @@ export default { ); //this.fileQuery.dataname = ""; console.log("打印json"); - console.log(this.fileQuery.dataname); this.$axios .posts( "/Handlers/Handler1.ashx?report=menban", @@ -1666,7 +1650,6 @@ export default { ) .then((response) => { console.log("获取文件base64编码"); - console.log(response); this.formLoading = false; this.isDisable = false; this.printpdf(response); //打印我文件流 @@ -1687,18 +1670,16 @@ export default { */ private_printZhuHuBan(isSelAll = true) { - debugger - //门板 + console.log(1702,this.hostPrintQuery) + //门板 /api/newjit/bill-m100/save-zhuhuban-report //传递大众顺序号起止 this.$axios .posts( - "/api/newjit/bill-m100/save-zhuhuban-report", + "/api/newjit/bill-m100/save-group-zhuhuban-report", this.hostPrintQuery ) .then((response) => { console.log("保存柱护板报表"); - console.log(response); - console.log(response.status); if (response.status === false) { this.$message({ message: response.message, @@ -1719,8 +1700,6 @@ export default { ) .then((response) => { console.log("加载柱护板报表"); - console.log(response); - console.log(response.status); if (response.status === false) { this.$message({ message: response.message, @@ -1735,7 +1714,6 @@ export default { ); //this.fileQuery.dataname = ""; console.log("打印json"); - console.log(this.fileQuery.dataname); this.$axios .posts( "/Handlers/Handler1.ashx?report=zhuhuban", @@ -1743,7 +1721,6 @@ export default { ) .then((response) => { console.log("获取文件base64编码"); - console.log(response); this.formLoading = false; this.isDisable = false; this.printpdf(response); //打印我文件流 @@ -1762,14 +1739,13 @@ export default { //获取所有产线 getProductLine() { this.listPLQuery.UserId = this.userInfo.userId; - console.log( - "this.listPLQuery.UserIdthis.listPLQuery.UserIdthis.listPLQuery.UserIdthis.listPLQuery.UserIdthis.listPLQuery.UserId" + - this.listPLQuery.UserId - ); + // console.log( + // "this.listPLQuery.UserIdthis.listPLQuery.UserIdthis.listPLQuery.UserIdthis.listPLQuery.UserIdthis.listPLQuery.UserId" + + // this.listPLQuery.UserId + // ); this.$axios .gets("/api/newjit/product-line/list", this.listPLQuery) .then((response) => { - //console.log(response); this.PLList = response.item; this.PLChildList = this.PLList.filter( (u) => u.productType === parseInt(this.listQuery.productType) @@ -1787,21 +1763,19 @@ export default { ]; } this.getList(); - //console.log(this.PLList) }) .catch(() => {}); }, //产线类型变更 ptypeselectChange() { this.$forceUpdate(); - //console.log(this.listQuery.productType); this.listQuery.productLine = ""; + this.listQuery.productGroup = undefined this.PLChildList = this.PLList.filter( (u) => u.productType === parseInt(this.listQuery.productType) ).sort((a, b) => { return a.productLineCode - b.productLineCode; }); - //console.log(this.PLList) //变更打印按钮文字 if (this.listQuery.productType === 1) { this.$refs.btn1.$el.innerText = "打印门板发货排序单"; @@ -1898,12 +1872,23 @@ export default { return temp; }, + + // 获取PLChildGroupList + getPLChildGroupList(){ + this.$axios + .gets( + "/api/newjit/print-template-configuration/list", + ) + .then((response) => { + if (response.item !== null) { + this.PLChildGroupList= response.item; + } + }); + } }, }; - -