apply-clients 3.1.55 → 3.1.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.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +20 -20
  3. package/src/apply.js +77 -77
  4. package/src/components/product/ApplyCharge/ApplyChargeList.vue +316 -316
  5. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +26 -26
  6. package/src/components/product/Function/InstallFunction.vue +165 -165
  7. package/src/components/product/Function/InstallInfoSelect.vue +278 -278
  8. package/src/components/product/Function/Service/FunctionServiceControl.vue +262 -262
  9. package/src/components/product/Function/functions/ChargeManagement.vue +1013 -1013
  10. package/src/components/product/Order/OrderApply.vue +467 -467
  11. package/src/components/product/Process/ExplorationSelect.vue +371 -371
  12. package/src/components/product/Process/ExplorationUser.vue +168 -168
  13. package/src/components/product/Process/Service/ServiceControl.vue +29 -13
  14. package/src/components/product/Report/ApplyDevicesList.vue +249 -249
  15. package/src/components/product/Report/ApplyGongliaoList.vue +239 -239
  16. package/src/components/product/Report/ApplyReportSearch.vue +26 -26
  17. package/src/components/product/Report/ReportControl.vue +129 -129
  18. package/src/components/product/ReportForm/CustomerRecordMessage.vue +1593 -1593
  19. package/src/components/product/ServiceView.vue +728 -728
  20. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +169 -169
  21. package/src/components/product/Supervisory/SupervisoryControl.vue +132 -132
  22. package/src/components/product/Supervisory/SupervisoryControl2.vue +132 -132
  23. package/src/components/product/Supervisory/SupervisoryList.vue +311 -311
  24. package/src/components/product/Supervisory/SupervisoryList2.vue +368 -368
  25. package/src/components/product/Supervisory/SupervisoryhCart.vue +105 -105
  26. package/yarn-error.log +0 -9175
