diff --git a/resources/frontend/src/api/goods.js b/resources/frontend/src/api/goods.js index 9a05dc4..fe04f9f 100644 --- a/resources/frontend/src/api/goods.js +++ b/resources/frontend/src/api/goods.js @@ -3,8 +3,38 @@ import http from '@/util/http.js' // 商品管理列表 export function goods (data) { return http({ - url: '/api/goods', + url: '/api/goods_skus', method: 'get', data }) -} \ No newline at end of file +} +// 新建商品 +export function addGoods (data) { + return http({ + url: '/api/goods', + method: 'post', + data + }) +} +// 查看商品 +export function checkGoods (id) { + return http({ + url: `/api/goods_skus/${id}`, + method: 'get' + }) +} +// 商品列表 +export function goodsList () { + return http({ + url: '/api/goods', + method: 'get' + }) +} +// 更新商品 +export function updateGoods (id, data) { + return http({ + url: `/api/goods_skus/${id}`, + method: 'patch', + data + }) +} diff --git a/resources/frontend/src/api/rankingData.js b/resources/frontend/src/api/rankingData.js index 0fe9b1a..6592e37 100644 --- a/resources/frontend/src/api/rankingData.js +++ b/resources/frontend/src/api/rankingData.js @@ -55,20 +55,20 @@ export function goods_types (data) { export function Delgoods_types (id) { return http({ url: `/api/goods_types/${id}`, - method: 'delete', - + method: 'delete' + }) } // 新增种类 export function Addgoods_types (data) { return http({ - url: `/api/goods_types/`, + url: '/api/goods_types/', method: 'post', data }) } // 编辑种类 -export function editGoods_types (id,data) { +export function editGoods_types (id, data) { return http({ url: `/api/goods_types/${id}`, method: 'patch', @@ -87,8 +87,7 @@ export function Brand_goods_types (data) { export function DelBrand_goods_types (id) { return http({ url: `/api/goods_brands/${id}`, - method: 'delete', - + method: 'delete' }) } // 新增品牌 @@ -100,10 +99,10 @@ export function AddBrandgoods_types (data) { }) } // 编辑品牌 -export function editBrand_types(id,data) { +export function editBrand_types (id, data) { return http({ url: `/api/goods_brands/${id}`, method: 'patch', data }) -} \ No newline at end of file +} diff --git a/resources/frontend/src/api/shop.js b/resources/frontend/src/api/shop.js new file mode 100644 index 0000000..4faadf3 --- /dev/null +++ b/resources/frontend/src/api/shop.js @@ -0,0 +1,24 @@ +import http from '@/util/http.js' +// 店铺平台列表 +export function shopListId () { + return http({ + url: '/api/shop_platforms', + method: 'get' + }) +} +// 店铺新增 +export function shopAdd (data) { + return http({ + url: '/api/shops', + method: 'post', + data + }) +} +// 店铺列表 +export function storeList (data) { + return http({ + url: '/api/shops', + method: 'get', + data + }) +} diff --git a/resources/frontend/src/components/mapDrag/index.vue b/resources/frontend/src/components/mapDrag/index.vue index 2ece1b8..e0d5cfe 100644 --- a/resources/frontend/src/components/mapDrag/index.vue +++ b/resources/frontend/src/components/mapDrag/index.vue @@ -1,26 +1,30 @@ diff --git a/resources/frontend/src/components/upload/index.vue b/resources/frontend/src/components/upload/index.vue new file mode 100644 index 0000000..4db0117 --- /dev/null +++ b/resources/frontend/src/components/upload/index.vue @@ -0,0 +1,214 @@ + + + + + + diff --git a/resources/frontend/src/store/index.js b/resources/frontend/src/store/index.js index 971e161..332b916 100644 --- a/resources/frontend/src/store/index.js +++ b/resources/frontend/src/store/index.js @@ -1,13 +1,15 @@ -import Vue from "vue"; -import Vuex from "vuex"; +import Vue from 'vue' +import Vuex from 'vuex' -Vue.use(Vuex); +Vue.use(Vuex) -const store = new Vuex.Store({ - state: {}, - mutations: {}, - actions: {}, - modules: {}, -}); - -export default store; +export default new Vuex.Store({ + state: { + }, + mutations: { + }, + actions: { + }, + modules: { + } +}) diff --git a/resources/frontend/src/views/store/store.vue b/resources/frontend/src/views/store/store.vue index 49c5006..ce78840 100644 --- a/resources/frontend/src/views/store/store.vue +++ b/resources/frontend/src/views/store/store.vue @@ -1,55 +1,113 @@ diff --git a/resources/frontend/src/views/users/users.vue b/resources/frontend/src/views/users/users.vue index e53d7f9..7a8bacf 100644 --- a/resources/frontend/src/views/users/users.vue +++ b/resources/frontend/src/views/users/users.vue @@ -1,9 +1,11 @@ diff --git a/resources/frontend/src/views/yingyeting/yingyeting.vue b/resources/frontend/src/views/yingyeting/yingyeting.vue index 62f9e95..ba3ae73 100644 --- a/resources/frontend/src/views/yingyeting/yingyeting.vue +++ b/resources/frontend/src/views/yingyeting/yingyeting.vue @@ -8,67 +8,67 @@ :inline="true" :model="form"> - - - - + + - - + - - - - + + + - - + + + + + + - + :value="item.id"> - + align="right" + value-format="yyyy-MM-DD hh:mm:ss"> - 筛选 - 重置筛选 + 筛选 + 重置筛选 @@ -95,9 +95,11 @@ 库存盘点 导入商品 + plain + @click="handleImport">导入商品 表格导出 + plain + @click="handleExport">表格导出 @@ -112,36 +114,45 @@ width="55"> - + - + + - + - + + - - - -