|
|
@@ -134,10 +134,11 @@ export default {
|
|
|
this.initData();
|
|
|
}
|
|
|
this.currentShopId = this.getMyShopInfo.id;
|
|
|
- console.log(this.currentShopId)
|
|
|
},
|
|
|
onShow(){
|
|
|
-
|
|
|
+ if(this.orderSn){
|
|
|
+ this.initData()
|
|
|
+ }
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(["getMyShopInfo"]),
|
|
|
@@ -217,10 +218,8 @@ export default {
|
|
|
this.$refs.selectShopNumRef.open('bottom')
|
|
|
},
|
|
|
async initData() {
|
|
|
- try {
|
|
|
- const { data } = await getStockInDetailApi(this.orderSn);
|
|
|
- this.inStockData = data;
|
|
|
- } catch (error) {}
|
|
|
+ const { data } = await getStockInDetailApi(this.orderSn)
|
|
|
+ this.inStockData = data
|
|
|
},
|
|
|
getItemStatusName(status) {
|
|
|
let name = "";
|