From 0a737b7b4b88d0f67cc632d3c6c00f596450a15f Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Fri, 7 Jun 2024 12:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=EF=BC=8C=E8=B0=83=E6=95=B4=E9=85=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E5=8F=8A=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=B9=B6=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=83=A8=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 11 +- src/api/goodsList.ts | 9 +- src/api/store_finance_flow.ts | 17 ++- src/views/finance/user_bill/index.vue | 2 - src/views/permission/admin/edit.vue | 12 +-- src/views/permission/admin/index.vue | 45 +++++++- src/views/permission/delivery/edit.vue | 4 +- src/views/permission/delivery/index.vue | 13 ++- src/views/setting/dict/type/index.vue | 70 +++--------- src/views/store/store_product/detail.vue | 3 +- src/views/storeBill/detail.vue | 101 ++++++++++++++++++ src/views/storeBill/index.vue | 129 +++++++++++++++++++++++ 12 files changed, 345 insertions(+), 71 deletions(-) create mode 100644 src/views/storeBill/detail.vue create mode 100644 src/views/storeBill/index.vue 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 @@