From f3ad69ddd926ebcef8c732a397b68d5235f0aa47 Mon Sep 17 00:00:00 2001 From: sjz-mxj <1375998991@qq.com> Date: Sat, 11 Feb 2023 16:11:59 +0800 Subject: [PATCH] =?UTF-8?q?type:refactor=20commit:=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=AF=B7=E6=B1=82url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/stock/already.vue | 2 +- pages/stock/list.vue | 12 ++++++------ pages/stock/mana.vue | 6 +++--- pages/stock/record.vue | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pages/stock/already.vue b/pages/stock/already.vue index b1b16db..58dba55 100644 --- a/pages/stock/already.vue +++ b/pages/stock/already.vue @@ -117,7 +117,7 @@ export default { }, async search(){ if(this.total==0 || this.list.lengththis.formData.inOutBatchNo=`KC${new Date().format('yyyyMMdd')}${new Date().getTime()}`}, - inOutVoucher:{label:"库凭证",type:"upImg",value:"",num:3}, + pic:{label:"库凭证",type:"upImg",value:"",num:3}, number:{label:"库数量",placeholder:"请输入采购数量"}, }, formData:{ inOutType:"", goodsId:"", inOutBatchNo:"", - inOutVoucher:[], + pic:[], number:"", substanceType:"", }, rules:{ inOutType:{required:true}, inOutBatchNo:{required:true}, - inOutVoucher:{required:true,validator(rule,val,call){ - if(!this.fields.inOutVoucher.value)call(new Error("请上传库凭证!")); + pic:{required:true,validator(rule,val,call){ + if(!this.fields.pic.value)call(new Error("请上传库凭证!")); else call() }}, number:{required:true,type:"number"}, @@ -291,14 +291,14 @@ export default{ submit(){ this.$refs.form.validate().then(async valid=>{ if(valid){ - var res=await request("/api/OutInManageApi/outInList",{ + var res=await request("/api/Inventory/inventoryOperate",{ method:"post", body:{ ...this.formData, ...this.detail, equivalentAmount: this.detail.equivalentInventory, supplier: this.detail.supplierName, - inOutVoucher:this.fields.inOutVoucher.value, + pic:this.fields.pic.value, type: ({in:2, out:1})[this.mode], } }) diff --git a/pages/stock/mana.vue b/pages/stock/mana.vue index efc17d0..c9cfa09 100644 --- a/pages/stock/mana.vue +++ b/pages/stock/mana.vue @@ -133,14 +133,14 @@ {{v.agriculturalGoods}} {{v.substanceName}} - 补货量≥{{v.replenishment||0}}kg + 补货量≥{{v.replenishment}}{{v.unit}} {{v.detailType}} {{v.supplierName}} - 库存量:{{v.equivalentInventory||0}}kg + 库存量:{{v.equivalentInventory||0}}{{v.unit}} @@ -187,7 +187,7 @@ export default { body: this.searchVal }) if(res.statu){ - this.list=this.list.concat(res.data.nz) + this.list=this.list.concat(res.data.realRecords) this.total=res.data.total this.searchVal.pageNo++ if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"}) diff --git a/pages/stock/record.vue b/pages/stock/record.vue index d63471e..7f2e445 100644 --- a/pages/stock/record.vue +++ b/pages/stock/record.vue @@ -98,7 +98,7 @@ export default { methods:{ async search(){ if(this.total==0 || this.list.length