diff --git a/src/api/goodsList.ts b/src/api/goodsList.ts index 903ad86..77208f6 100644 --- a/src/api/goodsList.ts +++ b/src/api/goodsList.ts @@ -2,21 +2,21 @@ import request from '@/utils/request' // 商品列表 export function apiGoodsListLists(params: any) { - return request.get({ url: '/consult_target.consult_decision/lists', params }) + return request.get({ url: '/store_product/storeProduct/lists', params }) } // 库存管理 export function apiGoodsListDetail(params: any) { - return request.get({ url: '/consult_target.consult_decision/add', params }) + return request.get({ url: '/consult_target.consult_decision/add12', params }) } // 库存管理 export function apiGoodsTypeLists(params: any) { - return request.get({ url: '/consult_target.consult_decision/add', params }) + return request.get({ url: '/consult_target.consult_decision/add54', params }) } // 上架&下架 export function apiStatus(params: any) { - return request.post({ url: '/consult_target.consult_decision/add', params }) + return request.post({ url: '/store_product/storeProduct/status', params }) } diff --git a/src/api/perms/admin.ts b/src/api/perms/admin.ts index dd40ff9..98ef2a6 100644 --- a/src/api/perms/admin.ts +++ b/src/api/perms/admin.ts @@ -2,28 +2,28 @@ import request from '@/utils/request' // 管理员列表 export function adminLists(params: any) { - return request.get({ url: '/auth.admin/lists', params }, { ignoreCancelToken: true }) + return request.get({ url: '/auth/admin/lists', params }, { ignoreCancelToken: true }) } // 管理员列表全部 export function adminAll(params: any) { - return request.get({ url: '/auth.admin/all', params }) + return request.get({ url: '/auth/admin/all', params }) } // 管理员添加 export function adminAdd(params: any) { - return request.post({ url: '/auth.admin/add', params }) + return request.post({ url: '/auth/admin/add', params }) } // 管理员编辑 export function adminEdit(params: any) { - return request.post({ url: '/auth.admin/edit', params }) + return request.post({ url: '/auth/admin/edit', params }) } // 管理员删除 export function adminDelete(params: any) { - return request.post({ url: '/auth.admin/delete', params }) + return request.post({ url: '/auth/admin/delete', params }) } // 管理员详情 export function adminDetail(params: any) { - return request.get({ url: '/auth.admin/detail', params }) + return request.get({ url: '/auth/admin/detail', params }) } diff --git a/src/api/perms/menu.ts b/src/api/perms/menu.ts index ea13670..b3932a2 100644 --- a/src/api/perms/menu.ts +++ b/src/api/perms/menu.ts @@ -2,29 +2,29 @@ import request from '@/utils/request' // 菜单列表 export function menuLists(params: Record) { - return request.get({ url: '/auth.menu/lists', params }) + return request.get({ url: '/auth/menu/lists', params }) } // 菜单全部 export function menuAll(params?: Record) { - return request.get({ url: '/auth.menu/all', params }) + return request.get({ url: '/auth/menu/all', params }) } // 添加菜单 export function menuAdd(params: Record) { - return request.post({ url: '/auth.menu/add', params }) + return request.post({ url: '/auth/menu/add', params }) } // 编辑菜单 export function menuEdit(params: Record) { - return request.post({ url: '/auth.menu/edit', params }) + return request.post({ url: '/auth/menu/edit', params }) } // 菜单删除 export function menuDelete(params: Record) { - return request.post({ url: '/auth.menu/delete', params }) + return request.post({ url: '/auth/menu/delete', params }) } // 菜单详情 export function menuDetail(params: Record) { - return request.get({ url: '/auth.menu/detail', params }) + return request.get({ url: '/auth/menu/detail', params }) } diff --git a/src/api/perms/role.ts b/src/api/perms/role.ts index 7c81d40..390765e 100644 --- a/src/api/perms/role.ts +++ b/src/api/perms/role.ts @@ -2,26 +2,26 @@ import request from '@/utils/request' // 角色列表 export function roleLists(params: any) { - return request.get({ url: '/auth.role/lists', params }) + return request.get({ url: '/auth/role/lists', params }) } // 角色列表全部 export function roleAll(params: any) { - return request.get({ url: '/auth.role/all', params }) + return request.get({ url: '/auth/role/all', params }) } // 添加角色 export function roleAdd(params: any) { - return request.post({ url: '/auth.role/add', params }) + return request.post({ url: '/auth/role/add', params }) } // 编辑角色 export function roleEdit(params: any) { - return request.post({ url: '/auth.role/edit', params }) + return request.post({ url: '/auth/role/edit', params }) } // 删除角色 export function roleDelete(params: any) { - return request.post({ url: '/auth.role/delete', params }) + return request.post({ url: '/auth/role/delete', params }) } // 角色详情 export function roleDetail(params: any) { - return request.get({ url: '/auth.role/detail', params }) + return request.get({ url: '/auth/role/detail', params }) } diff --git a/src/api/store_extract.ts b/src/api/store_extract.ts new file mode 100644 index 0000000..2936d58 --- /dev/null +++ b/src/api/store_extract.ts @@ -0,0 +1,16 @@ +import request from '@/utils/request' + +// 门店提现列表 +export function apiStoreExtractLists(params: any) { + return request.get({ url: '/consult_target.consult_decision/lists', params }) +} + +// 门店提现备注 +export function apiStoreExtractRemarks(params: any) { + return request.post({ url: '/consult_target.consult_decision/lists', params }) +} + +// 申请提现 +export function apiStoreExtractCashs(params: any) { + return request.post({ url: '/consult_target.consult_decision/lists', params }) +} diff --git a/src/api/store_finance_flow.ts b/src/api/store_finance_flow.ts new file mode 100644 index 0000000..921868e --- /dev/null +++ b/src/api/store_finance_flow.ts @@ -0,0 +1,11 @@ +import request from '@/utils/request' + +// 门店流水列表 +export function apiStorFinanceFlowLists(params: any) { + return request.get({ url: '/consult_target.consult_decision/lists', params }) +} + +// 门店流水备注 +export function apiStorFinanceFlowRemarks(params: any) { + return request.post({ url: '/consult_target.consult_decision/lists', params }) +} \ No newline at end of file diff --git a/src/api/user.ts b/src/api/user.ts index 39d2010..0b22268 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -13,10 +13,10 @@ export function logout() { // 用户信息 export function getUserInfo() { - return request.get({ url: '/auth.admin/mySelf' }) + return request.get({ url: '/auth/admin/mySelf' }) } // 编辑管理员信息 export function setUserInfo(params: any) { - return request.post({ url: '/auth.admin/editSelf', params }) + return request.post({ url: '/auth/admin/editSelf', params }) } diff --git a/src/assets/images/yexhje.png b/src/assets/images/yexhje.png new file mode 100644 index 0000000..8c33f46 Binary files /dev/null and b/src/assets/images/yexhje.png differ diff --git a/src/components/popup/index.vue b/src/components/popup/index.vue index 726f89f..b5fc599 100644 --- a/src/components/popup/index.vue +++ b/src/components/popup/index.vue @@ -4,15 +4,8 @@ - + @@ -24,11 +17,7 @@ {{ cancelButtonText }} - + {{ confirmButtonText }} @@ -78,7 +67,7 @@ export default defineComponent({ clickModalClose: { // 点击遮罩层关闭对话窗口 type: Boolean, - default: false + default: true }, center: { // 是否居中布局 diff --git a/src/config/index.ts b/src/config/index.ts index 34561f7..5aa6133 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -3,7 +3,7 @@ const config = { title: '后台管理系统', //网站默认标题 version: '1.8.0', //版本号 baseUrl: `${import.meta.env.VITE_APP_BASE_URL || ''}/`, //请求接口域名 - urlPrefix: 'adminapi', //请求默认前缀 + urlPrefix: 'store', //请求默认前缀 timeout: 10 * 1000 //请求超时时长 } diff --git a/src/views/employerLists/edit.vue b/src/views/employerLists/edit.vue index e69de29..38e30ec 100644 --- a/src/views/employerLists/edit.vue +++ b/src/views/employerLists/edit.vue @@ -0,0 +1,165 @@ + + + diff --git a/src/views/employerLists/index.vue b/src/views/employerLists/index.vue index e0e49b5..13aed50 100644 --- a/src/views/employerLists/index.vue +++ b/src/views/employerLists/index.vue @@ -53,9 +53,12 @@ @@ -64,7 +67,8 @@ - + + @@ -72,11 +76,11 @@ import { ref, reactive } from "vue" import { usePaging } from '@/hooks/usePaging' import { apiGoodsListLists, apiStatus, apiGoodsTypeLists } from '@/api/goodsList' -// import detailPopup from './detail.vue' +import EditPopup from './edit.vue' -// const editRef = shallowRef>() +const editRef = shallowRef>() // 是否显示编辑框 -// const showDetail = ref(false) +const showEdit = ref(false) // 查询条件 @@ -115,13 +119,21 @@ const { pager, getLists, resetParams, resetPage } = usePaging({ params: queryParams }) -// 详情 +// 编辑 const handleEdit = async (data: any) => { - // editRef.value?.open() + showEdit.value = true + await nextTick() + editRef.value?.open('edit') + editRef.value?.setFormData(data) +} +// 新增 +const handleAdd = async () => { + showEdit.value = true + await nextTick() + editRef.value?.open('add') } -// 新增 -const handleAdd = () => { +const handleDetail = () => { } diff --git a/src/views/finance/balance_details.vue b/src/views/finance/balance_details.vue index d0fffee..1035a0b 100644 --- a/src/views/finance/balance_details.vue +++ b/src/views/finance/balance_details.vue @@ -1,38 +1,20 @@