Browse Source

入库

master
tianyi@bogon 3 years ago
parent
commit
582bb0870a
  1. 14
      pages/inventory/addinventory.vue

14
pages/inventory/addinventory.vue

@ -40,7 +40,7 @@
</view> </view>
<view class="shop-type"> <view class="shop-type">
<view class="shop-collapse" v-for="(values,keys) in Array.from(value[1].stockLogList)"> <view class="shop-collapse" v-for="(values,keys) in Array.from(value[1].stockLogList)">
<text>{{values[0]}}</text> <text>{{value[1].name}}</text>
<!-- <text style="color: red;">单价:¥{{item.price}}</text> --> <!-- <text style="color: red;">单价:¥{{item.price}}</text> -->
<text>数量:{{values[1]}}</text> <text>数量:{{values[1]}}</text>
</view> </view>
@ -149,10 +149,12 @@
productPicture: this.carList1[i].productPicture, productPicture: this.carList1[i].productPicture,
productSn:this.carList1[i].productSn, productSn:this.carList1[i].productSn,
stockLogList: new Map(), stockLogList: new Map(),
stockLogList1:[] stockLogList1:[],
name:''
} }
for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) { for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) {
obj.stockLogList.set(this.carList1[i].saleDetailQueryDTO[m].name,this.carList1[i].saleDetailQueryDTO[m].productCount) obj.stockLogList.set(this.carList1[i].saleDetailQueryDTO[m].attributeList,this.carList1[i].saleDetailQueryDTO[m].productCount)
obj.name = this.carList1[i].saleDetailQueryDTO[m].name
} }
console.log("没有数据") console.log("没有数据")
this.carList.set(this.carList1[i].id, obj) this.carList.set(this.carList1[i].id, obj)
@ -180,10 +182,12 @@
productName: this.carList1[i].productName, productName: this.carList1[i].productName,
productPicture: this.carList1[i].productPicture, productPicture: this.carList1[i].productPicture,
stockLogList: new Map(), stockLogList: new Map(),
stockLogList1:[] stockLogList1:[],
name:''
} }
for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) { for (let m = 0; m < this.carList1[i].saleDetailQueryDTO.length; m++) {
obj.stockLogList.set(this.carList1[i].saleDetailQueryDTO[m].name,this.carList1[i].saleDetailQueryDTO[m].productCount) obj.stockLogList.set(this.carList1[i].saleDetailQueryDTO[m].attributeList,this.carList1[i].saleDetailQueryDTO[m].productCount)
obj.name = this.carList1[i].saleDetailQueryDTO[m].name
} }
this.carList.set(this.carList1[i].id,obj) this.carList.set(this.carList1[i].id,obj)
} }

Loading…
Cancel
Save