af-mobile-client-vue3 1.4.14 → 1.4.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/package.json +1 -1
  2. package/src/components/common/otherCharge/ChargePrintSelectorAndRemarks.vue +132 -0
  3. package/src/components/common/otherCharge/CodePayment.vue +351 -0
  4. package/src/components/common/otherCharge/FileUploader.vue +599 -0
  5. package/src/components/common/otherCharge/GridFileUploader.vue +840 -0
  6. package/src/components/common/otherCharge/PaymentMethodSelector.vue +202 -0
  7. package/src/components/common/otherCharge/PaymentMethodSelectorCard.vue +45 -0
  8. package/src/components/common/otherCharge/ReceiptModal.vue +269 -0
  9. package/src/components/common/otherCharge/index.ts +43 -0
  10. package/src/components/core/Signature/SignatureComponent.vue +312 -0
  11. package/src/components/core/Signature/signature.ts +38 -0
  12. package/src/components/data/OtherCharge/OtherChargeForm.vue +736 -0
  13. package/src/components/data/OtherCharge/OtherChargeItem.vue +166 -0
  14. package/src/components/data/OtherCharge/OtherChargeItemModal.vue +529 -0
  15. package/src/components/data/XBadge/index.vue +1 -1
  16. package/src/components/data/XFormItem/index.vue +0 -2
  17. package/src/router/routes.ts +421 -421
  18. package/src/stores/modules/setting.ts +1 -0
  19. package/src/stores/modules/user.ts +1 -1
  20. package/src/utils/queryFormDefaultRangePicker.ts +57 -57
  21. package/src/views/component/XCellListView/index.vue +138 -104
  22. package/src/views/component/XFormGroupView/index.vue +82 -78
  23. package/src/views/component/XFormView/index.vue +46 -41
  24. package/src/views/user/login/LoginForm.vue +5 -9
  25. package/vite.config.ts +2 -9
@@ -2,7 +2,7 @@
2
2
  import type { FormInstance } from 'vant'
3
3
  import { LoginStateEnum, useFormRules, useLoginState } from '@af-mobile-client-vue3/hooks/useLogin'
4
4
  import GetAppDataService from '@af-mobile-client-vue3/plugins/AppData'
5
- import { getConfigByNameAsync, runLogic } from '@af-mobile-client-vue3/services/api/common'
5
+ import { runLogic } from '@af-mobile-client-vue3/services/api/common'
6
6
  import { getUserPermissions } from '@af-mobile-client-vue3/services/api/search'
7
7
  import { useSettingStore } from '@af-mobile-client-vue3/stores/modules/setting'
8
8
  import { useUserStore } from '@af-mobile-client-vue3/stores/modules/user'
@@ -107,15 +107,11 @@ function handleSubmit() {
107
107
  try {
108
108
  loading.value = true
109
109
  showLoadingToast('登录中...')
110
- let username = formData.username
111
- let password = formData.password
112
- const webConfig = await getConfigByNameAsync('webConfig')
113
- const verification = webConfig.setting?.phoneLoginVerification || false
114
- if (verification) {
110
+ const username = formData.username
111
+ const password = formData.password
112
+ if (setting.getSetting()?.phoneLoginVerification) {
115
113
  try {
116
- const res = await runLogic('openapi/loginVerification', { username, password }) as any
117
- username = res.username
118
- password = res.password
114
+ await runLogic('openapi/loginVerification', { username, password: bcrypt.hashSync(password, 10) }) as any
119
115
  }
120
116
  catch (e) {
121
117
  console.error('验证登录失败: ', e)
package/vite.config.ts CHANGED
@@ -11,8 +11,8 @@ export default ({ mode }: ConfigEnv): UserConfig => {
11
11
 
12
12
  const appProxys = {}
13
13
 
14
- const v4Server = 'http://117.35.109.162:31577'
15
- const v3Server = 'http://117.35.109.162:31577'
14
+ const v4Server = 'http://192.168.50.67:31567'
15
+ const v3Server = 'http://192.168.50.67:31567'
16
16
  const OSSServerDev = 'http://192.168.50.67:30351'
17
17
  const geoserver = 'http://39.104.49.8:30372'
18
18
  const mockServer = 'http://127.0.0.1:8086'
@@ -64,13 +64,6 @@ export default ({ mode }: ConfigEnv): UserConfig => {
64
64
  changeOrigin: true,
65
65
  rewrite: path => path.replace(/^\/linepatrol\/geoserver/, '/geoserver'),
66
66
  },
67
- // '/api/af-revenue': {
68
- // // target: v4Server,
69
- // rewrite: (path: string) => path.replace(/^\/api\/af-revenue\//, '/'),
70
- // target: 'http://127.0.0.1:9026',
71
- // ws: false,
72
- // changeOrigin: true,
73
- // },
74
67
  '/api': {
75
68
  // v3用
76
69
  // rewrite: (path: string) => path.replace(/^\/api\/af-system\//, '/rs/'),