Commit fe9f1cf3 authored by shida.liu's avatar shida.liu

refactor(popGoodsManage): 重构爆品管理页面

- 更新组件名称:goodsManage -> popGoodsManage
- 更新 Redux state 名称:goodsManage -> popGoodsManage
- 更新 API 路径:
  - /api/kdsp/sku/last/stockChange/record -> /api/merchants/pops/product/sku/last/stockChange/record
  - /api/merchants/pops/companies/list -> /api/merchants/companies/list
parent 1b740b55
......@@ -32,11 +32,11 @@ import LocalStroage from '@/utils/localStorage';
import configApi from '@/../config/env.config';
import { GoldCategory } from '@/config/app.config';
@connect(({ goodsManage, menu }) => ({
goodsManage,
@connect(({ popGoodsManage, menu }) => ({
popGoodsManage,
permissions: menu.permissions,
}))
class goodsManage extends Component {
class popGoodsManage extends Component {
state = {
pageNo: 1,
loading: false,
......@@ -78,7 +78,7 @@ class goodsManage extends Component {
canEditable = false;
componentDidMount() {
this.props.goodsManage.tableData = {};
this.props.popGoodsManage.tableData = {};
this.categoryList(this.state.productType);
this.categoryListByType(this.state.productType);
this.getVirtualCategory();
......@@ -413,7 +413,7 @@ class goodsManage extends Component {
render() {
const {
goodsManage: { tableData = {} },
popGoodsManage: { tableData = {} },
permissions,
} = this.props;
const rowSelection = {
......@@ -593,4 +593,4 @@ class goodsManage extends Component {
}
}
export default Form.create()(goodsManage);
export default Form.create()(popGoodsManage);
......@@ -252,7 +252,7 @@ export const apiCreateGoodsLog = params =>
// 查询sku最后一条库存变更记录
export const apiQueryLastChangeLog = skuId =>
request.get(`/api/kdsp/sku/last/stockChange/record?skuId=${skuId}`, {
request.get(`/api/merchants/pops/product/sku/last/stockChange/record?skuId=${skuId}`, {
prefix: goodsApi,
});
......
......@@ -31,7 +31,7 @@ export async function queryToSend(params) {
// 快递公司
export async function queryExpress() {
try {
const { data } = await request.get('/api/merchants/pops/companies/list', {
const { data } = await request.get('/api/merchants/companies/list', {
prefix: config.kdspApi,
});
return data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment