apply-clients 3.3.16 → 3.3.17

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 (57) hide show
  1. package/index.html +33 -33
  2. package/package.json +1 -1
  3. package/src/AndroidApp.vue +30 -30
  4. package/src/android.js +21 -21
  5. package/src/apply.js +3 -6
  6. package/src/applyAndroid.js +35 -35
  7. package/src/components/android/AppOnetomany.vue +285 -285
  8. package/src/components/android/AppServiceView.vue +570 -570
  9. package/src/components/android/AppTakePic.vue +143 -143
  10. package/src/components/android/Function/AppFunctionServiceControl.vue +329 -329
  11. package/src/components/android/Function/AppInstallFunction.vue +327 -327
  12. package/src/components/android/Process/AppExplorationUser.vue +268 -268
  13. package/src/components/android/Process/AppServiceControl.vue +711 -686
  14. package/src/components/android/Process/Processes/AppChargeManagement.vue +468 -468
  15. package/src/components/android/Process/Processes/AppDevicesManagement.vue +490 -490
  16. package/src/components/android/Process/Processes/AppInstallationDetails.vue +466 -466
  17. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +297 -297
  18. package/src/components/android/Supervisory/AppProcessSupervisory.vue +261 -261
  19. package/src/components/android/Supervisory/AppSupervisoryCart.vue +115 -115
  20. package/src/components/product/ApplyCharge/ApplyChargeList.vue +265 -265
  21. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
  22. package/src/components/product/Function/InstallFunction.vue +122 -122
  23. package/src/components/product/Function/InstallInfoSelect.vue +289 -289
  24. package/src/components/product/Function/Service/FunctionServiceControl.vue +254 -254
  25. package/src/components/product/Onetomany.vue +296 -296
  26. package/src/components/product/Order/OrderApply.vue +47 -47
  27. package/src/components/product/Order/OrderApplyList.vue +62 -62
  28. package/src/components/product/Order/OrderMessage.vue +237 -237
  29. package/src/components/product/Process/ExplorationSelect.vue +145 -143
  30. package/src/components/product/Process/ExplorationUser.vue +128 -128
  31. package/src/components/product/Process/Processes/InstallationDetails.vue +421 -352
  32. package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
  33. package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
  34. package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
  35. package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
  36. package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
  37. package/src/components/product/Process/Processes/{printCharge.vue → Print/printCharge.vue} +139 -121
  38. package/src/components/product/Process/Processes/Print/printRefund.vue +193 -0
  39. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +181 -181
  40. package/src/components/product/Process/Processes/chargeManagement.vue +639 -639
  41. package/src/components/product/Process/Processes/devicesManagement.vue +458 -458
  42. package/src/components/product/Process/Processes/selectApply.vue +250 -250
  43. package/src/components/product/Process/Processes/selectUserinfo.vue +182 -182
  44. package/src/components/product/Process/Processes/supplementalAgreement.vue +298 -298
  45. package/src/components/product/Process/Service/ServiceControl.vue +916 -810
  46. package/src/components/product/Process/ShowBackReason.vue +33 -33
  47. package/src/components/product/ServiceView.vue +301 -307
  48. package/src/components/product/Stop/StopApplyList.vue +254 -254
  49. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +512 -517
  50. package/src/components/product/Supervisory/SupervisoryControl.vue +100 -100
  51. package/src/components/product/Supervisory/SupervisoryList.vue +226 -226
  52. package/src/components/product/Supervisory/SupervisoryhCart.vue +124 -124
  53. package/src/components/product/VueUtils/ApplyUpload.vue +262 -262
  54. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +1090 -1090
  55. package/src/main.js +23 -23
  56. package/src/components/product/Function/Inform.vue +0 -74
  57. package/src/components/product/Function/MarketSurvey.vue +0 -80
