commit:获取返回值
@ -227,7 +227,7 @@ export default {
})
if(res.statu){
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)
return v
}).filter(v=>v.number>0)
@ -144,7 +144,7 @@
<text>{{v.agriculturalGoods}}</text>
<text class="over">{{v.substanceName}}</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 class="company">
<text style="--c:#FBA83C;margin-right:14rpx;">{{v.detailType}}</text>