af-mobile-client-vue3 1.4.59 → 1.4.61
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.
- package/__dummy__ +9 -9
- package/build/vite/optimize.ts +36 -36
- package/package.json +3 -2
- package/public/favicon.svg +4 -4
- package/scripts/verifyCommit.js +19 -19
- package/src/components/common/MateChat/components/MateChatContent.vue +274 -274
- package/src/components/common/MateChat/components/MateChatHeader.vue +337 -337
- package/src/components/common/MateChat/index.vue +444 -444
- package/src/components/common/MateChat/types.ts +247 -247
- package/src/components/data/FilePreview/index.vue +139 -0
- package/src/components/data/UserDetail/types.ts +1 -1
- package/src/components/data/XOlMap/types.ts +1 -1
- package/src/components/data/XReportGrid/XAddReport/index.ts +1 -1
- package/src/components/data/XReportGrid/XReportDrawer/index.ts +1 -1
- package/src/components/data/XTag/index.vue +10 -10
- package/src/components/layout/TabBarLayout/index.vue +40 -40
- package/src/hooks/useCommon.ts +9 -9
- package/src/plugins/AppData.ts +38 -38
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +6 -0
- package/src/services/api/common.ts +109 -109
- package/src/services/api/manage.ts +8 -8
- package/src/services/api/search.ts +16 -16
- package/src/services/restTools.ts +56 -56
- package/src/utils/authority-utils.ts +84 -84
- package/src/utils/crypto.ts +39 -39
- package/src/utils/runEvalFunction.ts +13 -13
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/FilePreviewView/index.vue +31 -0
- package/src/views/component/MateChat/MateChatView.vue +10 -10
- package/src/views/component/XCellDetailView/index.vue +217 -217
- package/src/views/component/XCellListView/index.vue +2 -78
- package/src/views/component/XFormView/index.vue +13 -28
- package/src/views/component/XOlMapView/XLocationPicker/index.vue +118 -118
- package/src/views/component/XReportFormIframeView/index.vue +47 -47
- package/src/views/component/XReportFormView/index.vue +13 -13
- package/src/views/component/XSignatureView/index.vue +50 -50
- package/src/views/component/index.vue +5 -1
- package/src/views/component/notice.vue +46 -46
- package/src/views/component/topNav.vue +36 -36
- package/src/views/invoiceShow/index.vue +61 -61
- package/src/views/user/login/index.vue +22 -22
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { http } from '@af-mobile-client-vue3/utils/http'
|
|
3
|
-
import { showDialog, Loading as VanLoading } from 'vant'
|
|
4
|
-
import { onMounted, ref } from 'vue'
|
|
5
|
-
import { useRoute } from 'vue-router'
|
|
6
|
-
|
|
7
|
-
// 获取url中的sellid参数
|
|
8
|
-
const route = useRoute()
|
|
9
|
-
const sellid = route.query.sellid
|
|
10
|
-
const showLoading = ref(true)
|
|
11
|
-
|
|
12
|
-
onMounted(async () => {
|
|
13
|
-
if (sellid) {
|
|
14
|
-
http.request({
|
|
15
|
-
url: '/invoice/rs/logic/getInvoiceBySellId',
|
|
16
|
-
method: 'post',
|
|
17
|
-
data: {
|
|
18
|
-
sellid,
|
|
19
|
-
},
|
|
20
|
-
}).then((_res: any) => {
|
|
21
|
-
showLoading.value = false
|
|
22
|
-
if (_res.type === 'success') {
|
|
23
|
-
if (_res.url)
|
|
24
|
-
window.open(_res.url)
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
showDialog({
|
|
28
|
-
message: _res.msg,
|
|
29
|
-
theme: 'round-button',
|
|
30
|
-
showConfirmButton: false,
|
|
31
|
-
}).then(() => {
|
|
32
|
-
// on close
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
})
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<template>
|
|
41
|
-
<div class="invoiceShow">
|
|
42
|
-
<VanLoading v-if="showLoading" type="spinner" color="#1989fa" vertical>
|
|
43
|
-
正在努力获取发票信息,请稍后。。。
|
|
44
|
-
</VanLoading>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<style scoped lang="less">
|
|
49
|
-
.invoiceShow {
|
|
50
|
-
width: 100vw !important;
|
|
51
|
-
height: 100vh !important;
|
|
52
|
-
overflow-y: hidden;
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
align-items: center;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.invoiceShow > * {
|
|
59
|
-
transform: scale(1.5);
|
|
60
|
-
}
|
|
61
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { http } from '@af-mobile-client-vue3/utils/http'
|
|
3
|
+
import { showDialog, Loading as VanLoading } from 'vant'
|
|
4
|
+
import { onMounted, ref } from 'vue'
|
|
5
|
+
import { useRoute } from 'vue-router'
|
|
6
|
+
|
|
7
|
+
// 获取url中的sellid参数
|
|
8
|
+
const route = useRoute()
|
|
9
|
+
const sellid = route.query.sellid
|
|
10
|
+
const showLoading = ref(true)
|
|
11
|
+
|
|
12
|
+
onMounted(async () => {
|
|
13
|
+
if (sellid) {
|
|
14
|
+
http.request({
|
|
15
|
+
url: '/invoice/rs/logic/getInvoiceBySellId',
|
|
16
|
+
method: 'post',
|
|
17
|
+
data: {
|
|
18
|
+
sellid,
|
|
19
|
+
},
|
|
20
|
+
}).then((_res: any) => {
|
|
21
|
+
showLoading.value = false
|
|
22
|
+
if (_res.type === 'success') {
|
|
23
|
+
if (_res.url)
|
|
24
|
+
window.open(_res.url)
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
showDialog({
|
|
28
|
+
message: _res.msg,
|
|
29
|
+
theme: 'round-button',
|
|
30
|
+
showConfirmButton: false,
|
|
31
|
+
}).then(() => {
|
|
32
|
+
// on close
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
</script>
|
|
39
|
+
|
|
40
|
+
<template>
|
|
41
|
+
<div class="invoiceShow">
|
|
42
|
+
<VanLoading v-if="showLoading" type="spinner" color="#1989fa" vertical>
|
|
43
|
+
正在努力获取发票信息,请稍后。。。
|
|
44
|
+
</VanLoading>
|
|
45
|
+
</div>
|
|
46
|
+
</template>
|
|
47
|
+
|
|
48
|
+
<style scoped lang="less">
|
|
49
|
+
.invoiceShow {
|
|
50
|
+
width: 100vw !important;
|
|
51
|
+
height: 100vh !important;
|
|
52
|
+
overflow-y: hidden;
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.invoiceShow > * {
|
|
59
|
+
transform: scale(1.5);
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import ForgetPasswordForm from './ForgetPasswordForm.vue'
|
|
3
|
-
import LoginForm from './LoginForm.vue'
|
|
4
|
-
import LoginTitle from './LoginTitle.vue'
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<div class="login_container">
|
|
9
|
-
<LoginTitle />
|
|
10
|
-
<LoginForm />
|
|
11
|
-
<ForgetPasswordForm />
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<style scoped lang="less">
|
|
16
|
-
.login_container {
|
|
17
|
-
height: 100vh;
|
|
18
|
-
padding-top: 10px;
|
|
19
|
-
background: var(--van-background-2);
|
|
20
|
-
position: relative;
|
|
21
|
-
}
|
|
22
|
-
</style>
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import ForgetPasswordForm from './ForgetPasswordForm.vue'
|
|
3
|
+
import LoginForm from './LoginForm.vue'
|
|
4
|
+
import LoginTitle from './LoginTitle.vue'
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<template>
|
|
8
|
+
<div class="login_container">
|
|
9
|
+
<LoginTitle />
|
|
10
|
+
<LoginForm />
|
|
11
|
+
<ForgetPasswordForm />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<style scoped lang="less">
|
|
16
|
+
.login_container {
|
|
17
|
+
height: 100vh;
|
|
18
|
+
padding-top: 10px;
|
|
19
|
+
background: var(--van-background-2);
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
</style>
|