diff --git a/src/api/system_store.ts b/src/api/system_store.ts index 6d92aa69..3d2dca79 100644 --- a/src/api/system_store.ts +++ b/src/api/system_store.ts @@ -23,4 +23,9 @@ export function apiSystemStoreDelete(params: any) { // 门店列表详情 export function apiSystemStoreDetail(params: any) { return request.get({ url: '/system_store/systemstore/detail', params }) +} + +// 根据商品来源获取门店 +export function apiSourceProductStoreLists(params: any) { + return request.get({ url: '/system_store/systemstore/source_product_store_lists', params }) } \ No newline at end of file diff --git a/src/components/storePop/index.vue b/src/components/storePop/index.vue new file mode 100644 index 00000000..545f20de --- /dev/null +++ b/src/components/storePop/index.vue @@ -0,0 +1,82 @@ + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + {{ row.is_show ? '显示' : '隐藏' }} + + + + + + + + 添加门店 + + + + diff --git a/src/config/setting.ts b/src/config/setting.ts index 35d62e1f..f33e27bb 100644 --- a/src/config/setting.ts +++ b/src/config/setting.ts @@ -3,10 +3,12 @@ const defaultSetting = { showLogo: true, // 是否显示logo isUniqueOpened: false, //只展开一个一级菜单 sideWidth: 200, //侧边栏宽度 - sideTheme: 'light', //侧边栏主题 + // sideTheme: 'light', //侧边栏主题 + sideTheme: 'dark', //侧边栏主题 sideDarkColor: '#1d2124', //侧边栏深色主题颜色 openMultipleTabs: true, // 是否开启多标签tab栏 - theme: '#4A5DFF', //主题色 + // theme: '#4A5DFF', //主题色 + theme: '#20B128', //主题色 successTheme: '#67c23a', //成功主题色 warningTheme: '#e6a23c', //警告主题色 dangerTheme: '#f56c6c', //危险主题色 diff --git a/src/views/finance/store_extract/index.vue b/src/views/finance/store_extract/index.vue index 031f86e5..91720ec4 100644 --- a/src/views/finance/store_extract/index.vue +++ b/src/views/finance/store_extract/index.vue @@ -18,9 +18,9 @@ - + 查询 重置 @@ -28,7 +28,7 @@ - + diff --git a/src/views/finance/store_finance_flow/index.vue b/src/views/finance/store_finance_flow/index.vue index 6f366b86..a60d6f20 100644 --- a/src/views/finance/store_finance_flow/index.vue +++ b/src/views/finance/store_finance_flow/index.vue @@ -12,9 +12,9 @@ - + 查询 重置 @@ -22,7 +22,7 @@ - + diff --git a/src/views/finance/user_bill/index.vue b/src/views/finance/user_bill/index.vue index 1f16b9d8..65ac603e 100644 --- a/src/views/finance/user_bill/index.vue +++ b/src/views/finance/user_bill/index.vue @@ -9,12 +9,12 @@ - + + 查询 重置 @@ -22,7 +22,7 @@ - + diff --git a/src/views/store/store_product/details.vue b/src/views/store/store_product/details.vue index 78195936..87414d71 100644 --- a/src/views/store/store_product/details.vue +++ b/src/views/store/store_product/details.vue @@ -1,34 +1,59 @@ - - - - {{ formData.store_name }} - - - - - - {{ formData.bar_code }} - - {{ formData.cate_name }} - {{ formData.price }} - {{ formData.unit_name }} - {{ formData.stock }} - {{ formData.cost }} - {{ formData.purchase }} - {{ formData.rose }} - - + + + + + + {{ formData.store_name }} + + + + + + {{ formData.bar_code }} + + {{ formData.cate_name }} + {{ formData.price }} + {{ formData.unit_name }} + {{ formData.stock }} + {{ formData.cost }} + {{ formData.purchase }} + {{ formData.rose }} + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/store/store_product/index.vue b/src/views/store/store_product/index.vue index 35c305ad..3907e2d2 100644 --- a/src/views/store/store_product/index.vue +++ b/src/views/store/store_product/index.vue @@ -12,14 +12,14 @@ - - + + 新增 - - + + 删除 @@ -28,31 +28,36 @@ - + - - - - - - - - + + + + + + + + + + {{ row.is_show ? "上架" : "未上架" }} - - - 编辑 - + + + 编辑 + + 详情 @@ -97,6 +102,8 @@ const selectData = ref([]); // 表格选择后回调事件 const handleSelectionChange = (val: any[]) => { + console.log(val); + selectData.value = val.map(({ id }) => id); }; diff --git a/src/views/store/store_product_unit/index.vue b/src/views/store/store_product_unit/index.vue index c0f35fcf..26473195 100644 --- a/src/views/store/store_product_unit/index.vue +++ b/src/views/store/store_product_unit/index.vue @@ -8,9 +8,9 @@ - + @@ -95,8 +96,10 @@ const showEdit = ref(false) // 查询条件 const queryParams = reactive({ name: '', - phone: '' + phone: '', + is_show: '' }) +const storeType = ref('全部'); // 选中数据 const selectData = ref([]) diff --git a/src/views/user/index.vue b/src/views/user/index.vue index ece62d70..f940e382 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -22,7 +22,7 @@ - +