|
@@ -17,7 +17,7 @@
|
|
:total="data.length">
|
|
:total="data.length">
|
|
</el-pagination>
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
- <deliveryGoodsInfo :hideOrderCode="true" @editState="editState" @editResult="editResult" ref="info" />
|
|
|
|
|
|
+ <deliveryGoodsInfo :hideOrderCode="true" @editState="editState" @editResult="editResult" @qtyChange="qtyChange" ref="info" />
|
|
<deliveryPrice :data="priceObj[data[currentOrder].omsOrderIds]" ref="price" v-if="data[currentOrder] && priceObj[data[currentOrder].omsOrderIds]"
|
|
<deliveryPrice :data="priceObj[data[currentOrder].omsOrderIds]" ref="price" v-if="data[currentOrder] && priceObj[data[currentOrder].omsOrderIds]"
|
|
@prichChange="prichChange" :currentValue="currentPrice[data[currentOrder].omsOrderIds]" />
|
|
@prichChange="prichChange" :currentValue="currentPrice[data[currentOrder].omsOrderIds]" />
|
|
</div>
|
|
</div>
|
|
@@ -173,12 +173,18 @@ export default class BatchbyOneModal extends Vue {
|
|
}
|
|
}
|
|
this.sendGoods(_value,true);
|
|
this.sendGoods(_value,true);
|
|
}
|
|
}
|
|
|
|
+ qtyChange(v:any){
|
|
|
|
+ this.getStoreCount(v);
|
|
|
|
+ this.getPriceInfo(v);
|
|
|
|
+ }
|
|
//查库存
|
|
//查库存
|
|
getStoreCount(item:any,callback?:Function){
|
|
getStoreCount(item:any,callback?:Function){
|
|
if(!item){
|
|
if(!item){
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- console.log('asasa',item)
|
|
|
|
|
|
+ if(!item.out_storeHouseId || item.subItem.length == 0){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
let params:any={};
|
|
let params:any={};
|
|
params.storeHouseId = item.out_storeHouseId;
|
|
params.storeHouseId = item.out_storeHouseId;
|
|
params.skuIds=[];
|
|
params.skuIds=[];
|
|
@@ -327,6 +333,9 @@ export default class BatchbyOneModal extends Vue {
|
|
//获取价格
|
|
//获取价格
|
|
getPriceInfo(data:any,callback?:Function){
|
|
getPriceInfo(data:any,callback?:Function){
|
|
let params:any={};
|
|
let params:any={};
|
|
|
|
+ if(!data.out_storeHouseId || !data.entry_storeHouseId || data.subItem.length == 0){
|
|
|
|
+ return
|
|
|
|
+ }
|
|
params.startStoreHouseId = data.out_storeHouseId;
|
|
params.startStoreHouseId = data.out_storeHouseId;
|
|
params.endStoreHouseId = data.entry_storeHouseId;
|
|
params.endStoreHouseId = data.entry_storeHouseId;
|
|
params.materialInfos = []
|
|
params.materialInfos = []
|