|
@@ -18,8 +18,8 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
<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]"
|
|
|
- @prichChange="prichChange" :currentValue="currentPrice[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]" /> -->
|
|
|
</div>
|
|
|
<div class="space"></div>
|
|
|
<div class="deli-footer">
|
|
@@ -76,7 +76,7 @@ export default class BatchbyOneModal extends Vue {
|
|
|
editResult(v:any){
|
|
|
this.data[this.currentOrder] = v;
|
|
|
this.getStoreCount(v);
|
|
|
- this.getPriceInfo(v);
|
|
|
+ // this.getPriceInfo(v);
|
|
|
}
|
|
|
prichChange(index:number){
|
|
|
this.currentPrice[this.data[this.currentOrder].omsOrderIds] = this.priceObj[this.data[this.currentOrder].omsOrderIds][index];
|
|
@@ -143,10 +143,10 @@ export default class BatchbyOneModal extends Vue {
|
|
|
this.$message("请编辑订单信息");
|
|
|
return
|
|
|
}
|
|
|
- if(!this.currentPrice[this.data[this.currentOrder].omsOrderIds]){
|
|
|
- this.$message("请选择价格!");
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(!this.currentPrice[this.data[this.currentOrder].omsOrderIds]){
|
|
|
+ // this.$message("请选择价格!");
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.sendGoods(this.data[0]);
|
|
|
}
|
|
|
nextBtn(){
|
|
@@ -163,10 +163,10 @@ export default class BatchbyOneModal extends Vue {
|
|
|
this.$message("请编辑订单信息");
|
|
|
return
|
|
|
}
|
|
|
- if(!this.currentPrice[_value.omsOrderIds]){
|
|
|
- this.$message('请选择价格!')
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(!this.currentPrice[_value.omsOrderIds]){
|
|
|
+ // this.$message('请选择价格!')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if(_value.isSuccess){
|
|
|
this.$message('订单:'+_value.omsOrderIds+'已执行过发货操作!');
|
|
|
return
|
|
@@ -174,8 +174,9 @@ export default class BatchbyOneModal extends Vue {
|
|
|
this.sendGoods(_value,true);
|
|
|
}
|
|
|
qtyChange(v:any){
|
|
|
+ this.data[this.currentOrder] = v;
|
|
|
this.getStoreCount(v);
|
|
|
- this.getPriceInfo(v);
|
|
|
+ // this.getPriceInfo(v);
|
|
|
}
|
|
|
//查库存
|
|
|
getStoreCount(item:any,callback?:Function){
|
|
@@ -232,14 +233,14 @@ export default class BatchbyOneModal extends Vue {
|
|
|
}
|
|
|
|
|
|
let params:any=(this as any).$lodash.cloneDeep(item);
|
|
|
- if(this.priceObj[item.omsOrderIds]){
|
|
|
- try{
|
|
|
- params.pricePlan = JSON.stringify(this.priceObj[item.omsOrderIds])
|
|
|
- }catch(e){}
|
|
|
- }
|
|
|
- if(this.currentPrice[item.omsOrderIds]){
|
|
|
- params.priceId = this.currentPrice[item.omsOrderIds].id;
|
|
|
- }
|
|
|
+ // if(this.priceObj[item.omsOrderIds]){
|
|
|
+ // try{
|
|
|
+ // params.pricePlan = JSON.stringify(this.priceObj[item.omsOrderIds])
|
|
|
+ // }catch(e){}
|
|
|
+ // }
|
|
|
+ // if(this.currentPrice[item.omsOrderIds]){
|
|
|
+ // params.priceId = this.currentPrice[item.omsOrderIds].id;
|
|
|
+ // }
|
|
|
params.tmsMaterials=[];
|
|
|
if(item.subItem){
|
|
|
let skuIds:Array<any>=[];
|