apply-clients 3.2.32 → 3.2.37

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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/AndroidApp.vue +26 -26
  3. package/src/App.vue +20 -20
  4. package/src/apply.js +67 -67
  5. package/src/applyAndroid.js +24 -24
  6. package/src/components/Util.js +359 -359
  7. package/src/components/app_apply/AppOnetomany.vue +90 -90
  8. package/src/components/app_apply/AppServiceView.vue +664 -664
  9. package/src/components/app_apply/AppTakePic.vue +112 -112
  10. package/src/components/app_apply/Process/AppExplorationUser.vue +310 -310
  11. package/src/components/app_apply/Process/AppServiceControl.vue +409 -409
  12. package/src/components/app_apply/Process/Processes/AppInstallationDetails.vue +456 -456
  13. package/src/components/app_apply/Supervisory/AppProcessSupervisory.vue +300 -300
  14. package/src/components/app_apply/Supervisory/AppSupervisoryCart.vue +121 -121
  15. package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -251
  16. package/src/components/product/ApplyCharge/ApplyChargeReport.vue +107 -107
  17. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +30 -30
  18. package/src/components/product/Function/InstallFunction.vue +147 -147
  19. package/src/components/product/Function/InstallInfoSelect.vue +281 -281
  20. package/src/components/product/Function/Service/FunctionServiceControl.vue +245 -245
  21. package/src/components/product/Function/StopApplyCrrdList.vue +176 -176
  22. package/src/components/product/Function/functions/StopInstall.vue +106 -106
  23. package/src/components/product/Process/ExplorationSelect.vue +346 -346
  24. package/src/components/product/Process/ExplorationUser.vue +134 -134
  25. package/src/components/product/Process/Processes/InstallationDetails.vue +243 -233
  26. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +201 -201
  27. package/src/components/product/Process/Processes/chargeManagement.vue +555 -555
  28. package/src/components/product/Process/Processes/printCharge.vue +133 -133
  29. package/src/components/product/Process/Processes/supplementalAgreement.vue +297 -297
  30. package/src/components/product/Process/ShowBackReason.vue +32 -32
  31. package/src/components/product/ServiceView.vue +759 -759
  32. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +199 -199
  33. package/src/components/product/Supervisory/SupervisoryControl.vue +119 -119
  34. package/src/components/product/Supervisory/SupervisoryList.vue +208 -208
  35. package/src/components/product/Supervisory/SupervisoryhCart.vue +103 -103
  36. package/src/components/product/VueUtils/ApplyUpload.vue +261 -261
  37. package/src/main.js +23 -23
