sale-client 4.0.71-preview → 4.0.73-preview
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/build/dev-server.js +14 -8
- package/package.json +1 -1
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +10 -0
- package/src/components/common/userinfo_detail/ic_detail/RepairList.vue +109 -0
- package/src/components/common/userinfo_detail/ic_detail/SecuritycheckInfo.vue +155 -0
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellation.vue +113 -16
- package/src/components/revenue/comprehen/ComprehenOperation/ChangeAccount/TransferManage.vue +524 -354
- package/src/components/revenue/comprehen/ComprehenOperation/FeeDeduction/feeDeduction.vue +103 -7
- package/src/components/revenue/comprehen/ComprehenOperation/MeterDisable/DisableManage.vue +1 -1
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeMeter.vue +197 -73
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ResetMeter.vue +173 -7
- package/src/components/revenue/machineHandManage/HandplanQuery.vue +13 -0
- package/src/filiale/ronghao/BatchCancellation.vue +342 -0
- package/src/filiale/ronghao/ChangeMeter.vue +259 -136
- package/src/filiale/ronghao/PaymentCode.vue +168 -0
- package/src/filiale/ronghao/ResetMeter.vue +221 -65
- package/src/filiale/ronghao/TransferManage.vue +683 -0
- package/src/filiale/ronghao/sale.js +6 -1
- package/src/plugins/GetSaleParams.js +18 -1
- package/.gradle/8.5/fileChanges/last-build.bin +0 -0
- /package/.gradle/{8.5 → vcs-1}/gc.properties +0 -0
|
Binary file
|
|
Binary file
|
package/build/dev-server.js
CHANGED
|
@@ -20,10 +20,10 @@ var devConfig = {
|
|
|
20
20
|
},
|
|
21
21
|
proxy: {
|
|
22
22
|
'/api/af-revenue/logic': {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
target:
|
|
23
|
+
pathRewrite: {
|
|
24
|
+
'/api/af-revenue/logic': '/logic'
|
|
25
|
+
},
|
|
26
|
+
target: localUrl
|
|
27
27
|
},
|
|
28
28
|
'/api/af-revenue/file': {
|
|
29
29
|
// pathRewrite: {
|
|
@@ -31,11 +31,17 @@ var devConfig = {
|
|
|
31
31
|
// },
|
|
32
32
|
target: serverRul
|
|
33
33
|
},
|
|
34
|
+
'/weixin2/rs':{
|
|
35
|
+
pathRewrite: {
|
|
36
|
+
'/weixin2/rs': '/rs'
|
|
37
|
+
},
|
|
38
|
+
target: 'http://410663id1ia4.vicp.fun'
|
|
39
|
+
},
|
|
34
40
|
'/api/af-revenue/sql': {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
target:
|
|
41
|
+
pathRewrite: {
|
|
42
|
+
'/api/af-revenue/sql': '/sql'
|
|
43
|
+
},
|
|
44
|
+
target: localUrl
|
|
39
45
|
},
|
|
40
46
|
'/api': {
|
|
41
47
|
target: serverRul
|
package/package.json
CHANGED
|
@@ -95,6 +95,12 @@
|
|
|
95
95
|
<saletab header="用户重点记录" v-if="permission('用户重点记录')">
|
|
96
96
|
<user-key-record :row="row" @deal-msg="dealMsg"></user-key-record>
|
|
97
97
|
</saletab>
|
|
98
|
+
<saletab header="维修记录" v-if="permission('维修记录')">
|
|
99
|
+
<repair-list :row="row" @deal-msg="dealMsg"></repair-list>
|
|
100
|
+
</saletab>
|
|
101
|
+
<saletab header="安检记录" v-if="permission('安检记录')">
|
|
102
|
+
<security-check-info :row="row" @deal-msg="dealMsg"></security-check-info>
|
|
103
|
+
</saletab>
|
|
98
104
|
<!-- <saletab header="报装流转记录" v-if="permission('报装流转记录查看')">-->
|
|
99
105
|
<!-- <supervisory-control :row="row" ></supervisory-control>-->
|
|
100
106
|
<!-- </saletab>-->
|
|
@@ -127,6 +133,8 @@
|
|
|
127
133
|
import UserDeviceQuery from './ic_detail/UserDeviceQuery'
|
|
128
134
|
import contractSigningList from './ic_detail/contractSigningList'
|
|
129
135
|
import UserKeyRecord from './ic_detail/UserKeyRecord'
|
|
136
|
+
import RepairList from "./ic_detail/RepairList";
|
|
137
|
+
import SecurityCheckInfo from './ic_detail/SecuritycheckInfo';
|
|
130
138
|
// import SupervisoryControl from './apply_detail/Supervisory/SupervisoryControl'
|
|
131
139
|
// import ApplyChargeSearch from './apply_detail/applyCharge/ApplyChargeSearch'
|
|
132
140
|
// 导入物联网相关查询
|
|
@@ -144,6 +152,8 @@ export default {
|
|
|
144
152
|
title: '用户详细信息',
|
|
145
153
|
props: ['f_userfiles_id', 'f_userinfo_id', 'f_userinfo_code', 'parentname', 'buttonshow'],
|
|
146
154
|
components: {
|
|
155
|
+
SecurityCheckInfo,
|
|
156
|
+
RepairList,
|
|
147
157
|
PriceAdjustmentQueryUser,
|
|
148
158
|
PriceChangeQueryUser,
|
|
149
159
|
AutomaticPurse,
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="pc-finduser-page">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged :simple="true">
|
|
4
|
+
<!-- <criteria partial='criteria'>
|
|
5
|
+
</criteria> -->
|
|
6
|
+
<data-grid :model="model" partial='list' v-ref:grid
|
|
7
|
+
class="list_area table_sy">
|
|
8
|
+
<template partial='head'>
|
|
9
|
+
<tr>
|
|
10
|
+
<!-- <th><nobr>操作</nobr></th>-->
|
|
11
|
+
<th><nobr>工单状态</nobr></th>
|
|
12
|
+
<th><nobr>工单类型</nobr></th>
|
|
13
|
+
<th><nobr>是否完成</nobr></th>
|
|
14
|
+
<th><nobr>工单编号</nobr></th>
|
|
15
|
+
<th><nobr>报修时间</nobr></th>
|
|
16
|
+
<th><nobr>报修电话</nobr></th>
|
|
17
|
+
<th><nobr>报修内容</nobr></th>
|
|
18
|
+
<th><nobr>用户地址</nobr></th>
|
|
19
|
+
<th><nobr>派单人员</nobr></th>
|
|
20
|
+
<th><nobr>维修人员</nobr></th>
|
|
21
|
+
<th><nobr>完成时间</nobr></th>
|
|
22
|
+
</tr>
|
|
23
|
+
</template>
|
|
24
|
+
<template partial='body'>
|
|
25
|
+
<!-- <td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>-->
|
|
26
|
+
<!-- <button class="button_search button_spacing" style="margin-right: 9px"-->
|
|
27
|
+
<!-- @click="$parent.$parent.$parent.showDetail(row)">详情-->
|
|
28
|
+
<!-- </button>-->
|
|
29
|
+
<!-- </nobr></td>-->
|
|
30
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr> {{ row.f_state ?row.f_state:(row.defname ?row.defname:'完成')}}</nobr></td>
|
|
31
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_workorder_type}}</nobr></td>
|
|
32
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_result_status?row.f_result_status:'未完成'}}</nobr></td>
|
|
33
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_service_id}}</nobr></td>
|
|
34
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_created_date}}</nobr></td>
|
|
35
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_phone}}</nobr></td>
|
|
36
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_remarks}}</nobr></td>
|
|
37
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_address}}</nobr></td>
|
|
38
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_single_man}}</nobr></td>
|
|
39
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_order_man}}</nobr></td>
|
|
40
|
+
|
|
41
|
+
<!--<td :style="row.f_result_status=='已完成'?'':'color:red'"><nobr>{{row.f_remarks}}</nobr></td>-->
|
|
42
|
+
<td :style="row.f_result_status==='已完成'?'':'color:red'"><nobr>{{row.f_date_leave}}</nobr></td>
|
|
43
|
+
</template>
|
|
44
|
+
</data-grid>
|
|
45
|
+
</criteria-paged>
|
|
46
|
+
</div>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<script>
|
|
50
|
+
/**
|
|
51
|
+
*用户档案相关信息组件
|
|
52
|
+
*/
|
|
53
|
+
import { PagedList } from 'vue-client'
|
|
54
|
+
export default {
|
|
55
|
+
title: '历史维修记录',
|
|
56
|
+
data () {
|
|
57
|
+
return {
|
|
58
|
+
model: new PagedList('api/af-revenue/sql/serviceDetails', 5),
|
|
59
|
+
row: Object,
|
|
60
|
+
show: false
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
props: {
|
|
65
|
+
user: {
|
|
66
|
+
type: Object
|
|
67
|
+
},
|
|
68
|
+
callObj: {
|
|
69
|
+
type: Object
|
|
70
|
+
},
|
|
71
|
+
clearflg: 0,
|
|
72
|
+
row: {
|
|
73
|
+
type: Object
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
methods: {
|
|
77
|
+
showDetail (row) {
|
|
78
|
+
console.log('996', row)
|
|
79
|
+
this.row = row
|
|
80
|
+
this.show = true
|
|
81
|
+
},
|
|
82
|
+
selected (row) {
|
|
83
|
+
if (this.row === row) {
|
|
84
|
+
this.row = null
|
|
85
|
+
} else {
|
|
86
|
+
this.row = row
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
isSelected (row) {
|
|
90
|
+
return this.row === row
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
watch: {
|
|
94
|
+
'user' (val) {
|
|
95
|
+
this.model.rows = []
|
|
96
|
+
this.model.search(`f_userinfo_id = '${this.row.f_userinfo_id}'`)
|
|
97
|
+
},
|
|
98
|
+
'clearflg' () {
|
|
99
|
+
this.model.rows = []
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
ready () {
|
|
103
|
+
console.log('看看row的信息', this.row)
|
|
104
|
+
if (this.row.f_userinfo_id) {
|
|
105
|
+
this.model.search(`f_userinfo_id = '${this.row.f_userinfo_id}'`)
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</script>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="pc-finduser-page">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged :simple="true">
|
|
4
|
+
|
|
5
|
+
<data-grid :model="model" partial='list' v-ref:grid
|
|
6
|
+
class="list_area table_sy">
|
|
7
|
+
<template partial='head'>
|
|
8
|
+
<tr>
|
|
9
|
+
<!-- <th><nobr>卡号</nobr></th>-->
|
|
10
|
+
<th><nobr>安检日期</nobr></th>
|
|
11
|
+
<th><nobr>入户情况</nobr></th>
|
|
12
|
+
<th><nobr>安检员</nobr></th>
|
|
13
|
+
<th> <nobr>隐患明细</nobr></th>
|
|
14
|
+
<!-- <th> <nobr>操作</nobr></th>-->
|
|
15
|
+
</tr>
|
|
16
|
+
</template>
|
|
17
|
+
<template partial='body'>
|
|
18
|
+
<!-- <td><nobr>{{row.f_card_id}}</nobr></td>-->
|
|
19
|
+
<td style="text-align: center"><nobr>{{row.f_onsite_time.substring(0,11)}}</nobr></td>
|
|
20
|
+
<td style="text-align: center"><nobr>{{row.f_entry_status}}</nobr></td>
|
|
21
|
+
<td style="text-align: center"><nobr>{{row.f_checker_name}}</nobr></td>
|
|
22
|
+
<td style="text-align: center" ><nobr>{{row.f_defect_text?row.f_defect_text:$parent.$parent.$parent.getjsonData(row.f_defect_content)}}</nobr></td>
|
|
23
|
+
<!-- <td style="text-align: center"><nobr><button-link type="button" class="btn btn-link" @click="$parent.$parent.$parent.change(row)">查看</button-link></nobr></td>-->
|
|
24
|
+
</template>
|
|
25
|
+
</data-grid>
|
|
26
|
+
</criteria-paged>
|
|
27
|
+
</div>
|
|
28
|
+
<!-- <modal :show.sync="infoshow" large="true" v-ref:modal backdrop="false" width="1200">-->
|
|
29
|
+
<!-- <header slot="modal-header" class="modal-header">-->
|
|
30
|
+
<!-- 安检详情-->
|
|
31
|
+
<!-- </header>-->
|
|
32
|
+
<!-- <article slot="modal-body" class="modal-body">-->
|
|
33
|
+
<!-- <div class="from-group col-smm-12 col-md-12 col-xs-12" v-if="infoshow">-->
|
|
34
|
+
<!-- <new-check-paper :f_plan_id="onedata.f_check_plan_id" :item="onedata" role="view" >-->
|
|
35
|
+
<!-- </new-check-paper>-->
|
|
36
|
+
<!-- </div>-->
|
|
37
|
+
<!-- </article>-->
|
|
38
|
+
<!-- <footer slot="modal-footer" class="modal-footer">-->
|
|
39
|
+
<!-- <button type="button" class="btn btn-success" @click='close'>确认</button>-->
|
|
40
|
+
<!-- </footer>-->
|
|
41
|
+
<!-- </modal>-->
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
/**
|
|
46
|
+
*用户档案相关信息组件
|
|
47
|
+
*/
|
|
48
|
+
import { PagedList } from 'vue-client'
|
|
49
|
+
import Vue from 'vue'
|
|
50
|
+
import { isEmpty } from "../../../../Util"
|
|
51
|
+
// import newCheckPaper from "./NewCheckpaper.vue"
|
|
52
|
+
// 获取json配置文件
|
|
53
|
+
let asyncReady = async function (self) {
|
|
54
|
+
// 获取配置信息
|
|
55
|
+
try {
|
|
56
|
+
let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
57
|
+
Vue.config = res.data
|
|
58
|
+
} catch (error) {
|
|
59
|
+
// 忽略704,文件找不到异常R
|
|
60
|
+
if (error.status !== 704) {
|
|
61
|
+
throw error
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default {
|
|
67
|
+
// components: {
|
|
68
|
+
// newCheckPaper
|
|
69
|
+
// },
|
|
70
|
+
title: '用户安检历史',
|
|
71
|
+
data () {
|
|
72
|
+
return {
|
|
73
|
+
model: new PagedList('api/af-revenue/sql/查找安检单', 5, {orderitem: '"f_onsite_time desc"',f_plan_id:'""',f_approved:'""',f_entry_status:'""',f_no_checkplan:'""',f_filialeid:'""'}),
|
|
74
|
+
row: Object,
|
|
75
|
+
infoshow: false,
|
|
76
|
+
onedata: Object
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
props: {
|
|
80
|
+
user: {
|
|
81
|
+
type: Object
|
|
82
|
+
},
|
|
83
|
+
clearflg: 0,
|
|
84
|
+
row: {
|
|
85
|
+
type: Object
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
methods: {
|
|
89
|
+
close () {
|
|
90
|
+
this.infoshow = false
|
|
91
|
+
},
|
|
92
|
+
change (row) {
|
|
93
|
+
// Vue.$login = {jwt: row.f_checker_id}
|
|
94
|
+
asyncReady(this).then(() => {
|
|
95
|
+
row.f_upload_state = '已传'
|
|
96
|
+
this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
|
|
97
|
+
}).catch(
|
|
98
|
+
(respanse) => {
|
|
99
|
+
alert ('获取配置文件失败')
|
|
100
|
+
})
|
|
101
|
+
},
|
|
102
|
+
// change(val){
|
|
103
|
+
//
|
|
104
|
+
// this.onedata = val
|
|
105
|
+
// this.infoshow = true
|
|
106
|
+
// },
|
|
107
|
+
getjsonData (value) {
|
|
108
|
+
// 将value字符串转换成json对象
|
|
109
|
+
let jsonStr = JSON.parse(value)
|
|
110
|
+
let str = jsonStr.data
|
|
111
|
+
if (jsonStr.result === '正常') {
|
|
112
|
+
return '正常'
|
|
113
|
+
} else {
|
|
114
|
+
let result = ''
|
|
115
|
+
if (str) {
|
|
116
|
+
for (const itemdata of str) {
|
|
117
|
+
const keys = Object.keys(itemdata)
|
|
118
|
+
for (const itm of keys) {
|
|
119
|
+
const value = itemdata[itm]
|
|
120
|
+
result += itm + ':' + value + ' '
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return result
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
selected (row) {
|
|
128
|
+
if (this.row === row) {
|
|
129
|
+
this.row = null
|
|
130
|
+
} else {
|
|
131
|
+
this.row = row
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
isSelected (row) {
|
|
135
|
+
return this.row === row
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
watch: {
|
|
139
|
+
'user' (val) {
|
|
140
|
+
// tag
|
|
141
|
+
this.model.search(`f_userinfoid = '${this.row.f_userinfo_id}'`)
|
|
142
|
+
},
|
|
143
|
+
'clearflg' () {
|
|
144
|
+
this.model.rows = []
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
ready () {
|
|
148
|
+
console.log('看看row的信息', this.row)
|
|
149
|
+
if (this.row.f_userinfo_id) {
|
|
150
|
+
this.model.search(`f_userinfoid = '${this.row.f_userinfo_id}'`)
|
|
151
|
+
}
|
|
152
|
+
// this.model.rows=[{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'},{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'},{f_onsite_time:'2020-01-01',f_entry_status:'入戶',f_checker_name:'何11'}]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</script>
|
package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellation.vue
CHANGED
|
@@ -52,11 +52,27 @@
|
|
|
52
52
|
<input class="input_search" style="width:80%" v-model="model.f_reason" v-validate:f_reason='{required: true }' rows="3" placeholder="请填写原因">
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
|
+
<div class="row" style="margin-top:10px;">
|
|
56
|
+
<div v-if="config.hasAudit" :class="[$v.f_meter_base.required ? 'has-error' : 'has-success']">
|
|
57
|
+
<label class="ch font_normal_body">审核人员</label>
|
|
58
|
+
<input v-show="false" v-model="model.f_audit_person"
|
|
59
|
+
v-validate:f_audit_person='{required: true}'>
|
|
60
|
+
<v-select :value.sync="model.f_audit_person"
|
|
61
|
+
:options='auditor' placeholder='请选择'
|
|
62
|
+
selected="审核人员"
|
|
63
|
+
:value-single="true"
|
|
64
|
+
style="width:60%"
|
|
65
|
+
close-on-select></v-select>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
55
68
|
</form>
|
|
56
69
|
<upload :blodid="useraccount[0].f_userinfo_id" isremark="true" fusetype="销户" v-ref:caneclfile></upload>
|
|
57
70
|
|
|
58
71
|
<div style="text-align:right;height:auto;margin-top:30px;margin-right:50px;">
|
|
59
|
-
<button class="button_search" @click="createHand()"
|
|
72
|
+
<button class="button_search" v-show="config.hasAudit" type="button" @click="createHand()" :disabled='!$v.valid'>
|
|
73
|
+
过户审核
|
|
74
|
+
</button>
|
|
75
|
+
<button class="button_search" v-show="!config.hasAudit" @click="createHand()" :disabled='!$v.valid'>确认</button>
|
|
60
76
|
<button class="button_clear" @click="clean()">取消</button>
|
|
61
77
|
</div>
|
|
62
78
|
</validator>
|
|
@@ -67,29 +83,34 @@ import Vue from 'vue'
|
|
|
67
83
|
import {HttpResetClass} from 'vue-client'
|
|
68
84
|
|
|
69
85
|
/**
|
|
70
|
-
*综合业务
|
|
71
|
-
表具停用组件
|
|
72
|
-
*/
|
|
86
|
+
*综合业务
|
|
87
|
+
表具停用组件
|
|
88
|
+
*/
|
|
73
89
|
export default {
|
|
74
90
|
title: '批量销户',
|
|
75
91
|
data () {
|
|
76
92
|
return {
|
|
93
|
+
resid: [], // 存放新增的f_files表中id
|
|
77
94
|
config: {
|
|
78
|
-
upload: false // 默认附件不必传
|
|
95
|
+
upload: false, // 默认附件不必传
|
|
96
|
+
hasAudit: false // 是否审核
|
|
79
97
|
},
|
|
80
98
|
model: {
|
|
81
99
|
count: 0,
|
|
82
100
|
discount: 0,
|
|
83
101
|
f_meter_base: null,
|
|
84
102
|
f_reason: '',
|
|
85
|
-
userinfo: {}
|
|
103
|
+
userinfo: {},
|
|
104
|
+
f_operat_type: '销户'
|
|
86
105
|
},
|
|
87
|
-
infoIds: []
|
|
106
|
+
infoIds: [],
|
|
107
|
+
auditor: []
|
|
88
108
|
}
|
|
89
109
|
},
|
|
90
110
|
props: ['useraccount'],
|
|
91
111
|
async ready () {
|
|
92
112
|
await this.$getConfig(this, 'UserFiles')
|
|
113
|
+
this.getAuditor()
|
|
93
114
|
this.useraccount.forEach((item) => {
|
|
94
115
|
if (item.f_user_state !== '销户') {
|
|
95
116
|
this.model.count = this.model.count + 1
|
|
@@ -125,7 +146,10 @@ export default {
|
|
|
125
146
|
// },
|
|
126
147
|
|
|
127
148
|
methods: {
|
|
128
|
-
|
|
149
|
+
async getAuditor () {
|
|
150
|
+
await this.$GetSaleParam.initinputtor()
|
|
151
|
+
this.auditor = this.$GetSaleParam.getAudit(this.$login.f.orgid)
|
|
152
|
+
},
|
|
129
153
|
async createHand () {
|
|
130
154
|
if (this.config.upload) {
|
|
131
155
|
if (this.$refs.caneclfile.fileInfoData && this.$refs.caneclfile.fileInfoData.length > 0) {
|
|
@@ -172,13 +196,13 @@ export default {
|
|
|
172
196
|
async confirm () {
|
|
173
197
|
let http = new HttpResetClass()
|
|
174
198
|
let owe = await http.load('POST', 'api/af-revenue/sql/singleTable_OrderBy', {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
199
|
+
data: {
|
|
200
|
+
items: 'f_whether_pay',
|
|
201
|
+
tablename: 't_handplan',
|
|
202
|
+
condition: ` f_userfiles_id = '${this.useraccount[0].f_userfiles_id}' and f_hand_state = '有效' and f_meter_state='已抄表' and f_whether_pay='否'`,
|
|
203
|
+
orderitem: ' id desc'
|
|
204
|
+
}
|
|
205
|
+
}, {resolveMsg: null, rejectMsg: null}
|
|
182
206
|
)
|
|
183
207
|
console.log('获取到的欠费记录', owe)
|
|
184
208
|
// 如果是机表/物联网表,验证是否有欠费
|
|
@@ -189,7 +213,11 @@ export default {
|
|
|
189
213
|
} else if ((this.model.userinfo.f_meter_classify === '物联网表' && this.model.userinfo.f_balance_amount && this.model.userinfo.f_balance_amount > 0) || (this.model.userinfo.f_meter_classify !== '物联网表' && this.model.userinfo.f_balance && this.model.userinfo.f_balance > 0)) {
|
|
190
214
|
this.$showAlert('该表有余额,无法销户', 'warning', 3000)
|
|
191
215
|
} else {
|
|
192
|
-
|
|
216
|
+
if (!this.config.hasAudit) {
|
|
217
|
+
await this.cancellation()
|
|
218
|
+
} else {
|
|
219
|
+
this.auditConfirm()
|
|
220
|
+
}
|
|
193
221
|
}
|
|
194
222
|
},
|
|
195
223
|
async cancellation () {
|
|
@@ -204,6 +232,64 @@ export default {
|
|
|
204
232
|
this.$dispatch('error', '批量销户', this.row, error)
|
|
205
233
|
})
|
|
206
234
|
},
|
|
235
|
+
async auditConfirm () {
|
|
236
|
+
let fileParam = []
|
|
237
|
+
for (let row of this.resid) {
|
|
238
|
+
fileParam.push({id: row.id})
|
|
239
|
+
}
|
|
240
|
+
let param = {
|
|
241
|
+
// 业务参数
|
|
242
|
+
requestParam: {
|
|
243
|
+
f_operat_type: '销户',
|
|
244
|
+
f_describe: `${Vue.$login.f.name}对客户${this.model.userinfo.f_user_name}进行销户`,
|
|
245
|
+
f_user_id: this.model.userinfo.f_user_id,
|
|
246
|
+
f_user_name: this.model.userinfo.f_user_name,
|
|
247
|
+
f_state: '销户',
|
|
248
|
+
f_comments: this.model.f_reason,
|
|
249
|
+
f_operator: Vue.$login.f.name,
|
|
250
|
+
f_operatorid: Vue.$login.f.id,
|
|
251
|
+
f_orgid: Vue.$login.f.orgid,
|
|
252
|
+
f_orgname: Vue.$login.f.orgs,
|
|
253
|
+
f_depid: Vue.$login.f.depids,
|
|
254
|
+
f_depname: Vue.$login.f.deps,
|
|
255
|
+
f_userinfo_id: this.model.userinfo.f_userinfo_id
|
|
256
|
+
},
|
|
257
|
+
// 审核人
|
|
258
|
+
f_audit_person: this.model.f_audit_person,
|
|
259
|
+
// 描述
|
|
260
|
+
f_describe: `${this.$login.f.name}对用户${this.useraccount[0].f_user_name}进行销户`,
|
|
261
|
+
// 附件
|
|
262
|
+
fileParam: fileParam,
|
|
263
|
+
// 登录人信息
|
|
264
|
+
userBaseInfo: {
|
|
265
|
+
f_operator: Vue.$login.f.name,
|
|
266
|
+
f_userinfo_code: this.useraccount[0].f_userinfo_code,
|
|
267
|
+
f_userinfo_id: this.useraccount[0].f_userinfo_id,
|
|
268
|
+
f_operatorid: Vue.$login.f.id,
|
|
269
|
+
f_orgid: Vue.$login.f.orgid,
|
|
270
|
+
f_orgname: Vue.$login.f.orgs,
|
|
271
|
+
f_depid: Vue.$login.f.depids,
|
|
272
|
+
f_depname: Vue.$login.f.deps
|
|
273
|
+
},
|
|
274
|
+
// 业务类型
|
|
275
|
+
type: '销户',
|
|
276
|
+
// 执行业务
|
|
277
|
+
f_type: this.model.f_operat_type,
|
|
278
|
+
// 其他业务请求
|
|
279
|
+
f_otherparam: [],
|
|
280
|
+
// 备注
|
|
281
|
+
f_comments: this.model.f_reason,
|
|
282
|
+
// 执行logic
|
|
283
|
+
logicName: 'saveSingleCancellation'
|
|
284
|
+
}
|
|
285
|
+
this.$resetpost('api/af-revenue/logic/commonAuditLogic', {data: param}, {
|
|
286
|
+
warnMsg: `确定要对用户${this.useraccount[0].f_user_name}进行${this.model.f_operat_type}审核吗?`,
|
|
287
|
+
resolveMsg: `提交审核完成!!`,
|
|
288
|
+
rejectMsg: `提交审核失败!!请重试!!`
|
|
289
|
+
}).then((res) => {
|
|
290
|
+
this.clean()
|
|
291
|
+
})
|
|
292
|
+
},
|
|
207
293
|
// confirm () {
|
|
208
294
|
// this.model.f_reality_count = this.model.count
|
|
209
295
|
//
|
|
@@ -237,6 +323,17 @@ export default {
|
|
|
237
323
|
this.$info('取消操作')
|
|
238
324
|
this.$dispatch('clean', '批量销户', this.row)
|
|
239
325
|
}
|
|
326
|
+
},
|
|
327
|
+
events: {
|
|
328
|
+
// 删除Resid数组元素
|
|
329
|
+
'delResid' (val) {
|
|
330
|
+
this.resid.$remove({id: val, f_biobid: ''})
|
|
331
|
+
// this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
|
|
332
|
+
},
|
|
333
|
+
// 增加Resid数组元素
|
|
334
|
+
'resid' (val) {
|
|
335
|
+
this.resid.push({id: val, f_biobid: ''})
|
|
336
|
+
}
|
|
240
337
|
}
|
|
241
338
|
}
|
|
242
339
|
</script>
|