From 90935f4e0f172911f6bf96b2a8ddc9e887b0b740 Mon Sep 17 00:00:00 2001 From: "yu.wu" Date: Fri, 3 Dec 2021 16:48:03 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fis=E4=BA=A7=E7=BA=BF=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=BA=E5=91=98=E6=9D=83=E9=99=90=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/router/modules/fis.js | 2 +- .../views/pg-fis/basedate/m100BIll/index.vue | 24 ++++++++++++------- .../pg-fis/basedate/m100Online/index.vue | 18 ++++++++------ .../pg-fis/basedate/r100Online/index.vue | 18 ++++++++------ .../pg-fis/basedate/weldingAssembly/index.vue | 20 +++++++++------- 5 files changed, 51 insertions(+), 31 deletions(-) diff --git a/vue/src/router/modules/fis.js b/vue/src/router/modules/fis.js index 90e60076..81cdba28 100644 --- a/vue/src/router/modules/fis.js +++ b/vue/src/router/modules/fis.js @@ -79,7 +79,7 @@ const pgfis = { { path: '/pg-R100Online', component: () => import('@/views/pg-fis/basedate/r100Online'), - name: 'pg-M100Online',//命名路由 + name: 'pg-R100Online',//命名路由 meta: { title: 'R100上线信息', roles: ['SettleAccount.Reports'], diff --git a/vue/src/views/pg-fis/basedate/m100BIll/index.vue b/vue/src/views/pg-fis/basedate/m100BIll/index.vue index fbe908a5..862aff43 100644 --- a/vue/src/views/pg-fis/basedate/m100BIll/index.vue +++ b/vue/src/views/pg-fis/basedate/m100BIll/index.vue @@ -39,7 +39,7 @@ v-for="item in PLChildList" :key="item.id" :label="item.productLineName" - :value="item.id"/> + :value="item.productLineCode"/> @@ -568,6 +568,7 @@ import CRMTableHead from "../../components/CRMTableHead"; import importExcel from "@/components/ImportExcel-vw"; import Lockr from "lockr"; import moment from "moment"; +import { mapGetters } from 'vuex'; import Detail from "./detail.vue"; import { downloadFile } from "@/utils/crmindex.js"; @@ -741,8 +742,9 @@ export default { }, created() { //this.getKNRList(); - this.getList(); this.getProductLine(); + //this.getList(); + //console.log(this.userInfo); }, computed: { getDefaultField() { @@ -753,7 +755,7 @@ export default { tempsTabs.push({ label: "KNR", prop: "knr", - width: 120, + width: 130, }); // tempsTabs.push({ // label: "底盘号", @@ -792,6 +794,7 @@ export default { }); return tempsTabs; }, + ...mapGetters(['userInfo'])//获取当前用户信息 }, methods: { //抽屉 @@ -812,9 +815,10 @@ export default { //获取当前时间并打印 var _this = this; let yy = new Date().getFullYear(); - let mm = new Date().getMonth()+1; - let dd = new Date().getDate(); - let hh = new Date().getHours()<10 ? '0'+new Date().getHours() : new Date().getHours();; + let month = new Date().getMonth()+1; + let mm = month<10 ? '0'+month : month; + let dd = new Date().getDate()<10 ? '0'+new Date().getDate() : new Date().getDate(); + let hh = new Date().getHours()<10 ? '0'+new Date().getHours() : new Date().getHours(); let mf = new Date().getMinutes()<10 ? '0'+new Date().getMinutes() : new Date().getMinutes(); let ss = new Date().getSeconds()<10 ? '0'+new Date().getSeconds() : new Date().getSeconds(); _this.gettime = yy+'-'+mm+'-'+dd+' '+hh+':'+mf+':'+ss; @@ -1114,7 +1118,7 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.listQuery.SkipCount = 1; - this.getList(); + //this.getList(); }, selectValue(params) { //版本下拉选择 @@ -1308,7 +1312,7 @@ export default { this.$forceUpdate(); }, - valueselectChange(){}, + valueselectChange(){this.$forceUpdate();}, handleImportSAP(){}, handleFilter() { @@ -1403,6 +1407,7 @@ export default { //获取所有产线 getProductLine() { + this.listPLQuery.UserId = this.userInfo.userId; this.$axios .gets( "/api/newjit/product-line/list",this.listPLQuery @@ -1411,6 +1416,9 @@ export default { //console.log(response); this.PLList = response.item; this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); + this.listQuery.productLine = this.PLChildList[0].productLineCode; + this.getList(); + //console.log(this.PLList); }) .catch(() => { diff --git a/vue/src/views/pg-fis/basedate/m100Online/index.vue b/vue/src/views/pg-fis/basedate/m100Online/index.vue index 9f0fd026..d4d02ae9 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/index.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/index.vue @@ -385,6 +385,7 @@ import permission from "@/directive/permission/index.js"; import CRMTableHead from "../../components/CRMTableHead"; import importExcel from "@/components/ImportExcel-vw"; import Lockr from "lockr"; +import { mapGetters } from 'vuex'; import moment from "moment"; import Detail from "./detail.vue"; import { downloadFile } from "@/utils/crmindex.js"; @@ -488,7 +489,7 @@ export default { }, listPLQuery:{ BillType: 2, - //UserId: "00000000-0000-0000-0000-000000000000", + //UserId: this.userinfo.UserId, }, hostSNQuery:{ productLine:undefined, @@ -562,7 +563,6 @@ export default { this.listQuery.state.push(element.id); } }); - this.getList(); this.getProductLine(); }, computed: { @@ -623,13 +623,14 @@ export default { }); return tempsTabs; }, + ...mapGetters(['userInfo'])//获取当前用户信息 }, methods: { //抽屉 handleDrawerOpen(param) { this.drawer = true; - console.log(510) - console.log(param) + //console.log(510) + //console.log(param) var parentId = param.assemblyID; //主键id this.customerInfos = [ { @@ -700,7 +701,7 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.listQuery.SkipCount = 1; - this.getList(); + //this.getList(); }, selectValue(params) { //版本下拉选择 @@ -736,7 +737,7 @@ export default { obj.isKey = false; obj.description = ""; - console.log(this.form.details); + //console.log(this.form.details); this.form.details.push(obj); //console.log(688); }, @@ -801,7 +802,7 @@ export default { this.$axios .gets("/api/newjit/assembly-cfg-erp/" + this.customerInfo.parentId) .then((response) => { - console.log(partCode) + //console.log(partCode) if(partCode !== "" && partCode !== undefined) { //console.log(partCode) @@ -1351,6 +1352,7 @@ export default { //获取所有产线 getProductLine() { + this.listPLQuery.UserId = this.userInfo.userId; this.$axios .gets( "/api/newjit/product-line/list",this.listPLQuery @@ -1359,6 +1361,8 @@ export default { //console.log(response); this.PLList = response.item; this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); + this.listQuery.productLine = this.PLChildList[0].productLineCode; + this.getList(); //console.log(this.PLList) }) .catch(() => { diff --git a/vue/src/views/pg-fis/basedate/r100Online/index.vue b/vue/src/views/pg-fis/basedate/r100Online/index.vue index 468f9cde..4071dd13 100644 --- a/vue/src/views/pg-fis/basedate/r100Online/index.vue +++ b/vue/src/views/pg-fis/basedate/r100Online/index.vue @@ -277,6 +277,7 @@ import permission from "@/directive/permission/index.js"; import CRMTableHead from "../../components/CRMTableHead"; import importExcel from "@/components/ImportExcel-vw"; import Lockr from "lockr"; +import { mapGetters } from 'vuex'; import moment from "moment"; import Detail from "./detail.vue"; import { downloadFile } from "@/utils/crmindex.js"; @@ -295,7 +296,7 @@ const projectTypeKeyValue = bomUnit.reduce((acc, cur) => { }, {}); export default { - name: "M100Online", + name: "R100Online", components: { Pagination, CRMTableHead, importExcel , Detail}, directives: { permission }, filters: { @@ -318,7 +319,7 @@ export default { } }; return { - crmType: "M100Online", + crmType: "R100Online", rules: { erpAssemblyName: [ { required: true, message: "必须输入!", trigger: "blur" }, @@ -416,7 +417,6 @@ export default { this.listQuery.state.push(element.id); } }); - this.getList(); this.getProductLine(); }, computed: { @@ -481,6 +481,7 @@ export default { }); return tempsTabs; }, + ...mapGetters(['userInfo'])//获取当前用户信息 }, methods: { //抽屉 @@ -546,7 +547,7 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.listQuery.SkipCount = 1; - this.getList(); + //this.getList(); }, selectValue(params) { //版本下拉选择 @@ -582,7 +583,7 @@ export default { obj.isKey = false; obj.description = ""; - console.log(this.form.details); + //console.log(this.form.details); this.form.details.push(obj); //console.log(688); }, @@ -647,7 +648,7 @@ export default { this.$axios .gets("/api/newjit/assembly-cfg-erp/" + this.customerInfo.parentId) .then((response) => { - console.log(partCode) + //console.log(partCode) if(partCode !== "" && partCode !== undefined) { //console.log(partCode) @@ -669,7 +670,7 @@ export default { }); }, - valueselectChange(){}, + valueselectChange(){this.$forceUpdate();}, handleImportSAP(){}, handleFilter() { @@ -713,6 +714,7 @@ export default { //获取所有产线 getProductLine() { + this.listPLQuery.UserId = this.userInfo.userId; this.$axios .gets( "/api/newjit/product-line/list",this.listPLQuery @@ -721,6 +723,8 @@ export default { //console.log(response); this.PLList = response.item; this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); + this.listQuery.productLine = this.PLChildList[0].productLineCode; + this.getList(); //console.log(this.PLList) }) .catch(() => { diff --git a/vue/src/views/pg-fis/basedate/weldingAssembly/index.vue b/vue/src/views/pg-fis/basedate/weldingAssembly/index.vue index 1252aaba..b63d4594 100644 --- a/vue/src/views/pg-fis/basedate/weldingAssembly/index.vue +++ b/vue/src/views/pg-fis/basedate/weldingAssembly/index.vue @@ -39,7 +39,7 @@ v-for="item in PLChildList" :key="item.id" :label="item.productLineName" - :value="item.id"/> + :value="item.productLineCode"/> @@ -293,6 +293,7 @@ import permission from "@/directive/permission/index.js"; import CRMTableHead from "../../components/CRMTableHead"; import importExcel from "@/components/ImportExcel-vw"; import Lockr from "lockr"; +import { mapGetters } from 'vuex'; import moment from "moment"; import { downloadFile } from "@/utils/crmindex.js"; @@ -433,7 +434,6 @@ export default { this.listQuery.cstate.push(element.id); }); this.getProductLine(); - this.getList(); }, computed: { getDefaultField() { @@ -512,6 +512,7 @@ export default { }); return tempsTabs; }, + ...mapGetters(['userInfo'])//获取当前用户信息 }, methods: { //抽屉 @@ -630,7 +631,7 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.listQuery.SkipCount = 1; - this.getList(); + //this.getList(); }, selectValue(params) { //版本下拉选择 @@ -666,7 +667,7 @@ export default { obj.isKey = false; obj.description = ""; - console.log(this.form.details); + //console.log(this.form.details); this.form.details.push(obj); //console.log(688); }, @@ -712,9 +713,9 @@ export default { if(this.listQuery.cstate!== undefined && this.listQuery.cstate.length > 0) { - console.log(this.listQuery.cstate) + //console.log(this.listQuery.cstate) this.listQuery.cstate.forEach(element => { - console.log(element) + //console.log(element) if(element === 0) { this.listQuery.HasR100NotHasM100 = true; @@ -748,7 +749,7 @@ export default { this.$axios .gets("/api/newjit/assembly-cfg-erp/" + this.customerInfo.parentId) .then((response) => { - console.log(partCode) + //console.log(partCode) if(partCode !== "" && partCode !== undefined) { //console.log(partCode) @@ -770,7 +771,7 @@ export default { }); }, - valueselectChange(){}, + valueselectChange(){this.$forceUpdate();}, handleImportSAP(){}, handleFilter() { @@ -814,6 +815,7 @@ export default { //获取所有产线 getProductLine() { + this.listPLQuery.UserId = this.userInfo.userId; this.$axios .gets( "/api/newjit/product-line/list",this.listPLQuery @@ -822,6 +824,8 @@ export default { //console.log(response); this.PLList = response.item; this.PLChildList = this.PLList.filter(u => u.productType === parseInt(this.listQuery.productType)).sort((a,b)=>{return a.productLineCode-b.productLineCode}); + this.listQuery.productLine = this.PLChildList[0].productLineCode; + this.getList(); }) .catch(() => { }); From 77381abd8e64131b1233b7f815ec7cc5726da9e1 Mon Sep 17 00:00:00 2001 From: "yu.wu" Date: Mon, 6 Dec 2021 09:48:43 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fis=E9=A1=B5=E9=9D=A2bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/pg-fis/basedate/m100BIll/index.vue | 5 +++++ .../pg-fis/basedate/m100Online/index.vue | 12 +++++++++-- .../pg-fis/basedate/unknownAssembly/index.vue | 20 +++++++++++-------- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/vue/src/views/pg-fis/basedate/m100BIll/index.vue b/vue/src/views/pg-fis/basedate/m100BIll/index.vue index 862aff43..bf9606fe 100644 --- a/vue/src/views/pg-fis/basedate/m100BIll/index.vue +++ b/vue/src/views/pg-fis/basedate/m100BIll/index.vue @@ -792,6 +792,11 @@ export default { prop: "fileName", width: 120, }); + tempsTabs.push({ + label: "产线", + prop: "productLine", + width: 120, + }); return tempsTabs; }, ...mapGetters(['userInfo'])//获取当前用户信息 diff --git a/vue/src/views/pg-fis/basedate/m100Online/index.vue b/vue/src/views/pg-fis/basedate/m100Online/index.vue index d4d02ae9..ba86c163 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/index.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/index.vue @@ -165,7 +165,7 @@ end-placeholder="结束日期" > - + {{ item.name }} @@ -542,6 +542,7 @@ export default { productTypeList:[{id:1,name:'门板'},{id:2,name:'柱护板'}], isShowHostSN : false, isShowVin : false, + isShowState:true, }; @@ -824,7 +825,10 @@ export default { }); }, - valueselectChange(){this.$forceUpdate();}, + valueselectChange(){ + this.$forceUpdate(); + + }, handleImportSAP(){}, handleFilter() { @@ -1382,12 +1386,16 @@ export default { this.$refs.btn1.$el.innerText = "打印门板发货排序单"; this.$refs.btn2.$el.innerText = "重新打印门板发货排序单"; this.$refs.btn3.$el.innerText = "补打门板发货排序单"; + this.listQuery.state.push(this.billState[0].id); + this.isShowState = true; } else if(this.listQuery.productType === 2) { this.$refs.btn1.$el.innerText = "打印柱护板发货排序单"; this.$refs.btn2.$el.innerText = "重新打印柱护板发货排序单"; this.$refs.btn3.$el.innerText = "补打柱护板发货排序单"; + this.listQuery.state = []; + this.isShowState = false; } }, diff --git a/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue b/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue index 9ee991a2..73a810d9 100644 --- a/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue +++ b/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue @@ -1,6 +1,7 @@ @@ -562,11 +564,12 @@ export default { }; }, mounted() { - var self = this; - window.onresize = function () { - var offsetHei = document.documentElement.clientHeight; - self.tableHeight = offsetHei - 220; - }; + 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为页面上部标签高度 + }); }, created() { this.getvehicleModel(); @@ -741,7 +744,7 @@ export default { handleDownload() { this.listLoading = true; this.$axios - .gets("/api/newjit/unknown-assembly/export", this.listQuery) + .posts("/api/newjit/unknown-assembly/export", this.listQuery) .then((res) => { let filename = res; this.$axios @@ -856,6 +859,7 @@ export default { .gets("/api/newjit/unknown-assembly/list", this.listQuery) .then((response) => { this.list = response.items; + this.totalCount = response.totalCount; setTimeout(() => { //大数据量加载时 this.listLoading = false; @@ -1026,7 +1030,7 @@ export default { .gets( "/api/newjit/unknown-assembly/"+this.listUnknownAssemblyQuery.billId ).then((response) => { - this.data2 = response.item.unknownAssemblyParts; + this.data2 = response.item.unknownAssemblyParts.filter(u => u.partType === "1" || u.partType === null); setTimeout(() => { //大数据量加载时 this.listLoading = false; From 43e85ddfa84e3f2298567d94d1c92437d588ef78 Mon Sep 17 00:00:00 2001 From: "yu.wu" Date: Mon, 6 Dec 2021 10:00:29 +0800 Subject: [PATCH 3/4] =?UTF-8?q?fis=E6=9C=AA=E7=9F=A5=E6=80=BB=E6=88=90?= =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/pg-fis/basedate/unknownAssembly/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue b/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue index 73a810d9..cb80ddf9 100644 --- a/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue +++ b/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue @@ -408,6 +408,7 @@ import CRMTableHead from "../../components/CRMTableHead"; import importExcel from "@/components/ImportExcel-vw"; import moment from "moment"; import Detail from "./detail.vue"; +import { downloadFile } from "@/utils/crmindex.js"; //组件计量单位 const bomUnit = [ @@ -746,7 +747,7 @@ export default { this.$axios .posts("/api/newjit/unknown-assembly/export", this.listQuery) .then((res) => { - let filename = res; + let filename = res.item; this.$axios .BolbGets("/api/newjit/exclude-part-cfg/download/" + filename) .then((response) => { From da626075829336f347c41f95c7be6d7286397933 Mon Sep 17 00:00:00 2001 From: "yu.wu" Date: Mon, 6 Dec 2021 10:45:56 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=9C=AA=E7=9F=A5=E6=80=BB=E6=88=90?= =?UTF-8?q?=E4=B8=B2=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/pg-fis/basedate/unknownAssembly/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue b/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue index cb80ddf9..9993db2b 100644 --- a/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue +++ b/vue/src/views/pg-fis/basedate/unknownAssembly/index.vue @@ -195,7 +195,6 @@ prop="vin" sortable align="center" - fixed width="180px" >