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 db7ae650..3dff2858 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 @@ -79,7 +79,7 @@ - + { + console.log(e); + if(e.sid==v){ + this.purchaseForm.custName=e.enterpriseName + } + }); + console.log(this.purchaseForm); + }, selectPro(row){ this.productList.forEach((e) => { if(e.barCode==row.proId){ @@ -308,11 +319,11 @@ this.purchaseForm.storehouseName = v.name } }) - this.custList.forEach((v, i) => { - if(v.custId == this.purchaseForm.custId){ - this.purchaseForm.custName = v.enterpriseName - } - }) + // this.custList.forEach((v, i) => { + // if(v.custId == this.purchaseForm.custId){ + // this.purchaseForm.custName = v.enterpriseName + // } + // }) this.supplierList.forEach((v, i) => { if(v.name == this.purchaseForm.supplierId){ this.purchaseForm.supplierName = v.name diff --git a/warehousing-system/project_web_ui/src/views/component/instorehouse/putIn.vue b/warehousing-system/project_web_ui/src/views/component/instorehouse/putIn.vue index e03edb7c..e4753a2e 100644 --- a/warehousing-system/project_web_ui/src/views/component/instorehouse/putIn.vue +++ b/warehousing-system/project_web_ui/src/views/component/instorehouse/putIn.vue @@ -13,7 +13,6 @@ placeholder="请选择" class="item_input" clearable - @change="getOptions" > { + if(e.locationId==locationId){ + this.inStorehouse.locationName=e.name + } + }); + }, btnHandle(btnKey) { switch (btnKey) { case 'doClose': // 关闭 @@ -138,7 +145,7 @@ export default { const { data: result } = await this.$http.post('/purchasenew/listAll', { params: this.queryInfos }) const { data: datas } = await this.$http.get('/location/listAll', { params: this.queryPamas }) this.dingdanId = result.data; - this.huoweiId = datas.data.rows; + this.huoweiId = datas.data; }, addInStorehouse() { @@ -150,22 +157,24 @@ export default { this.inStorehouse.inStorehouseId = "IN" + now.getTime(); this.inStorehouse.no = this.inStorehouse.receivingId this.inStorehouse.storeHouseSid = this.inStorehouse.locationId - let location =this.huoweiId.find((item)=>{ - return item.locationId === this.inStorehouse.locationId;//筛选出匹配数据 - }) - this.inStorehouse.storeHouseName= location.name; + // let location =this.huoweiId.find((item)=>{ + // return item.locationId === this.inStorehouse.locationId;//筛选出匹配数据 + // }) + // this.inStorehouse.storeHouseName= location.name; // const { data: result } = await this.$http.post('/putIn/addInStorehouse', this.inStorehouse) const { data: result } = await this.$http.post( "/input/addInStorehouse", this.inStorehouse ); - if (result.code != 200){ - this.$message.error(result.msg) + if (result.code == 200){ + this.$message.success('操作成功') + this.getOptions(); + this.$refs.onPutInRuleForm.resetFields(); return ; } - this.$message.success('操作成功') - this.getOptions(); - this.$refs.onPutInRuleForm.resetFields(); + this.$message.error(result.msg) + return; + }); }, diff --git a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue index 5c57bf80..627e6c2b 100644 --- a/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue +++ b/warehousing-system/project_web_ui/src/views/component/outStorehouseManagement/add/outListAdd.vue @@ -80,7 +80,7 @@ - + - @@ -139,7 +139,7 @@ @@ -158,11 +158,11 @@ -->