@@ -1,262 +1,262 @@
1
- <template>
2
- <div>
3
- <div style="height: 20px; padding-left: 20px" v-if="print_dispatch && this.data.title == '派工单'">
4
- <button type="button" class="btn btn-info head-but" @click="printDispatch()" v-el:cx>打印派工单</button>
5
- </div>
6
- <service-view :data="data" v-if="showview" v-ref:serviceview></service-view>
7
-
8
- <!--派工单-->
9
- <dispatch-list :selectdata="selectdata" v-if="dispatchlist"></dispatch-list>
10
- <!-- 终止报建 -->
11
- <stop-install :selectdata="selectdata" v-if="showstop"></stop-install>
12
- <!-- 报建缴费 -->
13
- <apply-charge-management :mark="mark" :selectdata="selectdata" v-if="applycharge"></apply-charge-management>
14
-
15
- <apply-record-cancel :selectdata="selectdata" v-if="showcancel"></apply-record-cancel>
16
- </div>
17
- </template>
18
- <script>
19
- import {HttpResetClass} from 'vue-client'
20
- import Vue from "vue";
21
- export default {
22
- title: '报建功能业务控制层',
23
- props: ['selectdata','funcdata'],
24
- data () {
25
- return {
26
- data: null,
27
- mark:0,
28
- showview: false, // 控制通用页面
29
- showstop: false, // 控制终止
30
- showcancel: false, // 控制撤销
31
- dispatchlist: false,//派工单
32
- print_dispatch: true,
33
- applycharge: false // 报建缴费
34
- }
35
- },
36
- ready () {
37
- this.hasChange()
38
- },
39
- methods: {
40
- // json配置数据处理 比如下拉框的options
41
- async initializtion() {
42
- // selectdata 填充 data
43
- let temp = Object.assign({},this.data,this.selectdata)
44
- temp.fields.forEach(item => {
45
- if (this.selectdata[item.field]) {
46
- item.value = this.selectdata[item.field]
47
- } else {
48
- item.value = ''
49
- }
50
- // 如果配置类型为select,获取options
51
- if(item.type ==='select'){
52
- item.options = this.$appdata.getParam(item.label)
53
- }
54
- })
55
-
56
-
57
- // onetomany 数据获取
58
- if (this.data.onetomany) {
59
- for (let index = 0; index < this.data.onetomany.length; index++) {
60
- let http = new HttpResetClass()
61
- let data = {
62
- tablename: this.data.onetomany[index].tables[0],
63
- condition: `f_process_id='${this.selectdata.f_process_id}'`
64
- }
65
-
66
- let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
67
- resolveMsg: null,
68
- rejectMsg: 'onetomany查询失败'
69
- })
70
-
71
- // 初始化 onetomany
72
- this.data.onetomany[index].rows = res.data
73
-
74
- // 初始化onetomany中的fields
75
- for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
76
- // 如果配置类型为select,优先从参数列表获取options
77
- if (this.data.onetomany[index].fields[j].type === 'select') {
78
- let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
79
- if (temp && temp.length > 0) {
80
- this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
81
- }
82
- }
83
- }
84
-
85
- }
86
- }
87
-
88
- this.data = JSON.parse(JSON.stringify(this.data))
89
-
90
- this.$nextTick(() => {
91
- this.showview = true
92
- })
93
- },
94
- // 功能组件显示控制
95
- hasChange(){
96
- console.log("cs数据",this.selectdata)
97
- if(this.funcdata.fields) {
98
- this.data = this.funcdata
99
- // 初始化要展示的数据结构
100
- this.initializtion()
101
- this.showview = true
102
- this.showstop = false
103
- this.showcancel = false
104
- }
105
- if (this.funcdata.title === '终止报建' && !this.funcdata.fields) {
106
- this.showview = false
107
- this.showstop = true
108
- this.showcancel = false
109
- }
110
- if (this.funcdata.title === '撤销' && !this.funcdata.fields) {
111
- this.showview = false
112
- this.showstop = false
113
- this.showcancel = true
114
- }
115
- if (this.funcdata.title === '派工单' && !this.funcdata.fields) {
116
- this.showview = false
117
- this.dispatchlist = true
118
- this.showcancel = false
119
- }
120
- if (this.funcdata.title === '报建缴费' && !this.funcdata.fields) {
121
- this.showview = false
122
- this.applycharge = true
123
- this.showcancel = false
124
- }
125
- if (this.selectdata.f_apply_type === '散户报建'){
126
- this.mark = 2
127
- this.showview = false
128
- this.applycharge = true
129
- this.showcancel = false
130
- }
131
- },
132
- // 打印派工单
133
- async printDispatch() {
134
- this.print_dispatch = false
135
- this.showview = false
136
- this.dispatchlist = true
137
- }
138
- },
139
- events: {
140
- // 获取view层button事件
141
- async 'button' (model){
142
- model = Object.assign({}, this.selectdata, model)
143
- // 下发,提交,保存,退回都在后台处理
144
- let http = new HttpResetClass();
145
- http.load('POST','rs/entity/t_apply',model, {resolveMsg: null, rejectMsg: '数据保存失败'})
146
- .then(res => {
147
- this.$dispatch('query')
148
- })
149
- },
150
- // onetomany模态框默认监听监听事件
151
- async 'onetomanydelete'(i, j) {
152
- console.log('默认删除')
153
- let http = new HttpResetClass()
154
- let data = {
155
- table: this.data.onetomany[i].tables[0],
156
- row: this.data.onetomany[i].rows[j]
157
- }
158
- let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
159
- resolveMsg: null,
160
- rejectMsg: '删除失败'
161
- })
162
-
163
- if (res.data <= 0){
164
- this.$showMessage('删除失败')
165
- return
166
- }
167
-
168
- this.$dispatch('selfsearch')
169
- this.$refs.serviceview.data.onetomany[i].rows.splice(j, 1)
170
- },
171
- async 'onetomanyadd'(inedx) {
172
- let data = {
173
- f_process_id : this.selectdata.f_process_id,
174
- f_operator: this.$login.f.name,
175
- f_operation_date: new Date().Format("yyyy-MM-dd HH:mm:ss"),
176
- f_company: this.$login.f.orgs
177
- }
178
- this.data.onetomany[inedx].fields.forEach(item => {
179
- data[item.field] = item.value
180
- })
181
- let res = await this.$resetpost(
182
- `rs/entity/${this.data.onetomany[inedx].tables[0]}`,
183
- data
184
- )
185
- // this.data.onetomany[inedx].rows.push(data)
186
- this.$dispatch('selfsearch')
187
- this.$refs.serviceview.data.onetomany[inedx].rows.push(data)
188
- },
189
- async 'onetomanyupdate'(i, j) {
190
- let onetomany = this.data.onetomany[i]
191
- let data = onetomany.rows[j]
192
-
193
- onetomany.fields.forEach(item => {
194
- data[item.field] = item.value
195
- })
196
- let res = await this.$resetpost(
197
- `rs/entity/${this.data.onetomany[i].tables[0]}`,
198
- data
199
- )
200
- this.$dispatch('selfsearch')
201
- this.$refs.serviceview.data.onetomany[i].rows.splice(j,1,data)
202
- },
203
- async 'check'(index) {
204
- // =====================================安康逸华特殊逻辑===========================================
205
-
206
-
207
- // 合成地址
208
- if (
209
- this.$refs.serviceview.data.fields[index].label === '县/区' ||
210
- this.$refs.serviceview.data.fields[index].label === '街道' ||
211
- this.$refs.serviceview.data.fields[index].label === '小区' ||
212
- this.$refs.serviceview.data.fields[index].label === '楼号' ||
213
- this.$refs.serviceview.data.fields[index].label === '单元号' ||
214
- this.$refs.serviceview.data.fields[index].label === '楼层' ||
215
- this.$refs.serviceview.data.fields[index].label === '门牌号'
216
- ) {
217
- console.log('即将合成地址')
218
- var address = ''
219
- for (let i = 0; i < this.$refs.serviceview.data.fields.length; i++) {
220
- // 控制设置级联
221
- // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
222
- // xxx xx xxx
223
- if (this.$refs.serviceview.data.fields[i].label === '县/区' && this.$refs.serviceview.data.fields[i].value) {
224
- address += this.$refs.serviceview.data.fields[i].value
225
- }
226
- if (this.$refs.serviceview.data.fields[i].label === '街道' && this.$refs.serviceview.data.fields[i].value) {
227
- address += this.$refs.serviceview.data.fields[i].value
228
- }
229
- if (this.$refs.serviceview.data.fields[i].label === '小区' && this.$refs.serviceview.data.fields[i].value) {
230
- address += this.$refs.serviceview.data.fields[i].value
231
- }
232
- if (this.$refs.serviceview.data.fields[i].label === '楼号' && this.$refs.serviceview.data.fields[i].value) {
233
- address += ' ' + this.$refs.serviceview.data.fields[i].value
234
- }
235
- if (this.$refs.serviceview.data.fields[i].label === '单元号' && this.$refs.serviceview.data.fields[i].value) {
236
- address += '-' + this.$refs.serviceview.data.fields[i].value
237
- }
238
- if (this.$refs.serviceview.data.fields[i].label === '楼层' && this.$refs.serviceview.data.fields[i].value) {
239
- address += '-' + this.$refs.serviceview.data.fields[i].value
240
- }
241
- if (this.$refs.serviceview.data.fields[i].label === '门牌号' && this.$refs.serviceview.data.fields[i].value) {
242
- address += '-' + this.$refs.serviceview.data.fields[i].value
243
- }
244
- }
245
- console.log('获取到的address=>' + address)
246
- // 数据获取完毕时放入地址text
247
- for (let i = 0; i < this.$refs.serviceview.data.fields.length; i++) {
248
- if (this.$refs.serviceview.data.fields[i].label === '地址') {
249
- this.$refs.serviceview.data.fields[i].value = address
250
- console.log('修改fields[i].value后的值=>' + this.$refs.serviceview.data.fields[i].value)
251
- }
252
- }
253
- }
254
- },
255
- // onetomany模态框监听事件
256
- async 'check_modal'(index) {},
257
- async 'oninput_modal'(index) {}
258
- },
259
- watch:{
260
- }
261
- }
262
- </script>
1
+ <template>
2
+ <div>
3
+ <div style="height: 20px; padding-left: 20px" v-if="print_dispatch && this.data.title == '派工单'">
4
+ <button type="button" class="btn btn-info head-but" @click="printDispatch()" v-el:cx>打印派工单</button>
5
+ </div>
6
+ <service-view :data="data" v-if="showview" v-ref:serviceview></service-view>
7
+
8
+ <!--派工单-->
9
+ <dispatch-list :selectdata="selectdata" v-if="dispatchlist"></dispatch-list>
10
+ <!-- 终止报建 -->
11
+ <stop-install :selectdata="selectdata" v-if="showstop"></stop-install>
12
+ <!-- 报建缴费 -->
13
+ <apply-charge-management :mark="mark" :selectdata="selectdata" v-if="applycharge"></apply-charge-management>
14
+
15
+ <apply-record-cancel :selectdata="selectdata" v-if="showcancel"></apply-record-cancel>
16
+ </div>
17
+ </template>
18
+ <script>
19
+ import {HttpResetClass} from 'vue-client'
20
+ import Vue from "vue";
21
+ export default {
22
+ title: '报建功能业务控制层',
23
+ props: ['selectdata','funcdata'],
24
+ data () {
25
+ return {
26
+ data: null,
27
+ mark:0,
28
+ showview: false, // 控制通用页面
29
+ showstop: false, // 控制终止
30
+ showcancel: false, // 控制撤销
31
+ dispatchlist: false,//派工单
32
+ print_dispatch: true,
33
+ applycharge: false // 报建缴费
34
+ }
35
+ },
36
+ ready () {
37
+ this.hasChange()
38
+ },
39
+ methods: {
40
+ // json配置数据处理 比如下拉框的options
41
+ async initializtion() {
42
+ // selectdata 填充 data
43
+ let temp = Object.assign({},this.data,this.selectdata)
44
+ temp.fields.forEach(item => {
45
+ if (this.selectdata[item.field]) {
46
+ item.value = this.selectdata[item.field]
47
+ } else {
48
+ item.value = ''
49
+ }
50
+ // 如果配置类型为select,获取options
51
+ if(item.type ==='select'){
52
+ item.options = this.$appdata.getParam(item.label)
53
+ }
54
+ })
55
+
56
+
57
+ // onetomany 数据获取
58
+ if (this.data.onetomany) {
59
+ for (let index = 0; index < this.data.onetomany.length; index++) {
60
+ let http = new HttpResetClass()
61
+ let data = {
62
+ tablename: this.data.onetomany[index].tables[0],
63
+ condition: `f_process_id='${this.selectdata.f_process_id}'`
64
+ }
65
+
66
+ let res = await http.load('POST', 'rs/sql/applysingleTable', {data: data}, {
67
+ resolveMsg: null,
68
+ rejectMsg: 'onetomany查询失败'
69
+ })
70
+
71
+ // 初始化 onetomany
72
+ this.data.onetomany[index].rows = res.data
73
+
74
+ // 初始化onetomany中的fields
75
+ for (let j = 0; j < this.data.onetomany[index].fields.length; j++) {
76
+ // 如果配置类型为select,优先从参数列表获取options
77
+ if (this.data.onetomany[index].fields[j].type === 'select') {
78
+ let temp = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
79
+ if (temp && temp.length > 0) {
80
+ this.data.onetomany[index].fields[j].options = Vue.$appdata.getParam(this.data.onetomany[index].fields[j].label)
81
+ }
82
+ }
83
+ }
84
+
85
+ }
86
+ }
87
+
88
+ this.data = JSON.parse(JSON.stringify(this.data))
89
+
90
+ this.$nextTick(() => {
91
+ this.showview = true
92
+ })
93
+ },
94
+ // 功能组件显示控制
95
+ hasChange(){
96
+ console.log("cs数据",this.selectdata)
97
+ if(this.funcdata.fields) {
98
+ this.data = this.funcdata
99
+ // 初始化要展示的数据结构
100
+ this.initializtion()
101
+ this.showview = true
102
+ this.showstop = false
103
+ this.showcancel = false
104
+ }
105
+ if (this.funcdata.title === '终止报建' && !this.funcdata.fields) {
106
+ this.showview = false
107
+ this.showstop = true
108
+ this.showcancel = false
109
+ }
110
+ if (this.funcdata.title === '撤销' && !this.funcdata.fields) {
111
+ this.showview = false
112
+ this.showstop = false
113
+ this.showcancel = true
114
+ }
115
+ if (this.funcdata.title === '派工单' && !this.funcdata.fields) {
116
+ this.showview = false
117
+ this.dispatchlist = true
118
+ this.showcancel = false
119
+ }
120
+ if (this.funcdata.title === '报建缴费' && !this.funcdata.fields) {
121
+ this.showview = false
122
+ this.applycharge = true
123
+ this.showcancel = false
124
+ }
125
+ if (this.selectdata.f_apply_type === '散户报建'){
126
+ this.mark = 2
127
+ this.showview = false
128
+ this.applycharge = true
129
+ this.showcancel = false
130
+ }
131
+ },
132
+ // 打印派工单
133
+ async printDispatch() {
134
+ this.print_dispatch = false
135
+ this.showview = false
136
+ this.dispatchlist = true
137
+ }
138
+ },
139
+ events: {
140
+ // 获取view层button事件
141
+ async 'button' (model){
142
+ model = Object.assign({}, this.selectdata, model)
143
+ // 下发,提交,保存,退回都在后台处理
144
+ let http = new HttpResetClass();
145
+ http.load('POST','rs/entity/t_apply',model, {resolveMsg: null, rejectMsg: '数据保存失败'})
146
+ .then(res => {
147
+ this.$dispatch('query')
148
+ })
149
+ },
150
+ // onetomany模态框默认监听监听事件
151
+ async 'onetomanydelete'(i, j) {
152
+ console.log('默认删除')
153
+ let http = new HttpResetClass()
154
+ let data = {
155
+ table: this.data.onetomany[i].tables[0],
156
+ row: this.data.onetomany[i].rows[j]
157
+ }
158
+ let res = await http.load('POST', 'rs/logic/onetomanyDefaultDeleteEvent', {data: data}, {
159
+ resolveMsg: null,
160
+ rejectMsg: '删除失败'
161
+ })
162
+
163
+ if (res.data <= 0){
164
+ this.$showMessage('删除失败')
165
+ return
166
+ }
167
+
168
+ this.$dispatch('selfsearch')
169
+ this.$refs.serviceview.data.onetomany[i].rows.splice(j, 1)
170
+ },
171
+ async 'onetomanyadd'(inedx) {
172
+ let data = {
173
+ f_process_id : this.selectdata.f_process_id,
174
+ f_operator: this.$login.f.name,
175
+ f_operation_date: new Date().Format("yyyy-MM-dd HH:mm:ss"),
176
+ f_company: this.$login.f.orgs
177
+ }
178
+ this.data.onetomany[inedx].fields.forEach(item => {
179
+ data[item.field] = item.value
180
+ })
181
+ let res = await this.$resetpost(
182
+ `rs/entity/${this.data.onetomany[inedx].tables[0]}`,
183
+ data
184
+ )
185
+ // this.data.onetomany[inedx].rows.push(data)
186
+ this.$dispatch('selfsearch')
187
+ this.$refs.serviceview.data.onetomany[inedx].rows.push(data)
188
+ },
189
+ async 'onetomanyupdate'(i, j) {
190
+ let onetomany = this.data.onetomany[i]
191
+ let data = onetomany.rows[j]
192
+
193
+ onetomany.fields.forEach(item => {
194
+ data[item.field] = item.value
195
+ })
196
+ let res = await this.$resetpost(
197
+ `rs/entity/${this.data.onetomany[i].tables[0]}`,
198
+ data
199
+ )
200
+ this.$dispatch('selfsearch')
201
+ this.$refs.serviceview.data.onetomany[i].rows.splice(j,1,data)
202
+ },
203
+ async 'check'(index) {
204
+ // =====================================安康逸华特殊逻辑===========================================
205
+
206
+
207
+ // 合成地址
208
+ if (
209
+ this.$refs.serviceview.data.fields[index].label === '县/区' ||
210
+ this.$refs.serviceview.data.fields[index].label === '街道' ||
211
+ this.$refs.serviceview.data.fields[index].label === '小区' ||
212
+ this.$refs.serviceview.data.fields[index].label === '楼号' ||
213
+ this.$refs.serviceview.data.fields[index].label === '单元号' ||
214
+ this.$refs.serviceview.data.fields[index].label === '楼层' ||
215
+ this.$refs.serviceview.data.fields[index].label === '门牌号'
216
+ ) {
217
+ console.log('即将合成地址')
218
+ var address = ''
219
+ for (let i = 0; i < this.$refs.serviceview.data.fields.length; i++) {
220
+ // 控制设置级联
221
+ // 源select所选的值 this.$refs.service_show.data.activitys.fields[index].value
222
+ // xxx xx xxx
223
+ if (this.$refs.serviceview.data.fields[i].label === '县/区' && this.$refs.serviceview.data.fields[i].value) {
224
+ address += this.$refs.serviceview.data.fields[i].value
225
+ }
226
+ if (this.$refs.serviceview.data.fields[i].label === '街道' && this.$refs.serviceview.data.fields[i].value) {
227
+ address += this.$refs.serviceview.data.fields[i].value
228
+ }
229
+ if (this.$refs.serviceview.data.fields[i].label === '小区' && this.$refs.serviceview.data.fields[i].value) {
230
+ address += this.$refs.serviceview.data.fields[i].value
231
+ }
232
+ if (this.$refs.serviceview.data.fields[i].label === '楼号' && this.$refs.serviceview.data.fields[i].value) {
233
+ address += ' ' + this.$refs.serviceview.data.fields[i].value
234
+ }
235
+ if (this.$refs.serviceview.data.fields[i].label === '单元号' && this.$refs.serviceview.data.fields[i].value) {
236
+ address += '-' + this.$refs.serviceview.data.fields[i].value
237
+ }
238
+ if (this.$refs.serviceview.data.fields[i].label === '楼层' && this.$refs.serviceview.data.fields[i].value) {
239
+ address += '-' + this.$refs.serviceview.data.fields[i].value
240
+ }
241
+ if (this.$refs.serviceview.data.fields[i].label === '门牌号' && this.$refs.serviceview.data.fields[i].value) {
242
+ address += '-' + this.$refs.serviceview.data.fields[i].value
243
+ }
244
+ }
245
+ console.log('获取到的address=>' + address)
246
+ // 数据获取完毕时放入地址text
247
+ for (let i = 0; i < this.$refs.serviceview.data.fields.length; i++) {
248
+ if (this.$refs.serviceview.data.fields[i].label === '地址') {
249
+ this.$refs.serviceview.data.fields[i].value = address
250
+ console.log('修改fields[i].value后的值=>' + this.$refs.serviceview.data.fields[i].value)
251
+ }
252
+ }
253
+ }
254
+ },
255
+ // onetomany模态框监听事件
256
+ async 'check_modal'(index) {},
257
+ async 'oninput_modal'(index) {}
258
+ },
259
+ watch:{
260
+ }
261
+ }
262
+ </script>