适配修改后的api
parent
61a9110c51
commit
acff55dc65
|
@ -52,7 +52,7 @@ export function getAddrDetail (id) {
|
||||||
// 传给后台citycode 获取城市街道等id
|
// 传给后台citycode 获取城市街道等id
|
||||||
export function handleRegion (params) {
|
export function handleRegion (params) {
|
||||||
return request({
|
return request({
|
||||||
url: `${commonUrl}/common/common/common/region/region`,
|
url: `${commonUrl}/common/common/region/region`,
|
||||||
needToken: true,
|
needToken: true,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
params
|
params
|
||||||
|
|
|
@ -214,7 +214,7 @@ export function afterSaleInfo (sn) {
|
||||||
// 获取申请售后、投诉原因
|
// 获取申请售后、投诉原因
|
||||||
export function afterSaleReason (serviceType) {
|
export function afterSaleReason (serviceType) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/order/afterSale//get/afterSaleReason/${serviceType}`,
|
url: `/buyer/order/afterSale/get/afterSaleReason/${serviceType}`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: true
|
needToken: true
|
||||||
});
|
});
|
||||||
|
@ -222,7 +222,7 @@ export function afterSaleReason (serviceType) {
|
||||||
// 获取申请售后详情
|
// 获取申请售后详情
|
||||||
export function afterSaleDetail (sn) {
|
export function afterSaleDetail (sn) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/order/afterSale//get/${sn}`,
|
url: `/buyer/order/afterSale/get/${sn}`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: true
|
needToken: true
|
||||||
});
|
});
|
||||||
|
@ -230,7 +230,7 @@ export function afterSaleDetail (sn) {
|
||||||
// 售后日志
|
// 售后日志
|
||||||
export function afterSaleLog (sn) {
|
export function afterSaleLog (sn) {
|
||||||
return request({
|
return request({
|
||||||
url: `/buyer/order/afterSale//get/getAfterSaleLog/${sn}`,
|
url: `/buyer/order/afterSale/get/getAfterSaleLog/${sn}`,
|
||||||
method: Method.GET,
|
method: Method.GET,
|
||||||
needToken: true
|
needToken: true
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,7 +7,7 @@ export const getChildRegion = (id) => {
|
||||||
|
|
||||||
// 点地图获取地址信息
|
// 点地图获取地址信息
|
||||||
export const getRegion = (params) => {
|
export const getRegion = (params) => {
|
||||||
return getRequest(`${commonUrl}/common/region/region`, params);
|
return getRequest(`${commonUrl}/common/common/region/region`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取拼图验证
|
// 获取拼图验证
|
||||||
|
|
|
@ -26,15 +26,15 @@ export const disableBrand = (id, params) => {
|
||||||
}
|
}
|
||||||
//根据分类id获取关联品牌
|
//根据分类id获取关联品牌
|
||||||
export const getCategoryBrandListData = (category_id, params) => {
|
export const getCategoryBrandListData = (category_id, params) => {
|
||||||
return getRequest(`/goods/category/brand/${category_id}`, params)
|
return getRequest(`/goods/categoryBrand/${category_id}`, params)
|
||||||
}
|
}
|
||||||
//保存获取关联品牌
|
//保存获取关联品牌
|
||||||
export const saveCategoryBrand = (category_id, params) => {
|
export const saveCategoryBrand = (category_id, params) => {
|
||||||
return postRequest(`/goods/category/brand/${category_id}`, params)
|
return postRequest(`/goods/categoryBrand/${category_id}`, params)
|
||||||
}
|
}
|
||||||
//保存获取关联规格
|
//保存获取关联规格
|
||||||
export const saveCategorySpec = (category_id, params) => {
|
export const saveCategorySpec = (category_id, params) => {
|
||||||
return postRequest(`/goods/category/spec/${category_id}`, params)
|
return postRequest(`/goods/categorySpec/${category_id}`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取所有可用品牌
|
//获取所有可用品牌
|
||||||
|
@ -88,7 +88,7 @@ export const updateSpec = (id,params) => {
|
||||||
}
|
}
|
||||||
//根据分类id获取关联规格
|
//根据分类id获取关联规格
|
||||||
export const getCategorySpecListData = (category_id, params) => {
|
export const getCategorySpecListData = (category_id, params) => {
|
||||||
return getRequest(`/goods/category/spec/${category_id}`, params)
|
return getRequest(`/goods/categorySpec/${category_id}`, params)
|
||||||
}
|
}
|
||||||
//删除gUI个
|
//删除gUI个
|
||||||
export const delSpec = (id, params) => {
|
export const delSpec = (id, params) => {
|
||||||
|
@ -130,7 +130,7 @@ export const authGoods = (id, params) => {
|
||||||
|
|
||||||
//查询分类绑定参数信息
|
//查询分类绑定参数信息
|
||||||
export const getCategoryParamsListData = (id, params) => {
|
export const getCategoryParamsListData = (id, params) => {
|
||||||
return getRequest(`/goods/category/parameters/${id}`, params)
|
return getRequest(`/goods/categoryParameters/${id}`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询商品绑定参数信息
|
//查询商品绑定参数信息
|
||||||
|
@ -151,20 +151,20 @@ export const deleteParams = (id, params) => {
|
||||||
}
|
}
|
||||||
//保存参数组
|
//保存参数组
|
||||||
export const insertParamsGroup = (params) => {
|
export const insertParamsGroup = (params) => {
|
||||||
return postRequest('/goods/category/parameters', params)
|
return postRequest('/goods/categoryParameters', params)
|
||||||
}
|
}
|
||||||
//更新参数组
|
//更新参数组
|
||||||
export const updateParamsGroup = (params) => {
|
export const updateParamsGroup = (params) => {
|
||||||
return putRequest('/goods/category/parameters', params)
|
return putRequest('/goods/categoryParameters', params)
|
||||||
}
|
}
|
||||||
//删除参数组
|
//删除参数组
|
||||||
export const deleteParamsGroup = (id, params) => {
|
export const deleteParamsGroup = (id, params) => {
|
||||||
return deleteRequest(`/goods/category/parameters/${id}`, params)
|
return deleteRequest(`/goods/categoryParameters/${id}`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
//保存获取关联规格
|
//保存获取关联规格
|
||||||
export const getGoodsSpecInfo = (category_id, params) => {
|
export const getGoodsSpecInfo = (category_id, params) => {
|
||||||
return getRequest(`/goods/category/spec/goods/${category_id}`, params)
|
return getRequest(`/goods/categorySpec/goods/${category_id}`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ export const ws = managerUrl + "/ws";
|
||||||
|
|
||||||
//获取所有city
|
//获取所有city
|
||||||
export const getAllCity = (params) => {
|
export const getAllCity = (params) => {
|
||||||
return getRequest(commonUrl + '/common/region/allCity', params)
|
return getRequest(commonUrl + '/common/common/region/allCity', params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ export const login = (params) => {
|
||||||
|
|
||||||
// 登出
|
// 登出
|
||||||
export const logout = () => {
|
export const logout = () => {
|
||||||
return postRequest("/user/logout");
|
return postRequest("/passport/user/logout");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 刷新token
|
// 刷新token
|
||||||
|
@ -277,11 +277,11 @@ export const deleteAllLog = (params) => {
|
||||||
|
|
||||||
// 分页获取消息数据
|
// 分页获取消息数据
|
||||||
export const getMessageData = (params) => {
|
export const getMessageData = (params) => {
|
||||||
return getRequest("/message/getByCondition", params);
|
return getRequest("/other/message/getByCondition", params);
|
||||||
};
|
};
|
||||||
// 获取单个消息详情
|
// 获取单个消息详情
|
||||||
export const getMessageDataById = (id, params) => {
|
export const getMessageDataById = (id, params) => {
|
||||||
return getRequest(`/message/get/${id}`, params);
|
return getRequest(`/other/message/get/${id}`, params);
|
||||||
};
|
};
|
||||||
// 发送消息
|
// 发送消息
|
||||||
export const addMessage = (params) => {
|
export const addMessage = (params) => {
|
||||||
|
@ -289,11 +289,11 @@ export const addMessage = (params) => {
|
||||||
};
|
};
|
||||||
// 编辑消息
|
// 编辑消息
|
||||||
export const editMessage = (params) => {
|
export const editMessage = (params) => {
|
||||||
return postRequest("/message/edit", params);
|
return postRequest("/other/message/edit", params);
|
||||||
};
|
};
|
||||||
// 删除消息
|
// 删除消息
|
||||||
export const deleteMessage = (ids, params) => {
|
export const deleteMessage = (ids, params) => {
|
||||||
return deleteRequest(`/message/delByIds/${ids}`, params);
|
return deleteRequest(`/other/message/delByIds/${ids}`, params);
|
||||||
};
|
};
|
||||||
// 编辑发送消息
|
// 编辑发送消息
|
||||||
export const editMessageSend = (params) => {
|
export const editMessageSend = (params) => {
|
||||||
|
|
|
@ -35,12 +35,12 @@ export const insertOrUpdateSpec = params => {
|
||||||
|
|
||||||
// 获取会员列表
|
// 获取会员列表
|
||||||
export const getMemberListData = params => {
|
export const getMemberListData = params => {
|
||||||
return getRequest("/member/passport", params);
|
return getRequest("/passport/member", params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取会员详情
|
// 获取会员详情
|
||||||
export const getMemberInfoData = (id) => {
|
export const getMemberInfoData = (id) => {
|
||||||
return getRequest(`/member/passport/${id}`);
|
return getRequest(`/passport/member/${id}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 修改会员基本信息
|
// 修改会员基本信息
|
||||||
|
@ -50,22 +50,22 @@ export const updateMember = (params) => {
|
||||||
|
|
||||||
// 添加会员基本信息
|
// 添加会员基本信息
|
||||||
export const addMember = params => {
|
export const addMember = params => {
|
||||||
return postRequest(`/member/passport`, params);
|
return postRequest(`/passport/member`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 获取会员列表
|
// 获取会员列表
|
||||||
export const getMemberAll = () => {
|
export const getMemberAll = () => {
|
||||||
return getRequest("/member/passport/getAll");
|
return getRequest("/passport/member/getAll");
|
||||||
};
|
};
|
||||||
|
|
||||||
// 增加或修改会员列表
|
// 增加或修改会员列表
|
||||||
export const operationMemberListData = params => {
|
export const operationMemberListData = params => {
|
||||||
return postRequest("/member/passport/insertOrUpdate", params);
|
return postRequest("/passport/member/insertOrUpdate", params);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 增加或修改会员列表
|
// 增加或修改会员列表
|
||||||
export const deleteMemberListData = ids => {
|
export const deleteMemberListData = ids => {
|
||||||
return deleteRequest(`/member/passport/delByIds/${ids}`);
|
return deleteRequest(`/passport/member/delByIds/${ids}`);
|
||||||
};
|
};
|
||||||
// 获取充值记录列表数据
|
// 获取充值记录列表数据
|
||||||
export const getUserRecharge = params => {
|
export const getUserRecharge = params => {
|
||||||
|
@ -110,7 +110,7 @@ export const historyMemberChartList = () => {
|
||||||
|
|
||||||
//查询会员数量
|
//查询会员数量
|
||||||
export const getMemberNum = params => {
|
export const getMemberNum = params => {
|
||||||
return getRequest("/member/passport/num", params);
|
return getRequest("/passport/member/num", params);
|
||||||
};
|
};
|
||||||
//查询会员历史积分
|
//查询会员历史积分
|
||||||
export const getHistoryPointData = (params) => {
|
export const getHistoryPointData = (params) => {
|
||||||
|
|
|
@ -153,5 +153,5 @@ export const refundLog = (params) => {
|
||||||
|
|
||||||
//售后单商家收货信息
|
//售后单商家收货信息
|
||||||
export const storeAddress = (sn) => {
|
export const storeAddress = (sn) => {
|
||||||
return getRequest(`/afterSale/getStoreAfterSaleAddress/${sn}`)
|
return getRequest(`/order/afterSale/getStoreAfterSaleAddress/${sn}`)
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ export const saveArticleCategory = (params) => {
|
||||||
|
|
||||||
//删除文章分类
|
//删除文章分类
|
||||||
export const delArticleCategory = (id) => {
|
export const delArticleCategory = (id) => {
|
||||||
return deleteRequest(`/other/articleCategory${id}`)
|
return deleteRequest(`/other/articleCategory/${id}`)
|
||||||
}
|
}
|
||||||
//修改文章分类
|
//修改文章分类
|
||||||
export const updateArticleCategory = (params, id) => {
|
export const updateArticleCategory = (params, id) => {
|
||||||
|
|
|
@ -66,29 +66,29 @@ export const updatePintuanStatus = (pintuanId, params) => {
|
||||||
|
|
||||||
// 修改砍价活动商品
|
// 修改砍价活动商品
|
||||||
export const saveKanJiaActivityGoods = params => {
|
export const saveKanJiaActivityGoods = params => {
|
||||||
return postRequest("/promotion/kan-jia-goods", params, {
|
return postRequest("/promotion/kanJiaGoods", params, {
|
||||||
"Content-type": "application/json"
|
"Content-type": "application/json"
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
// 修改砍价活动商品
|
// 修改砍价活动商品
|
||||||
export const editKanJiaActivityGoods = params => {
|
export const editKanJiaActivityGoods = params => {
|
||||||
return putRequest("/promotion/kan-jia-goods", params, {
|
return putRequest("/promotion/kanJiaGoods", params, {
|
||||||
"Content-type": "application/json"
|
"Content-type": "application/json"
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
// 获取砍价活动商品
|
// 获取砍价活动商品
|
||||||
export const getKanJiaGoodsList = params => {
|
export const getKanJiaGoodsList = params => {
|
||||||
return getRequest(`/promotion/kan-jia-goods`, params);
|
return getRequest(`/promotion/kanJiaGoods`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
//删除砍价活动商品
|
//删除砍价活动商品
|
||||||
export const delKanJiaGoods = ids => {
|
export const delKanJiaGoods = ids => {
|
||||||
return deleteRequest(`/promotion/kan-jia-goods/${ids}`);
|
return deleteRequest(`/promotion/kanJiaGoods/${ids}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 砍价活动商品详情
|
// 砍价活动商品详情
|
||||||
export const getKanJiaActivityGoodsById = id => {
|
export const getKanJiaActivityGoodsById = id => {
|
||||||
return getRequest(`/promotion/kan-jia-goods/${id}`);
|
return getRequest(`/promotion/kanJiaGoods/${id}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 保存平台优惠券
|
// 保存平台优惠券
|
||||||
|
|
|
@ -11,7 +11,7 @@ export const getMessageData = params => {
|
||||||
};
|
};
|
||||||
//修改短信模板
|
//修改短信模板
|
||||||
export const editSmsMessageTemplate = (id, params) => {
|
export const editSmsMessageTemplate = (id, params) => {
|
||||||
return putRequest(`/message/sms/${id}`, params)
|
return putRequest(`/sms/sms/${id}`, params)
|
||||||
}
|
}
|
||||||
//修改站内信模板
|
//修改站内信模板
|
||||||
export const editNoticeMessage = (id, params) => {
|
export const editNoticeMessage = (id, params) => {
|
||||||
|
@ -61,7 +61,7 @@ export const getNoticeMessageData = params => {
|
||||||
};
|
};
|
||||||
//删除站内信
|
//删除站内信
|
||||||
export const deleteMessage = (id) => {
|
export const deleteMessage = (id) => {
|
||||||
return deleteRequest(`message/${id}`);
|
return deleteRequest(`/other/message/${id}`);
|
||||||
};
|
};
|
||||||
// 开启站内信模板
|
// 开启站内信模板
|
||||||
export const openNoticeMessage = (id) => {
|
export const openNoticeMessage = (id) => {
|
||||||
|
|
|
@ -47,12 +47,12 @@ export const shopDetail = (id) => {
|
||||||
|
|
||||||
// 获取结算单分页
|
// 获取结算单分页
|
||||||
export const getBuyBillPage = (params) => {
|
export const getBuyBillPage = (params) => {
|
||||||
return getRequest(`/store/bill/getByPage`,params)
|
return getRequest(`/order/bill/getByPage`,params)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取结算单详情
|
// 获取结算单详情
|
||||||
export const getBuyBillDetail = (id) => {
|
export const getBuyBillDetail = (id) => {
|
||||||
return getRequest(`/store/bill/get/${id}`)
|
return getRequest(`/order/bill/get/${id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,12 +64,12 @@ export const getStoreFlow = (id,params) => {
|
||||||
// 审核结算单
|
// 审核结算单
|
||||||
|
|
||||||
export const examine = (id) => {
|
export const examine = (id) => {
|
||||||
return putRequest(`/store/bill/examine/${id}`)
|
return putRequest(`/order/bill/examine/${id}`)
|
||||||
}
|
}
|
||||||
// 审核结算单
|
// 审核结算单
|
||||||
|
|
||||||
export const pay = (id) => {
|
export const pay = (id) => {
|
||||||
return putRequest(`/store/bill/pay/${id}`)
|
return putRequest(`/order/bill/pay/${id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
//获取所有商家
|
//获取所有商家
|
||||||
|
|
|
@ -2,10 +2,10 @@ import {commonUrl, getRequest} from '@/libs/axios';
|
||||||
|
|
||||||
// 通过id获取子地区
|
// 通过id获取子地区
|
||||||
export const getChildRegion = (id) => {
|
export const getChildRegion = (id) => {
|
||||||
return getRequest(`${commonUrl}/common/region/item/${id}`);
|
return getRequest(`${commonUrl}/common/common/region/item/${id}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 点地图获取地址信息
|
// 点地图获取地址信息
|
||||||
export const getRegion = (params) => {
|
export const getRegion = (params) => {
|
||||||
return getRequest(`${commonUrl}/common/region/region`, params);
|
return getRequest(`${commonUrl}/common/common/region/region`, params);
|
||||||
};
|
};
|
||||||
|
|
|
@ -69,7 +69,7 @@ export const saveCategoryBrand = (category_id, params) => {
|
||||||
};
|
};
|
||||||
//保存获取关联规格
|
//保存获取关联规格
|
||||||
export const saveCategorySpec = (category_id, params) => {
|
export const saveCategorySpec = (category_id, params) => {
|
||||||
return postRequest(`/goods/category/spec/${category_id}`, params);
|
return postRequest(`/goods/categorySpec/${category_id}`, params);
|
||||||
};
|
};
|
||||||
|
|
||||||
//获取所有可用品牌
|
//获取所有可用品牌
|
||||||
|
@ -117,7 +117,7 @@ export const insertOrUpdateSpec = params => {
|
||||||
};
|
};
|
||||||
//根据分类id获取关联规格
|
//根据分类id获取关联规格
|
||||||
export const getCategorySpecListData = (category_id, params) => {
|
export const getCategorySpecListData = (category_id, params) => {
|
||||||
return getRequest(`/goods/category/spec/${category_id}`, params);
|
return getRequest(`/goods/categorySpec/${category_id}`, params);
|
||||||
};
|
};
|
||||||
//删除gUI个
|
//删除gUI个
|
||||||
export const delSpec = (id, params) => {
|
export const delSpec = (id, params) => {
|
||||||
|
|
|
@ -53,22 +53,22 @@ export const logisticsUnChecked = (id, params) => {
|
||||||
}
|
}
|
||||||
// 获取商家自提点
|
// 获取商家自提点
|
||||||
export const getShopAddress = (id, params) => {
|
export const getShopAddress = (id, params) => {
|
||||||
return getRequest(`/storeAddress/`, params)
|
return getRequest(`/member/storeAddress/`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改商家自提点
|
// 修改商家自提点
|
||||||
export const editShopAddress = (id, params) => {
|
export const editShopAddress = (id, params) => {
|
||||||
return putRequest(`/storeAddress/${id}`, params)
|
return putRequest(`/member/storeAddress/${id}`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加商品自提点
|
// 添加商品自提点
|
||||||
export const addShopAddress = (params) => {
|
export const addShopAddress = (params) => {
|
||||||
return postRequest(`/storeAddress/`, params)
|
return postRequest(`/member/storeAddress/`, params)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加商品自提点
|
// 添加商品自提点
|
||||||
export const deleteShopAddress = (id) => {
|
export const deleteShopAddress = (id) => {
|
||||||
return deleteRequest(`/storeAddress/${id}`)
|
return deleteRequest(`/member/storeAddress/${id}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取商家详细信息
|
// 获取商家详细信息
|
||||||
|
|
|
@ -2,24 +2,52 @@
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Card>
|
<Card>
|
||||||
<Row @keydown.enter.native="handleSearch">
|
<Row @keydown.enter.native="handleSearch">
|
||||||
<Form ref="searchForm" :model="searchForm" inline :label-width="70" class="search-form">
|
<Form
|
||||||
|
ref="searchForm"
|
||||||
|
:model="searchForm"
|
||||||
|
inline
|
||||||
|
:label-width="70"
|
||||||
|
class="search-form"
|
||||||
|
>
|
||||||
<Form-item label="商品名称" prop="goodsName">
|
<Form-item label="商品名称" prop="goodsName">
|
||||||
<Input type="text" v-model="searchForm.goodsName" placeholder="请输入商品名称" clearable style="width: 200px" />
|
<Input
|
||||||
|
type="text"
|
||||||
|
v-model="searchForm.goodsName"
|
||||||
|
placeholder="请输入商品名称"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Form-item label="状态" prop="status">
|
<Form-item label="状态" prop="status">
|
||||||
<Select v-model="searchForm.marketEnable" placeholder="请选择" clearable style="width: 200px">
|
<Select
|
||||||
|
v-model="searchForm.marketEnable"
|
||||||
|
placeholder="请选择"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
<Option value="DOWN">下架</Option>
|
<Option value="DOWN">下架</Option>
|
||||||
<Option value="UPPER">上架</Option>
|
<Option value="UPPER">上架</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Form-item label="商品类型" prop="status">
|
<Form-item label="商品类型" prop="status">
|
||||||
<Select v-model="searchForm.goodsType" placeholder="请选择" clearable style="width: 200px">
|
<Select
|
||||||
|
v-model="searchForm.goodsType"
|
||||||
|
placeholder="请选择"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
>
|
||||||
<Option value="PHYSICAL_GOODS">实物商品</Option>
|
<Option value="PHYSICAL_GOODS">实物商品</Option>
|
||||||
<Option value="VIRTUAL_GOODS">虚拟商品</Option>
|
<Option value="VIRTUAL_GOODS">虚拟商品</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Form-item label="商品编号" prop="sn">
|
<Form-item label="商品编号" prop="sn">
|
||||||
<Input type="text" v-model="searchForm.id" placeholder="商品编号" clearable style="width: 200px" />
|
<Input
|
||||||
|
type="text"
|
||||||
|
v-model="searchForm.id"
|
||||||
|
placeholder="商品编号"
|
||||||
|
clearable
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
</Form-item>
|
</Form-item>
|
||||||
<Button @click="handleSearch" type="primary" class="search-btn">搜索</Button>
|
<Button @click="handleSearch" type="primary" class="search-btn">搜索</Button>
|
||||||
<Button @click="handleReset" class="search-btn">重置</Button>
|
<Button @click="handleReset" class="search-btn">重置</Button>
|
||||||
|
@ -41,40 +69,82 @@
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Table class="mt_10" :loading="loading" border :columns="columns" :data="data" ref="table" @on-selection-change="changeSelect">
|
<Table
|
||||||
|
class="mt_10"
|
||||||
|
:loading="loading"
|
||||||
|
border
|
||||||
|
:columns="columns"
|
||||||
|
:data="data"
|
||||||
|
ref="table"
|
||||||
|
@on-selection-change="changeSelect"
|
||||||
|
>
|
||||||
<!-- 商品栏目格式化 -->
|
<!-- 商品栏目格式化 -->
|
||||||
<template slot="goodsSlot" slot-scope="{row}">
|
<template slot="goodsSlot" slot-scope="{ row }">
|
||||||
<div style="margin-top: 5px;height: 90px; display: flex;">
|
<div style="margin-top: 5px; height: 90px; display: flex">
|
||||||
<div style="">
|
<div style="">
|
||||||
<img :src="row.original" style="height: 80px;margin-top: 3px;width: 70px">
|
<img
|
||||||
|
:src="row.original"
|
||||||
|
style="height: 80px; margin-top: 3px; width: 70px"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="margin-left: 13px;">
|
<div style="margin-left: 13px">
|
||||||
<div class="div-zoom">
|
<div class="div-zoom">
|
||||||
<a @click="linkTo(row.id,row.skuId)">{{ row.goodsName }}</a>
|
<a @click="linkTo(row.id, row.skuId)">{{ row.goodsName }}</a>
|
||||||
</div>
|
</div>
|
||||||
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
<Poptip trigger="hover" title="扫码在手机中查看" transfer>
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<!-- <vueQr>123</vueQr> -->
|
<!-- <vueQr>123</vueQr> -->
|
||||||
<vue-qr :text="wapLinkTo(row.id,row.skuId)" :margin="0" colorDark="#000" colorLight="#fff" :size="150"></vue-qr>
|
<vue-qr
|
||||||
|
:text="wapLinkTo(row.id, row.skuId)"
|
||||||
|
:margin="0"
|
||||||
|
colorDark="#000"
|
||||||
|
colorLight="#fff"
|
||||||
|
:size="150"
|
||||||
|
></vue-qr>
|
||||||
</div>
|
</div>
|
||||||
<img src="../../../assets/qrcode.svg" class="hover-pointer" width="20" height="20" alt="">
|
<img
|
||||||
|
src="../../../assets/qrcode.svg"
|
||||||
|
class="hover-pointer"
|
||||||
|
width="20"
|
||||||
|
height="20"
|
||||||
|
alt=""
|
||||||
|
/>
|
||||||
</Poptip>
|
</Poptip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</Table>
|
</Table>
|
||||||
<Row type="flex" justify="end" class="mt_10">
|
<Row type="flex" justify="end" class="mt_10">
|
||||||
<Page :current="searchForm.pageNumber" :total="total" :page-size="searchForm.pageSize" @on-change="changePage" @on-page-size-change="changePageSize" :page-size-opts="[10, 20, 50]" size="small"
|
<Page
|
||||||
show-total show-elevator show-sizer></Page>
|
:current="searchForm.pageNumber"
|
||||||
|
:total="total"
|
||||||
|
:page-size="searchForm.pageSize"
|
||||||
|
@on-change="changePage"
|
||||||
|
@on-page-size-change="changePageSize"
|
||||||
|
:page-size-opts="[10, 20, 50]"
|
||||||
|
size="small"
|
||||||
|
show-total
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
></Page>
|
||||||
</Row>
|
</Row>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
<Modal title="更新库存" v-model="updateStockModalVisible" :mask-closable="false" :width="500">
|
<Modal
|
||||||
|
title="更新库存"
|
||||||
|
v-model="updateStockModalVisible"
|
||||||
|
:mask-closable="false"
|
||||||
|
:width="500"
|
||||||
|
>
|
||||||
<Tabs value="updateStock">
|
<Tabs value="updateStock">
|
||||||
<TabPane label="手动规格更新" name="updateStock">
|
<TabPane label="手动规格更新" name="updateStock">
|
||||||
<Table class="mt_10" :columns="updateStockColumns" :data="stockList" border ></Table>
|
<Table
|
||||||
|
class="mt_10"
|
||||||
|
:columns="updateStockColumns"
|
||||||
|
:data="stockList"
|
||||||
|
border
|
||||||
|
></Table>
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<TabPane label="批量规格更新" name="stockAll">
|
<TabPane label="批量规格更新" name="stockAll">
|
||||||
<Input type="number" v-model="stockAllUpdate" placeholder="统一规格修改" />
|
<Input type="number" v-model="stockAllUpdate" placeholder="统一规格修改" />
|
||||||
|
@ -88,11 +158,17 @@
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<!-- 批量设置物流模板 -->
|
<!-- 批量设置物流模板 -->
|
||||||
<Modal title="批量设置物流模板" v-model="shipTemplateModal" :mask-closable="false" :width="500">
|
<Modal
|
||||||
|
title="批量设置物流模板"
|
||||||
|
v-model="shipTemplateModal"
|
||||||
|
:mask-closable="false"
|
||||||
|
:width="500"
|
||||||
|
>
|
||||||
<Form ref="shipTemplateForm" :model="shipTemplateForm" :label-width="120">
|
<Form ref="shipTemplateForm" :model="shipTemplateForm" :label-width="120">
|
||||||
<FormItem class="form-item-view-el" label="物流模板" prop="templateId">
|
<FormItem class="form-item-view-el" label="物流模板" prop="templateId">
|
||||||
<Select v-model="shipTemplateForm.templateId" style="width: 200px">
|
<Select v-model="shipTemplateForm.templateId" style="width: 200px">
|
||||||
<Option v-for="item in logisticsTemplate" :value="item.id" :key="item.id">{{ item.name }}
|
<Option v-for="item in logisticsTemplate" :value="item.id" :key="item.id"
|
||||||
|
>{{ item.name }}
|
||||||
</Option>
|
</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
@ -113,12 +189,11 @@ import {
|
||||||
upGoods,
|
upGoods,
|
||||||
lowGoods,
|
lowGoods,
|
||||||
deleteGoods,
|
deleteGoods,
|
||||||
batchShipTemplate
|
batchShipTemplate,
|
||||||
} from "@/api/goods";
|
} from "@/api/goods";
|
||||||
import * as API_Shop from "@/api/shops";
|
import * as API_Shop from "@/api/shops";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
name: "goods",
|
name: "goods",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -160,11 +235,11 @@ export default {
|
||||||
width: 130,
|
width: 130,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.authFlag == "TOBEAUDITED") {
|
if (params.row.authFlag == "TOBEAUDITED") {
|
||||||
return h("Tag", {props: {color: "blue",},},"待审核");
|
return h("Tag", { props: { color: "blue" } }, "待审核");
|
||||||
} else if (params.row.authFlag == "PASS") {
|
} else if (params.row.authFlag == "PASS") {
|
||||||
return h("Tag", {props: {color: "green",},},"通过");
|
return h("Tag", { props: { color: "green" } }, "通过");
|
||||||
} else if (params.row.authFlag == "REFUSE") {
|
} else if (params.row.authFlag == "REFUSE") {
|
||||||
return h("Tag", {props: {color: "red",},},"审核拒绝");
|
return h("Tag", { props: { color: "red" } }, "审核拒绝");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -216,12 +291,12 @@ export default {
|
||||||
key: "goodsType",
|
key: "goodsType",
|
||||||
width: 130,
|
width: 130,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.goodsType === 'PHYSICAL_GOODS') {
|
if (params.row.goodsType === "PHYSICAL_GOODS") {
|
||||||
return h("Tag", {props: {color: "geekblue"}},"实物商品");
|
return h("Tag", { props: { color: "geekblue" } }, "实物商品");
|
||||||
} else if (params.row.goodsType === 'VIRTUAL_GOODS') {
|
} else if (params.row.goodsType === "VIRTUAL_GOODS") {
|
||||||
return h("Tag", {props: {color: "purple"}},"虚拟商品");
|
return h("Tag", { props: { color: "purple" } }, "虚拟商品");
|
||||||
} else {
|
} else {
|
||||||
return h("Tag", {props: {color: "cyan"}},"电子卡券");
|
return h("Tag", { props: { color: "cyan" } }, "电子卡券");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -230,10 +305,7 @@ export default {
|
||||||
key: "price",
|
key: "price",
|
||||||
width: 130,
|
width: 130,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
return h(
|
return h("div", this.$options.filters.unitPrice(params.row.price, "¥"));
|
||||||
"div",
|
|
||||||
this.$options.filters.unitPrice(params.row.price, "¥")
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -254,11 +326,11 @@ export default {
|
||||||
width: 120,
|
width: 120,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.authFlag == "PASS") {
|
if (params.row.authFlag == "PASS") {
|
||||||
return h("Tag", {props: {color: "green"}},"通过");
|
return h("Tag", { props: { color: "green" } }, "通过");
|
||||||
} else if (params.row.authFlag == "TOBEAUDITED") {
|
} else if (params.row.authFlag == "TOBEAUDITED") {
|
||||||
return h("Tag", {props: {color: "volcano"}},"待审核");
|
return h("Tag", { props: { color: "volcano" } }, "待审核");
|
||||||
} else if (params.row.authFlag == "REFUSE") {
|
} else if (params.row.authFlag == "REFUSE") {
|
||||||
return h("Tag", {props: {color: "red"}},"审核拒绝");
|
return h("Tag", { props: { color: "red" } }, "审核拒绝");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -269,9 +341,9 @@ export default {
|
||||||
sortable: false,
|
sortable: false,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (params.row.marketEnable == "DOWN") {
|
if (params.row.marketEnable == "DOWN") {
|
||||||
return h("Tag", {props: {color: "red"}},"下架");
|
return h("Tag", { props: { color: "red" } }, "下架");
|
||||||
} else if (params.row.marketEnable == "UPPER") {
|
} else if (params.row.marketEnable == "UPPER") {
|
||||||
return h("Tag", {props: {color: "green"}},"上架");
|
return h("Tag", { props: { color: "green" } }, "上架");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -371,7 +443,8 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init() { // 初始化数据
|
init() {
|
||||||
|
// 初始化数据
|
||||||
this.getDataList();
|
this.getDataList();
|
||||||
},
|
},
|
||||||
// 添加商品
|
// 添加商品
|
||||||
|
@ -425,6 +498,7 @@ export default {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.updateStockModalVisible = false;
|
this.updateStockModalVisible = false;
|
||||||
this.$Message.success("更新库存成功");
|
this.$Message.success("更新库存成功");
|
||||||
|
this.getDataList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -466,8 +540,7 @@ export default {
|
||||||
saveShipTemplate() {
|
saveShipTemplate() {
|
||||||
this.$Modal.confirm({
|
this.$Modal.confirm({
|
||||||
title: "确认设置物流模板",
|
title: "确认设置物流模板",
|
||||||
content:
|
content: "您确认要设置所选的 " + this.selectCount + " 个商品的物流模板?",
|
||||||
"您确认要设置所选的 " + this.selectCount + " 个商品的物流模板?",
|
|
||||||
loading: true,
|
loading: true,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
let ids = [];
|
let ids = [];
|
||||||
|
@ -493,7 +566,7 @@ export default {
|
||||||
this.$Message.warning("您还未选择要设置物流模板的商品");
|
this.$Message.warning("您还未选择要设置物流模板的商品");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.getShipTempList()
|
this.getShipTempList();
|
||||||
let data = [];
|
let data = [];
|
||||||
this.selectList.forEach(function (e) {
|
this.selectList.forEach(function (e) {
|
||||||
data.push(e.id);
|
data.push(e.id);
|
||||||
|
@ -514,12 +587,12 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 获取物流模板
|
// 获取物流模板
|
||||||
getShipTempList () {
|
getShipTempList() {
|
||||||
API_Shop.getShipTemplate().then((res) => {
|
API_Shop.getShipTemplate().then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.logisticsTemplate = res.result;
|
this.logisticsTemplate = res.result;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
//下架商品
|
//下架商品
|
||||||
lower(v) {
|
lower(v) {
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
type="success"
|
type="success"
|
||||||
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
|
v-if="row.promotionStatus === 'CLOSE'"
|
||||||
style="margin-left: 5px"
|
style="margin-left: 5px"
|
||||||
size="small"
|
size="small"
|
||||||
@click="openOrClose(row)"
|
@click="openOrClose(row)"
|
||||||
|
|
Loading…
Reference in New Issue