...
|
...
|
@@ -42,7 +42,7 @@ import ModalPrice from './components/modal-price'; |
|
|
import ModalUnstock from './components/modal-unstock';
|
|
|
import ImgSize from 'components/img-size';
|
|
|
import {Button} from 'cube-ui';
|
|
|
import ScrollView from 'components/scroll-view';
|
|
|
import ScrollView from '../../components/layout/scroll-ufo';
|
|
|
import ProductList from './components/product-list';
|
|
|
import {createNamespacedHelpers} from 'vuex';
|
|
|
|
...
|
...
|
@@ -92,12 +92,12 @@ export default { |
|
|
onNoSale(skc) {
|
|
|
this.$refs.modalUnstock.show({skc});
|
|
|
},
|
|
|
refreshProduct(skc, mergeData) {
|
|
|
this.MERGE_CHANGEPRICE_DATA({skc, mergeData}); //eslint-disable-line
|
|
|
refreshProduct() {
|
|
|
this.fetchProduct({
|
|
|
productId: this.$route.params.orderId,
|
|
|
page: 1,
|
|
|
onlyProduct: true
|
|
|
page: this.page,
|
|
|
pageSize: this.pageSize,
|
|
|
refresh: true
|
|
|
});
|
|
|
},
|
|
|
async onChangePriceSure({skc, price}) {
|
...
|
...
|
@@ -115,9 +115,7 @@ export default { |
|
|
txt: '调价成功',
|
|
|
type: 'success',
|
|
|
}).show();
|
|
|
this.refreshProduct(skc, {
|
|
|
price
|
|
|
});
|
|
|
this.refreshProduct();
|
|
|
} else {
|
|
|
this.$createToast({
|
|
|
txt: result.message || '调价失败',
|
...
|
...
|
@@ -140,9 +138,7 @@ export default { |
|
|
txt: '下架成功',
|
|
|
type: 'correct'
|
|
|
}).show();
|
|
|
this.refreshProduct(skc, {
|
|
|
storageNum: skc.storageNum - num
|
|
|
});
|
|
|
this.refreshProduct();
|
|
|
} else {
|
|
|
this.$createToast({
|
|
|
txt: result.message || '下架失败',
|
...
|
...
|
|