diff --git a/public/static/template/batch-goods.xlsx b/public/static/template/batch-goods.xlsx index 60b1120..1326037 100644 Binary files a/public/static/template/batch-goods.xlsx and b/public/static/template/batch-goods.xlsx differ diff --git a/src/api/goods/index.js b/src/api/goods/index.js index d01c6b7..e8dc8bf 100644 --- a/src/api/goods/index.js +++ b/src/api/goods/index.js @@ -17,6 +17,30 @@ const api = { pool: '/goods/pool', collector:'/goods/collector', category: '/goods/category', + oneShelf:'/goods/oneClickShelf', + oneOffTheShelf:'/goods/oneClickOffTheShelf' +} +/** + * 一键上架 + * @param {*} data + */ +export function oneShelf (data) { + return axios({ + url: api.oneShelf, + method: 'post', + data: data + }) +} +/** + * 一键下架 + * @param {*} data + */ +export function oneOffTheShelf (data) { + return axios({ + url: api.oneOffTheShelf, + method: 'post', + data: data + }) } /** * 归类 diff --git a/src/assets/img/shenhe.png b/src/assets/img/shenhe.png new file mode 100644 index 0000000..b2d0ac7 Binary files /dev/null and b/src/assets/img/shenhe.png differ diff --git a/src/common/model/goods/Index.js b/src/common/model/goods/Index.js index fe49752..650e823 100644 --- a/src/common/model/goods/Index.js +++ b/src/common/model/goods/Index.js @@ -95,7 +95,7 @@ export default { 'status', 'spec_type', 'deduct_stock_type', 'is_restrict', 'content', 'selling_point', 'serviceIds', 'sales_initial', 'is_points_gift', 'is_points_discount', 'is_enable_grade', 'is_alone_grade', 'is_ind_dealer', - 'dealer_money_type', 'first_money', 'second_money', 'third_money', 'cmmdty_model','is_check','goods_source','delivery_time','is_in_store','remark' + 'dealer_money_type', 'first_money', 'second_money', 'third_money', 'cmmdty_model','is_check','goods_source','delivery_time','is_in_store','remark','is_use_jd_stock' ]) console.log(goodsFormData, 100) return { diff --git a/src/components/Table/GoodsItem/GoodsItem.vue b/src/components/Table/GoodsItem/GoodsItem.vue index c8accf6..d20cb1d 100644 --- a/src/components/Table/GoodsItem/GoodsItem.vue +++ b/src/components/Table/GoodsItem/GoodsItem.vue @@ -9,6 +9,7 @@

{{ dataObj.title }}

+

{{ dataObj.subtitle }} @@ -37,6 +38,7 @@ export default { data: PropTypes.object.def({}), // 副标题颜色 subTitleColor: PropTypes.bool.def(false), + source: PropTypes.any.def(0), }, computed: { dataObj() { @@ -48,6 +50,7 @@ export default { subtitle: '', goodsProps: [], titleWidth: 200, + isCheck:'' }, this.$props.data ) @@ -64,6 +67,20 @@ export default {