From 16abb6364c3c8b429666e2cc9c46903b04ca3bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 14 Oct 2025 14:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=9C=89?= =?UTF-8?q?=E7=AD=BE=E5=90=8D=E6=8D=A2=E5=88=B0=E9=95=BF=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E6=8E=A8=E9=80=81=20=20=E7=84=B6=E5=90=8E=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?=E6=8A=A5=E5=85=B3=E4=BB=B7=20=20=E9=A2=84=E4=BC=B0=E9=80=80?= =?UTF-8?q?=E7=A8=8E=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 29 --- src/api/commonApi.ts | 7 + src/components/custom/OrderDetailContent.vue | 8 + src/composables/useStockingForm.ts | 109 ++++++++-- src/utils/sys/wsClient.ts | 140 +++++++++++- src/views/crmpc/stocking/Add.vue | 30 ++- src/views/crmpc/stocking/final_add.vue | 146 ++++++++++--- src/views/crmpc/stocking/final_edit.vue | 192 ++++++++++++----- src/views/crmpc/stocking/stocking_edit.vue | 215 ++++++++++++++----- src/views/system/user-center/index.vue | 189 +++++++++++----- 10 files changed, 829 insertions(+), 236 deletions(-) diff --git a/src/App.vue b/src/App.vue index ad5f05d..93b181a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -196,35 +196,6 @@ if (userStore.isLogin) { try { const data = await UserService.getUserInfo() - const { systemsid } = useUserStore() - // 排除移动端电子签名页,不做签名校验 - const currentPath = router.currentRoute.value?.path || '' - const isOnMobileSignature = currentPath.startsWith('/auth/signature/mobile') - if (!isOnMobileSignature) { - if (data.user.sign_img == null || data.user.sign_img == '') { - ElMessageBox.alert('请前往个人中心完成签名操作!', '提醒', { - confirmButtonText: '确定', - callback: () => { - if (systemsid == '1') { - router.push('/admin/user/user_info') - } else { - router.push('/system/user-center') - } - } - }) - } else if (data.user.email == null || data.user.email == '') { - ElMessageBox.alert('邮箱没有填写!请前往个人中心补充邮箱!', '提醒', { - confirmButtonText: '确定', - callback: () => { - if (systemsid == '1') { - router.push('/admin/user/user_info') - } else { - router.push('/system/user-center') - } - } - }) - } - } userStore.setUserInfo(data) } catch (error) { console.error('获取用户信息失败', error) diff --git a/src/api/commonApi.ts b/src/api/commonApi.ts index 3870f3f..452145d 100644 --- a/src/api/commonApi.ts +++ b/src/api/commonApi.ts @@ -132,6 +132,13 @@ export class commonService { url: '/common/preset/users' }) } + //用户下拉框 + static getUserSelectparams(params: any) { + return request.get({ + url: '/common/preset/users', + params + }) + } //签名 编辑 static signatureEdit(params: any) { return request.post({ diff --git a/src/components/custom/OrderDetailContent.vue b/src/components/custom/OrderDetailContent.vue index e685e91..7861a37 100644 --- a/src/components/custom/OrderDetailContent.vue +++ b/src/components/custom/OrderDetailContent.vue @@ -206,6 +206,14 @@ '—' }} + + +