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'; ...@@ -32,11 +32,11 @@ import LocalStroage from '@/utils/localStorage';
import configApi from '@/../config/env.config'; import configApi from '@/../config/env.config';
import { GoldCategory } from '@/config/app.config'; import { GoldCategory } from '@/config/app.config';
@connect(({ goodsManage, menu }) => ({ @connect(({ popGoodsManage, menu }) => ({
goodsManage, popGoodsManage,
permissions: menu.permissions, permissions: menu.permissions,
})) }))
class goodsManage extends Component { class popGoodsManage extends Component {
state = { state = {
pageNo: 1, pageNo: 1,
loading: false, loading: false,
...@@ -78,7 +78,7 @@ class goodsManage extends Component { ...@@ -78,7 +78,7 @@ class goodsManage extends Component {
canEditable = false; canEditable = false;
componentDidMount() { componentDidMount() {
this.props.goodsManage.tableData = {}; this.props.popGoodsManage.tableData = {};
this.categoryList(this.state.productType); this.categoryList(this.state.productType);
this.categoryListByType(this.state.productType); this.categoryListByType(this.state.productType);
this.getVirtualCategory(); this.getVirtualCategory();
...@@ -413,7 +413,7 @@ class goodsManage extends Component { ...@@ -413,7 +413,7 @@ class goodsManage extends Component {
render() { render() {
const { const {
goodsManage: { tableData = {} }, popGoodsManage: { tableData = {} },
permissions, permissions,
} = this.props; } = this.props;
const rowSelection = { const rowSelection = {
...@@ -593,4 +593,4 @@ class goodsManage extends Component { ...@@ -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 => ...@@ -252,7 +252,7 @@ export const apiCreateGoodsLog = params =>
// 查询sku最后一条库存变更记录 // 查询sku最后一条库存变更记录
export const apiQueryLastChangeLog = skuId => 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, prefix: goodsApi,
}); });
......
...@@ -31,7 +31,7 @@ export async function queryToSend(params) { ...@@ -31,7 +31,7 @@ export async function queryToSend(params) {
// 快递公司 // 快递公司
export async function queryExpress() { export async function queryExpress() {
try { try {
const { data } = await request.get('/api/merchants/pops/companies/list', { const { data } = await request.get('/api/merchants/companies/list', {
prefix: config.kdspApi, prefix: config.kdspApi,
}); });
return data; 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