@@ -1,245 +1,245 @@
1
- <template>
2
- <component :is="funcdata.component" :data="show_data" v-if="showview" v-ref:component></component>
3
- <apply-upload v-if="showUpload"
4
- :blodid="show_data.f_process_id"
5
- :isupload = "true"
6
- :isdelete="true"
7
- :isusetype="true"
8
- :isremark = "true"
9
- :takeimg="false"
10
- :issearch="true"
11
- :defname="show_data.defname"
12
- >
13
- </apply-upload>
14
- </template>
15
- <script>
16
- import {HttpResetClass} from 'vue-client'
17
- import Vue from 'vue'
18
- export default {
19
- title: '报建功能业务控制层',
20
- props: ['selectdata','funcdata'],
21
- data () {
22
- return {
23
- data: null,
24
- show_data: null, // 给通用页面显示的数据
25
- showview: false, // 控制通用页面
26
- showUpload: false,
27
- showstop: false, // 控制终止
28
- showcancel: false // 控制撤销
29
- }
30
- },
31
- ready () {
32
- this.hasChange()
33
- },
34
- methods: {
35
- // json配置数据处理 比如下拉框的options
36
- async initializtionJson() {
37
- this.data = Object.assign({}, this.data, this.selectdata)
38
- this.data.fields.forEach(item => {
39
- if (!item.value) {
40
- if (item.value === 0) {
41
- item.value = 0
42
- } else {
43
- item.value = null
44
- }
45
- }
46
- if (item.default || item.default == 0) {
47
- item.value = item.default
48
- }
49
- if (this.selectdata[item.field]) {
50
- // 将json字符串格式化赋值给value
51
- if (String(this.selectdata[item.field]).startsWith("{")) {
52
- item.value = JSON.parse(this.selectdata[item.field])
53
- this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
54
- } else {
55
- item.value = this.selectdata[item.field]
56
- }
57
- } else {
58
- if (this.selectdata[item.field] === 0){
59
- item.value = 0
60
- }
61
- }
62
-
63
- // 如果配置类型为select,优先从参数列表获取options
64
- if (item.type === 'select') {
65
- let temp = this.$appdata.getParam(item.label)
66
- if (temp && temp.length > 0 && item.label) {
67
- item.options = temp
68
- }
69
- }
70
- })
71
-
72
- // 初始化 fields 可对数据进行特殊处理
73
- // this.initializeFields()
74
- // onetomany 数据获取
75
- if (this.data.onetomany) {
76
- for (let index = 0; index < this.data.onetomany.length; index++) {
77
- let res = null
78
- if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
79
- let http = new HttpResetClass()
80
- let data = {
81
- tablename: this.data.onetomany[index].tables[0],
82
- condition: `f_process_id='${this.selectdata.f_process_id}'`
83
- }
84
- res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
85
- resolveMsg: null,
86
- rejectMsg: 'onetomany查询失败'
87
- })
88
- } else {
89
- res = this[this.data.onetomany[index].queryEvent]()
90
- }
91
-
92
- // 初始化 onetomany
93
- this.data.onetomany[index].rows = res.data
94
-
95
- // 初始化onetomany中的fields
96
- for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
97
- if (!this.data.onetomany[index].fields[j].value) {
98
- if (this.data.onetomany[index].fields[j].value === 0) {
99
- this.data.onetomany[index].fields[j].value = 0
100
- } else {
101
- this.data.onetomany[index].fields[j].value = null
102
- }
103
- }
104
- if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default == 0) {
105
- this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
106
- }
107
- // 如果配置类型为select,优先从参数列表获取options
108
- if (this.data.onetomany[index].fields[j].type === 'select') {
109
- let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
110
- if (temp && temp.length > 0) {
111
- this.data.onetomany[index].fields[j].options = temp
112
- }
113
- }
114
- }
115
- }
116
- }
117
-
118
- console.log('------------onetomany-------------')
119
- console.log(this.data.onetomany)
120
- // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
121
- let temp = JSON.parse(JSON.stringify(this.data))
122
-
123
- this.show_data = temp
124
- this.$nextTick(() => {
125
- this.showview = true
126
- })
127
- },
128
- // 功能组件显示控制
129
- hasChange(){
130
- if (this.funcdata.component === 'service-view') {
131
- if(this.funcdata.components) {
132
- this.funcdata.components.forEach(item => {
133
- item.mark = 0
134
- if (this.funcdata.title === '添加用户') {
135
- item.mark = 2
136
- }
137
- })
138
- }
139
-
140
- this.data = JSON.parse(JSON.stringify(this.funcdata))
141
-
142
- // 初始化要展示的数据结构
143
- this.initializtionJson()
144
- } else {
145
- this.show_data = JSON.parse(JSON.stringify(this.selectdata))
146
- if (this.funcdata.title === '附件') {
147
- this.$nextTick(() => {
148
- this.showUpload = true
149
- })
150
- return
151
- }
152
- this.$nextTick(() => {
153
- this.showview = true
154
- })
155
- }
156
-
157
- // if(this.funcdata.fields) {
158
- // this.data = this.funcdata
159
- // // 初始化要展示的数据结构
160
- // this.initializtion()
161
- // this.showview = true
162
- // this.showstop = false
163
- // this.showcancel = false
164
- // }
165
- // if (this.funcdata.title === '终止报建' && !this.funcdata.fields) {
166
- // this.showview = false
167
- // this.showstop = true
168
- // this.showcancel = false
169
- // }
170
- // if (this.funcdata.title === '撤销' && !this.funcdata.fields) {
171
- // this.showview = false
172
- // this.showstop = false
173
- // this.showcancel = true
174
- // }
175
- }
176
- },
177
- events: {
178
- // 打开onetomany模态框
179
- 'openAddModel'(index) {
180
- },
181
- // 获取view层button事件
182
- async 'button' (model){
183
- model = Object.assign({}, this.selectdata, model)
184
- // 下发,提交,保存,退回都在后台处理
185
- let http = new HttpResetClass();
186
- http.load('POST','rs/entity/t_apply',model, {resolveMsg: null, rejectMsg: '数据保存失败'})
187
- .then(res => {
188
- this.$dispatch('query')
189
- })
190
- },
191
- // onetomany模态框默认监听监听事件
192
- async 'onetomanydelete'(i, j) {
193
- let http = new HttpResetClass()
194
- let data = {
195
- table: this.show_data.onetomany[i].tables[0],
196
- row: this.show_data.onetomany[i].rows[j]
197
- }
198
- let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
199
- resolveMsg: null,
200
- rejectMsg: '删除失败'
201
- })
202
-
203
- if (res.data <= 0){
204
- this.$showMessage('删除失败')
205
- return
206
- }
207
-
208
- this.$dispatch('breakControl', this.show_data)
209
- },
210
- async 'onetomanyadd'(index) {
211
-
212
- let data = {
213
- f_process_id : this.show_data.f_process_id
214
- }
215
- this.show_data.onetomany[index].fields.forEach(item => {
216
- data[item.field] = item.value
217
- })
218
- let res = await this.$resetpost(
219
- `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
220
- data
221
- )
222
- this.$dispatch('breakControl', this.show_data)
223
- },
224
- async 'onetomanyupdate'(i, j) {
225
- let onetomany = this.show_data.onetomany[i]
226
- let data = onetomany.rows[j]
227
-
228
- onetomany.fields.forEach(item => {
229
- data[item.field] = item.value
230
- })
231
- let res = await this.$resetpost(
232
- `rs/entity/${this.show_data.onetomany[i].tables[0]}`,
233
- data
234
- )
235
-
236
- this.$dispatch('breakControl', this.show_data)
237
- },
238
- // onetomany模态框事件
239
- async 'onchange_modal'(index, i) {
240
- }
241
- },
242
- watch:{
243
- }
244
- }
245
- </script>
1
+ <template>
2
+ <component :is="funcdata.component" :data="show_data" v-if="showview" v-ref:component></component>
3
+ <apply-upload v-if="showUpload"
4
+ :blodid="show_data.f_process_id"
5
+ :isupload = "true"
6
+ :isdelete="true"
7
+ :isusetype="true"
8
+ :isremark = "true"
9
+ :takeimg="false"
10
+ :issearch="true"
11
+ :defname="show_data.defname"
12
+ >
13
+ </apply-upload>
14
+ </template>
15
+ <script>
16
+ import {HttpResetClass} from 'vue-client'
17
+ import Vue from 'vue'
18
+ export default {
19
+ title: '报建功能业务控制层',
20
+ props: ['selectdata','funcdata'],
21
+ data () {
22
+ return {
23
+ data: null,
24
+ show_data: null, // 给通用页面显示的数据
25
+ showview: false, // 控制通用页面
26
+ showUpload: false,
27
+ showstop: false, // 控制终止
28
+ showcancel: false // 控制撤销
29
+ }
30
+ },
31
+ ready () {
32
+ this.hasChange()
33
+ },
34
+ methods: {
35
+ // json配置数据处理 比如下拉框的options
36
+ async initializtionJson() {
37
+ this.data = Object.assign({}, this.data, this.selectdata)
38
+ this.data.fields.forEach(item => {
39
+ if (!item.value) {
40
+ if (item.value === 0) {
41
+ item.value = 0
42
+ } else {
43
+ item.value = null
44
+ }
45
+ }
46
+ if (item.default || item.default == 0) {
47
+ item.value = item.default
48
+ }
49
+ if (this.selectdata[item.field]) {
50
+ // 将json字符串格式化赋值给value
51
+ if (String(this.selectdata[item.field]).startsWith("{")) {
52
+ item.value = JSON.parse(this.selectdata[item.field])
53
+ this.selectdata[item.field] = JSON.parse(this.selectdata[item.field])
54
+ } else {
55
+ item.value = this.selectdata[item.field]
56
+ }
57
+ } else {
58
+ if (this.selectdata[item.field] === 0){
59
+ item.value = 0
60
+ }
61
+ }
62
+
63
+ // 如果配置类型为select,优先从参数列表获取options
64
+ if (item.type === 'select') {
65
+ let temp = this.$appdata.getParam(item.label)
66
+ if (temp && temp.length > 0 && item.label) {
67
+ item.options = temp
68
+ }
69
+ }
70
+ })
71
+
72
+ // 初始化 fields 可对数据进行特殊处理
73
+ // this.initializeFields()
74
+ // onetomany 数据获取
75
+ if (this.data.onetomany) {
76
+ for (let index = 0; index < this.data.onetomany.length; index++) {
77
+ let res = null
78
+ if (!this.data.onetomany[index].queryEvent || this.data.onetomany[index].queryEvent === 'default'){
79
+ let http = new HttpResetClass()
80
+ let data = {
81
+ tablename: this.data.onetomany[index].tables[0],
82
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
83
+ }
84
+ res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
85
+ resolveMsg: null,
86
+ rejectMsg: 'onetomany查询失败'
87
+ })
88
+ } else {
89
+ res = this[this.data.onetomany[index].queryEvent]()
90
+ }
91
+
92
+ // 初始化 onetomany
93
+ this.data.onetomany[index].rows = res.data
94
+
95
+ // 初始化onetomany中的fields
96
+ for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
97
+ if (!this.data.onetomany[index].fields[j].value) {
98
+ if (this.data.onetomany[index].fields[j].value === 0) {
99
+ this.data.onetomany[index].fields[j].value = 0
100
+ } else {
101
+ this.data.onetomany[index].fields[j].value = null
102
+ }
103
+ }
104
+ if (this.data.onetomany[index].fields[j].default || this.data.onetomany[index].fields[j].default == 0) {
105
+ this.data.onetomany[index].fields[j].value = this.data.onetomany[index].fields[j].default
106
+ }
107
+ // 如果配置类型为select,优先从参数列表获取options
108
+ if (this.data.onetomany[index].fields[j].type === 'select') {
109
+ let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
110
+ if (temp && temp.length > 0) {
111
+ this.data.onetomany[index].fields[j].options = temp
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+ console.log('------------onetomany-------------')
119
+ console.log(this.data.onetomany)
120
+ // 消除双向绑定,避免子组件(显示层)数据更改,父组件(控制层)也更改
121
+ let temp = JSON.parse(JSON.stringify(this.data))
122
+
123
+ this.show_data = temp
124
+ this.$nextTick(() => {
125
+ this.showview = true
126
+ })
127
+ },
128
+ // 功能组件显示控制
129
+ hasChange(){
130
+ if (this.funcdata.component === 'service-view') {
131
+ if(this.funcdata.components) {
132
+ this.funcdata.components.forEach(item => {
133
+ item.mark = 0
134
+ if (this.funcdata.title === '添加用户') {
135
+ item.mark = 2
136
+ }
137
+ })
138
+ }
139
+
140
+ this.data = JSON.parse(JSON.stringify(this.funcdata))
141
+
142
+ // 初始化要展示的数据结构
143
+ this.initializtionJson()
144
+ } else {
145
+ this.show_data = JSON.parse(JSON.stringify(this.selectdata))
146
+ if (this.funcdata.title === '附件') {
147
+ this.$nextTick(() => {
148
+ this.showUpload = true
149
+ })
150
+ return
151
+ }
152
+ this.$nextTick(() => {
153
+ this.showview = true
154
+ })
155
+ }
156
+
157
+ // if(this.funcdata.fields) {
158
+ // this.data = this.funcdata
159
+ // // 初始化要展示的数据结构
160
+ // this.initializtion()
161
+ // this.showview = true
162
+ // this.showstop = false
163
+ // this.showcancel = false
164
+ // }
165
+ // if (this.funcdata.title === '终止报建' && !this.funcdata.fields) {
166
+ // this.showview = false
167
+ // this.showstop = true
168
+ // this.showcancel = false
169
+ // }
170
+ // if (this.funcdata.title === '撤销' && !this.funcdata.fields) {
171
+ // this.showview = false
172
+ // this.showstop = false
173
+ // this.showcancel = true
174
+ // }
175
+ }
176
+ },
177
+ events: {
178
+ // 打开onetomany模态框
179
+ 'openAddModel'(index) {
180
+ },
181
+ // 获取view层button事件
182
+ async 'button' (model){
183
+ model = Object.assign({}, this.selectdata, model)
184
+ // 下发,提交,保存,退回都在后台处理
185
+ let http = new HttpResetClass();
186
+ http.load('POST','rs/entity/t_apply',model, {resolveMsg: null, rejectMsg: '数据保存失败'})
187
+ .then(res => {
188
+ this.$dispatch('query')
189
+ })
190
+ },
191
+ // onetomany模态框默认监听监听事件
192
+ async 'onetomanydelete'(i, j) {
193
+ let http = new HttpResetClass()
194
+ let data = {
195
+ table: this.show_data.onetomany[i].tables[0],
196
+ row: this.show_data.onetomany[i].rows[j]
197
+ }
198
+ let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
199
+ resolveMsg: null,
200
+ rejectMsg: '删除失败'
201
+ })
202
+
203
+ if (res.data <= 0){
204
+ this.$showMessage('删除失败')
205
+ return
206
+ }
207
+
208
+ this.$dispatch('breakControl', this.show_data)
209
+ },
210
+ async 'onetomanyadd'(index) {
211
+
212
+ let data = {
213
+ f_process_id : this.show_data.f_process_id
214
+ }
215
+ this.show_data.onetomany[index].fields.forEach(item => {
216
+ data[item.field] = item.value
217
+ })
218
+ let res = await this.$resetpost(
219
+ `rs/entity/${this.show_data.onetomany[index].tables[0]}`,
220
+ data
221
+ )
222
+ this.$dispatch('breakControl', this.show_data)
223
+ },
224
+ async 'onetomanyupdate'(i, j) {
225
+ let onetomany = this.show_data.onetomany[i]
226
+ let data = onetomany.rows[j]
227
+
228
+ onetomany.fields.forEach(item => {
229
+ data[item.field] = item.value
230
+ })
231
+ let res = await this.$resetpost(
232
+ `rs/entity/${this.show_data.onetomany[i].tables[0]}`,
233
+ data
234
+ )
235
+
236
+ this.$dispatch('breakControl', this.show_data)
237
+ },
238
+ // onetomany模态框事件
239
+ async 'onchange_modal'(index, i) {
240
+ }
241
+ },
242
+ watch:{
243
+ }
244
+ }
245
+ </script>