|
@@ -44,7 +44,7 @@ import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
import DeliveryGoodsInfo from "./deliveryGoodsInfo.vue";
|
|
|
import DeliveryPrice from "./deliveryPrice.vue";
|
|
|
import { add,multiply,subtract,divide } from '@/benyun/utils/accuracy'
|
|
|
-import { queryPricePackage,insertShortBarge,getInventoryByStoreHouseIdAndSkuids } from '@/api/delivery'
|
|
|
+import { getShortBargePrice,WMSAddEntryOrder,getInventoryByStoreHouseIdAndSkuids } from '@/api/delivery'
|
|
|
import Format from '@/benyun/utils/dateFormat'
|
|
|
|
|
|
@Component({components:{DeliveryGoodsInfo,DeliveryPrice}})
|
|
@@ -248,7 +248,7 @@ export default class BatchbyOneModal extends Vue {
|
|
|
delete params.subItem;
|
|
|
// console.log(params)
|
|
|
this.load = true;
|
|
|
- insertShortBarge(params).then((res:any) => {
|
|
|
+ WMSAddEntryOrder(params).then((res:any) => {
|
|
|
this.load = false;
|
|
|
if(res.code == 200){
|
|
|
this.isSuccess = true;
|
|
@@ -318,10 +318,17 @@ export default class BatchbyOneModal extends Vue {
|
|
|
let params:any={};
|
|
|
params.startAddressCode = data.tmsShipmentCityNo + '000';
|
|
|
params.endAddressCode = data.tmsUnloadingCityNo + '000';
|
|
|
- params.omsIds=[this.data[0].omsOrderIds];
|
|
|
- params.planType = data.tmsTransportMethod;
|
|
|
+ params.materialInfos = []
|
|
|
+ if(data.subItem){
|
|
|
+ for(const i of data.subItem){
|
|
|
+ params.materialInfos.push({
|
|
|
+ skuId: i.omsOrderItemId,
|
|
|
+ qty:i.tmsQuantity
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
this.load = true;
|
|
|
- queryPricePackage(params).then((res:any) => {
|
|
|
+ getShortBargePrice(params).then((res:any) => {
|
|
|
// if(this.currentPrice && this.currentPrice[data.omsOrderIds]){
|
|
|
// delete this.currentPrice[data.omsOrderIds]
|
|
|
// }
|