From c50847e2e05ec5ed3f47487b09d6c1de0d5e995e Mon Sep 17 00:00:00 2001 From: "yu.wu" Date: Fri, 19 Nov 2021 09:08:30 +0800 Subject: [PATCH] =?UTF-8?q?fis=E9=A1=B5=E9=9D=A2=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pg-fis/basedate/assemblyCfg/index.vue | 50 ++++++- .../views/pg-fis/basedate/m100BIll/index.vue | 137 +++++++++++++----- .../pg-fis/basedate/m100Online/index.vue | 26 ++-- .../pg-fis/basedate/productLine/index.vue | 89 +++++++----- .../pg-fis/basedate/r100Online/index.vue | 26 ++-- 5 files changed, 224 insertions(+), 104 deletions(-) diff --git a/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue b/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue index daa791cc..038670b9 100644 --- a/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue +++ b/vue/src/views/pg-fis/basedate/assemblyCfg/index.vue @@ -41,8 +41,11 @@ style="margin-right: 15px" @change="valueselectChange" > - - + @@ -221,7 +224,7 @@ - + @@ -242,11 +245,17 @@ - + > + + @@ -428,6 +437,9 @@ export default { erpAssemblyCode: undefined, erpAssemblyName: undefined, }, + vehicleModelQuery:{ + dicTypeName:"派格车型", + }, form:{ details:[] }, @@ -444,7 +456,8 @@ export default { dialogFormVisible: false, tableHeight: document.documentElement.clientHeight - 280, detailTableHeight:250, - details:[] //修改子表数据源 + details:[], //修改子表数据源 + vehicleModelList:[],//车型list }; }, mounted() { @@ -458,6 +471,7 @@ export default { }); }, created() { + this.getvehicleModel(); this.getList(); }, computed: { @@ -548,6 +562,7 @@ export default { this.isEdit = false; this.form = {}; this.details = []; + //this.getvehicleModel(); this.dialogFormVisible = true; }, /** 修改 */ @@ -555,6 +570,7 @@ export default { this.formTitle = "修改"; this.isEdit = true; this.details = []; + //this.getvehicleModel(); if (this.multipleSelection.length != 1) { this.$message({ message: "编辑必须选择单行", @@ -661,7 +677,9 @@ export default { this.listQuery.ErpAssemblyName = ""; this.listQuery.ErpAssemblyCode = ""; this.listQuery.vehicleModelCode = ""; + this.getvehicleModel(); this.handleQuery(); + }, /** 搜索按钮操作 */ handleQuery() { @@ -690,7 +708,9 @@ export default { } }, + /*添加明细空行*/ handleAddDetails() { + this.$forceUpdate(); if (this.form.details === undefined) { this.form.details = []; //console.log(679); @@ -815,6 +835,20 @@ export default { this.$refs.multipleTable.clearSelection(); this.$refs.multipleTable.toggleRowSelection(row); }, + getvehicleModel() + { + this.$axios + .gets( + "/api/newjit/dic/list",this.vehicleModelQuery + ) + .then((response) => { + //console.log(response); + this.vehicleModelList = response.item; + //console.log() + }) + .catch(() => { + }); + }, }, }; diff --git a/vue/src/views/pg-fis/basedate/m100BIll/index.vue b/vue/src/views/pg-fis/basedate/m100BIll/index.vue index c47eaffd..6121f3e8 100644 --- a/vue/src/views/pg-fis/basedate/m100BIll/index.vue +++ b/vue/src/views/pg-fis/basedate/m100BIll/index.vue @@ -19,9 +19,11 @@ style="margin-right: 15px" @change="ptypeselectChange" > - - - + @@ -34,10 +36,10 @@ @change="valueselectChange" > + :value="item.id"/> @@ -269,10 +271,10 @@ > - + @@ -282,19 +284,25 @@ - + + > + + - + @@ -303,10 +311,10 @@ - + @@ -341,7 +349,7 @@ element-loading-text="拼命加载中..." element-loading-spinner="el-icon-loading" class="cr-table" - :data="form.details" + :data="form.leftdetails" :height="detailTableHeight" :cell-style="cellStyle" :header-cell-style="headerRowStyle" @@ -353,15 +361,15 @@ @row-click="handleRowClick" > - - + + - - + +