diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue index 3dff2858..46b1ae1a 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseAdd.vue @@ -42,7 +42,7 @@ - + + + + 供货单位: + + + + + + + + + @@ -72,9 +89,9 @@ - + - 仓库名称: + 入库仓库: @@ -115,8 +132,8 @@ 商品信息
添加货物
- + :row-style="{height: '40px'}" class="TableInput"> + - - + @@ -153,47 +160,22 @@ - - - - - - - + - - - - - - - - + - + - + @@ -528,5 +510,8 @@ .el-input__inner { height: 36px; } + .TableInput .el-input /deep/ .el-input__inner { + text-align: center; + } diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue index 39b1a700..317884a7 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/add/purchaseShow.vue @@ -37,15 +37,25 @@
- + + + + 供货单位: + + + + + {{purchaseForm.custName}} + @@ -60,7 +70,7 @@ - + - 仓库名称: + 入库仓库: @@ -91,33 +101,19 @@ - + - + - + - + - + - + - - - - - - - - - - - - - - - + @@ -137,22 +133,29 @@ purchaseId: '', product: '', barCode: '', + custId:'', + custName:'', purchaseDate:'', purchaseNo:'', supplier: '', storehouseName:'', - supplierName:'', + storehouseId:"", + supplierName:'', + supplierId:'', count: '', storehouse: '', status: '', products:[] }, activeNames: ['1'], + custList:[] } }, mounted() { }, - created() {}, + created() { + + }, methods: { handleReturn() { this.$emit("reloadlist"); @@ -163,8 +166,22 @@ const { data: result } = await this.$http.get(`/purchasenew/fetchDetailsBySid/${row.sid}`) if (result.code==200) { _this.purchaseForm=result.data + this.getcustListList() } - } + }, + async getcustListList () { + const { data: result } = await this.$http.get('/v1/shstorehouse/fetchEntList') + if (result.code == 200){ + this.custList = result.data + } + if(this.purchaseForm.custId){ + this.custList.forEach((v, i) => { + if(v.sid == this.purchaseForm.custId){ + this.purchaseForm.custName = v.enterpriseName + } + }) + } + }, }, }; diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue index e0d56624..799cc18a 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/purchase.vue @@ -24,7 +24,7 @@ @@ -40,17 +40,17 @@ align="center" width="180"> - - + --> + width="140"> 出库商品明细
添加货物
+ :row-style="{height: '40px'}" class="TableInput">