sale-client 3.5.179 → 3.5.181
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/revenue/third/transferAuditCenter.vue +1 -1
- package/src/components/revenue/third/transferAuditDisposeBasics.vue +6 -2
- package/src/filiale/fugu/components/BlackList.vue +311 -0
- package/src/filiale/fugu/components/BlackListList.vue +355 -0
- package/src/filiale/fugu/sale.js +4 -1
- package/src/filiale/shanggao/BankPayment.vue +0 -2
- package/src/filiale/wuan/meterinfodetail.vue +247 -0
- package/src/filiale/wuan/sale.js +2 -1
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
for (let item of res.data.data) {
|
|
52
52
|
img = item
|
|
53
53
|
console.log("图片名",img.name)
|
|
54
|
-
if (img.name.indexOf("买方身份证(买方提供)") !== -1 || img.name.indexOf("网签备案合同") !== -1){
|
|
54
|
+
if (img.name.indexOf("买方身份证(买方提供)") !== -1 || img.name.indexOf("网签备案合同") !== -1 || img.name.indexOf("不动产权证") !== -1){
|
|
55
55
|
imgList.push(
|
|
56
56
|
{
|
|
57
57
|
name:img.name,
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
<!--图片信息-->
|
|
10
10
|
<div class="auto" v-if="imgInfo.length">
|
|
11
11
|
<div class="form-group" v-for="row in imgInfo">
|
|
12
|
-
<label class="col-sm-3 control-label">
|
|
12
|
+
<label class="col-sm-3 control-label">
|
|
13
|
+
{{row.key}}
|
|
14
|
+
<a class="active" v-if="row.key.indexOf('不动产权证') !== -1" target="_blank" :href="searchUri">查询</a>
|
|
15
|
+
</label>
|
|
13
16
|
<div class="col-sm-9">
|
|
14
17
|
<img :src="row.value" v-if="row.value" width="70%"/>
|
|
15
18
|
</div>
|
|
@@ -108,7 +111,8 @@
|
|
|
108
111
|
return {
|
|
109
112
|
show: false,
|
|
110
113
|
f_operator: this.$login.f.name,
|
|
111
|
-
placeholder: ''
|
|
114
|
+
placeholder: '',
|
|
115
|
+
searchUri:'http://60.173.140.115:8191/#/'
|
|
112
116
|
}
|
|
113
117
|
},
|
|
114
118
|
props: {
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex-auto" style="overflow-y: scroll;height: 55%">
|
|
3
|
+
<validator name='v'>
|
|
4
|
+
<form novalidate class="form-horizontal select-overspread ">
|
|
5
|
+
<ul class="nav nav-tabs">
|
|
6
|
+
<li class="active a-tabs"><a href="#">用户拉黑</a></li>
|
|
7
|
+
</ul>
|
|
8
|
+
<div>
|
|
9
|
+
<div class="row">
|
|
10
|
+
<div class="col-sm-4 form-group" id="f_user_id">
|
|
11
|
+
<label for="f_userinfo_code" class="font_normal_body">表  号</label>
|
|
12
|
+
<input class="input_search" style="width:60%" type="text"
|
|
13
|
+
v-model="model.f_meternumber" @keyup.enter="getinfo('f_meternumber')"
|
|
14
|
+
:disabled='isEdit' placeholder="输入表号,回车查询">
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col-sm-4 form-group" id="f_user_id">
|
|
17
|
+
<label for="f_userinfo_code" class="font_normal_body">卡  号</label>
|
|
18
|
+
<input class="input_search" style="width:60%" type="text"
|
|
19
|
+
v-model="model.f_card_id" @keyup.enter="getinfo('f_card_id')"
|
|
20
|
+
:disabled='isEdit' placeholder="输入卡号,回车查询">
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-4 form-group" id="f_user_id" :class="[$v.f_userinfo_code.required ? 'has-error' : 'has-success']">
|
|
23
|
+
<label for="f_userinfo_code" class="font_normal_body">用户编号</label>
|
|
24
|
+
<input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%"
|
|
25
|
+
v-model="model.f_userinfo_code" @keyup.enter="getinfo('f_userinfo_code')"
|
|
26
|
+
v-validate:f_userinfo_code='{required: true }' :disabled='isEdit' placeholder="输入编号,回车查询">
|
|
27
|
+
</div>
|
|
28
|
+
<div class="col-sm-4 form-group" id="name" :class="[$v.f_user_name.required ? 'has-error' : 'has-success']">
|
|
29
|
+
<label for="f_user_name" class=" font_normal_body">用户姓名</label>
|
|
30
|
+
<input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%" v-validate:f_user_name='{required: true }'
|
|
31
|
+
v-model="model.f_user_name" readonly
|
|
32
|
+
placeholder="用户姓名">
|
|
33
|
+
|
|
34
|
+
</div>
|
|
35
|
+
<div class="col-sm-4 form-group" id="phone" :class="[$v.f_user_phone.required ? 'has-error' : 'has-success']">
|
|
36
|
+
<label for="f_user_phone" class=" font_normal_body">联系方式</label>
|
|
37
|
+
<input class="input_search" style="width:60%" type="text" class="input_search" style="width:60%" v-validate:f_user_phone='{required: true }'
|
|
38
|
+
v-model="model.f_user_phone" readonly
|
|
39
|
+
placeholder="联系方式">
|
|
40
|
+
|
|
41
|
+
</div>
|
|
42
|
+
<div class="col-sm-4 form-group" id="f_limit_times" :class="[$v.f_limit_times.required ? 'has-error' : 'has-success']">
|
|
43
|
+
<!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
|
|
44
|
+
<label class="font_normal_body">限购次数</label>
|
|
45
|
+
<input class="input_search" style="width:60%" type="number"
|
|
46
|
+
v-model="model.f_limit_times" v-validate:f_limit_times='{required: true }'
|
|
47
|
+
placeholder="限购次数">
|
|
48
|
+
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-sm-2 form-group" id="f_limit">
|
|
51
|
+
<!-- <label for="f_limit_times" class=" font_normal_body">限购次数</label>-->
|
|
52
|
+
<v-select
|
|
53
|
+
v-model="f_limit"
|
|
54
|
+
:value.sync="f_limit"
|
|
55
|
+
:options='limites'
|
|
56
|
+
width="100%"
|
|
57
|
+
close-on-select>
|
|
58
|
+
</v-select>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="col-sm-3 form-group" id="f_limit_gas" style="right: 3%;">
|
|
61
|
+
<input class="input_search" style="width:60%" type="number" v-if="f_limit=='限购气量'"
|
|
62
|
+
v-model="model.f_limit_value"
|
|
63
|
+
v-scale="[model.f_limit_value, 2]"
|
|
64
|
+
@click="gg()"
|
|
65
|
+
placeholder="限购气量">
|
|
66
|
+
<input class="input_search" type="number" v-if="f_limit=='限购金额'"
|
|
67
|
+
v-model="model.f_limit_amount"
|
|
68
|
+
v-scale="[model.f_limit_amount, 2]"
|
|
69
|
+
@click="gg()"
|
|
70
|
+
placeholder="限购金额">
|
|
71
|
+
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div class="row">
|
|
76
|
+
<div class="col-sm-12 form-group" id="address">
|
|
77
|
+
<label for="f_address" class=" font_normal_body">地  址</label>
|
|
78
|
+
<input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_address"
|
|
79
|
+
readonly
|
|
80
|
+
placeholder="地址">
|
|
81
|
+
</div>
|
|
82
|
+
<div class="col-sm-12 form-group" id="f_comments" :class="[$v.f_comments.required ? 'has-error' : 'has-success']">
|
|
83
|
+
<label for="f_comments" class=" font_normal_body">原  因</label>
|
|
84
|
+
<input class="input_search" type="text" class="input_search" style="width:87%" v-model="model.f_comments"
|
|
85
|
+
placeholder="原因" v-validate:f_comments='{required: true }' >
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
</div>
|
|
89
|
+
|
|
90
|
+
<div style="text-align:right;height:auto;margin-top:6px;">
|
|
91
|
+
<button class="button_search" type="button" style="width:80px;" @click="confirm('拉黑')"
|
|
92
|
+
v-show="!isBlackList && model.isblacklist =='false'" :disabled='!$v.valid'>
|
|
93
|
+
拉黑
|
|
94
|
+
</button>
|
|
95
|
+
<button class="button_search" type="button" style="width:80px;" @click="confirm('取消拉黑')"
|
|
96
|
+
v-show="isBlackList || model.isblacklist =='true'" :disabled='!$v.valid'>
|
|
97
|
+
取消拉黑
|
|
98
|
+
</button>
|
|
99
|
+
<button class="button_export" type="button" style="width:80px;" @click="close()">取消</button>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
</form>
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
</validator>
|
|
107
|
+
|
|
108
|
+
</div>
|
|
109
|
+
</template>
|
|
110
|
+
<script>
|
|
111
|
+
import {HttpResetClass} from 'vue-client'
|
|
112
|
+
import Vue from 'vue'
|
|
113
|
+
let initGen = async function (self, val) {
|
|
114
|
+
// 获取低保气价
|
|
115
|
+
let http = new HttpResetClass()
|
|
116
|
+
let res = await http.load('POST', 'rs/sql/sale_getUserAndVersion', {data: {condition:`f_userinfo_code='${self.data.f_userinfo_code}'` , f_orgid: self.$login.f.orgid}}, {
|
|
117
|
+
resolveMsg: null,
|
|
118
|
+
rejectMsg: null
|
|
119
|
+
})
|
|
120
|
+
console.log(res.data)
|
|
121
|
+
console.log('用户id:' + res.data[0].f_userinfo_id)
|
|
122
|
+
self.model = Object.assign({}, self.model, val)
|
|
123
|
+
self.model.f_userinfo_code = res.data[0].f_userinfo_code
|
|
124
|
+
self.model.f_meternumber = res.data[0].f_meternumber
|
|
125
|
+
self.model.f_card_id = res.data[0].f_card_id
|
|
126
|
+
self.model.f_userinfo_id = res.data[0].f_userinfo_id
|
|
127
|
+
self.model.f_user_phone = res.data[0].f_user_phone
|
|
128
|
+
self.model.f_address = res.data[0].f_address
|
|
129
|
+
self.model.f_user_phone = res.data[0].f_user_phone
|
|
130
|
+
self.model.version = res.data[0].version
|
|
131
|
+
self.model.f_limit_value=res.data[0].f_limit_value
|
|
132
|
+
self.model.f_limit_times=res.data[0].f_limit_times
|
|
133
|
+
self.model.f_limit_amount=res.data[0].f_limit_amount
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export default {
|
|
137
|
+
title: '黑名单',
|
|
138
|
+
props: {
|
|
139
|
+
f_islow_income: {
|
|
140
|
+
type: String,
|
|
141
|
+
default: '1'
|
|
142
|
+
},
|
|
143
|
+
data: {
|
|
144
|
+
type: Object
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
data () {
|
|
148
|
+
return {
|
|
149
|
+
pricename: [{value: '', label: ''}],
|
|
150
|
+
model: {
|
|
151
|
+
f_userinfo_code: '',
|
|
152
|
+
f_userinfo_id: '',
|
|
153
|
+
f_user_name: '',
|
|
154
|
+
f_address: '',
|
|
155
|
+
f_user_phone: '',
|
|
156
|
+
f_comments: '',
|
|
157
|
+
version: null,
|
|
158
|
+
// 限购次数
|
|
159
|
+
f_limit_times: '',
|
|
160
|
+
// 限购气量
|
|
161
|
+
f_limit_value: '',
|
|
162
|
+
// 限购金额
|
|
163
|
+
f_limit_amount: ''
|
|
164
|
+
|
|
165
|
+
},
|
|
166
|
+
// 编辑控制
|
|
167
|
+
isBlackList: false,
|
|
168
|
+
f_filialeid: '', // 所属公司
|
|
169
|
+
f_filialename: '', // 所属公司名称
|
|
170
|
+
f_limit: '限购气量',
|
|
171
|
+
limites: [{label: '限购气量', value: '限购气量'}, {label: '限购金额', value: '限购金额'}]
|
|
172
|
+
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
ready () {
|
|
176
|
+
if (this.data) {
|
|
177
|
+
console.log(this.data + '*****************************')
|
|
178
|
+
if(this.data.f_parameter_value){
|
|
179
|
+
this.isBlackList = true
|
|
180
|
+
initGen(this, this.data)
|
|
181
|
+
} else {
|
|
182
|
+
this.isBlackList = false
|
|
183
|
+
this.initNormalModel(this.data,this)
|
|
184
|
+
}
|
|
185
|
+
} else {
|
|
186
|
+
this.initModel()
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
watch: {
|
|
190
|
+
'data' (val) {
|
|
191
|
+
if (val) {
|
|
192
|
+
if(this.data.f_parameter_value){
|
|
193
|
+
this.isBlackList = true
|
|
194
|
+
initGen(this, this.data)
|
|
195
|
+
} else {
|
|
196
|
+
this.isBlackList = false
|
|
197
|
+
this.initNormalModel(this.data,this)
|
|
198
|
+
}
|
|
199
|
+
} else {
|
|
200
|
+
this.isBlackList = false
|
|
201
|
+
this.initModel()
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
methods: {
|
|
206
|
+
initNormalModel(obj,self){
|
|
207
|
+
this.$resetpost('rs/sql/sale_getUserAndVersion', {data: {condition: `f_userinfo_code='${obj.f_userinfo_code}'`, f_orgid: this.$login.f.orgid}}, {
|
|
208
|
+
resolveMsg: null,
|
|
209
|
+
rejectMsg: null
|
|
210
|
+
}).then((res) => {
|
|
211
|
+
self.model.version = res.data[0].version
|
|
212
|
+
})
|
|
213
|
+
self.model = Object.assign({}, self.model, obj)
|
|
214
|
+
self.model.f_userinfo_code = obj.f_userinfo_code
|
|
215
|
+
self.model.f_meternumber = obj.f_meternumber
|
|
216
|
+
self.model.f_card_id = obj.f_card_id
|
|
217
|
+
self.model.f_userinfo_id = obj.f_userinfo_id
|
|
218
|
+
self.model.f_user_phone = obj.f_user_phone
|
|
219
|
+
self.model.f_address = obj.f_address
|
|
220
|
+
self.model.f_user_phone = obj.f_user_phone
|
|
221
|
+
self.model = Object.assign({},self.model,{isblacklist:'false'})
|
|
222
|
+
},
|
|
223
|
+
gg () {
|
|
224
|
+
if (this.f_limit[0] === '限购气量') {
|
|
225
|
+
this.model.f_limit_amount = ''
|
|
226
|
+
} else {
|
|
227
|
+
this.model.f_limit_value = ''
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
getinfo (type) {
|
|
231
|
+
var condition =`${type} = '${this.model[type]}'`
|
|
232
|
+
this.$resetpost('rs/sql/sale_getUserAndVersion', {data: {condition: condition, f_orgid: this.$login.f.orgid}}, {
|
|
233
|
+
resolveMsg: null,
|
|
234
|
+
rejectMsg: null
|
|
235
|
+
}).then((res) => {
|
|
236
|
+
console.log(res.data[0])
|
|
237
|
+
this.model = res.data[0]
|
|
238
|
+
this.$parent.blodid = this.model.f_userinfo_id
|
|
239
|
+
})
|
|
240
|
+
},
|
|
241
|
+
async confirm (type) {
|
|
242
|
+
if (type == '取消拉黑' && !this.$login.r.find(value => value == '取消拉黑')) {
|
|
243
|
+
this.$showMessage('你没有取消拉黑的权限,请联系管理员!')
|
|
244
|
+
return
|
|
245
|
+
}
|
|
246
|
+
let data = {
|
|
247
|
+
f_operat_type: type,
|
|
248
|
+
f_state: '有效',
|
|
249
|
+
f_user_id: this.model.f_user_id,
|
|
250
|
+
f_user_name: this.model.f_user_name,
|
|
251
|
+
f_comments: this.model.f_comments,
|
|
252
|
+
f_operator: this.$login.f.name,
|
|
253
|
+
f_operatorid: this.$login.f.id,
|
|
254
|
+
f_orgid: this.$login.f.orgid,
|
|
255
|
+
f_orgname: this.$login.f.orgs,
|
|
256
|
+
f_depid: this.$login.f.depids,
|
|
257
|
+
f_depname: this.$login.f.deps,
|
|
258
|
+
f_operate_date: this.$login.toStandardTimeString(),
|
|
259
|
+
f_describe: `${this.$login.f.name}对客户${this.model.f_user_name}进行${type}`,
|
|
260
|
+
f_userinfo_id: {
|
|
261
|
+
f_userinfo_id: this.model.f_userinfo_id,
|
|
262
|
+
f_user_state: '正常',
|
|
263
|
+
version: this.model.version
|
|
264
|
+
},
|
|
265
|
+
f_limit_times: this.model.f_limit_times,
|
|
266
|
+
f_limit_amount: this.model.f_limit_amount,
|
|
267
|
+
f_limit_value: this.model.f_limit_value
|
|
268
|
+
}
|
|
269
|
+
console.log('查看参数data', data)
|
|
270
|
+
let res =await this.$resetpost('rs/logic/backlistOperate', data,{resolveMsg: null, rejectMsg: null})
|
|
271
|
+
if (res.data.code == 200) {
|
|
272
|
+
this.$showMessage(`${type}成功`)
|
|
273
|
+
}
|
|
274
|
+
if (res.data.code == 500) {
|
|
275
|
+
this.$showMessage(`${type}失败,用户已被拉黑,请先取消拉黑`)
|
|
276
|
+
return
|
|
277
|
+
}
|
|
278
|
+
this.initModel()
|
|
279
|
+
this.$dispatch('success')
|
|
280
|
+
},
|
|
281
|
+
getorg (id, name) {
|
|
282
|
+
this.f_filialeid = id[0]
|
|
283
|
+
this.f_filialename = name[0]
|
|
284
|
+
},
|
|
285
|
+
initModel () {
|
|
286
|
+
this.model = {
|
|
287
|
+
f_userinfo_code: '',
|
|
288
|
+
f_userinfo_id: '',
|
|
289
|
+
f_user_name: '',
|
|
290
|
+
f_address: '',
|
|
291
|
+
f_user_phone: '',
|
|
292
|
+
f_comments: '',
|
|
293
|
+
version: null,
|
|
294
|
+
isblacklist: 'false'
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
close () {
|
|
298
|
+
this.$dispatch('close')
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
</script>
|
|
303
|
+
<style lang="less">
|
|
304
|
+
#gas-price-form {
|
|
305
|
+
.form-group {
|
|
306
|
+
margin-left: 0px;
|
|
307
|
+
margin-right: 0px;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
</style>
|
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div @keyup.enter="search" class="flex-auto" style="flex:1;">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
|
|
5
|
+
<div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
|
|
6
|
+
<div class="row">
|
|
7
|
+
<res-select-group :style="$parent.$parent.style" :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getorg" v-ref:sel></res-select-group>
|
|
8
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
9
|
+
<label class="font_normal_body">用户编号</label>
|
|
10
|
+
<input class="input_search" condition="f_userinfo_code like '%{}%'" placeholder="用户编号" style="width:60%"
|
|
11
|
+
style="width: 90px"
|
|
12
|
+
type="text" v-model="model.ename"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
16
|
+
v-if="!$parent.$parent.$parent.isdetail">
|
|
17
|
+
<label class="font_normal_body">用户姓名</label>
|
|
18
|
+
<input class="input_search" condition="f_user_name like '%{}%'" placeholder="用户姓名" style="width:60%" style="width: 90px"
|
|
19
|
+
type="text" v-model="model.name"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
23
|
+
v-if="!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail">
|
|
24
|
+
<label class="font_normal_body">电  话</label>
|
|
25
|
+
<input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
|
|
26
|
+
type="text"
|
|
27
|
+
v-model="model.f_user_phone">
|
|
28
|
+
</div>
|
|
29
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
30
|
+
v-if="!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail">
|
|
31
|
+
<label class="font_normal_body">是否黑名单</label>
|
|
32
|
+
<v-select v-model="$parent.$parent.isBlack"
|
|
33
|
+
:options="$parent.$parent.isBlackSelect"
|
|
34
|
+
@change="$parent.$parent.isBlackChange"
|
|
35
|
+
:value.sync="$parent.$parent.isBlack"
|
|
36
|
+
close-on-select></v-select>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="form-group col-sm-3 button-range" style="padding-right: 10px">
|
|
39
|
+
<button @click="$parent.$parent.search()" class="button_search button_spacing" style="width:80px;margin-left:30px;" v-el:cx>查询</button>
|
|
40
|
+
<button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
|
|
41
|
+
v-el:cx>新增黑名单
|
|
42
|
+
</button>
|
|
43
|
+
<export-excel
|
|
44
|
+
:data="$parent.$parent.getCondition"
|
|
45
|
+
:field="$parent.$parent.getfield"
|
|
46
|
+
sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="sale_getBlackList" template-name='黑名单导出'
|
|
47
|
+
:choose-col="true">
|
|
48
|
+
</export-excel>
|
|
49
|
+
<button @click="$parent.$parent.add()" class="button_export button_spacing" style="width: max-content;"
|
|
50
|
+
v-el:cx>新增黑名单
|
|
51
|
+
</button>
|
|
52
|
+
<button class="button_search button_spacing"
|
|
53
|
+
@click="$parent.$parent.modelShow()" v-el:cx>
|
|
54
|
+
黑名单用户导入
|
|
55
|
+
</button>
|
|
56
|
+
<div
|
|
57
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
58
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="row" v-if="$parent.$parent.criteriaShow">
|
|
62
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
63
|
+
v-if="$parent.$parent.$parent.isdetail">
|
|
64
|
+
<label class="font_normal_body">用户姓名</label>
|
|
65
|
+
<input class="input_search" condition="f_user_name like '%{}%'" placeholder="用户姓名" style="width:60%" style="width: 90px"
|
|
66
|
+
type="text" v-model="model.name"
|
|
67
|
+
/>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
71
|
+
v-if="$parent.$parent.$parent.isdetail">
|
|
72
|
+
<label class="font_normal_body">是否黑名单</label>
|
|
73
|
+
<v-select v-model="$parent.$parent.isBlack"
|
|
74
|
+
:options="$parent.$parent.isBlackSelect"
|
|
75
|
+
@change="$parent.$parent.isBlackChange"
|
|
76
|
+
:value.sync="$parent.$parent.isBlack"
|
|
77
|
+
close-on-select></v-select>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
80
|
+
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
81
|
+
<label class="font_normal_body">表  号</label>
|
|
82
|
+
<input :size="model.f_meternumber ? model.f_meternumber.length * 2 : 4" class="input_search" condition="f_meternumber = '{}'" placeholder='表号' style="width:60%"
|
|
83
|
+
type="text"
|
|
84
|
+
v-model="model.f_meternumber">
|
|
85
|
+
</div>
|
|
86
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
87
|
+
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
88
|
+
<label class="font_normal_body">卡  号</label>
|
|
89
|
+
<input :size="model.f_card_id ? model.f_card_id.length * 2 : 4" class="input_search" condition="f_card_id = '{}'" placeholder='卡号' style="width:60%"
|
|
90
|
+
type="text"
|
|
91
|
+
v-model="model.f_card_id">
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
96
|
+
v-if="!$parent.$parent.downshow&&!$parent.$parent.$parent.isdetail">
|
|
97
|
+
<label class="font_normal_body">地  址</label>
|
|
98
|
+
<input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
|
|
99
|
+
type="text"
|
|
100
|
+
v-model="model.f_address">
|
|
101
|
+
</div>
|
|
102
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}"
|
|
103
|
+
v-if="!(!$parent.$parent.downshow && !$parent.$parent.$parent.isdetail)">
|
|
104
|
+
<label class="font_normal_body">电  话</label>
|
|
105
|
+
<input :size="model.f_user_phone ? model.f_user_phone.length : 2" class="input_search" condition="f_user_phone = '{}'" placeholder='电话' style="width:60%"
|
|
106
|
+
type="text"
|
|
107
|
+
v-model="model.f_user_phone">
|
|
108
|
+
</div>
|
|
109
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
110
|
+
<label class="font_normal_body">地  址</label>
|
|
111
|
+
<input :size="model.f_address ? model.f_address.length * 2 : 4" class="input_search" condition="f_address like '%{}%'" placeholder='用户地址' style="width:60%"
|
|
112
|
+
type="text"
|
|
113
|
+
v-model="model.f_address">
|
|
114
|
+
</div>
|
|
115
|
+
<div class="form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
116
|
+
<label class="font_normal_body">安检日期</label>
|
|
117
|
+
<datepicker placeholder="开始日期"
|
|
118
|
+
style="width:60%"
|
|
119
|
+
class="datepicker"
|
|
120
|
+
v-model="model.f_last_check_date"
|
|
121
|
+
:value.sync="model.f_last_check_date"
|
|
122
|
+
:format="'yyyy-MM-dd'"
|
|
123
|
+
condition="f_last_check_date >= '{} 00:00:00'"
|
|
124
|
+
></datepicker>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="form-group" v-show="$parent.$parent.isBlack[0] !== '否'" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}">
|
|
127
|
+
<label class="font_normal_body">限购日期</label>
|
|
128
|
+
<datepicker placeholder="开始日期"
|
|
129
|
+
style="width:60%"
|
|
130
|
+
class="datepicker"
|
|
131
|
+
v-model="model.f_parameter_value"
|
|
132
|
+
:value.sync="model.f_parameter_value"
|
|
133
|
+
:format="'yyyy-MM-dd'"
|
|
134
|
+
condition="f_parameter_value >= '{} 00:00:00'"
|
|
135
|
+
></datepicker>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
</div>
|
|
140
|
+
</criteria>
|
|
141
|
+
<data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
|
|
142
|
+
<template partial='head'>
|
|
143
|
+
<tr>
|
|
144
|
+
<th style="text-align: center; ">序号</th>
|
|
145
|
+
<th style="text-align: center;">用户编号</th>
|
|
146
|
+
<th style="text-align: center;">姓名</th>
|
|
147
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>表号</th>
|
|
148
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>卡号</th>
|
|
149
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>电话</th>
|
|
150
|
+
<th style="text-align: center;">地址</th>
|
|
151
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>安检日期</th>
|
|
152
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购日期</th>
|
|
153
|
+
<th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>限购原因</th>
|
|
154
|
+
</tr>
|
|
155
|
+
</template>
|
|
156
|
+
<template partial='body'>
|
|
157
|
+
|
|
158
|
+
<td style="text-align: center;">{{$index+1}}</td>
|
|
159
|
+
<td style="text-align: center;">{{row.f_userinfo_code}}</td>
|
|
160
|
+
<td style="text-align: center;">{{row.f_user_name}}</td>
|
|
161
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_meternumber}}</td>
|
|
162
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_card_id}}</td>
|
|
163
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_user_phone}}</td>
|
|
164
|
+
<td style="text-align: center;">{{row.f_address}}</td>
|
|
165
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_last_check_date}}</td>
|
|
166
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_parameter_value}}</td>
|
|
167
|
+
<td style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail'>{{row.f_comments}}</td>
|
|
168
|
+
</template>
|
|
169
|
+
<template partial='foot'></template>
|
|
170
|
+
</data-grid>
|
|
171
|
+
</criteria-paged>
|
|
172
|
+
<modal :show.sync="handleBlacklistUsersImport" backdrop="false" width="45%" title="黑名单用户导入" v-ref:modal>
|
|
173
|
+
<article slot="modal-body" class="modal-body">
|
|
174
|
+
<file-upload class="my-file-uploader col-sm-8" name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
|
|
175
|
+
action="rs/file/uploadFile" tagname="确定" v-ref:file :accept="accept">
|
|
176
|
+
</file-upload>
|
|
177
|
+
<button class="button_clear btn-gn"
|
|
178
|
+
@click="downloadFiles()" style="margin-top: 10px;background-color: #6aa6e2;">
|
|
179
|
+
导入模板下载
|
|
180
|
+
</button>
|
|
181
|
+
</article>
|
|
182
|
+
<footer slot="modal-footer" class="modal-footer" style="text-align: right;border: 0">
|
|
183
|
+
<button class="btn button_search" @click="handleBlacklistUsersImportCancel()">取消</button>
|
|
184
|
+
</footer>
|
|
185
|
+
</modal>
|
|
186
|
+
</div>
|
|
187
|
+
</template>
|
|
188
|
+
|
|
189
|
+
<script>
|
|
190
|
+
import {PagedList} from 'vue-client'
|
|
191
|
+
import Vue from 'vue'
|
|
192
|
+
|
|
193
|
+
export default {
|
|
194
|
+
data () {
|
|
195
|
+
return {
|
|
196
|
+
initres: {
|
|
197
|
+
org: [this.$login.f.orgid],
|
|
198
|
+
dep: [],
|
|
199
|
+
user: []
|
|
200
|
+
},
|
|
201
|
+
criteriaShow: false,
|
|
202
|
+
model: new PagedList('rs/sql/sale_getBlackList', 20),
|
|
203
|
+
// 公司下拉
|
|
204
|
+
curorgid: [this.$login.f.orgid],
|
|
205
|
+
f_orgid: '',
|
|
206
|
+
getfield: {
|
|
207
|
+
'f_userinfo_code': '用户编号',
|
|
208
|
+
'f_user_name': '姓名',
|
|
209
|
+
'f_meternumber': '表号',
|
|
210
|
+
'f_card_id': '卡号',
|
|
211
|
+
'f_user_phone': '电话',
|
|
212
|
+
'f_address': '地址',
|
|
213
|
+
'f_offsite_time': '安检日期',
|
|
214
|
+
'f_parameter_value': '限购日期',
|
|
215
|
+
'f_comments': '限购原因'
|
|
216
|
+
},
|
|
217
|
+
isBlackSelect: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
218
|
+
isBlack: ['是'],
|
|
219
|
+
handleBlacklistUsersImport: false,
|
|
220
|
+
accept: ".xlsx,.xls",
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
props: {
|
|
224
|
+
style: {
|
|
225
|
+
type: String,
|
|
226
|
+
default: 'form-group col-sm-2'
|
|
227
|
+
},
|
|
228
|
+
row: {},
|
|
229
|
+
ispartial: false
|
|
230
|
+
},
|
|
231
|
+
ready () {
|
|
232
|
+
this.search()
|
|
233
|
+
},
|
|
234
|
+
methods: {
|
|
235
|
+
handleBlacklistUsersImportCancel () {
|
|
236
|
+
this.handleBlacklistUsersImport = false
|
|
237
|
+
},
|
|
238
|
+
modelShow () {
|
|
239
|
+
this.handleBlacklistUsersImport = true
|
|
240
|
+
},
|
|
241
|
+
downloadFiles(){
|
|
242
|
+
let downurl='rs/downloadfile/file?filename=黑名单用户导入模板';
|
|
243
|
+
this.$resetget(downurl,{}).then(res=>{
|
|
244
|
+
var link = document.createElement('a');
|
|
245
|
+
link.target="_blank"
|
|
246
|
+
link.href =downurl ;
|
|
247
|
+
link.setAttribute("download", "黑名单用户导入模板.xlsx"); //指定下载后的文件名,防跳转
|
|
248
|
+
document.body.appendChild(link);
|
|
249
|
+
link.click();
|
|
250
|
+
})
|
|
251
|
+
},
|
|
252
|
+
isBlackChange (val) {
|
|
253
|
+
if (val != undefined) {
|
|
254
|
+
if (val == '是') {
|
|
255
|
+
this.model = new PagedList('rs/sql/sale_getBlackList', 20)
|
|
256
|
+
} else {
|
|
257
|
+
this.model = new PagedList('rs/sql/getNormalUsersFiles', 20)
|
|
258
|
+
}
|
|
259
|
+
} else {
|
|
260
|
+
this.isBlack = ['是']
|
|
261
|
+
this.model = new PagedList('rs/sql/sale_getBlackList', 20)
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
async getRes (condition, obj) {
|
|
265
|
+
console.log('condition =', condition)
|
|
266
|
+
console.log('obj =', obj)
|
|
267
|
+
|
|
268
|
+
// //更新抄表册
|
|
269
|
+
// this.meterbooks = [{label: '全部',value: ''}];
|
|
270
|
+
// if(this.lastorgstr != condition){
|
|
271
|
+
// this.tempfalg = true;
|
|
272
|
+
// this.lastorgstr = condition;
|
|
273
|
+
// }
|
|
274
|
+
// if(this.tempfalg && condition != null && condition!='' && condition.indexOf("(")>-1){
|
|
275
|
+
// this.tempfalg = false;
|
|
276
|
+
// let a = condition.substring(condition.indexOf("(")+2)
|
|
277
|
+
// }
|
|
278
|
+
// this.orgCondtionStr = condition
|
|
279
|
+
},
|
|
280
|
+
hidden () {
|
|
281
|
+
this.criteriaShow = !this.criteriaShow
|
|
282
|
+
},
|
|
283
|
+
search () {
|
|
284
|
+
this.$refs.paged.$refs.cri.search()
|
|
285
|
+
this.$dispatch('search')
|
|
286
|
+
},
|
|
287
|
+
getorg (val) {
|
|
288
|
+
this.f_orgid = val
|
|
289
|
+
},
|
|
290
|
+
selfSearch (args) {
|
|
291
|
+
if (!this.f_orgid) {
|
|
292
|
+
this.getorg('and f_orgid in' + '(\'' + [this.$login.f.orgid] + '\')')
|
|
293
|
+
}
|
|
294
|
+
console.log('查询。。。', this.f_orgid)
|
|
295
|
+
if (this.f_orgid) {
|
|
296
|
+
// args.condition = `${args.condition} and s.f_filialeid in ${this.f_orgid}`
|
|
297
|
+
args.condition = `${args.condition} ${this.f_orgid} `
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
this.model.search(args.condition, args.model)
|
|
301
|
+
},
|
|
302
|
+
add () {
|
|
303
|
+
if (!this.$login.r.find(value => value == '新增黑名单')) {
|
|
304
|
+
this.$showMessage('你没有新增黑名单的权限,请联系管理员!')
|
|
305
|
+
return
|
|
306
|
+
}
|
|
307
|
+
this.style = 'col-sm-3'
|
|
308
|
+
this.$dispatch('add')
|
|
309
|
+
},
|
|
310
|
+
dblclick (val) {
|
|
311
|
+
console.log(val)
|
|
312
|
+
this.$emit('dblclick', val)
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
},
|
|
316
|
+
watch: {
|
|
317
|
+
'model.rows.length' (val) {
|
|
318
|
+
if (val === 1) {
|
|
319
|
+
this.$refs.paged.$refs.grid.select(this.model.rows[0])
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
computed: {
|
|
324
|
+
getCondition () {
|
|
325
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition}` + this.f_orgid}
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
events: {
|
|
329
|
+
onFileUpload: function (file, res) {
|
|
330
|
+
let data = {
|
|
331
|
+
filepath: res.f_downloadpath,
|
|
332
|
+
f_operat_type: '拉黑',
|
|
333
|
+
f_state: '有效',
|
|
334
|
+
f_operator: this.$login.f.name,
|
|
335
|
+
f_operatorid: this.$login.f.id,
|
|
336
|
+
f_orgid: this.$login.f.orgid,
|
|
337
|
+
f_orgname: this.$login.f.orgs,
|
|
338
|
+
f_depid: this.$login.f.depids,
|
|
339
|
+
f_depname: this.$login.f.deps,
|
|
340
|
+
f_operate_date: this.$login.toStandardTimeString()
|
|
341
|
+
}
|
|
342
|
+
this.$resetpost('rs/FuGuBlackListUsers/importExcel', data, {resolveMsg: null, rejectMsg: '导入失败'})
|
|
343
|
+
.then((res) => {
|
|
344
|
+
if(res.data.code === 200){
|
|
345
|
+
this.$showAlert(res.data.msg, 'info', 3000)
|
|
346
|
+
this.search()
|
|
347
|
+
}else{
|
|
348
|
+
this.$showAlert(res.data.msg, 'warning', 3000)
|
|
349
|
+
}
|
|
350
|
+
this.handleBlacklistUsersImport = false
|
|
351
|
+
})
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
</script>
|
package/src/filiale/fugu/sale.js
CHANGED
|
@@ -14,6 +14,9 @@ let specialComp = {
|
|
|
14
14
|
// 用户基本信息test
|
|
15
15
|
'file-user-essential-info':(resolve) => { require(['./UserEssentialInfoTest'], resolve) },
|
|
16
16
|
// 表具设备信息test
|
|
17
|
-
'file-user-device-info':(resolve) => { require(['./components/FilesManage/UserDeviceInfoTest'], resolve) }
|
|
17
|
+
'file-user-device-info':(resolve) => { require(['./components/FilesManage/UserDeviceInfoTest'], resolve) },
|
|
18
|
+
// 黑名单用户
|
|
19
|
+
'black-list-list':(resolve) => { require(['./components/BlackListList'], resolve) },
|
|
20
|
+
'black-list':(resolve) => { require(['./components/BlackList'], resolve) }
|
|
18
21
|
}
|
|
19
22
|
exports.specialComp = specialComp
|
|
@@ -221,7 +221,6 @@
|
|
|
221
221
|
// 微信单方账单,系统可缴费
|
|
222
222
|
async charge (row) {
|
|
223
223
|
let str1 = JSON.parse(row.f_attach)
|
|
224
|
-
if (str1.isHand == 0) {
|
|
225
224
|
let data = {
|
|
226
225
|
f_user_id: str1.f_user_id,
|
|
227
226
|
f_userfiles_id: str1.f_userfiles_id,
|
|
@@ -244,7 +243,6 @@
|
|
|
244
243
|
resolveMsg: '',
|
|
245
244
|
rejectMsg: '保存记录出错!!!'
|
|
246
245
|
})
|
|
247
|
-
}
|
|
248
246
|
this.$refs.paged.$refs.cri.search()
|
|
249
247
|
}
|
|
250
248
|
// })
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<partial-view v-ref:pv>
|
|
3
|
+
<div class="panel panel-info auto" style="margin-top: auto">
|
|
4
|
+
<div class="panel-heading" style="height: 35px">
|
|
5
|
+
<h4 style="display:inline-block;margin-top: auto">表具信息</h4>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="auto ">
|
|
8
|
+
<!-- <div class="row">-->
|
|
9
|
+
<!-- <label class = "col-sm-5 " style="color: brown">团缴编号</label>-->
|
|
10
|
+
<!-- <span class = "col-sm-7" style="color: brown">{{data.f_customer?data.f_customer:'无'}}</span>-->
|
|
11
|
+
<!-- </div>-->
|
|
12
|
+
<div class="row">
|
|
13
|
+
<label class = "col-sm-5 " >气表类型</label>
|
|
14
|
+
<span class = "col-sm-7">{{data?data.f_meter_type:dafault.f_meter_brand}}</span>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="row">
|
|
17
|
+
<label class = "col-sm-5 " >气表品牌</label>
|
|
18
|
+
<span class = "col-sm-7">{{data?data.f_meter_brand:dafault.f_meter_brand}}</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="row">
|
|
21
|
+
<label class = "col-sm-5 " >气表型号</label>
|
|
22
|
+
<span class = "col-sm-7">{{data?data.f_meter_style:dafault.f_meter_style}}</span>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="row">
|
|
25
|
+
<label class="col-sm-5" style="color: brown">表具状态</label>
|
|
26
|
+
<span class="col-sm-7" style="color: brown">{{data?data.f_table_state:dafault.f_table_state}}</span>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网') && data.f_collection_type === '按金额'">
|
|
29
|
+
<label class = "col-sm-5 " style="color: brown">系统余额</label>
|
|
30
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_balance_amount:dafault.f_balance_amount}}</span>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网') && data.f_collection_type === '按气量'">
|
|
33
|
+
<label class = "col-sm-5 " style="color: brown">系统余量</label>
|
|
34
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_balance_gas:dafault.f_balance_gas}}</span>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网') && data.f_collection_type === '按金额'">
|
|
37
|
+
<label class = "col-sm-5 " style="color: brown">表上余额</label>
|
|
38
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_jval:dafault.f_jval}}</span>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网') && data.f_collection_type === '按气量'">
|
|
41
|
+
<label class = "col-sm-5 " style="color: brown">表上余量</label>
|
|
42
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_jval:dafault.f_jval}}</span>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="row">
|
|
45
|
+
<label class = "col-sm-5 " >初始表底数</label>
|
|
46
|
+
<span class = "col-sm-7" >{{data?data.f_initial_base:dafault.f_initial_base}}</span>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="row">
|
|
49
|
+
<label class = "col-sm-5 " >表当前底数</label>
|
|
50
|
+
<span class = "col-sm-7" >{{data?data.f_meter_base:dafault.f_meter_base}}</span>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="row">
|
|
53
|
+
<label class = "col-sm-5 " >写卡次数</label>
|
|
54
|
+
<span class = "col-sm-7" >{{data?data.f_times:dafault.f_times}}</span>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
57
|
+
<label class = "col-sm-5 ">物联网次数</label>
|
|
58
|
+
<span class = "col-sm-7" >{{data?data.f_iot_times:dafault.f_iot_times}}</span>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
61
|
+
<label class = "col-sm-5 ">表累购金额</label>
|
|
62
|
+
<span class = "col-sm-7" >{{data?data.f_total_fee:dafault.f_total_fee}}</span>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
65
|
+
<label class = "col-sm-5 ">户累购金额</label>
|
|
66
|
+
<span class = "col-sm-7" >{{data?data.f_total_fee_all:dafault.f_total_fee_all}}</span>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="row" v-if="(data.f_meter_type === '机表' || data.f_meter_type === '物联网表') && data.f_deduction_gas > 0">
|
|
69
|
+
<label class = "col-sm-5 " >剩余抵扣量</label>
|
|
70
|
+
<span class = "col-sm-7" >{{data?data.f_deduction_gas:dafault.f_deduction_gas}}</span>
|
|
71
|
+
</div>
|
|
72
|
+
<!-- <div class="row" v-if="data.f_meter_type.includes('卡表')">-->
|
|
73
|
+
<!-- <label class = "col-sm-5 " style="color: brown" >户累购气量</label>-->
|
|
74
|
+
<!-- <span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas_all:dafault.f_total_gas_all}}</span>-->
|
|
75
|
+
<!-- </div>-->
|
|
76
|
+
<div class="row" v-if="(data.f_meter_brand.includes('数码表'))">
|
|
77
|
+
<label class = "col-sm-5 " style="color: brown" >累购气量</label>
|
|
78
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas:dafault.f_total_gas}}</span>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表') && data.f_meter_type === '气量卡表'">
|
|
81
|
+
<label class = "col-sm-5 " style="color: brown" >累购气量</label>
|
|
82
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_total_gas:dafault.f_total_gas}}</span>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表')">
|
|
85
|
+
<label class = "col-sm-5 " style="color: brown">累购金额</label>
|
|
86
|
+
<span class = "col-sm-7" style="color: brown">{{data?data.f_total_fee:dafault.f_total_fee}}</span>
|
|
87
|
+
</div>
|
|
88
|
+
<!-- <div class="row" v-if="data.f_meter_type.includes('卡表')">-->
|
|
89
|
+
<!-- <label class = "col-sm-5 " style="color: brown">累购写卡金额</label>-->
|
|
90
|
+
<!-- <span class = "col-sm-7" style="color: brown">{{data?data.f_write_totalfee:dafault.f_total_fee}}</span>-->
|
|
91
|
+
<!-- </div>-->
|
|
92
|
+
<div class="row">
|
|
93
|
+
<label class = "col-sm-5 " >气表表号</label>
|
|
94
|
+
<span class = "col-sm-7">{{data?data.f_meternumber:dafault.f_meternumber}}</span>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="row" v-if="data.f_meter_type.includes('卡表') || (data.f_meter_type.includes('物联网表') && data.f_hascard==='是')">
|
|
97
|
+
<label class = "col-sm-5 " >卡  号</label>
|
|
98
|
+
<span class = "col-sm-7">{{data?data.f_card_id:dafault.f_card_id}}</span>
|
|
99
|
+
</div>
|
|
100
|
+
<!-- <div class="row" v-if="data.f_meter_type.includes('卡表') || data.f_meter_type.includes('物联网表') && data.f_hascard==='是'">-->
|
|
101
|
+
<!-- <label class = "col-sm-5 " >写卡次数</label>-->
|
|
102
|
+
<!-- <span class = "col-sm-7">{{data?data.f_times:dafault.f_times}}</span>-->
|
|
103
|
+
<!-- </div>-->
|
|
104
|
+
<div class="row">
|
|
105
|
+
<label class = "col-sm-5 " >用气性质</label>
|
|
106
|
+
<span class = "col-sm-7">{{data?data.f_gasproperties:dafault.f_gasproperties}}</span>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="row">
|
|
109
|
+
<label class = "col-sm-5 " >气价名称</label>
|
|
110
|
+
<span class = "col-sm-7">{{data?data.f_price_name:dafault.f_price_name}}</span>
|
|
111
|
+
</div>
|
|
112
|
+
<!--<div class="row" v-if="data.f_balance < 0">-->
|
|
113
|
+
<!--<label class = "col-sm-5 " >账户欠费</label>-->
|
|
114
|
+
<!--<span class = "col-sm-7" title="不包含违约金">{{data?0 - (data.f_balance - 0):dafault.f_balance}}</span>-->
|
|
115
|
+
<!--</div>-->
|
|
116
|
+
<!--<div class="row" v-else>-->
|
|
117
|
+
<!--<label class = "col-sm-5 " >账户余额</label>-->
|
|
118
|
+
<!--<span class = "col-sm-7">{{data?data.f_balance:dafault.f_balance}}</span>-->
|
|
119
|
+
<!--</div>-->
|
|
120
|
+
<div class="row" v-if="data.f_remanent_money > 0">
|
|
121
|
+
<label class = "col-sm-5 " >应补金额</label>
|
|
122
|
+
<span class = "col-sm-7">{{data?data.f_remanent_money:dafault.f_remanent_money}}</span>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="row" v-if="data.f_remanent_gas > 0">
|
|
125
|
+
<label class = "col-sm-5 " >应补气量</label>
|
|
126
|
+
<span class = "col-sm-7">{{data?data.f_remanent_gas:dafault.f_remanent_gas}}</span>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="row">
|
|
129
|
+
<label class = "col-sm-5 " >表  向</label>
|
|
130
|
+
<span class = "col-sm-7">{{data?data.f_aroundmeter:dafault.f_hand_date}}</span>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="row">
|
|
133
|
+
<label class = "col-sm-5 " >抄表册名</label>
|
|
134
|
+
<span class = "col-sm-7">{{data?'['+data.f_book_code + '] '+ (data.f_book_name ? data.f_book_name:''):dafault.f_book_name}}</span>
|
|
135
|
+
</div>
|
|
136
|
+
<div class="row">
|
|
137
|
+
<label class = "col-sm-5 " >抄表册册序号</label>
|
|
138
|
+
<span class = "col-sm-7">{{data?data.f_meter_book_sort:dafault.f_meter_book_sort}}</span>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="row">
|
|
141
|
+
<label class = "col-sm-5 " >安装位置</label>
|
|
142
|
+
<span class = "col-sm-7">{{data?data.f_position:dafault.f_position}}</span>
|
|
143
|
+
</div>
|
|
144
|
+
<div class="row">
|
|
145
|
+
<label class = "col-sm-5 " >置换人员</label>
|
|
146
|
+
<span class = "col-sm-7">{{data?data.f_gas_person:dafault.f_hand_date}}</span>
|
|
147
|
+
</div>
|
|
148
|
+
<div class="row">
|
|
149
|
+
<label class = "col-sm-5 " >置换时间</label>
|
|
150
|
+
<span class = "col-sm-7">{{data?data.f_gas_date.substring(0,7):dafault.f_hand_date}}</span>
|
|
151
|
+
</div>
|
|
152
|
+
<div class="row">
|
|
153
|
+
<label class = "col-sm-5 " >抄表员</label>
|
|
154
|
+
<span class = "col-sm-7">{{data?data.f_inputtor:dafault.f_inputtor}}</span>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="row">
|
|
157
|
+
<label class = "col-sm-5 " >上次抄表日</label>
|
|
158
|
+
<span class = "col-sm-7">{{data?data.f_hand_date.substring(0,7):dafault.f_hand_date}}</span>
|
|
159
|
+
</div>
|
|
160
|
+
<div class="row">
|
|
161
|
+
<label class = "col-sm-5 " >建档日期</label>
|
|
162
|
+
<span class = "col-sm-7">{{data?data.f_input_date.substring(0,7):dafault.f_input_date}}</span>
|
|
163
|
+
</div>
|
|
164
|
+
<div class="row">
|
|
165
|
+
<label class = "col-sm-5 " >备  注</label>
|
|
166
|
+
<span class = "col-sm-7">{{data?data.comments:dafault.comments}}</span>
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
</partial-view>
|
|
171
|
+
</template>
|
|
172
|
+
|
|
173
|
+
<script>
|
|
174
|
+
/*用户档案相关信息组件*/
|
|
175
|
+
export default {
|
|
176
|
+
ready () {
|
|
177
|
+
console.log('看看userinfo里面接收的data数据', this.data)
|
|
178
|
+
},
|
|
179
|
+
title: '客户基本信息',
|
|
180
|
+
data () {
|
|
181
|
+
return {
|
|
182
|
+
dafault: {
|
|
183
|
+
f_total_gas_all: 0,
|
|
184
|
+
f_total_fee_all:0,
|
|
185
|
+
f_balance_amount: 0,
|
|
186
|
+
f_balance_gas: 0,
|
|
187
|
+
f_initial_base: 0,
|
|
188
|
+
f_meter_base: 0,
|
|
189
|
+
f_deduction_gas: 0,
|
|
190
|
+
f_total_gas: 0,
|
|
191
|
+
f_total_fee: 0,
|
|
192
|
+
f_card_id: '*****',
|
|
193
|
+
f_times: 0,
|
|
194
|
+
f_iot_times: 0,
|
|
195
|
+
f_meternumber: 0,
|
|
196
|
+
f_gasproperties: '****',
|
|
197
|
+
f_price_name: '****',
|
|
198
|
+
f_meter_brand: '****',
|
|
199
|
+
f_balance: 0,
|
|
200
|
+
f_user_type: '**',
|
|
201
|
+
f_remanent_gas: 0,
|
|
202
|
+
f_position: '****',
|
|
203
|
+
f_inputtor: '****',
|
|
204
|
+
f_jval: 0,
|
|
205
|
+
f_table_state: 0
|
|
206
|
+
},
|
|
207
|
+
model: null
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
props: ['data'],
|
|
211
|
+
methods: {
|
|
212
|
+
dealmsg (val) {
|
|
213
|
+
this.$dispatch('deal-msg', val)
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
watch: {
|
|
217
|
+
'data' (val) {
|
|
218
|
+
console.log('val========', val)
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
</script>
|
|
223
|
+
<style lang="less">
|
|
224
|
+
.row {
|
|
225
|
+
/*border-bottom:1px solid #F2F6FA;*/
|
|
226
|
+
margin-left: 0;
|
|
227
|
+
margin-right: 0;
|
|
228
|
+
}
|
|
229
|
+
// . {
|
|
230
|
+
// height: 23px;
|
|
231
|
+
// border-right: 1px solid #F2F6FA;
|
|
232
|
+
// margin-bottom: 0;
|
|
233
|
+
// text-align: left;
|
|
234
|
+
// }
|
|
235
|
+
// #address {
|
|
236
|
+
// border-left: 1px solid #F2F6FA;
|
|
237
|
+
// }
|
|
238
|
+
// #user-info {
|
|
239
|
+
// padding:6px;
|
|
240
|
+
// span {
|
|
241
|
+
// padding-left: 5px;
|
|
242
|
+
// }
|
|
243
|
+
// }
|
|
244
|
+
// #address1 {
|
|
245
|
+
// border-right: 0;
|
|
246
|
+
// }
|
|
247
|
+
</style>
|
package/src/filiale/wuan/sale.js
CHANGED
|
@@ -8,6 +8,7 @@ let specialComp = {
|
|
|
8
8
|
'file-meter-info': (resolve) => { require(['./charge/MeterinfoTest'], resolve) },
|
|
9
9
|
// 用户基本信息test
|
|
10
10
|
'file-user-essential-info': (resolve) => { require(['./UserEssentialInfoTest'], resolve) },
|
|
11
|
-
'file-user-files': (resolve) => { require(['./FileUserFiles'], resolve) }
|
|
11
|
+
'file-user-files': (resolve) => { require(['./FileUserFiles'], resolve) },
|
|
12
|
+
'user-meterinfodetail': (resolve) => { require(['./meterinfodetail'], resolve) }
|
|
12
13
|
}
|
|
13
14
|
exports.specialComp = specialComp
|