diff --git a/src/App.vue b/src/App.vue index b9f6fca..45babff 100644 --- a/src/App.vue +++ b/src/App.vue @@ -43,4 +43,13 @@ watch( - + diff --git a/src/api/goodsList.ts b/src/api/goodsList.ts index 85ac250..aefbbcf 100644 --- a/src/api/goodsList.ts +++ b/src/api/goodsList.ts @@ -48,4 +48,11 @@ export function apiStaffDetail(params:any) { export function apiStaffStatus(params:any) { return request.post({ url: '/staff/status',params }) -} \ No newline at end of file +} + + +// 修改密码 +export function apiStaffPwd(params: any) { + return request.post({ url: "/auth.admin/pwd", params }); + } + \ No newline at end of file diff --git a/src/api/store_finance_flow.ts b/src/api/store_finance_flow.ts index 04c83dc..0ff6d79 100644 --- a/src/api/store_finance_flow.ts +++ b/src/api/store_finance_flow.ts @@ -8,4 +8,19 @@ export function apiStorFinanceFlowLists(params: any) { // 门店流水备注 export function apiStorFinanceFlowRemarks(params: any) { return request.post({ url: '/finance/finance/remark', params }) -} \ No newline at end of file +} + + + + +export function apiStoreBillLists(params: any) { + return request.get({ url: '/finance/storeBill/lists', params }) +} + +export function apiStoreBillDetail(params: any) { + return request.get({ url: '/finance/storeBill/detail', params }) +} + +export function apiStoreBillDownload(params: any) { + return request.get({ url: '/finance/storeBill/download', params }) +} diff --git a/src/views/finance/user_bill/index.vue b/src/views/finance/user_bill/index.vue index 2a5f032..ff76b05 100644 --- a/src/views/finance/user_bill/index.vue +++ b/src/views/finance/user_bill/index.vue @@ -94,8 +94,6 @@ const handleDetail = async (data: any) => { // 下载 const handleDown = async (row) => { - - const a = document.createElement('a') // a.href = import.meta.env.VITE_APP_BASE_URL + res.url a.click() diff --git a/src/views/permission/admin/edit.vue b/src/views/permission/admin/edit.vue index ab1bf89..2b8d56d 100644 --- a/src/views/permission/admin/edit.vue +++ b/src/views/permission/admin/edit.vue @@ -11,19 +11,19 @@ - + - + - + - + - + @@ -61,7 +61,7 @@ const popupTitle = computed(() => { const formData = reactive({ id: '', staff_name: '', - avatar: 'https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20240606/20240606162227e3e005096.jpg', + avatar: '', account: '', pwd: '', rePwd: '', diff --git a/src/views/permission/admin/index.vue b/src/views/permission/admin/index.vue index c413656..8b30f69 100644 --- a/src/views/permission/admin/index.vue +++ b/src/views/permission/admin/index.vue @@ -48,7 +48,7 @@ @change="changeStatus(row)"> - + @@ -75,7 +95,7 @@ import { ref, reactive } from "vue" import { usePaging } from '@/hooks/usePaging' import EditPopup from './edit.vue' import DetailPopup from './detail.vue' -import { apiStaffLists, apiStaffDetail, apiStaffStatus } from '@/api/goodsList.ts' +import { apiStaffLists, apiStaffDetail, apiStaffStatus, apiStaffPwd } from '@/api/goodsList.ts' const detailRef = ref(null) const editRef = shallowRef>() @@ -138,5 +158,26 @@ const handleDetail = async (data: any) => { }) } + +const showDialog = ref(false) +const form = reactive({ + id: '', + password: '', + password_confirm: '' +}) + +const resetForm = () => { + form.id = '' + form.password = '' + form.password_confirm = '' +} + + + +const handlePwd = async () => { + await adminPwd({ ...form }) + showDialog.value = false + resetForm() +} getLists() \ No newline at end of file diff --git a/src/views/permission/delivery/edit.vue b/src/views/permission/delivery/edit.vue index 397b2c4..7181ec8 100644 --- a/src/views/permission/delivery/edit.vue +++ b/src/views/permission/delivery/edit.vue @@ -39,14 +39,14 @@ const mode = ref('add') // 弹窗标题 const popupTitle = computed(() => { - return mode.value == 'edit' ? '编辑日程安排' : '新增日程安排' + return mode.value == 'edit' ? '编辑配送员' : '新增配送员' }) // 表单数据 const formData = reactive({ id: '', nickname: '', - avatar: 'https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20240606/20240606162227e3e005096.jpg', + avatar: '', phone: '', status: 0 }) diff --git a/src/views/permission/delivery/index.vue b/src/views/permission/delivery/index.vue index 676926d..4d49598 100644 --- a/src/views/permission/delivery/index.vue +++ b/src/views/permission/delivery/index.vue @@ -45,6 +45,9 @@ 编辑 + + 删除 + 详情 @@ -67,7 +70,8 @@ import { ref, reactive } from "vue" import { usePaging } from '@/hooks/usePaging' import EditPopup from './edit.vue' import DetailPopup from './detail.vue' -import { apiDeliveryLists, apiDeliveryDetail, apiDeliveryStatus } from '@/api/delivery.ts' +import { apiDeliveryLists, apiDeliveryDetail, apiDeliveryStatus, apiDeliveryDelete } from '@/api/delivery.ts' +import feedback from '@/utils/feedback' const detailRef = ref(null) const editRef = shallowRef>() @@ -129,5 +133,12 @@ const handleDetail = async (data: any) => { }) } +// 删除角色 +const handleDelete = async (id: any[] | number) => { + await feedback.confirm('确定要删除?') + await apiDeliveryDelete({ id }) + getLists() +} + getLists() \ No newline at end of file diff --git a/src/views/setting/dict/type/index.vue b/src/views/setting/dict/type/index.vue index 58860e1..118d6f7 100644 --- a/src/views/setting/dict/type/index.vue +++ b/src/views/setting/dict/type/index.vue @@ -3,20 +3,10 @@ - + - + @@ -33,22 +23,14 @@
- + 新增 - + @@ -57,11 +39,7 @@
- + @@ -76,36 +54,22 @@ diff --git a/src/views/store/store_product/detail.vue b/src/views/store/store_product/detail.vue index 3023651..555eb8b 100644 --- a/src/views/store/store_product/detail.vue +++ b/src/views/store/store_product/detail.vue @@ -1,7 +1,6 @@