apply-clients 7.1.19 → 7.1.24
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/product/Process/Processes/InstallationDetails.vue +1 -1
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +36 -13
- package/src/components/product/Process/Service/ServiceControl.vue +25 -25
- package/src/components/product/ReportForm/GasIgnitionSummary.vue +119 -10
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
:disabled="$parent.$parent.mark === 1"
|
|
18
18
|
@click="$parent.$parent.showFile = !$parent.$parent.showFile">导入</button>
|
|
19
19
|
<a type="button" class="btn btn-info head-but"
|
|
20
|
-
href="/
|
|
20
|
+
href="/applyinstall/Excel/v3报装表具批量导入.xlsx" download>模板下载</a>
|
|
21
21
|
操作
|
|
22
22
|
</th>
|
|
23
23
|
</tr>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:disabled="$parent.$parent.mark === 1"
|
|
22
22
|
@click="$parent.$parent.showFileModal()">导入</button>
|
|
23
23
|
<a type="button" class="btn btn-info head-but"
|
|
24
|
-
href="/
|
|
24
|
+
href="/applyinstall/Excel/v3报装地址批量导入.xlsx" download>模板下载</a>
|
|
25
25
|
</th>
|
|
26
26
|
</tr>
|
|
27
27
|
</template>
|
|
@@ -72,8 +72,14 @@
|
|
|
72
72
|
type="button"
|
|
73
73
|
name="button"
|
|
74
74
|
class="btn btn-link"
|
|
75
|
-
@click="$parent.$parent.updateState(row.f_userinfo_id)"
|
|
75
|
+
@click="$parent.$parent.updateState(row.f_userinfo_id,0)"
|
|
76
76
|
>操作</button>
|
|
77
|
+
<button
|
|
78
|
+
type="button"
|
|
79
|
+
name="button"
|
|
80
|
+
class="btn btn-link"
|
|
81
|
+
@click="$parent.$parent.updateState(row.f_userinfo_id,1)"
|
|
82
|
+
>撤销</button>
|
|
77
83
|
</nobr>
|
|
78
84
|
</td>
|
|
79
85
|
</tr>
|
|
@@ -160,23 +166,40 @@ export default {
|
|
|
160
166
|
this.$refs.file.$el.querySelector('input').value = ''
|
|
161
167
|
this.search()
|
|
162
168
|
},
|
|
163
|
-
updateState(f_userinfo_id) {
|
|
169
|
+
updateState(f_userinfo_id,num) {
|
|
164
170
|
let http = new HttpResetClass()
|
|
165
171
|
let data = {
|
|
166
|
-
f_userinfo_id: f_userinfo_id
|
|
172
|
+
f_userinfo_id: f_userinfo_id,
|
|
173
|
+
num: num
|
|
167
174
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
+
if (num == 0) {
|
|
176
|
+
this.$showMessage('确定要修改用户状态为不符合吗!!!', ['confirm']).then(async (res) => {
|
|
177
|
+
if (res === 'confirm') {
|
|
178
|
+
let res = await http.load('POST', 'rs/logic/updateUserinfoState', {data:data}, {
|
|
179
|
+
resolveMsg: null,
|
|
180
|
+
rejectMsg: null
|
|
181
|
+
})
|
|
182
|
+
|
|
175
183
|
this.$showMessage("修改成功!")
|
|
176
184
|
this.search()
|
|
185
|
+
|
|
177
186
|
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
187
|
+
})
|
|
188
|
+
}else {
|
|
189
|
+
this.$showMessage('确定要撤销用户状态为正常吗!!!', ['confirm']).then(async (res) => {
|
|
190
|
+
if (res === 'confirm') {
|
|
191
|
+
let res = await http.load('POST', 'rs/logic/updateUserinfoState', {data:data}, {
|
|
192
|
+
resolveMsg: null,
|
|
193
|
+
rejectMsg: null
|
|
194
|
+
})
|
|
195
|
+
|
|
196
|
+
this.$showMessage("修改成功!")
|
|
197
|
+
this.search()
|
|
198
|
+
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
}
|
|
202
|
+
|
|
180
203
|
|
|
181
204
|
}
|
|
182
205
|
},
|
|
@@ -131,16 +131,16 @@
|
|
|
131
131
|
|
|
132
132
|
// 初始化 fields 可对数据进行特殊处理
|
|
133
133
|
this.initializeFields()
|
|
134
|
-
|
|
134
|
+
console.log("this.data的数据:" + JSON.stringify(this.data))
|
|
135
135
|
// 初始化 buttons_fields
|
|
136
136
|
for (let i = 0; i < this.data.buttons.length; i++) {
|
|
137
137
|
// 下发按钮相关配置
|
|
138
138
|
if (this.data.buttons[i].button_name === '下发') {
|
|
139
139
|
if (this.data.buttons[i].button_fields && this.data.buttons[i].button_fields.length === 1) {
|
|
140
|
-
if (this.data.
|
|
140
|
+
if (this.data.source){
|
|
141
141
|
let http = new HttpResetClass()
|
|
142
142
|
let res = await http.load('POST', 'rs/search', {
|
|
143
|
-
source: this.data.
|
|
143
|
+
source: this.data.source,
|
|
144
144
|
userid: this.$login.f.id
|
|
145
145
|
}, {resolveMsg: null, rejectMsg: null})
|
|
146
146
|
|
|
@@ -336,28 +336,28 @@
|
|
|
336
336
|
}
|
|
337
337
|
},
|
|
338
338
|
async buttonBefore(model) {
|
|
339
|
-
if (
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
) {
|
|
349
|
-
|
|
350
|
-
}
|
|
351
|
-
if (model.defname === '施工' && model.button.button_name === '提交') {
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
339
|
+
// if (
|
|
340
|
+
// model.button.button_name === '提交' &&
|
|
341
|
+
// model.defname === '收费' &&
|
|
342
|
+
// (
|
|
343
|
+
// model.f_apply_type === '散户报建' ||
|
|
344
|
+
// model.f_apply_type === '工业户报建' ||
|
|
345
|
+
// model.f_apply_type === '商业户报建'
|
|
346
|
+
// ) &&
|
|
347
|
+
// model.f_surplus_money > 0
|
|
348
|
+
// ) {
|
|
349
|
+
// throw '未结金额大于0,无法提交!!!'
|
|
350
|
+
// }
|
|
351
|
+
// if (model.defname === '施工' && model.button.button_name === '提交') {
|
|
352
|
+
// let http = new HttpResetClass()
|
|
353
|
+
// let data = {
|
|
354
|
+
// f_process_id: model.f_process_id
|
|
355
|
+
// }
|
|
356
|
+
// let res = await http.load('POST', 'rs/sql/notInstalled', {data: data}, {resolveMsg: null, rejectMsg: null})
|
|
357
|
+
// if (res.data[0].num > 0) {
|
|
358
|
+
// throw `还有${res.data[0].num}户未安装,无法提交`
|
|
359
|
+
// }
|
|
360
|
+
// }
|
|
361
361
|
return model
|
|
362
362
|
},
|
|
363
363
|
// ========================= 武安 =================================
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<criteria-paged :model="model" v-ref:cp>
|
|
4
4
|
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
5
5
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
-
<div class="row">
|
|
6
|
+
<div class="row col-sm-12">
|
|
7
7
|
<!-- <div class="form-group col-sm-3">-->
|
|
8
8
|
<!-- <label class="font_normal_body">组织机构:</label>-->
|
|
9
9
|
<!-- <res-select-->
|
|
@@ -13,12 +13,31 @@
|
|
|
13
13
|
<!-- is-mul="false"-->
|
|
14
14
|
<!-- ></res-select>-->
|
|
15
15
|
<!-- </div>-->
|
|
16
|
-
<div class="form-group col-sm-
|
|
16
|
+
<div class="form-group col-sm-2">
|
|
17
|
+
<label class="font_normal_body">运营中心:</label>
|
|
18
|
+
<v-select
|
|
19
|
+
v-model="model.f_operation_center"
|
|
20
|
+
placeholder='运营中心'
|
|
21
|
+
condition="f_operation_center like '%{}%'"
|
|
22
|
+
:value.sync="model.f_operation_center"
|
|
23
|
+
:options='$parent.$parent.operationCenter'
|
|
24
|
+
class="select select_list"
|
|
25
|
+
:value-single="true"
|
|
26
|
+
close-on-select ></v-select>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="form-group col-sm-2">
|
|
17
29
|
<label class="font_normal_body">项目名称:</label>
|
|
18
|
-
<
|
|
19
|
-
|
|
30
|
+
<v-select
|
|
31
|
+
v-model="model.f_entry_name"
|
|
32
|
+
placeholder='项目名称'
|
|
33
|
+
condition="f_entry_name like '%{}%'"
|
|
34
|
+
:value.sync="model.f_entry_name"
|
|
35
|
+
:options='$parent.$parent.entry_name'
|
|
36
|
+
class="select select_list"
|
|
37
|
+
:value-single="true"
|
|
38
|
+
close-on-select ></v-select>
|
|
20
39
|
</div>
|
|
21
|
-
<div class="form-group col-sm-
|
|
40
|
+
<div class="form-group col-sm-2">
|
|
22
41
|
<label class="font_normal_body">办卡状态:</label>
|
|
23
42
|
<v-select
|
|
24
43
|
v-model="model.f_whether_hairpin"
|
|
@@ -30,7 +49,7 @@
|
|
|
30
49
|
:value-single="true"
|
|
31
50
|
close-on-select ></v-select>
|
|
32
51
|
</div>
|
|
33
|
-
<div class="form-group col-sm-
|
|
52
|
+
<div class="form-group col-sm-2">
|
|
34
53
|
<label class="font_normal_body">报建类型:</label>
|
|
35
54
|
<v-select
|
|
36
55
|
placeholder='报建类型'
|
|
@@ -47,19 +66,19 @@
|
|
|
47
66
|
<button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
|
|
48
67
|
</div>
|
|
49
68
|
</div>
|
|
50
|
-
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
69
|
+
<div class="row col-sm-12" v-show="$parent.$parent.criteriaShow">
|
|
51
70
|
|
|
52
|
-
<div class="form-group col-sm-
|
|
71
|
+
<div class="form-group col-sm-2">
|
|
53
72
|
<label class="font_normal_body">客户名称:</label>
|
|
54
73
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
|
|
55
74
|
v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
|
|
56
75
|
</div>
|
|
57
|
-
<div class="form-group col-sm-
|
|
76
|
+
<div class="form-group col-sm-2">
|
|
58
77
|
<label class="font_normal_body">联系电话:</label>
|
|
59
78
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
|
|
60
79
|
v-on:keyup.enter="$parent.$parent.search()" condition="f_user_phone like '%{}%'" placeholder='联系电话'>
|
|
61
80
|
</div>
|
|
62
|
-
<div class="form-group col-sm-
|
|
81
|
+
<div class="form-group col-sm-2">
|
|
63
82
|
<label class="font_normal_body">详细地址:</label>
|
|
64
83
|
<input type="text" style="width:60%" class="input_search" v-model="model.f_address"
|
|
65
84
|
v-on:keyup.enter="$parent.$parent.search()" condition="f_address like '%{}%'" placeholder='详细地址'>
|
|
@@ -72,6 +91,7 @@
|
|
|
72
91
|
<tr>
|
|
73
92
|
<!-- <th style="white-space: nowrap;">选择</th>-->
|
|
74
93
|
<th style="white-space: nowrap;">序号</th>
|
|
94
|
+
<th style="white-space: nowrap;">运营中心</th>
|
|
75
95
|
<th style="white-space: nowrap;">项目名称</th>
|
|
76
96
|
<th style="white-space: nowrap;">报建类型</th>
|
|
77
97
|
<th style="white-space: nowrap;">办卡状态</th>
|
|
@@ -95,6 +115,9 @@
|
|
|
95
115
|
<td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
|
|
96
116
|
<nobr>{{$index+1}}</nobr>
|
|
97
117
|
</td>
|
|
118
|
+
<td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
|
|
119
|
+
<nobr>{{row.f_operation_center}}</nobr>
|
|
120
|
+
</td>
|
|
98
121
|
<td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
|
|
99
122
|
<nobr>{{row.f_entry_name}}</nobr>
|
|
100
123
|
</td>
|
|
@@ -158,6 +181,8 @@ export default {
|
|
|
158
181
|
{'label': '无卡', 'value': '无卡'},
|
|
159
182
|
{'label': '正常', 'value': '正常'}
|
|
160
183
|
],
|
|
184
|
+
operationCenter: [],
|
|
185
|
+
entry_name: [],
|
|
161
186
|
applyType: [
|
|
162
187
|
{'label': '散户集体报装', 'value': '散户集体报装'},
|
|
163
188
|
{'label': '开发商集体报装', 'value': '开发商集体报装'},
|
|
@@ -172,6 +197,8 @@ export default {
|
|
|
172
197
|
ready () {
|
|
173
198
|
// 调用查询
|
|
174
199
|
this.search()
|
|
200
|
+
this.getEntry()
|
|
201
|
+
this.getOperationCenter()
|
|
175
202
|
},
|
|
176
203
|
events: {
|
|
177
204
|
},
|
|
@@ -214,6 +241,88 @@ export default {
|
|
|
214
241
|
return
|
|
215
242
|
}
|
|
216
243
|
this.model.params.data.f_orgids = val[0]
|
|
244
|
+
},
|
|
245
|
+
async getEntry() {
|
|
246
|
+
// 获取项目名称和项目编号
|
|
247
|
+
let http = new HttpResetClass()
|
|
248
|
+
let data = {
|
|
249
|
+
tablename: 't_apply',
|
|
250
|
+
condition: '1 = 1'
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
let res = await http.load('POST','rs/sql/apply_singleTable',{data:data}, {
|
|
254
|
+
resolveMsg: null,
|
|
255
|
+
rejectMsg: '获取项目名称失败'
|
|
256
|
+
})
|
|
257
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
258
|
+
// 项目名称
|
|
259
|
+
let data = []
|
|
260
|
+
let array = []
|
|
261
|
+
data = res.data.map(item => {
|
|
262
|
+
return item.f_entry_name;
|
|
263
|
+
})
|
|
264
|
+
for (let q = 0; q < data.length; q++) {
|
|
265
|
+
let arraydata = {
|
|
266
|
+
'label': data[q],
|
|
267
|
+
'value': data[q]
|
|
268
|
+
}
|
|
269
|
+
if (array.length != 0) {
|
|
270
|
+
for (let w = 0; w < array.length; w++) {
|
|
271
|
+
if (array[w].label == data[q]) {
|
|
272
|
+
break
|
|
273
|
+
}
|
|
274
|
+
while (w == array.length - 1) {
|
|
275
|
+
array.push(arraydata)
|
|
276
|
+
break
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
} else {
|
|
280
|
+
array.push(arraydata)
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
this.entry_name = array
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
async getOperationCenter() {
|
|
287
|
+
// 获取项目名称和项目编号
|
|
288
|
+
let http = new HttpResetClass()
|
|
289
|
+
let data = {
|
|
290
|
+
tablename: 't_apply',
|
|
291
|
+
condition: '1 = 1'
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
let res = await http.load('POST','rs/sql/apply_singleTable',{data:data}, {
|
|
295
|
+
resolveMsg: null,
|
|
296
|
+
rejectMsg: '获取运营中心失败'
|
|
297
|
+
})
|
|
298
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
299
|
+
// 项目名称
|
|
300
|
+
let data = []
|
|
301
|
+
let array = []
|
|
302
|
+
data = res.data.map(item => {
|
|
303
|
+
return item.f_operation_center;
|
|
304
|
+
})
|
|
305
|
+
for (let q = 0; q < data.length; q++) {
|
|
306
|
+
let arraydata = {
|
|
307
|
+
'label': data[q],
|
|
308
|
+
'value': data[q]
|
|
309
|
+
}
|
|
310
|
+
if (array.length != 0) {
|
|
311
|
+
for (let w = 0; w < array.length; w++) {
|
|
312
|
+
if (array[w].label == data[q]) {
|
|
313
|
+
break
|
|
314
|
+
}
|
|
315
|
+
while (w == array.length - 1) {
|
|
316
|
+
array.push(arraydata)
|
|
317
|
+
break
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
} else {
|
|
321
|
+
array.push(arraydata)
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
this.operationCenter = array
|
|
325
|
+
}
|
|
217
326
|
}
|
|
218
327
|
},
|
|
219
328
|
computed: {
|