diff --git a/src/api/store/base.js b/src/api/store/base.js index e89ba79..535a5b7 100644 --- a/src/api/store/base.js +++ b/src/api/store/base.js @@ -112,3 +112,14 @@ export function exportFile(params) { params, }) } +//开分店 +export function createSubStore(data) { + return request({ + url: URL.shop.store.base.subStore, + method: 'post', + data:data, + headers: { + 'Content-Type': 'application/json;charset=UTF-8' + } + }) +} diff --git a/src/config/net.config.js b/src/config/net.config.js index fa0b375..55a4907 100644 --- a/src/config/net.config.js +++ b/src/config/net.config.js @@ -936,6 +936,7 @@ let url = { //商家端-获取门店信息 get: api_url + '/admin/shop/shop-store-base/get', exportFile: api_url + '/admin/shop/shop-store-base/exportFile', + subStore:api_url+'/admin/shop/merch/branch/apply/store', }, activity: { base: { diff --git a/src/views/store/base/components/createSubStore.vue b/src/views/store/base/components/createSubStore.vue new file mode 100644 index 0000000..5ed796b --- /dev/null +++ b/src/views/store/base/components/createSubStore.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/store/base/index.vue b/src/views/store/base/index.vue index 342db28..00e43ad 100644 --- a/src/views/store/base/index.vue +++ b/src/views/store/base/index.vue @@ -17,8 +17,11 @@ > {{ __('导出打印') }} - + + + {{ __('添加分店') }} @@ -385,6 +388,7 @@ + @@ -400,8 +404,9 @@ import Detail from './components/StoreBaseDetailEdit' import setState from './components/setState' import LocationEdit from './components/LocationEdit' + import CreateSubStore from './components/createSubStore.vue' import {getList as getSubsite} from "@/api/plantform/subsite"; - + export default { name: 'StoreBase', components: { @@ -412,6 +417,7 @@ Detail, SetCategory, setState, + CreateSubStore }, data() { return { @@ -453,6 +459,7 @@ }, ], store_type: 2, + subStoreRef:null, storeList: [ { store_is_selfsupport: 1, @@ -571,6 +578,9 @@ this.$refs['edit'].showEdit() } }, + handleSubStore(){ + this.$refs.subStoreRef?.open() + }, handleLocationEdit(row) { if (row) { this.$refs['locationEdit'].showEdit(row)