sale-client 3.6.195 → 3.6.196
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/build/dev-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [ serverRul, localUrl ] = ['http://
|
|
2
|
+
const [ serverRul, localUrl ] = ['http://121.36.106.17:8400/', 'http://121.36.106.17:8400/']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
|
@@ -17,9 +17,6 @@ var devConfig = {
|
|
|
17
17
|
children: false // 不输出子模块构建信息
|
|
18
18
|
},
|
|
19
19
|
proxy: {
|
|
20
|
-
'/rs/handPlanAudit': {
|
|
21
|
-
target: 'http://localhost:8080/'
|
|
22
|
-
},
|
|
23
20
|
'/rs/file': {
|
|
24
21
|
target: serverRul
|
|
25
22
|
},
|
|
@@ -76,13 +73,10 @@ var devConfig = {
|
|
|
76
73
|
target: serverRul
|
|
77
74
|
},
|
|
78
75
|
'/rs/logic': {
|
|
79
|
-
target:
|
|
76
|
+
target: localUrl
|
|
80
77
|
},
|
|
81
78
|
'/rs/sql': {
|
|
82
|
-
target:
|
|
83
|
-
},
|
|
84
|
-
'/rs/entity': {
|
|
85
|
-
target: serverRul
|
|
79
|
+
target: localUrl
|
|
86
80
|
},
|
|
87
81
|
'/webmeter': {
|
|
88
82
|
target: serverRul
|
package/package.json
CHANGED
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div style="flex: 1.5" class="flex">
|
|
4
|
+
<div class="flex">
|
|
5
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
6
|
+
<criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch">
|
|
7
|
+
<div novalidate class="form-inline auto" partial>
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-3 form-group">
|
|
10
|
+
<label class="font_normal_body">组织机构</label>
|
|
11
|
+
<res-select
|
|
12
|
+
:initresid='$parent.$parent.curorgid'
|
|
13
|
+
@res-select="$parent.$parent.getorg"
|
|
14
|
+
is-mul="false"
|
|
15
|
+
restype='organization'
|
|
16
|
+
>
|
|
17
|
+
</res-select>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-3 form-group">
|
|
20
|
+
<label class="font_normal_body">客户编号</label>
|
|
21
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_code"
|
|
22
|
+
condition="f_userinfo_code = '{}'" placeholder='客户编号'>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="col-sm-3 form-group">
|
|
25
|
+
<label class="font_normal_body">客户电话</label>
|
|
26
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_user_phone"
|
|
27
|
+
condition="f_user_phone = '{}'" placeholder='客户电话'>
|
|
28
|
+
</div>
|
|
29
|
+
<div style="float: right">
|
|
30
|
+
<button class="button_search" @click="search()">查 询</button>
|
|
31
|
+
<button class="btn btn-default" @click="$parent.$parent.battchinsurance()" >批量保险收费</button>
|
|
32
|
+
<button class="button_search button_spacing" style="width: 90px" @click="$parent.$parent.downloadFiles()">模板下载
|
|
33
|
+
</button>
|
|
34
|
+
<div
|
|
35
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
36
|
+
@click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
|
|
37
|
+
class="button_spacing"
|
|
38
|
+
style="float: right"></div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
42
|
+
<div class="col-sm-3 form-group">
|
|
43
|
+
<label class="font_normal_body">客户姓名</label>
|
|
44
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
|
|
45
|
+
condition="f_user_name = '{}'" placeholder='客户姓名'>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-3 form-group">
|
|
48
|
+
<label for="f_ins_start_date" class="font_normal_body">开始日期</label>
|
|
49
|
+
<datepicker id="f_ins_start_date" placeholder="保费截止日期" style="width:60%"
|
|
50
|
+
v-model="model.f_ins_stop_date1"
|
|
51
|
+
:value.sync="model.f_ins_stop_date1"
|
|
52
|
+
:format="'yyyy-MM-dd'"
|
|
53
|
+
:show-reset-button="true"
|
|
54
|
+
condition="f_ins_stop_date >= '{} 00:00:00'">
|
|
55
|
+
</datepicker>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="col-sm-3 form-group">
|
|
58
|
+
<label for="f_ins_stop_date" class="font_normal_body">截止日期</label>
|
|
59
|
+
<datepicker id="f_ins_stop_date" placeholder="保费截止日期" style="width:60%"
|
|
60
|
+
v-model="model.f_ins_stop_date"
|
|
61
|
+
:value.sync="model.f_ins_stop_date"
|
|
62
|
+
:format="'yyyy-MM-dd'"
|
|
63
|
+
:show-reset-button="true"
|
|
64
|
+
condition="f_ins_stop_date <= '{} 23:59:59'">
|
|
65
|
+
</datepicker>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-sm-3 form-group">
|
|
68
|
+
<label class="font_normal_body">选择小区</label>
|
|
69
|
+
<v-select
|
|
70
|
+
v-model="model.f_residential_area"
|
|
71
|
+
placeholder='选择小区'
|
|
72
|
+
:value.sync="model.f_residential_area"
|
|
73
|
+
:options='$parent.$parent.residentialArea'
|
|
74
|
+
condition="f_residential_area = '{}'"
|
|
75
|
+
style="width: 60%"
|
|
76
|
+
close-on-select >
|
|
77
|
+
</v-select>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-3 form-group">
|
|
80
|
+
<label class="font_normal_body">客户地址</label>
|
|
81
|
+
<input type="text" class="input_search" style="width: 60%" v-model="model.f_address"
|
|
82
|
+
condition="f_address like '%{}%'" placeholder='客户地址'>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</criteria>
|
|
87
|
+
<data-grid :model="model" v-ref:grid class="list_area table_sy" partial='list'>
|
|
88
|
+
<template partial='head'>
|
|
89
|
+
<tr>
|
|
90
|
+
<th>
|
|
91
|
+
<nobr>序号</nobr>
|
|
92
|
+
</th>
|
|
93
|
+
<th>
|
|
94
|
+
<nobr>客户编号</nobr>
|
|
95
|
+
</th>
|
|
96
|
+
<th>
|
|
97
|
+
<nobr>客户电话</nobr>
|
|
98
|
+
</th>
|
|
99
|
+
<th>
|
|
100
|
+
<nobr>小区</nobr>
|
|
101
|
+
</th>
|
|
102
|
+
<th>
|
|
103
|
+
<nobr>客户姓名</nobr>
|
|
104
|
+
</th>
|
|
105
|
+
<th>
|
|
106
|
+
<nobr>客户地址</nobr>
|
|
107
|
+
</th>
|
|
108
|
+
<th>
|
|
109
|
+
<nobr>截止日期</nobr>
|
|
110
|
+
</th>
|
|
111
|
+
<th>
|
|
112
|
+
<nobr>累计保费充值金额</nobr>
|
|
113
|
+
</th>
|
|
114
|
+
</template>
|
|
115
|
+
<template partial='body'>
|
|
116
|
+
<td style="text-align: center;">
|
|
117
|
+
<nobr>{{$index + 1}}</nobr>
|
|
118
|
+
</td>
|
|
119
|
+
<td style="text-align: center;">
|
|
120
|
+
<nobr>
|
|
121
|
+
{{row.f_userinfo_code}}
|
|
122
|
+
</nobr>
|
|
123
|
+
</td>
|
|
124
|
+
<td style="text-align: center;">
|
|
125
|
+
<nobr>
|
|
126
|
+
{{row.f_user_phone}}
|
|
127
|
+
</nobr>
|
|
128
|
+
</td>
|
|
129
|
+
<td style="text-align: center;">
|
|
130
|
+
<nobr>
|
|
131
|
+
{{row.f_residential_area}}
|
|
132
|
+
</nobr>
|
|
133
|
+
</td>
|
|
134
|
+
<td style="text-align: center;">
|
|
135
|
+
<nobr>{{row.f_user_name}}</nobr>
|
|
136
|
+
</td>
|
|
137
|
+
<td style="text-align: center;">
|
|
138
|
+
<nobr>{{row.f_address}}</nobr>
|
|
139
|
+
</td>
|
|
140
|
+
<td style="text-align: center;">
|
|
141
|
+
<nobr>{{row.f_ins_stop_date}}</nobr>
|
|
142
|
+
</td>
|
|
143
|
+
<td style="text-align: center;">
|
|
144
|
+
<nobr>{{row.f_total_ins_charge}}</nobr>
|
|
145
|
+
</td>
|
|
146
|
+
</template>
|
|
147
|
+
</data-grid>
|
|
148
|
+
</criteria-paged>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
<modal :show.sync="batchmoneyShow" width="500px" title="批量保险收费" v-ref:modal large backdrop="false">
|
|
153
|
+
<article slot="modal-body" class="modal-body">
|
|
154
|
+
<file-upload class="my-file-uploader" name="useraddressUploadFile" action="rs/file/uploadFile" tagname="确定" multiple v-ref:file></file-upload>
|
|
155
|
+
</article>
|
|
156
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
157
|
+
</footer>
|
|
158
|
+
</modal>
|
|
159
|
+
<modal :show.sync="progressShow" v-ref:modal backdrop="true" width="50%" style="width:auto;" >
|
|
160
|
+
<header slot="modal-header" class="modal-header">
|
|
161
|
+
批量保险收费
|
|
162
|
+
</header>
|
|
163
|
+
<article slot="modal-body" class="modal-body">
|
|
164
|
+
<div class="progress" style="margin: 20px" >
|
|
165
|
+
<div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: percent+'%'}">
|
|
166
|
+
{{percent}}%
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</article>
|
|
170
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
171
|
+
<button type="button" class="btn btn-default" @click='progressclose'>关闭</button>
|
|
172
|
+
</footer>
|
|
173
|
+
</modal>
|
|
174
|
+
</template>
|
|
175
|
+
|
|
176
|
+
<script>
|
|
177
|
+
import {HttpResetClass, PagedList} from 'vue-client'
|
|
178
|
+
|
|
179
|
+
export default {
|
|
180
|
+
'title': '',
|
|
181
|
+
data () {
|
|
182
|
+
return {
|
|
183
|
+
model: new PagedList('rs/sql/getInsuranceList', 20),
|
|
184
|
+
// 控制查询条件显示
|
|
185
|
+
criteriaShow: false,
|
|
186
|
+
batchmoneyShow:false,
|
|
187
|
+
progressShow:false,
|
|
188
|
+
residentialArea: [],
|
|
189
|
+
timer:'',
|
|
190
|
+
curorgid: [this.$login.f.orgid],
|
|
191
|
+
f_filialeid: this.$login.f.orgid,
|
|
192
|
+
uuida:'',
|
|
193
|
+
percent:0
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
ready () {
|
|
197
|
+
this.search()
|
|
198
|
+
},
|
|
199
|
+
methods: {
|
|
200
|
+
downloadFiles(){
|
|
201
|
+
let downurl='rs/downloadfile/file?filename=批量保险收费导入Excel模板';
|
|
202
|
+
this.$downFile(downurl,'批量保险收费导入Excel模板.xlsx')
|
|
203
|
+
},
|
|
204
|
+
search () {
|
|
205
|
+
this.$refs.paged.$refs.criteria.search()
|
|
206
|
+
},
|
|
207
|
+
getorg (val) {
|
|
208
|
+
this.f_filialeid = val[0]
|
|
209
|
+
},
|
|
210
|
+
selfSearch (args) {
|
|
211
|
+
args.condition = `${args.condition} and ui.f_orgid = '${this.f_filialeid}'`
|
|
212
|
+
this.model.search(args.condition, args.model)
|
|
213
|
+
this.getaddress()
|
|
214
|
+
},
|
|
215
|
+
battchinsurance(){
|
|
216
|
+
this.batchmoneyShow=true;
|
|
217
|
+
},
|
|
218
|
+
progressclose(){
|
|
219
|
+
this.progressShow = false;
|
|
220
|
+
if(this.timer != null){
|
|
221
|
+
clearInterval(this.timer);
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
getuuid(){
|
|
225
|
+
let uuidA = '';
|
|
226
|
+
var s = [];
|
|
227
|
+
var hexDigits = '0123456789abcdef';
|
|
228
|
+
for (var i = 0; i < 36; i++) {
|
|
229
|
+
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
|
|
230
|
+
}
|
|
231
|
+
s[14] = '4';
|
|
232
|
+
s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
|
|
233
|
+
s[8] = s[13] = s[18] = s[23] = '-';
|
|
234
|
+
uuidA = s.join('');
|
|
235
|
+
this.uuida = uuidA;
|
|
236
|
+
},
|
|
237
|
+
async getaddress () {
|
|
238
|
+
console.log('开始获取小区')
|
|
239
|
+
let HttpReset = new HttpResetClass()
|
|
240
|
+
var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
|
|
241
|
+
data: {
|
|
242
|
+
condition: `1=1 and s.f_orgid = '${this.f_filialeid}'`
|
|
243
|
+
}
|
|
244
|
+
}, {resolveMsg: null, rejectMsg: '获取小区失败!'})
|
|
245
|
+
console.log('小区', data)
|
|
246
|
+
let house = []
|
|
247
|
+
house.push()
|
|
248
|
+
for (let row of data.data) {
|
|
249
|
+
console.log('开始保存小区')
|
|
250
|
+
house.push({label: row.f_residential_area, value: row.f_residential_area})
|
|
251
|
+
}
|
|
252
|
+
this.residentialArea = house
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
},
|
|
256
|
+
computed: {},
|
|
257
|
+
events:{
|
|
258
|
+
'onFileUpload': async function (file, res) {
|
|
259
|
+
if (this.batchmoneyShow) {
|
|
260
|
+
this.percent = 0;
|
|
261
|
+
this.getuuid();
|
|
262
|
+
let param = {
|
|
263
|
+
filepath: res.f_downloadpath,
|
|
264
|
+
uuid: this.uuida,
|
|
265
|
+
user:{
|
|
266
|
+
f_operator: this.$login.f.name,
|
|
267
|
+
f_operatorid: this.$login.f.id,
|
|
268
|
+
f_orgid: this.$login.f.orgid,
|
|
269
|
+
f_orgname: this.$login.f.orgs,
|
|
270
|
+
f_depid: this.$login.f.depids,
|
|
271
|
+
f_depname: this.$login.f.deps
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
this.batchmoneyShow=false;
|
|
275
|
+
try{
|
|
276
|
+
await this.$resetpost('rs/logic/batchInsuranceCharge',{data: param},{resolveMsg: null, rejectMsg: null},1000).then((res)=>{
|
|
277
|
+
if(res.data){
|
|
278
|
+
}
|
|
279
|
+
})
|
|
280
|
+
}catch(error){}
|
|
281
|
+
let getparam = {
|
|
282
|
+
uuid: this.uuida
|
|
283
|
+
}
|
|
284
|
+
let self = this;
|
|
285
|
+
this.progressShow=true;
|
|
286
|
+
this.timer = setInterval(function(){
|
|
287
|
+
self.$resetpost('/rs/logic/getBatchOperaPro',{data:getparam},{resolveMsg: null, rejectMsg: null}, 0).then((res)=>{
|
|
288
|
+
if(res.data ){
|
|
289
|
+
if(res.data.speed){
|
|
290
|
+
if(res.data.speed>= 100){
|
|
291
|
+
clearInterval(self.timer);
|
|
292
|
+
if(res.data.speed){
|
|
293
|
+
self.percent = 99;
|
|
294
|
+
}
|
|
295
|
+
setTimeout(()=>{
|
|
296
|
+
self.percent = 100;
|
|
297
|
+
self.progressclose();
|
|
298
|
+
self.$showMessage(`导入成功! 累计导入:${res.data.totalsum}, 成功:${res.data.successsum},失败:${res.data.errorsum},失败数据请在稽查查询中错误查询进行查看!!`);
|
|
299
|
+
},600);
|
|
300
|
+
}else{
|
|
301
|
+
self.percent = res.data.speed
|
|
302
|
+
}
|
|
303
|
+
}else{
|
|
304
|
+
self.percent=0;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
},3000);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
</script>
|
|
314
|
+
<style>
|
|
315
|
+
.datapanel {
|
|
316
|
+
color: #333;
|
|
317
|
+
background-color: white;
|
|
318
|
+
padding: 10px 20px;
|
|
319
|
+
border-radius: 15px;
|
|
320
|
+
}
|
|
321
|
+
</style>
|
|
@@ -18,6 +18,8 @@ export default function () {
|
|
|
18
18
|
Vue.component('file-user-device-info', (resolve) => {
|
|
19
19
|
require(['./UserDeviceInfoTest'], resolve)
|
|
20
20
|
})
|
|
21
|
+
// 保险收费查询用户列表
|
|
22
|
+
Vue.component('insurance-lists', (resolve) => { require(['./InsuranceList'], resolve) })
|
|
21
23
|
// 单个表具信息
|
|
22
24
|
// Vue.component('file-meter-info', (resolve) => { require(['./FilesManage/MeterinfoTest'], resolve) })
|
|
23
25
|
// 单个表具信息test
|
package/src/main.js
CHANGED
|
@@ -4,7 +4,7 @@ import App from './App'
|
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
5
|
import sale from './sale'
|
|
6
6
|
// import wenxi from './filiale/rizhao/sale'
|
|
7
|
-
import FilialeSale from './filiale/
|
|
7
|
+
import FilialeSale from './filiale/lixianV3/sale'
|
|
8
8
|
import address from 'address-client/src/address'
|
|
9
9
|
import ldap from 'ldap-clients/src/ldap'
|
|
10
10
|
import VueClipboard from 'vue-clipboard2'
|
|
@@ -24,7 +24,7 @@ all()
|
|
|
24
24
|
system(false)
|
|
25
25
|
sale()
|
|
26
26
|
// wenxi()
|
|
27
|
-
FilialeSale()
|
|
27
|
+
// FilialeSale()
|
|
28
28
|
address()
|
|
29
29
|
ldap()
|
|
30
30
|
require('system-clients/src/styles/less/bootstrap.less')
|