From f6a13e76c739bc9f58df9379e03946c55d1d8766 Mon Sep 17 00:00:00 2001 From: "djz236@163.com" Date: Sun, 6 Aug 2023 18:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=87=BA=E5=BA=93=E5=8D=95?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD=E3=80=82=20?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BB=8E=E2=80=9C=E5=85=A5=E5=BA=93"?= =?UTF-8?q?=E5=88=B0"=E5=BA=93=E5=AD=98"=E5=88=B0"=E5=87=BA=E5=BA=93"?= =?UTF-8?q?=E5=88=B0"=E6=8B=A3=E8=B4=A7"=20=20=E5=9B=9B=E4=B8=AA=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=A8=A1=E5=9D=97=20=E5=85=B3=E4=BA=8E=E5=BA=93?= =?UTF-8?q?=E4=BD=8D=E3=80=81=E4=BB=93=E5=BA=93=E7=9A=84=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=92=8C=E9=AA=8C=E8=AF=81=20=20=E4=BF=9D=E8=AF=81=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E6=97=B6=E4=BB=93=E4=BD=8D=E7=9A=84=E5=87=86=E7=A1=AE?= =?UTF-8?q?=E3=80=82=20=E5=A2=9E=E5=8A=A0=E4=BB=93=E4=BD=8D=E7=9A=84?= =?UTF-8?q?=E5=AF=B9=E5=A4=96=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3=20?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E4=BB=93=E5=BA=93=E6=9F=A5=E8=AF=A2=E3=80=82?= =?UTF-8?q?=20=E5=89=8D=E7=AB=AF=E5=90=8E=E7=AB=AF=E8=81=94=E8=B0=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=8C=E6=B2=9F=E9=80=9A=E9=9C=80=E6=B1=82?= =?UTF-8?q?=E6=95=B4=E7=90=86=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../instorehouse/add/purchaseAdd.vue | 23 +++++++--- .../views/component/instorehouse/putIn.vue | 33 +++++++++----- .../add/outListAdd.vue | 45 +++++++++++++------ .../outStorehouseManagement/outList.vue | 4 +- 4 files changed, 71 insertions(+), 34 deletions(-) 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 @@ -->