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 @@ - - - - - - + + + {{ formData.store_name }} + + + + + + {{ formData.bar_code }} + + {{ formData.cate_name }} + {{ formData.price }} + {{ formData.unit_name }} + {{ formData.stock }} + {{ formData.cost }} + {{ formData.purchase }} + {{ formData.rose }} + @@ -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 @@ - + @@ -117,7 +117,7 @@ const handleAdd = async () => { // 详情 const handleDetail = async (data: any) => { detailsRef.value?.open(); - detailsRef.value?.setFormData(); + detailsRef.value?.setFormData(data); }; // 编辑 diff --git a/src/views/store_order/index.vue b/src/views/store_order/index.vue index 684cc403..e45c6986 100644 --- a/src/views/store_order/index.vue +++ b/src/views/store_order/index.vue @@ -15,7 +15,7 @@ - + diff --git a/src/views/system_store/details.vue b/src/views/system_store/details.vue new file mode 100644 index 00000000..aa2c0659 --- /dev/null +++ b/src/views/system_store/details.vue @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/system_store/edit.vue b/src/views/system_store/edit.vue new file mode 100644 index 00000000..51870bb7 --- /dev/null +++ b/src/views/system_store/edit.vue @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + 显示 + 隐藏 + + + + + + + + diff --git a/src/views/system_store/index.vue b/src/views/system_store/index.vue new file mode 100644 index 00000000..fc519698 --- /dev/null +++ b/src/views/system_store/index.vue @@ -0,0 +1,142 @@ + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + 新增 + + + 删除 + + + + + + + + + + + + + + + + {{ row.is_show ? '显示' : '隐藏' }} + + + + + + 编辑 + + + 删除 + + + + + + + + + + + + + + +