diff --git a/pages/stock/already.vue b/pages/stock/already.vue index 58dba55..24378a2 100644 --- a/pages/stock/already.vue +++ b/pages/stock/already.vue @@ -78,13 +78,13 @@ - {{v.agriculturalGoods}} {{v.substanceName}} ({{v.specDescribe}}) + {{v.goodsType}} {{v.substanceName}} ({{v.specDescribe}}) - {{v.detailType}} {{v.supplierName}} + {{v.goodsDetailType}} {{v.supplier}} - 领用时间:{{new Date(v.collectingTime).format("yyyy-MM-dd")}} {{v.num}}{{(v.specDescribe.match(/\/(.+)/)||['',''])[1]}} + 领用时间:{{new Date(v.operateTime).format("yyyy-MM-dd")}} {{v.number}}{{v.packgeUnit}} @@ -122,7 +122,7 @@ export default { body: this.searchVal }) if(res.statu){ - this.list=this.list.concat(res.data.list) + this.list=this.list.concat(res.data.records) this.total=res.data.total this.searchVal.pageNo++ if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"}) diff --git a/pages/stock/goods_detail.vue b/pages/stock/goods_detail.vue index 3781513..b5fcf68 100644 --- a/pages/stock/goods_detail.vue +++ b/pages/stock/goods_detail.vue @@ -24,10 +24,10 @@ 基本信息 - 批次号 {{detail.batchNo}} + 批次号 {{detail.inOutBatchNo}} - 出库类型 {{detail.inOutType}} + 操作类型 {{detail.inOutType}} 农资名称 {{detail.substanceName}} @@ -36,10 +36,10 @@ 规格 {{detail.specDescribe}} - 物品数量 {{detail.number}}袋(共{{detail.equivalentAmount}}{{detail.unit}}) + 操作数量 {{detail.number}}{{detail.packgeUnit}}(共{{detail.equivalentAmount}}{{detail.unit}}) - 供销商 {{detail.supplierName}} + 供销商 {{detail.supplier}} diff --git a/pages/stock/mana.vue b/pages/stock/mana.vue index 41465e6..595df4c 100644 --- a/pages/stock/mana.vue +++ b/pages/stock/mana.vue @@ -189,7 +189,7 @@ export default { }, async search(){ if(this.total==0 || this.list.length - 批次号:{{v.batchNo}} {{v.inOutType}} + 批次号:{{v.inOutBatchNo}} {{v.inOutType}} {{v.substanceName}} - {{v.supplierName}} {{v.number}}袋(共{{v.equivalentAmount}}{{v.unit}}) + {{v.supplier}} {{v.number}}{{v.packgeUnit}}(共{{v.equivalentAmount}}{{v.unit}}) @@ -84,7 +84,8 @@ export default { data(){ return{ searchVal:{ - baseId: this.$store.state.plantBaseInfoId, + userId: '', + enterpriseId: '', pageNo:1, pageSize:6, }, @@ -94,6 +95,13 @@ export default { }, onLoad(options){ this.search() + if (this.$store.getters['userInfo'].roleCode=="baseAdmin") { + this.searchVal.userId = this.$store.getters['userInfo'].id + this.searchVal.enterpriseId = '' + } else { + this.searchVal.enterpriseId = this.$store.getters.userInfo.companyId + this.searchVal.userId = '' + } }, methods:{ async search(){ @@ -103,7 +111,7 @@ export default { body: this.searchVal }) if(res.statu){ - this.list=this.list.concat(res.data.list) + this.list=this.list.concat(res.data.records) this.total=res.data.total this.searchVal.pageNo++ if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"})