Browse Source

type:refactor

commit:获取返回值
master
孙家正 2 years ago
parent
commit
c5d4228bc9
  1. 2
      pages/massif/agrSpecs.vue
  2. 2
      pages/stock/mana.vue

2
pages/massif/agrSpecs.vue

@ -227,7 +227,7 @@ export default {
}) })
if(res.statu){ if(res.statu){
this.$provise.emit("forming_agr", list=>{ this.$provise.emit("forming_agr", list=>{
this.specs.list=res.data.listSpec.map(v=>{ this.specs.list=res.data.map(v=>{
v.number-=list.reduce((a,b)=>a+(b.inventoryId==v.id?b.inputQuantity:0),0) v.number-=list.reduce((a,b)=>a+(b.inventoryId==v.id?b.inputQuantity:0),0)
return v return v
}).filter(v=>v.number>0) }).filter(v=>v.number>0)

2
pages/stock/mana.vue

@ -144,7 +144,7 @@
<text>{{v.agriculturalGoods}}</text> <text>{{v.agriculturalGoods}}</text>
<text class="over">{{v.substanceName}}</text> <text class="over">{{v.substanceName}}</text>
<text>({{v.specDescribe}})</text> <text>({{v.specDescribe}})</text>
<text v-if="v.replenishment">补货量{{v.replenishment}}{{v.unit}}</text> <text v-if="v.replenishment">补货量{{v.replenishment}}{{v.packgeUnit}}</text>
</view> </view>
<view class="company"> <view class="company">
<text style="--c:#FBA83C;margin-right:14rpx;">{{v.detailType}}</text> <text style="--c:#FBA83C;margin-right:14rpx;">{{v.detailType}}</text>

Loading…
Cancel
Save