diff --git a/src/api/modules/profitconfig.js b/src/api/modules/profitconfig.js new file mode 100644 index 0000000..fbbea2b --- /dev/null +++ b/src/api/modules/profitconfig.js @@ -0,0 +1,25 @@ +import instance from '../../utils/axios.js' + +// 过滤设置相关API +const profitconfigApi = { + + listProfitconfiglist: (params) => instance.get('/profitconfig/list', { params }), + + // 获取过滤设置详细信息 + getProfitconfig: (id) => instance.get(`/profitconfig/${id}`), + + //删除 + delProfitconfig: (ids) => { + const idStr = Array.isArray(ids) ? ids.join(',') : ids; + instance.delete(`/profitconfig/${idStr}`); + }, + // 添加 + addProfitconfig: (data) => instance.post('/profitconfig/add', data), + + // 更新 + updateProfitconfig: (data) => instance.put('/profitconfig', data) + +}; + +// 导出模块 +export { profitconfigApi }; \ No newline at end of file diff --git a/src/api/modules/shopGoods.js b/src/api/modules/shopGoods.js index 614af5a..02189fd 100644 --- a/src/api/modules/shopGoods.js +++ b/src/api/modules/shopGoods.js @@ -31,7 +31,7 @@ export const getShopGoodsList = async (params = {}) => { if (params.isQueryAllGoods) queryParams.append('isQueryAllGoods', params.isQueryAllGoods); if (params.isJoinDistribution) queryParams.append('isJoinDistribution', params.isJoinDistribution); - const url = `/zhishu/shopGoods/list?${queryParams.toString()}`; + const url = `/shopGoods/list?${queryParams.toString()}`; return instance.get(url); }; diff --git a/src/layout/Sidebar.vue b/src/layout/Sidebar.vue index 7ecf0e6..3183b29 100644 --- a/src/layout/Sidebar.vue +++ b/src/layout/Sidebar.vue @@ -166,6 +166,21 @@ const menuData = shallowRef([ } ] }, + + { + title: '分润管理', + path: '/profit', + icon: Box, + children: [ + { + title: '分润配置', + path: '/profit/config' + },{ + title: '分润订单信息', + path: '/profit/orderlist' + } + ] + }, { title: '工具管理', path: '/tools', diff --git a/src/router/index.js b/src/router/index.js index a8bbe9b..bc68e25 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -200,6 +200,16 @@ const routes = [{ path: '/depotOrder/information', component: () => import('@/views/depotOrder/index.vue'), meta: { title: '仓库订单信息', permission: 'warehouse:depot:view' } + }, + //快递打单账号管理 src/views/fastMail + { + path: '/profit/config', + component: () => import('@/views/profitconfig/index.vue'), + meta: { title: '分润配置信息', permission: 'warehouse:depot:view' } + }, { + path: '/profit/orderlist', + component: () => import('@/views/profitorderlist/index.vue'), + meta: { title: '分润配置信息', permission: 'warehouse:depot:view' } } ] }] diff --git a/src/views/Shop/index.vue b/src/views/Shop/index.vue index ce6b46b..90a62d1 100644 --- a/src/views/Shop/index.vue +++ b/src/views/Shop/index.vue @@ -533,6 +533,7 @@ const handleChangeStatus = async (row, newStatus) => { // 提交表单 const submitForm = () => { + debugger; formRef.value.validate((valid) => { if (valid) { if (form.id) { @@ -547,8 +548,8 @@ const submitForm = () => { } else { // 新增 addShop(form).then(res => { - if (res.data.code === 200) { - ElMessage.success('新增成功') + if (res.code === 200) { + ElMessage.success(res.message) dialog.visible = false getShopListData() } diff --git a/src/views/ShopGoodsAll/index.vue b/src/views/ShopGoodsAll/index.vue index f7b5625..76307c2 100644 --- a/src/views/ShopGoodsAll/index.vue +++ b/src/views/ShopGoodsAll/index.vue @@ -1626,7 +1626,7 @@ const kfzShopList = []; const getShopList = async () => { const res = await getListShop(); - const shopData = res.data || res || []; + const shopData = res.data.list || res || []; if (shopData.length == 0) { shopList.length = 0; } else { diff --git a/src/views/newshopOrder/index.vue b/src/views/newshopOrder/index.vue index 4ae3d1c..c4dea9c 100644 --- a/src/views/newshopOrder/index.vue +++ b/src/views/newshopOrder/index.vue @@ -48,9 +48,9 @@ - + + + + + + + + + + + + + + - - - + + + - - + + + + + @@ -114,16 +134,18 @@ + + + + + + - - - - - + @@ -134,25 +156,6 @@ - - - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/src/views/profitorderlist/index.vue b/src/views/profitorderlist/index.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/shopGoods/index.vue b/src/views/shopGoods/index.vue index 73b7236..84febdc 100644 --- a/src/views/shopGoods/index.vue +++ b/src/views/shopGoods/index.vue @@ -1579,6 +1579,7 @@ /** 发布商品 */ const goodsAddBtn = () => { + debugger; formShops.value = { ...initFormShops.value }; dialog.shopChoose = true; } @@ -1595,24 +1596,26 @@ const pddShopList = []; const kfzShopList = []; const getShopList = async () => { + debugger; const res = await getListShop(); - const shopData = res.data || res || []; + const shopData = res.data.list || res || []; if (shopData.length == 0) { shopList.length = 0; } else { + debugger; for (var i = 0; i < shopData.length; i++) { - if (res[i].shopType === "1") { + if (shopData[i].shopType === "1") { pddShopList.push( { - value: res[i].id, - label: res[i].shopName, + value: shopData[i].id, + label: shopData[i].shopName, } ) - } else if (res[i].shopType === "2") { + } else if (shopData[i].shopType === "2") { kfzShopList.push( { - value: res[i].id, - label: res[i].shopName, + value: shopData[i].id, + label: shopData[i].shopName, } ) }