@@ -1,254 +1,254 @@
1
- <template>
2
- <service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
3
- </template>
4
- <script>
5
- import {HttpResetClass} from 'vue-client'
6
- import Vue from 'vue'
7
- export default {
8
- title: '报建功能业务控制层',
9
- props: ['selectdata'],
10
- data () {
11
- return {
12
- show_data: null, // 给通用页面显示的数据
13
- showview: false // 控制通用页面
14
- }
15
- },
16
- ready () {
17
- this.refurbish()
18
- },
19
- methods: {
20
- async refurbish () {
21
- // fields 字段填充值
22
- for (const item of this.selectdata.fields) {
23
- if (!item.value) {
24
- item.value = null
25
- }
26
-
27
- if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
28
- if (item.eval) {
29
- item.value = eval(item.default)
30
- } else {
31
- item.value = item.default
32
- }
33
- }
34
-
35
- if (this.selectdata[item.field]) {
36
- // 将json字符串格式化赋值给value
37
- if (String(this.selectdata[item.field]).startsWith("{")) {
38
- item.value = JSON.parse(this.selectdata[item.field])
39
- } else {
40
- item.value = this.selectdata[item.field]
41
- }
42
- }
43
- if (this.selectdata[item.field] === 0) {
44
- item.value = 0
45
- }
46
-
47
- // datepicker
48
- if (item.type === 'datepicker' && !item.value && item.default) {
49
- item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
50
- }
51
-
52
- // 如果配置类型为select,优先从参数列表获取options
53
- if (item.type === 'select' || item.type === 'checkbox') {
54
- if (item.param) {
55
- let temp = this.$appdata.getParam(item.label)
56
-
57
- if (temp && temp.length > 0) {
58
- item.options = temp
59
- }
60
-
61
- if (item.paramLabel) {
62
- temp = this.$appdata.getParam(item.paramLabel)
63
- if (temp && temp.length > 0) {
64
- item.options = temp
65
- }
66
- }
67
- }
68
-
69
- if (item.ready) {
70
- item.options = await this[item.ready]()
71
- }
72
- }
73
-
74
-
75
- if (item.type === 'checkbox') {
76
- if (this.selectdata[item.field]) {
77
- item.value = JSON.parse(this.selectdata[item.field])
78
- } else {
79
- item.value = []
80
- }
81
- }
82
- }
83
-
84
- // 控制组件
85
- if (this.selectdata.components) {
86
- this.selectdata.components.forEach(item => {
87
- item.mark = 2
88
- })
89
- }
90
-
91
- // 初始化onetomany
92
- if (this.selectdata.onetomany) {
93
- for (const item of this.selectdata.onetomany) {
94
- let res = null
95
- if (item.queryEvent) {
96
- res = this[item.queryEvent]()
97
- } else {
98
- let data = {
99
- tablename: item.tables[0],
100
- condition: `f_process_id='${this.selectdata.f_process_id}'`
101
- }
102
- res = await this.$resetpost(
103
- 'rs/sql/singleTable',
104
- {data: data},
105
- {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
106
- )
107
- }
108
-
109
- item.rows = res.data
110
-
111
- // 初始化onetomany中的fields
112
- for (const field of item.fields) {
113
- if (!field.value) {
114
- if (field.value !== 0) {
115
- field.value = null
116
- }
117
- }
118
-
119
- if (field.default || field.default === 0) {
120
- field.value = field.default
121
- }
122
-
123
- // datepicker
124
- if (field.type === 'datepicker' && !field.value && field.default) {
125
- field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
126
- }
127
-
128
- if (field.type === 'select') {
129
- let temp = this.$appdata.getParam(field.label)
130
-
131
- if (temp && temp.length > 0) {
132
- field.options = temp
133
- }
134
-
135
- if (field.paramLabel) {
136
- temp = this.$appdata.getParam(field.paramLabel)
137
- if (temp && temp.length > 0) {
138
- item.options = temp
139
- }
140
- }
141
- }
142
- }
143
- }
144
- }
145
-
146
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
147
- let temp = JSON.parse(JSON.stringify(this.selectdata))
148
-
149
- this.show_data = temp
150
- this.$nextTick(() => {
151
- this.showview = true
152
- })
153
- }
154
- },
155
- events: {
156
- async 'stopApply' () {
157
-
158
- let data = {
159
- data: this.show_data,
160
- user: this.$login.f
161
- }
162
-
163
- let res = await this.$resetpost(
164
- `rs/logic/stopApply`,
165
- {data: data},
166
- {resolveMsg: null, rejectMsg: '终止报建失败!!!'}
167
- )
168
-
169
- this.$dispatch('search')
170
- },
171
- async 'pauseApply' () {
172
-
173
- let data = {
174
- data: this.show_data,
175
- user: this.$login.f
176
- }
177
-
178
- let res = await this.$resetpost(
179
- `rs/logic/pauseApply`,
180
- {data: data},
181
- {resolveMsg: null, rejectMsg: '暂停报建失败!!!'}
182
- )
183
-
184
- this.$dispatch('search')
185
- },
186
- // 获取view层button事件
187
- async 'button' (){
188
-
189
- let res = await this.$resetpost(
190
- `rs/entity/t_apply`,
191
- this.show_data,
192
- {resolveMsg: null, rejectMsg: '数据保存失败!!!'}
193
- )
194
-
195
- this.$dispatch('search')
196
- },
197
- // 失去焦点出触发事件
198
- 'onchange' (index) {
199
- },
200
- 'onblur' (index) {},
201
- 'oninput' (index) {},
202
- 'initializtionView' () {},
203
- async 'onchangeModal' (index, fieldIndex) {
204
- },
205
- async 'onblurModal' (index, fieldIndex) {
206
-
207
- },
208
- async 'oninputModal' (index, fieldIndex) {
209
-
210
- },
211
- async 'onetomanydelete' (index, rowIndex) {
212
-
213
- let http = new HttpResetClass()
214
-
215
- let res = await http.load(
216
- 'DELETE',
217
- `rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
218
- null,
219
- {resolveMsg: null, rejectMsg: '删除失败!!!'}
220
- )
221
-
222
- this.$dispatch('breakControl', this.show_data)
223
- },
224
- async 'onetomanyupdate' (index, rowIndex) {
225
- let data = this.show_data.onetomany[index].rows[rowIndex]
226
-
227
- this.show_data.onetomany[index].fields.forEach(item => {
228
- data[item.field] = item.value
229
- })
230
- let res = await this.$resetpost(
231
- `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
232
- data
233
- )
234
-
235
- this.$dispatch('breakControl', this.show_data)
236
- },
237
- async 'onetomanyadd' (index) {
238
- let data = {
239
- f_process_id : this.show_data.f_process_id
240
- }
241
- this.show_data.onetomany[index].fields.forEach(item => {
242
- data[item.field] = item.value
243
- })
244
- let res = await this.$resetpost(
245
- `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
246
- data
247
- )
248
- this.$dispatch('breakControl', this.show_data)
249
- }
250
- },
251
- watch:{
252
- }
253
- }
254
- </script>
1
+ <template>
2
+ <service-view v-ref:serviceview :data="show_data" v-if="showview"></service-view>
3
+ </template>
4
+ <script>
5
+ import {HttpResetClass} from 'vue-client'
6
+ import Vue from 'vue'
7
+ export default {
8
+ title: '报建功能业务控制层',
9
+ props: ['selectdata'],
10
+ data () {
11
+ return {
12
+ show_data: null, // 给通用页面显示的数据
13
+ showview: false // 控制通用页面
14
+ }
15
+ },
16
+ ready () {
17
+ this.refurbish()
18
+ },
19
+ methods: {
20
+ async refurbish () {
21
+ // fields 字段填充值
22
+ for (const item of this.selectdata.fields) {
23
+ if (!item.value) {
24
+ item.value = null
25
+ }
26
+
27
+ if (!item.value && (item.default || item.default === 0) && item.type !== 'datepicker') {
28
+ if (item.eval) {
29
+ item.value = eval(item.default)
30
+ } else {
31
+ item.value = item.default
32
+ }
33
+ }
34
+
35
+ if (this.selectdata[item.field]) {
36
+ // 将json字符串格式化赋值给value
37
+ if (String(this.selectdata[item.field]).startsWith("{")) {
38
+ item.value = JSON.parse(this.selectdata[item.field])
39
+ } else {
40
+ item.value = this.selectdata[item.field]
41
+ }
42
+ }
43
+ if (this.selectdata[item.field] === 0) {
44
+ item.value = 0
45
+ }
46
+
47
+ // datepicker
48
+ if (item.type === 'datepicker' && !item.value && item.default) {
49
+ item.value = new Date().Format(`${item.format ? item.format : 'yyyy-MM-dd HH:mm:ss'}`)
50
+ }
51
+
52
+ // 如果配置类型为select,优先从参数列表获取options
53
+ if (item.type === 'select' || item.type === 'checkbox') {
54
+ if (item.param) {
55
+ let temp = this.$appdata.getParam(item.label)
56
+
57
+ if (temp && temp.length > 0) {
58
+ item.options = temp
59
+ }
60
+
61
+ if (item.paramLabel) {
62
+ temp = this.$appdata.getParam(item.paramLabel)
63
+ if (temp && temp.length > 0) {
64
+ item.options = temp
65
+ }
66
+ }
67
+ }
68
+
69
+ if (item.ready) {
70
+ item.options = await this[item.ready]()
71
+ }
72
+ }
73
+
74
+
75
+ if (item.type === 'checkbox') {
76
+ if (this.selectdata[item.field]) {
77
+ item.value = JSON.parse(this.selectdata[item.field])
78
+ } else {
79
+ item.value = []
80
+ }
81
+ }
82
+ }
83
+
84
+ // 控制组件
85
+ if (this.selectdata.components) {
86
+ this.selectdata.components.forEach(item => {
87
+ item.mark = 2
88
+ })
89
+ }
90
+
91
+ // 初始化onetomany
92
+ if (this.selectdata.onetomany) {
93
+ for (const item of this.selectdata.onetomany) {
94
+ let res = null
95
+ if (item.queryEvent) {
96
+ res = this[item.queryEvent]()
97
+ } else {
98
+ let data = {
99
+ tablename: item.tables[0],
100
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
101
+ }
102
+ res = await this.$resetpost(
103
+ 'rs/sql/singleTable',
104
+ {data: data},
105
+ {resolveMsg: null, rejectMsg: 'onetomany查询失败'}
106
+ )
107
+ }
108
+
109
+ item.rows = res.data
110
+
111
+ // 初始化onetomany中的fields
112
+ for (const field of item.fields) {
113
+ if (!field.value) {
114
+ if (field.value !== 0) {
115
+ field.value = null
116
+ }
117
+ }
118
+
119
+ if (field.default || field.default === 0) {
120
+ field.value = field.default
121
+ }
122
+
123
+ // datepicker
124
+ if (field.type === 'datepicker' && !field.value && field.default) {
125
+ field.value = new Date().Format(`${field.format ? field.format : 'yyyy-MM-dd HH:mm:ss'}`)
126
+ }
127
+
128
+ if (field.type === 'select') {
129
+ let temp = this.$appdata.getParam(field.label)
130
+
131
+ if (temp && temp.length > 0) {
132
+ field.options = temp
133
+ }
134
+
135
+ if (field.paramLabel) {
136
+ temp = this.$appdata.getParam(field.paramLabel)
137
+ if (temp && temp.length > 0) {
138
+ item.options = temp
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ }
145
+
146
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
147
+ let temp = JSON.parse(JSON.stringify(this.selectdata))
148
+
149
+ this.show_data = temp
150
+ this.$nextTick(() => {
151
+ this.showview = true
152
+ })
153
+ }
154
+ },
155
+ events: {
156
+ async 'stopApply' () {
157
+
158
+ let data = {
159
+ data: this.show_data,
160
+ user: this.$login.f
161
+ }
162
+
163
+ let res = await this.$resetpost(
164
+ `rs/logic/stopApply`,
165
+ {data: data},
166
+ {resolveMsg: null, rejectMsg: '终止报建失败!!!'}
167
+ )
168
+
169
+ this.$dispatch('search')
170
+ },
171
+ async 'pauseApply' () {
172
+
173
+ let data = {
174
+ data: this.show_data,
175
+ user: this.$login.f
176
+ }
177
+
178
+ let res = await this.$resetpost(
179
+ `rs/logic/pauseApply`,
180
+ {data: data},
181
+ {resolveMsg: null, rejectMsg: '暂停报建失败!!!'}
182
+ )
183
+
184
+ this.$dispatch('search')
185
+ },
186
+ // 获取view层button事件
187
+ async 'button' (){
188
+
189
+ let res = await this.$resetpost(
190
+ `rs/entity/t_apply`,
191
+ this.show_data,
192
+ {resolveMsg: null, rejectMsg: '数据保存失败!!!'}
193
+ )
194
+
195
+ this.$dispatch('search')
196
+ },
197
+ // 失去焦点出触发事件
198
+ 'onchange' (index) {
199
+ },
200
+ 'onblur' (index) {},
201
+ 'oninput' (index) {},
202
+ 'initializtionView' () {},
203
+ async 'onchangeModal' (index, fieldIndex) {
204
+ },
205
+ async 'onblurModal' (index, fieldIndex) {
206
+
207
+ },
208
+ async 'oninputModal' (index, fieldIndex) {
209
+
210
+ },
211
+ async 'onetomanydelete' (index, rowIndex) {
212
+
213
+ let http = new HttpResetClass()
214
+
215
+ let res = await http.load(
216
+ 'DELETE',
217
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}/${this.show_data.onetomany[index].rows[rowIndex].id}`,
218
+ null,
219
+ {resolveMsg: null, rejectMsg: '删除失败!!!'}
220
+ )
221
+
222
+ this.$dispatch('breakControl', this.show_data)
223
+ },
224
+ async 'onetomanyupdate' (index, rowIndex) {
225
+ let data = this.show_data.onetomany[index].rows[rowIndex]
226
+
227
+ this.show_data.onetomany[index].fields.forEach(item => {
228
+ data[item.field] = item.value
229
+ })
230
+ let res = await this.$resetpost(
231
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
232
+ data
233
+ )
234
+
235
+ this.$dispatch('breakControl', this.show_data)
236
+ },
237
+ async 'onetomanyadd' (index) {
238
+ let data = {
239
+ f_process_id : this.show_data.f_process_id
240
+ }
241
+ this.show_data.onetomany[index].fields.forEach(item => {
242
+ data[item.field] = item.value
243
+ })
244
+ let res = await this.$resetpost(
245
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
246
+ data
247
+ )
248
+ this.$dispatch('breakControl', this.show_data)
249
+ }
250
+ },
251
+ watch:{
252
+ }
253
+ }
254
+ </script>