|
@@ -102,6 +102,7 @@
|
|
|
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
import DeliveryGoodsInfo from "./deliveryGoodsInfo.vue";
|
|
|
import { queryOrderByOrderId,cancleSendOrder,cancleWmsTradeOrder } from '@/api/delivery'
|
|
|
+import api from '@/api/currency'
|
|
|
@Component({components:{DeliveryGoodsInfo}})
|
|
|
export default class DeliveryDetail extends Vue {
|
|
|
drawer=false;
|
|
@@ -148,8 +149,10 @@ export default class DeliveryDetail extends Vue {
|
|
|
queryOrderByOrderId({
|
|
|
omsOrderId:v
|
|
|
}).then((res:any) => {
|
|
|
+ this.load = false;
|
|
|
this.value = res.data;
|
|
|
if(this.value) {
|
|
|
+ this.loadWarehouse();
|
|
|
if(res.data.subItemList){
|
|
|
this.value.subItem=[];
|
|
|
for(const item of this.value.subItemList){
|
|
@@ -163,7 +166,6 @@ export default class DeliveryDetail extends Vue {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- this.load = false;
|
|
|
if(res.data.pricePlan){
|
|
|
try{
|
|
|
this.priceData = JSON.parse(res.data.pricePlan);
|
|
@@ -173,11 +175,11 @@ export default class DeliveryDetail extends Vue {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- setTimeout(()=>{
|
|
|
+ this.$nextTick(()=>{
|
|
|
if(this.$refs.info){
|
|
|
(this.$refs.info as any).setValue(this.value)
|
|
|
}
|
|
|
- },1000)
|
|
|
+ })
|
|
|
}else{
|
|
|
this.drawer = false;
|
|
|
this.$message('未找到发货明细数据!')
|
|
@@ -186,6 +188,23 @@ export default class DeliveryDetail extends Vue {
|
|
|
this.load = false;
|
|
|
})
|
|
|
}
|
|
|
+ loadWarehouse() {
|
|
|
+ api.pageList({
|
|
|
+ pageNo: 1,
|
|
|
+ pageSize: 1000
|
|
|
+ }, 'maindataStorehouse').then((res: any) => {
|
|
|
+ if(res.data.records.length > 0){
|
|
|
+ for(const item of res.data.records){
|
|
|
+ if(this.value.storeHouseOutId === item.id){
|
|
|
+ this.value.storeHouseName = item.name
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ (this.$refs.info as any).setValue(this.value);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(() => {})
|
|
|
+ }
|
|
|
cancelB2CDelivery() {
|
|
|
this.$confirm('此操作将导致该订单的发货被取消,是否继续?', '提示', {
|
|
|
confirmButtonText: '继续',
|