diff --git a/src/api/system_store.ts b/src/api/system_store.ts new file mode 100644 index 00000000..6d92aa69 --- /dev/null +++ b/src/api/system_store.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 门店列表列表 +export function apiSystemStoreLists(params: any) { + return request.get({ url: '/system_store/systemstore/lists', params }) +} + +// 添加门店列表 +export function apiSystemStoreAdd(params: any) { + return request.post({ url: '/system_store/systemstore/add', params }) +} + +// 编辑门店列表 +export function apiSystemStoreEdit(params: any) { + return request.post({ url: '/system_store/systemstore/edit', params }) +} + +// 删除门店列表 +export function apiSystemStoreDelete(params: any) { + return request.post({ url: '/system_store/systemstore/delete', params }) +} + +// 门店列表详情 +export function apiSystemStoreDetail(params: any) { + return request.get({ url: '/system_store/systemstore/detail', params }) +} \ No newline at end of file diff --git a/src/views/store/store_category/index.vue b/src/views/store/store_category/index.vue index d148a748..fe4e4a4f 100644 --- a/src/views/store/store_category/index.vue +++ b/src/views/store/store_category/index.vue @@ -62,7 +62,7 @@ - + diff --git a/src/views/store/store_product/details.vue b/src/views/store/store_product/details.vue index b98937f4..78195936 100644 --- a/src/views/store/store_product/details.vue +++ b/src/views/store/store_product/details.vue @@ -1,12 +1,25 @@ @@ -24,16 +37,24 @@ defineProps({ } }) const emit = defineEmits(['success', 'close']) -const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') - // 表单数据 const formData = reactive({ - id: '', - store_name: '', + image: "", + store_name: "", + bar_code: "", + cate_id: "", + cate_name: "", + price: "", + unit: "", + unit_name: "", + stock: "", + cost: "", + purchase: "", + rose: "0", }) diff --git a/src/views/store/store_product/index.vue b/src/views/store/store_product/index.vue index 3c1b8b9a..35c305ad 100644 --- a/src/views/store/store_product/index.vue +++ b/src/views/store/store_product/index.vue @@ -47,7 +47,7 @@ - +