af-mobile-client-vue3 1.2.55 → 1.2.57
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/package.json +1 -1
- package/src/components/data/XCellList/index.vue +56 -10
- package/src/components/data/XFormGroup/doc/DeviceForm.vue +1 -1
- package/src/components/data/XFormGroup/doc/UserForm.vue +1 -1
- package/src/components/data/XFormItem/index.vue +2 -2
- package/src/components/data/XOlMap/utils/wgs84ToGcj02.js +154 -154
- package/src/components/data/XReportGrid/XReportDemo.vue +33 -33
- package/src/components/data/XReportGrid/print.js +184 -184
- package/src/stores/modules/setting.ts +14 -0
- package/src/views/component/XCellListView/index.vue +131 -13
- package/src/views/component/XFormGroupView/index.vue +15 -7
- package/src/views/component/XFormView/index.vue +92 -29
- package/src/views/component/XOlMapView/XLocationPicker/index.vue +118 -118
- package/src/views/user/login/LoginForm.vue +52 -2
- package/vite.config.ts +2 -2
- package/src/views/component/XFormView/oldindex.vue +0 -70
|
@@ -1,184 +1,184 @@
|
|
|
1
|
-
// print.js
|
|
2
|
-
|
|
3
|
-
export function printElement(elementToPrint) {
|
|
4
|
-
// 创建一个新的浏览器窗口
|
|
5
|
-
const printWindow = window.open('', '_blank', 'height=1024,width=768')
|
|
6
|
-
// 设置新窗口的文档内容
|
|
7
|
-
printWindow.document.write(`
|
|
8
|
-
<html>
|
|
9
|
-
<head>
|
|
10
|
-
<title>Print</title>
|
|
11
|
-
<style>
|
|
12
|
-
@page {
|
|
13
|
-
size: auto;
|
|
14
|
-
margin: 0mm;
|
|
15
|
-
}
|
|
16
|
-
html, body {
|
|
17
|
-
margin: 0;
|
|
18
|
-
padding: 0;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
}
|
|
22
|
-
#print-container {
|
|
23
|
-
display: none
|
|
24
|
-
}
|
|
25
|
-
.img{
|
|
26
|
-
width: 95%;
|
|
27
|
-
height: 180px;
|
|
28
|
-
object-fit: cover;
|
|
29
|
-
}
|
|
30
|
-
.reportMain {
|
|
31
|
-
text-align: center;
|
|
32
|
-
margin: 0 auto;
|
|
33
|
-
font-size: 16px;
|
|
34
|
-
color: #000;
|
|
35
|
-
background-color: #fff;
|
|
36
|
-
border-radius: 8px;
|
|
37
|
-
|
|
38
|
-
.reportTitle {
|
|
39
|
-
font-weight: bold;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.subTitle {
|
|
43
|
-
display: flex;
|
|
44
|
-
justify-content: space-between;
|
|
45
|
-
margin-bottom: 1%;
|
|
46
|
-
|
|
47
|
-
.subTitleItems {
|
|
48
|
-
max-width: 30%;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.inputsDiv {
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: space-between;
|
|
55
|
-
.inputsDivItem {
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
padding: 0 4px;
|
|
59
|
-
white-space: nowrap;
|
|
60
|
-
.inputsDivItemLabel {
|
|
61
|
-
padding: 0 4px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.reportTable {
|
|
67
|
-
width: 100%;
|
|
68
|
-
border-collapse: collapse;
|
|
69
|
-
table-layout:fixed;
|
|
70
|
-
word-break:break-all;
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
.reportMainForDisplay {
|
|
75
|
-
text-align: center;
|
|
76
|
-
margin: 10% auto;
|
|
77
|
-
font-size: 16px;
|
|
78
|
-
color: #000;
|
|
79
|
-
background-color: #fff;
|
|
80
|
-
border-radius: 8px;
|
|
81
|
-
|
|
82
|
-
.reportTitle {
|
|
83
|
-
font-weight: bold;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.subTitle {
|
|
87
|
-
display: flex;
|
|
88
|
-
justify-content: space-between;
|
|
89
|
-
|
|
90
|
-
.subTitleItems {
|
|
91
|
-
max-width: 30%;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.inputsDiv {
|
|
96
|
-
display: flex;
|
|
97
|
-
justify-content: space-around;
|
|
98
|
-
.inputsDivItem {
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
padding: 0 4px;
|
|
102
|
-
white-space: nowrap;
|
|
103
|
-
.inputsDivItemLabel {
|
|
104
|
-
padding: 0 4px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.reportTable {
|
|
110
|
-
width: 100%;
|
|
111
|
-
border-collapse: collapse;
|
|
112
|
-
table-layout:fixed;
|
|
113
|
-
word-break:break-all;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
.reportMainNoPadding {
|
|
117
|
-
text-align: center;
|
|
118
|
-
margin: 0 auto;
|
|
119
|
-
font-size: 16px;
|
|
120
|
-
color: #000;
|
|
121
|
-
background-color: #fff;
|
|
122
|
-
border-radius: 8px;
|
|
123
|
-
|
|
124
|
-
.reportTitle {
|
|
125
|
-
font-weight: bold;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.subTitle {
|
|
129
|
-
display: flex;
|
|
130
|
-
justify-content: space-between;
|
|
131
|
-
|
|
132
|
-
.subTitleItems {
|
|
133
|
-
max-width: 30%;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.inputsDiv {
|
|
138
|
-
display: flex;
|
|
139
|
-
justify-content: space-between;
|
|
140
|
-
.inputsDivItem {
|
|
141
|
-
display: flex;
|
|
142
|
-
align-items: center;
|
|
143
|
-
padding: 0 4px;
|
|
144
|
-
white-space: nowrap;
|
|
145
|
-
.inputsDivItemLabel {
|
|
146
|
-
padding: 0 4px;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.reportTable {
|
|
152
|
-
width: 100%;
|
|
153
|
-
border-collapse: collapse;
|
|
154
|
-
table-layout:fixed;
|
|
155
|
-
word-break:break-all;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
.tools{
|
|
159
|
-
position: fixed;
|
|
160
|
-
right: 2%;
|
|
161
|
-
text-align: right;
|
|
162
|
-
width: 60%;
|
|
163
|
-
cursor: pointer;
|
|
164
|
-
.toolsItem{
|
|
165
|
-
width: 15%;
|
|
166
|
-
margin-right: 3%;
|
|
167
|
-
display: inline-block;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
</style>
|
|
171
|
-
</head>
|
|
172
|
-
<body>
|
|
173
|
-
<!-- 将需要打印的元素内容复制到新窗口中 -->
|
|
174
|
-
${elementToPrint.innerHTML}
|
|
175
|
-
</body>
|
|
176
|
-
</html>
|
|
177
|
-
`)
|
|
178
|
-
// 延迟执行打印,以确保新窗口的内容已加载完成
|
|
179
|
-
printWindow.document.close() // 关闭文档流,确保内容完全加载
|
|
180
|
-
setTimeout(() => {
|
|
181
|
-
printWindow.print() // 调用打印方法
|
|
182
|
-
printWindow.close()
|
|
183
|
-
}, 500) // 延迟500毫秒后执行打印
|
|
184
|
-
}
|
|
1
|
+
// print.js
|
|
2
|
+
|
|
3
|
+
export function printElement(elementToPrint) {
|
|
4
|
+
// 创建一个新的浏览器窗口
|
|
5
|
+
const printWindow = window.open('', '_blank', 'height=1024,width=768')
|
|
6
|
+
// 设置新窗口的文档内容
|
|
7
|
+
printWindow.document.write(`
|
|
8
|
+
<html>
|
|
9
|
+
<head>
|
|
10
|
+
<title>Print</title>
|
|
11
|
+
<style>
|
|
12
|
+
@page {
|
|
13
|
+
size: auto;
|
|
14
|
+
margin: 0mm;
|
|
15
|
+
}
|
|
16
|
+
html, body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
#print-container {
|
|
23
|
+
display: none
|
|
24
|
+
}
|
|
25
|
+
.img{
|
|
26
|
+
width: 95%;
|
|
27
|
+
height: 180px;
|
|
28
|
+
object-fit: cover;
|
|
29
|
+
}
|
|
30
|
+
.reportMain {
|
|
31
|
+
text-align: center;
|
|
32
|
+
margin: 0 auto;
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
color: #000;
|
|
35
|
+
background-color: #fff;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
|
|
38
|
+
.reportTitle {
|
|
39
|
+
font-weight: bold;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.subTitle {
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
margin-bottom: 1%;
|
|
46
|
+
|
|
47
|
+
.subTitleItems {
|
|
48
|
+
max-width: 30%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.inputsDiv {
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
.inputsDivItem {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
padding: 0 4px;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
.inputsDivItemLabel {
|
|
61
|
+
padding: 0 4px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.reportTable {
|
|
67
|
+
width: 100%;
|
|
68
|
+
border-collapse: collapse;
|
|
69
|
+
table-layout:fixed;
|
|
70
|
+
word-break:break-all;
|
|
71
|
+
text-align: center;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.reportMainForDisplay {
|
|
75
|
+
text-align: center;
|
|
76
|
+
margin: 10% auto;
|
|
77
|
+
font-size: 16px;
|
|
78
|
+
color: #000;
|
|
79
|
+
background-color: #fff;
|
|
80
|
+
border-radius: 8px;
|
|
81
|
+
|
|
82
|
+
.reportTitle {
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.subTitle {
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
|
|
90
|
+
.subTitleItems {
|
|
91
|
+
max-width: 30%;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.inputsDiv {
|
|
96
|
+
display: flex;
|
|
97
|
+
justify-content: space-around;
|
|
98
|
+
.inputsDivItem {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
padding: 0 4px;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
.inputsDivItemLabel {
|
|
104
|
+
padding: 0 4px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.reportTable {
|
|
110
|
+
width: 100%;
|
|
111
|
+
border-collapse: collapse;
|
|
112
|
+
table-layout:fixed;
|
|
113
|
+
word-break:break-all;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
.reportMainNoPadding {
|
|
117
|
+
text-align: center;
|
|
118
|
+
margin: 0 auto;
|
|
119
|
+
font-size: 16px;
|
|
120
|
+
color: #000;
|
|
121
|
+
background-color: #fff;
|
|
122
|
+
border-radius: 8px;
|
|
123
|
+
|
|
124
|
+
.reportTitle {
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.subTitle {
|
|
129
|
+
display: flex;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
|
|
132
|
+
.subTitleItems {
|
|
133
|
+
max-width: 30%;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.inputsDiv {
|
|
138
|
+
display: flex;
|
|
139
|
+
justify-content: space-between;
|
|
140
|
+
.inputsDivItem {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
padding: 0 4px;
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
.inputsDivItemLabel {
|
|
146
|
+
padding: 0 4px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.reportTable {
|
|
152
|
+
width: 100%;
|
|
153
|
+
border-collapse: collapse;
|
|
154
|
+
table-layout:fixed;
|
|
155
|
+
word-break:break-all;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
.tools{
|
|
159
|
+
position: fixed;
|
|
160
|
+
right: 2%;
|
|
161
|
+
text-align: right;
|
|
162
|
+
width: 60%;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
.toolsItem{
|
|
165
|
+
width: 15%;
|
|
166
|
+
margin-right: 3%;
|
|
167
|
+
display: inline-block;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
</style>
|
|
171
|
+
</head>
|
|
172
|
+
<body>
|
|
173
|
+
<!-- 将需要打印的元素内容复制到新窗口中 -->
|
|
174
|
+
${elementToPrint.innerHTML}
|
|
175
|
+
</body>
|
|
176
|
+
</html>
|
|
177
|
+
`)
|
|
178
|
+
// 延迟执行打印,以确保新窗口的内容已加载完成
|
|
179
|
+
printWindow.document.close() // 关闭文档流,确保内容完全加载
|
|
180
|
+
setTimeout(() => {
|
|
181
|
+
printWindow.print() // 调用打印方法
|
|
182
|
+
printWindow.close()
|
|
183
|
+
}, 500) // 延迟500毫秒后执行打印
|
|
184
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { getConfigByNameAsync } from '@af-mobile-client-vue3/services/api/common'
|
|
2
2
|
import { APP_WEB_CONFIG_KEY } from '@af-mobile-client-vue3/stores/mutation-type'
|
|
3
|
+
import { secureStorageBatchWrite } from '@af-mobile-client-vue3/utils/secureStorage'
|
|
3
4
|
import { createStorage } from '@af-mobile-client-vue3/utils/Storage'
|
|
4
5
|
import { defineStore } from 'pinia'
|
|
5
6
|
import { ref } from 'vue'
|
|
6
7
|
|
|
7
8
|
export interface WebConfig {
|
|
9
|
+
isAttendance: boolean | false
|
|
8
10
|
systemName: string
|
|
9
11
|
routerName: string
|
|
10
12
|
systemDesc: string
|
|
@@ -14,6 +16,9 @@ export interface WebConfig {
|
|
|
14
16
|
wxLoginAge: boolean
|
|
15
17
|
wxAutoLogin: string
|
|
16
18
|
tenantName: string
|
|
19
|
+
systemLogo: string
|
|
20
|
+
homeAppList: Array<any>
|
|
21
|
+
slideshowList: Array<any>
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
// 存放 webConfig 中的 setting 配置
|
|
@@ -45,6 +50,15 @@ export const useSettingStore = defineStore('setting', () => {
|
|
|
45
50
|
useStore.set(APP_WEB_CONFIG_KEY, res)
|
|
46
51
|
console.log('res.setting', res.setting)
|
|
47
52
|
setSetting(res.setting)
|
|
53
|
+
// 如果有pos相关的配置存储到app安全存储中
|
|
54
|
+
if (res.setting.posConfig) {
|
|
55
|
+
secureStorageBatchWrite([
|
|
56
|
+
{
|
|
57
|
+
key: 'posConfig',
|
|
58
|
+
value: res.setting.posConfig,
|
|
59
|
+
},
|
|
60
|
+
])
|
|
61
|
+
}
|
|
48
62
|
}
|
|
49
63
|
}
|
|
50
64
|
|
|
@@ -1,29 +1,147 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import XCellList from '@af-mobile-client-vue3/components/data/XCellList/index.vue'
|
|
3
|
-
import {
|
|
3
|
+
import { defineOptions, onActivated, onMounted, ref } from 'vue'
|
|
4
4
|
import { useRouter } from 'vue-router'
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
defineOptions({ name: 'XCellListView' })
|
|
7
|
+
const configName = ref('ApplyMobileProcessCRUD')
|
|
8
|
+
const serviceName = ref('af-apply')
|
|
7
9
|
const router = useRouter()
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
function toDetail(row) {
|
|
12
|
-
emit('addressSelected', {
|
|
13
|
-
f_address: row.tua_f_address,
|
|
14
|
-
f_address_id: row.tua_id,
|
|
15
|
-
})
|
|
10
|
+
// 删除功能
|
|
11
|
+
function phone(result) {
|
|
12
|
+
// todo 调用真机进行通话
|
|
16
13
|
}
|
|
14
|
+
// 跳转流程处理
|
|
15
|
+
function action(row) {
|
|
16
|
+
router.push({ name: 'XFormGroupView', query: { workflowId: row.ab_f_workflow_id, stepId: row.ws_f_step_id } })
|
|
17
|
+
}
|
|
18
|
+
// 工作日志
|
|
19
|
+
function worklog(row) {
|
|
20
|
+
router.push({ name: 'worklog', query: { workflowid: row.ab_f_workflow_id, defname: row.ws_f_name } })
|
|
21
|
+
}
|
|
22
|
+
onMounted(() => {
|
|
23
|
+
console.log('初始化页面===')
|
|
24
|
+
})
|
|
25
|
+
onActivated(() => {
|
|
26
|
+
// 每次回到页面都会触发
|
|
27
|
+
console.log('activated: 每次回到页面都会触发')
|
|
28
|
+
})
|
|
17
29
|
</script>
|
|
18
30
|
|
|
19
31
|
<template>
|
|
20
32
|
<XCellList
|
|
21
|
-
ref="xCellListRefPatrolPlan"
|
|
22
|
-
service-name="af-revenue"
|
|
23
33
|
:config-name="configName"
|
|
24
|
-
|
|
34
|
+
:service-name="serviceName"
|
|
35
|
+
@phone="phone"
|
|
36
|
+
@action="action"
|
|
37
|
+
@worklog="worklog"
|
|
25
38
|
/>
|
|
26
39
|
</template>
|
|
27
40
|
|
|
28
41
|
<style scoped lang="less">
|
|
42
|
+
.cell-search-after {
|
|
43
|
+
padding: 0 12px 12px 12px;
|
|
44
|
+
background-color: #fff;
|
|
45
|
+
.van-row:first-child {
|
|
46
|
+
align-items: center;
|
|
47
|
+
margin-bottom: 8px;
|
|
48
|
+
padding: 0 2px;
|
|
49
|
+
h4 {
|
|
50
|
+
font-size: 1.08rem;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
margin: 0;
|
|
53
|
+
color: #222;
|
|
54
|
+
letter-spacing: 1px;
|
|
55
|
+
}
|
|
56
|
+
.stat-date-range {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: flex-end;
|
|
60
|
+
font-size: 0.92rem;
|
|
61
|
+
color: #b0b3b8;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
span {
|
|
64
|
+
margin-left: 4px;
|
|
65
|
+
font-size: 0.92rem;
|
|
66
|
+
color: #b0b3b8;
|
|
67
|
+
}
|
|
68
|
+
.van-icon {
|
|
69
|
+
font-size: 1rem;
|
|
70
|
+
color: #b0b3b8;
|
|
71
|
+
margin-right: 2px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.van-row:nth-child(2) {
|
|
76
|
+
margin-top: 8px;
|
|
77
|
+
// 统计卡片间距由gutter控制
|
|
78
|
+
.van-col {
|
|
79
|
+
// 让卡片宽度自适应
|
|
80
|
+
.stat-card {
|
|
81
|
+
width: 100%;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.stat-card {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
border-radius: 12px;
|
|
91
|
+
padding: 6px 0 4px 0; // 压缩高度
|
|
92
|
+
min-height: 44px; // 压缩高度
|
|
93
|
+
position: relative;
|
|
94
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
|
95
|
+
background: #f7f8fa;
|
|
96
|
+
.stat-num {
|
|
97
|
+
font-size: 1.08rem; // 缩小字体
|
|
98
|
+
font-weight: 600;
|
|
99
|
+
margin-bottom: 2px;
|
|
100
|
+
}
|
|
101
|
+
.stat-label {
|
|
102
|
+
font-size: 0.82rem; // 缩小字体
|
|
103
|
+
margin-bottom: 2px;
|
|
104
|
+
}
|
|
105
|
+
.stat-icon {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 6px;
|
|
108
|
+
right: 8px;
|
|
109
|
+
font-size: 1rem;
|
|
110
|
+
opacity: 0.4;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
.stat-total {
|
|
114
|
+
background: #f0f5ff;
|
|
115
|
+
color: #2f54eb;
|
|
116
|
+
.stat-num,
|
|
117
|
+
.stat-label {
|
|
118
|
+
color: #2f54eb;
|
|
119
|
+
}
|
|
120
|
+
.stat-icon {
|
|
121
|
+
color: #2f54eb;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.stat-done {
|
|
125
|
+
background: #e6fffb;
|
|
126
|
+
color: #13c2c2;
|
|
127
|
+
.stat-num,
|
|
128
|
+
.stat-label {
|
|
129
|
+
color: #13c2c2;
|
|
130
|
+
}
|
|
131
|
+
.stat-icon {
|
|
132
|
+
color: #13c2c2;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
.stat-processing {
|
|
136
|
+
background: #f9f0ff;
|
|
137
|
+
color: #b37feb;
|
|
138
|
+
.stat-num,
|
|
139
|
+
.stat-label {
|
|
140
|
+
color: #b37feb;
|
|
141
|
+
}
|
|
142
|
+
.stat-icon {
|
|
143
|
+
color: #b37feb;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
29
147
|
</style>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import XFormGroup from '@af-mobile-client-vue3/components/data/XFormGroup/index.vue'
|
|
3
|
+
import XFormView from '@af-mobile-client-vue3/views/component/XFormView/index.vue'
|
|
3
4
|
import NormalDataLayout from '@af-mobile-client-vue3/components/layout/NormalDataLayout/index.vue'
|
|
4
5
|
import { showDialog } from 'vant'
|
|
5
6
|
import { ref } from 'vue'
|
|
6
7
|
import { useRoute } from 'vue-router'
|
|
7
8
|
|
|
8
9
|
// 纯表单
|
|
9
|
-
const configName = ref('
|
|
10
|
+
const configName = ref('appapplyuserinfoFormGroup')
|
|
10
11
|
const serviceName = ref('af-apply')
|
|
11
12
|
|
|
12
13
|
// const configName = ref("计划下发Form")
|
|
@@ -21,11 +22,15 @@ const formGroup = ref(null)
|
|
|
21
22
|
const route = useRoute()
|
|
22
23
|
const isInit = ref(false)
|
|
23
24
|
function submit(_result) {
|
|
24
|
-
showDialog({ message: '提交成功' })
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
showDialog({ message: '提交成功' })
|
|
26
|
+
history.back()
|
|
27
|
+
}
|
|
28
|
+
const myXForm = ref([])
|
|
29
|
+
function setRef(value: any) {
|
|
30
|
+
console.log('myXForm', myXForm)
|
|
31
|
+
formGroup.value.setRef(myXForm.value)
|
|
32
|
+
console.log(formGroup)
|
|
27
33
|
}
|
|
28
|
-
|
|
29
34
|
// 表单组——数据
|
|
30
35
|
// function initComponents () {
|
|
31
36
|
// runLogic('getlngChargeAuditMobileFormGroupData', {id: 29}, 'af-gaslink').then((res) => {
|
|
@@ -67,9 +72,12 @@ function submit(_result) {
|
|
|
67
72
|
:service-name="serviceName"
|
|
68
73
|
:group-form-data="formData"
|
|
69
74
|
mode="新增"
|
|
70
|
-
:is-scrollspy="true"
|
|
71
75
|
@submit="submit"
|
|
72
|
-
|
|
76
|
+
>
|
|
77
|
+
<!-- <template #device="{ setRef, removeRef, item, formData }">
|
|
78
|
+
<XFormView :setRef="setRef" :formGroupName="'myXForm'"/>
|
|
79
|
+
</template>-->
|
|
80
|
+
</XFormGroup>
|
|
73
81
|
</template>
|
|
74
82
|
</NormalDataLayout>
|
|
75
83
|
</template>
|