|
@@ -145,36 +145,40 @@ export default class DeliveryDetail extends Vue {
|
|
|
queryOrderByOrderId({
|
|
|
omsOrderId:v
|
|
|
}).then((res:any) => {
|
|
|
- this.value = res.data;
|
|
|
- if(res.data.subItemList){
|
|
|
- this.value.subItem=[];
|
|
|
- for(const item of this.value.subItemList){
|
|
|
- this.value.subItem.push({
|
|
|
- tmsGoodsCode:item.tmsGoodsCode,
|
|
|
- name:item.tmsGoodsName,
|
|
|
- tmsGoodsTotalPrice:item.tmsGoodsTotalPrice,
|
|
|
- price:item.tmsGoodsPrice,
|
|
|
- weight:item.tmsWeight,
|
|
|
- tmsQuantity:item.tmsQuantity
|
|
|
- })
|
|
|
+ if(res.data){
|
|
|
+ this.value = res.data;
|
|
|
+ if(res.data.subItemList){
|
|
|
+ this.value.subItem=[];
|
|
|
+ for(const item of this.value.subItemList){
|
|
|
+ this.value.subItem.push({
|
|
|
+ tmsGoodsCode:item.tmsGoodsCode,
|
|
|
+ name:item.tmsGoodsName,
|
|
|
+ tmsGoodsTotalPrice:item.tmsGoodsTotalPrice,
|
|
|
+ price:item.tmsGoodsPrice,
|
|
|
+ weight:item.tmsWeight,
|
|
|
+ tmsQuantity:item.tmsQuantity
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- this.load = false;
|
|
|
- if(res.data.pricePlan){
|
|
|
- try{
|
|
|
- this.priceData = JSON.parse(res.data.pricePlan);
|
|
|
- }catch(e){
|
|
|
- this.priceData = [];
|
|
|
- console.error('价格列表数据转换错误!')
|
|
|
+ this.load = false;
|
|
|
+ if(res.data.pricePlan){
|
|
|
+ try{
|
|
|
+ this.priceData = JSON.parse(res.data.pricePlan);
|
|
|
+ }catch(e){
|
|
|
+ this.priceData = [];
|
|
|
+ console.error('价格列表数据转换错误!')
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+ setTimeout(()=>{
|
|
|
+ if(this.$refs.info){
|
|
|
+ (this.$refs.info as any).setValue(this.value)
|
|
|
+ }
|
|
|
+ },1000)
|
|
|
+ }else{
|
|
|
+ this.drawer = false;
|
|
|
+ this.$message('未找到发货明细数据!')
|
|
|
}
|
|
|
- setTimeout(()=>{
|
|
|
- if(this.$refs.info){
|
|
|
- (this.$refs.info as any).setValue(this.value)
|
|
|
- }
|
|
|
- },1000)
|
|
|
-
|
|
|
}).catch(() => {
|
|
|
this.load = false;
|
|
|
})
|