manage-client 1.22.24-ca → 1.22.27-ca
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 +7 -1
- package/index.html +28 -28
- package/package.json +2 -2
- package/src/App.vue +28 -28
- package/src/components/MeterManage/MeterMsg.vue +106 -4
- package/src/components/sale/businessquery/AbndonQuery.vue +288 -0
- package/src/components/sale/businessquery/AbndonRecoveryQuery.vue +286 -0
- package/src/components/sale/businessquery/BusinessManage.vue +6 -0
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +417 -363
- package/src/components/sale/businessquery/ChargeQuery.vue +17 -0
- package/src/components/sale/businessquery/FillCardQuery.vue +47 -31
- package/src/components/sale/filesquery/MeterQuery.vue +521 -514
- package/src/main.js +30 -29
- package/src/saleManage.js +144 -138
- package/static/WebMetericon/Cell1.png +0 -0
- package/static/WebMetericon/Cell2.png +0 -0
- package/static/WebMetericon/Cell3.png +0 -0
- package/static/WebMetericon/Cell4.png +0 -0
- package/static/WebMetericon/Cell5.png +0 -0
- package/static/WebMetericon/Cell6.png +0 -0
- package/static/WebMetericon/Signal1.png +0 -0
- package/static/WebMetericon/Signal2.png +0 -0
- package/static/WebMetericon/Signal3.png +0 -0
- package/static/WebMetericon/Signal4.png +0 -0
- package/static/images/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//345/215/241/347/211/207.png +0 -0
- package/static/images/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/202577.png +0 -0
- package/static/images/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
- package/static/images/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
- package/static/images/lefticon//345/276/256/344/277/241.png +0 -0
- package/static/images/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
- package/static/images/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
- package/static/images/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//346/235/220/346/226/231.png +0 -0
- package/static/images/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
- package/static/images/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
- package/static/images/lefticon//347/237/251/345/275/2421183.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
- package/static/images/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
- package/static/images/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
- package/static/images/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
- package/static/images/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
- package/static/images/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
- package/static/mainicon/adddevice.png +0 -0
- package/static/mainicon/addmeter.png +0 -0
- package/static/mainicon/bank.png +0 -0
- package/static/mainicon/biaopan.png +0 -0
- package/static/mainicon/chaobiaoyuan.png +0 -0
- package/static/mainicon/danganguanli.png +0 -0
- package/static/mainicon/deletedevice.png +0 -0
- package/static/mainicon/huizong.png +0 -0
- package/static/mainicon/jibiaoguanli.png +0 -0
- package/static/mainicon/jibiaoguanli2.png +0 -0
- package/static/mainicon/jiezhang.png +0 -0
- package/static/mainicon/shouqishoufei.png +0 -0
- package/static/mainicon/treeopen.png +0 -0
- package/static/mainicon/treeout.png +0 -0
- package/static/mainicon/treeset.png +0 -0
- package/static/mainicon/wulianwang.png +0 -0
- package/static/mainicon/yingyechaxun.png +0 -0
- package/static/mainicon/zongheyewu.png +0 -0
- package/static/newStyle/clear.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/static/newStyle/left-img.png +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/static/newStyle//345/217/263.png +0 -0
package/build/dev-server.js
CHANGED
|
@@ -8,12 +8,15 @@ var app = express()
|
|
|
8
8
|
var compiler = webpack(config)
|
|
9
9
|
// var proxy = httpProxy.createProxyServer()
|
|
10
10
|
|
|
11
|
-
var bendi = 'http://
|
|
11
|
+
var bendi = 'http://127.0.0.1:8081/', changan = 'http://192.168.2.84:7003/'
|
|
12
12
|
var proxyTable = {
|
|
13
13
|
// 查找资源服务数据
|
|
14
14
|
'/rs/sql/manageSingleTable': {
|
|
15
15
|
target:changan
|
|
16
16
|
},
|
|
17
|
+
'/rs/sql/AbndonQuery': {
|
|
18
|
+
target:'http://127.0.0.1:8081/'
|
|
19
|
+
},
|
|
17
20
|
'/rs/search': {
|
|
18
21
|
target: changan
|
|
19
22
|
},
|
|
@@ -39,6 +42,9 @@ var proxyTable = {
|
|
|
39
42
|
'/xyhf/rs/xyhf': {
|
|
40
43
|
target: changan
|
|
41
44
|
},
|
|
45
|
+
'/rs/sql': {
|
|
46
|
+
target: bendi
|
|
47
|
+
},
|
|
42
48
|
'/rs': {
|
|
43
49
|
//target: changan
|
|
44
50
|
target: changan
|
package/index.html
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6
|
-
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
|
|
7
|
-
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
|
|
8
|
-
<META HTTP-EQUIV="expires" CONTENT="0">
|
|
9
|
-
<title>奥枫信息系统</title>
|
|
10
|
-
<style media="screen">
|
|
11
|
-
/*url(./static/newmainbg.jpg)*/
|
|
12
|
-
body {
|
|
13
|
-
width: 100%;
|
|
14
|
-
background: #7f8eaf no-repeat center bottom;
|
|
15
|
-
background-size: cover;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
body .loginbg {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
background: url(./static/loginbg.jpg) no-repeat center top;
|
|
22
|
-
}
|
|
23
|
-
</style>
|
|
24
|
-
</head>
|
|
25
|
-
<body>
|
|
26
|
-
<app></app>
|
|
27
|
-
</body>
|
|
28
|
-
</html>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6
|
+
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
|
|
7
|
+
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
|
|
8
|
+
<META HTTP-EQUIV="expires" CONTENT="0">
|
|
9
|
+
<title>奥枫信息系统</title>
|
|
10
|
+
<style media="screen">
|
|
11
|
+
/*url(./static/newmainbg.jpg)*/
|
|
12
|
+
body {
|
|
13
|
+
width: 100%;
|
|
14
|
+
background: #7f8eaf no-repeat center bottom;
|
|
15
|
+
background-size: cover;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body .loginbg {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
background: url(./static/loginbg.jpg) no-repeat center top;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
</head>
|
|
25
|
+
<body class="themeOne">
|
|
26
|
+
<app></app>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "manage-client",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.27-ca",
|
|
4
4
|
"description": "经营管控模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"sinon-chai": "^2.8.0",
|
|
60
60
|
"style": "0.0.3",
|
|
61
61
|
"style-loader": "^0.20.3",
|
|
62
|
-
"system-clients": "1.
|
|
62
|
+
"system-clients": "1.8.6-ca",
|
|
63
63
|
"url-loader": "^0.5.7",
|
|
64
64
|
"vue-client": "^1.21.1",
|
|
65
65
|
"vue-hot-reload-api": "^1.2.0",
|
package/src/App.vue
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<app-base class="bg">
|
|
4
|
-
<div class='flex'>
|
|
5
|
-
<article>
|
|
6
|
-
<!--<route :comp="{name: 'manage-home'}"></route>-->
|
|
7
|
-
<!--<route :comp="{name: 'meter-reading'}"></route>-->
|
|
8
|
-
<!--<route :comp="{name: 'Gasproperties'}"></route>-->
|
|
9
|
-
<!--<route :comp="{name: 'vender-management'}"></route>-->
|
|
10
|
-
<!--<route :comp="{name: 'malfunction-home'}"></route>-->
|
|
11
|
-
<route :comp="{name: 'login'}"></route>
|
|
12
|
-
<!-- <route :comp="{name: 'load-data'}"></route> -->
|
|
13
|
-
<!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
|
|
14
|
-
<!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
|
|
15
|
-
</article>
|
|
16
|
-
</div>
|
|
17
|
-
</app-base>
|
|
18
|
-
</div>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<app-base class="bg">
|
|
4
|
+
<div class='flex'>
|
|
5
|
+
<article>
|
|
6
|
+
<!--<route :comp="{name: 'manage-home'}"></route>-->
|
|
7
|
+
<!--<route :comp="{name: 'meter-reading'}"></route>-->
|
|
8
|
+
<!--<route :comp="{name: 'Gasproperties'}"></route>-->
|
|
9
|
+
<!--<route :comp="{name: 'vender-management'}"></route>-->
|
|
10
|
+
<!--<route :comp="{name: 'malfunction-home'}"></route>-->
|
|
11
|
+
<route :comp="{name: 'login'}"></route>
|
|
12
|
+
<!-- <route :comp="{name: 'load-data'}"></route> -->
|
|
13
|
+
<!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
|
|
14
|
+
<!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
|
|
15
|
+
</article>
|
|
16
|
+
</div>
|
|
17
|
+
</app-base>
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
<nobr><label type="text" class="form-control mystylecenter" >合同编号:</label></nobr>
|
|
80
80
|
</div>
|
|
81
81
|
<div class="col-xs-4">
|
|
82
|
-
<label type="text" class="form-control mystylecenter">
|
|
82
|
+
<label type="text" class="form-control mystylecenter">{{row.f_contract_id?row.f_contract_id:''}}<a @click="showImage('供气合同')" style="float: right">查看图片</a></label>
|
|
83
83
|
</div>
|
|
84
84
|
<div class="col-xs-2">
|
|
85
85
|
<nobr><label type="text" class="form-control mystylecenter" >协议编号:</label></nobr>
|
|
86
86
|
</div>
|
|
87
87
|
<div class="col-xs-4">
|
|
88
|
-
<label type="text" class="form-control mystylecenter">
|
|
88
|
+
<label type="text" class="form-control mystylecenter">{{row.f_safeagreement_id?row.f_safeagreement_id:''}}<a @click="showImage('安全协议')" style="float: right">查看图片</a></label>
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
91
91
|
<div class="row">
|
|
@@ -214,6 +214,21 @@
|
|
|
214
214
|
<div class="row" style="margin-top:10px;">
|
|
215
215
|
<button type="button" class="btn btn-info btn-ln fr" @click="$parent.$parent.cancel()" >关闭</button>
|
|
216
216
|
</div>
|
|
217
|
+
<div class="full-img" v-if="show" >
|
|
218
|
+
<template v-for="(i,row) in images">
|
|
219
|
+
<img :src="row.downloadurl" v-show="i===index" class="img-state">
|
|
220
|
+
</template>
|
|
221
|
+
<div class="btns">
|
|
222
|
+
<button type="button" name="button" class="btn btn-primary" @click="enlarge()">放大</button>
|
|
223
|
+
<button type="button" name="button" class="btn btn-primary" @click="reduce()">缩小</button>
|
|
224
|
+
<button type="button" name="button" class="btn btn-primary" :disabled="index===0" @click="up()">上一个</button>
|
|
225
|
+
{{ index +1 }} / {{ images.length }}
|
|
226
|
+
<button type="button" name="button" class="btn btn-primary" :disabled="index===this.images.length" @click="down()" >下一个</button>
|
|
227
|
+
<button type="button" name="button" class="btn btn-primary" @click="leftRevolve()">向左旋转</button>
|
|
228
|
+
<button type="button" name="button" class="btn btn-primary" @click="rightRevolve()">向右旋转</button>
|
|
229
|
+
<button type="button" name="button" class="btn btn-primary" @click="close()" >关闭</button>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
217
232
|
</div>
|
|
218
233
|
</template>
|
|
219
234
|
|
|
@@ -221,6 +236,7 @@
|
|
|
221
236
|
import vue from 'vue'
|
|
222
237
|
|
|
223
238
|
import {HttpResetClass} from 'vue-client'
|
|
239
|
+
import $ from "jquery";
|
|
224
240
|
|
|
225
241
|
export default {
|
|
226
242
|
title: '表具信息',
|
|
@@ -231,10 +247,71 @@ export default {
|
|
|
231
247
|
return {
|
|
232
248
|
model: null,
|
|
233
249
|
row:{},
|
|
234
|
-
meterInfo:{}
|
|
250
|
+
meterInfo:{},
|
|
251
|
+
show: false,
|
|
252
|
+
images: [],
|
|
253
|
+
index: 0
|
|
235
254
|
}
|
|
236
255
|
},
|
|
237
256
|
methods: {
|
|
257
|
+
up(){
|
|
258
|
+
this.index -= 1
|
|
259
|
+
},
|
|
260
|
+
down(){
|
|
261
|
+
this.index += 1
|
|
262
|
+
},
|
|
263
|
+
open () {
|
|
264
|
+
this.deg = 0
|
|
265
|
+
this.power = 0.5
|
|
266
|
+
this.show = true
|
|
267
|
+
},
|
|
268
|
+
close () {
|
|
269
|
+
this.show = false
|
|
270
|
+
},
|
|
271
|
+
enlarge () {
|
|
272
|
+
this.power = 2*this.power
|
|
273
|
+
this.imgState()
|
|
274
|
+
},
|
|
275
|
+
reduce () {
|
|
276
|
+
this.power = 0.5*this.power
|
|
277
|
+
this.imgState()
|
|
278
|
+
},
|
|
279
|
+
leftRevolve () {
|
|
280
|
+
this.deg -= 90
|
|
281
|
+
this.imgState()
|
|
282
|
+
},
|
|
283
|
+
rightRevolve () {
|
|
284
|
+
this.deg += 90
|
|
285
|
+
this.imgState()
|
|
286
|
+
},
|
|
287
|
+
imgState () {
|
|
288
|
+
$('.img-state').css({
|
|
289
|
+
'transform': 'rotate(' + this.deg + 'deg) scale(' + this.power + ' ,' + this.power + ')'
|
|
290
|
+
})
|
|
291
|
+
},
|
|
292
|
+
showImage(type){
|
|
293
|
+
let http = new HttpResetClass()
|
|
294
|
+
// 如果展示供气合同, 开始查询
|
|
295
|
+
this.$resetpost('/rs/sql/singleTable_OrderBy',
|
|
296
|
+
{
|
|
297
|
+
data:{
|
|
298
|
+
tablename: "t_check_paper cp LEFT JOIN t_paper_overall_imgs poi ON concat(CP.ID,'') = POI.F_PAPER_ID",
|
|
299
|
+
orderitem: " f_offsite_time desc",
|
|
300
|
+
items: " CP.F_CARD_ID, cp.f_offsite_time, cp.f_checker_name, POI.TITLE, '/rs/image/file/' || POI.F_OVERALL_PATH downloadurl ",
|
|
301
|
+
condition: ` CP.F_CARD_ID = '${this.row.f_card_id}' and CP.f_state = '已检' AND ( ( POI.title = '安全协议' AND F_OVERALL_PATH IS NOT NULL ) OR ( POI.title = '供气合同' AND F_OVERALL_PATH IS NOT NULL)) `
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
305
|
+
this.images = res.data.filter(item => item.title===type)
|
|
306
|
+
console.log(this.images)
|
|
307
|
+
if (this.images.length===0){
|
|
308
|
+
this.$showAlert('暂时没有图片展示','warning',2000)
|
|
309
|
+
return
|
|
310
|
+
}
|
|
311
|
+
this.index = 0
|
|
312
|
+
this.open()
|
|
313
|
+
})
|
|
314
|
+
},
|
|
238
315
|
// 发送请求数据
|
|
239
316
|
search () {
|
|
240
317
|
let http = new HttpResetClass()
|
|
@@ -266,7 +343,32 @@ export default {
|
|
|
266
343
|
}
|
|
267
344
|
</script>
|
|
268
345
|
<style scoped>
|
|
269
|
-
|
|
346
|
+
.full-img {
|
|
347
|
+
position: fixed;
|
|
348
|
+
top: 0;
|
|
349
|
+
bottom: 0;
|
|
350
|
+
left: 0;
|
|
351
|
+
right: 0;
|
|
352
|
+
z-index: 20;
|
|
353
|
+
background: rgba(0,0,0,0.8);
|
|
354
|
+
display: flex;
|
|
355
|
+
overflow: auto;
|
|
356
|
+
flex-direction: column;
|
|
357
|
+
justify-content: center;
|
|
358
|
+
align-items: center;
|
|
359
|
+
color: #fff;
|
|
360
|
+
}
|
|
361
|
+
.btns {
|
|
362
|
+
position: fixed;
|
|
363
|
+
bottom: 100px;
|
|
364
|
+
height: auto;
|
|
365
|
+
}
|
|
366
|
+
.btns button {
|
|
367
|
+
margin-right: 20px;
|
|
368
|
+
}
|
|
369
|
+
.img-state {
|
|
370
|
+
width: 70%
|
|
371
|
+
}
|
|
270
372
|
.datapanel {
|
|
271
373
|
color: #111;
|
|
272
374
|
background-color: white;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex:1;overflow: hidden !important;" class="flex">
|
|
3
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
|
|
5
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
6
|
+
<div class="row" v-show="$parent.$parent.criteriaShow">
|
|
7
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
8
|
+
<label class="font_normal_body _zoom4" >卡号</label>
|
|
9
|
+
<input type="text" class="form-control" v-numfilter v-model="model.f_userinfo_code" style="width: 60%"
|
|
10
|
+
condition="f_userinfo_code = '{}' " placeholder="卡号">
|
|
11
|
+
</div>
|
|
12
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
13
|
+
<label class="font_normal_body _zoom4" >用户姓名</label>
|
|
14
|
+
<input type="text" class="form-control" v-model="model.f_user_name" style="width: 60%"
|
|
15
|
+
condition=" f_user_name like '%{}%'" placeholder='用户姓名'>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
18
|
+
<label class="font_normal_body _zoom4" >用户地址</label>
|
|
19
|
+
<input type="text" class="form-control" v-model="model.f_address" style="width: 60%"
|
|
20
|
+
condition="f_address like '%{}%'" placeholder='用户地址'>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
23
|
+
<label for="startDate" class="font_normal_body _zoom4" >开始日期</label>
|
|
24
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
25
|
+
v-model="model.startDate"
|
|
26
|
+
:value.sync="model.startDate"
|
|
27
|
+
:format="'yyyy-MM-dd'"
|
|
28
|
+
:show-reset-button="true"
|
|
29
|
+
condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')">
|
|
30
|
+
</datepicker>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="col-sm-1-5 form-group form-fix-width" >
|
|
33
|
+
<label for="endDate" class="font_normal_body _zoom4" >结束日期</label>
|
|
34
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
35
|
+
v-model="model.endDate"
|
|
36
|
+
:value.sync="model.endDate"
|
|
37
|
+
:format="'yyyy-MM-dd'"
|
|
38
|
+
:show-reset-button="true"
|
|
39
|
+
condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')">
|
|
40
|
+
</datepicker>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
</div>
|
|
44
|
+
<div class="row">
|
|
45
|
+
<div style="float:right" :class="{'_btnclitested':!$parent.$parent.criteriaShow}">
|
|
46
|
+
<button class="btn btn-success" @click="search()">查询</button>
|
|
47
|
+
<button class="btn btn-default" @click="$parent.$parent.clear()">清空</button>
|
|
48
|
+
<!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
|
|
49
|
+
|
|
50
|
+
<export-excel :data="$parent.$parent.getCondition"
|
|
51
|
+
:field="$parent.$parent.getfield"
|
|
52
|
+
sqlurl="rs/logic/exportfile" sql-name="disableQuery" template-name='弃用查询导出' :choose-col="true"></export-excel>
|
|
53
|
+
<div
|
|
54
|
+
:class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
|
|
55
|
+
@click="$parent.$parent.hidden()" class="button_spacing" style="float: right"></div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</criteria>
|
|
60
|
+
|
|
61
|
+
<data-grid :model="model" partial='list' v-ref:grid >
|
|
62
|
+
<template partial='head'>
|
|
63
|
+
<tr>
|
|
64
|
+
<th><nobr>卡号</nobr></th>
|
|
65
|
+
<th><nobr>用户姓名</nobr></th>
|
|
66
|
+
<th><nobr>用户地址</nobr></th>
|
|
67
|
+
<th><nobr>弃用原因</nobr></th>
|
|
68
|
+
<th style="padding: 10px 150px"><nobr>备注</nobr></th>
|
|
69
|
+
<th><nobr>状态</nobr></th>
|
|
70
|
+
<th><nobr>弃用前状态</nobr></th>
|
|
71
|
+
<th><nobr>弃用日期</nobr></th>
|
|
72
|
+
<th><nobr>操作员</nobr></th>
|
|
73
|
+
<th><nobr>营业网点</nobr></th>
|
|
74
|
+
<th><nobr>分公司</nobr></th>
|
|
75
|
+
</tr>
|
|
76
|
+
</template>
|
|
77
|
+
<template partial='body'>
|
|
78
|
+
<td style="text-align: center;"><nobr>
|
|
79
|
+
<span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_userinfo_code}}</a></span></nobr></td>
|
|
80
|
+
<td style="text-align: center;"><nobr>{{row.f_user_name}}</nobr></td>
|
|
81
|
+
<td style="text-align: center;"><nobr>{{row.f_address}}</nobr></td>
|
|
82
|
+
<td style="text-align: center;"><nobr>{{row.f_reason}} {{row.f_othereason}}</nobr></td>
|
|
83
|
+
<td style="text-align: center;word-break: break-word;">
|
|
84
|
+
<p :id="'f_remark-'+$index" style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;margin: 0"
|
|
85
|
+
@click="$parent.$parent.$parent.p_click('f_remark-'+$index,'f_remarkinput-'+$index)">
|
|
86
|
+
{{row.f_remark}}</p>
|
|
87
|
+
<textarea rows="2" style="display: none;margin: 0;width: 100%;border: 1px solid #e4f9f5"
|
|
88
|
+
@blur="$parent.$parent.$parent.input_blur('f_remark-'+$index,'f_remarkinput-'+$index)"
|
|
89
|
+
:id="'f_remarkinput-'+$index" >{{row.f_remark}}</textarea>
|
|
90
|
+
</td>
|
|
91
|
+
<td style="text-align: center;"><nobr>{{row.f_state}}</nobr></td>
|
|
92
|
+
<td style="text-align: center;"><nobr>{{row.f_table_state}}</nobr></td>
|
|
93
|
+
<td style="text-align: center;"><nobr>{{row.f_operate_date}}</nobr></td>
|
|
94
|
+
<td style="text-align: center;"><nobr>{{row.f_operator}}</nobr></td>
|
|
95
|
+
<td style="text-align: center;"><nobr>{{row.f_outlets}}</nobr></td>
|
|
96
|
+
<td style="text-align: center;"><nobr>{{row.f_filiale}}</nobr></td>
|
|
97
|
+
</template>
|
|
98
|
+
<template partial='foot'></template>
|
|
99
|
+
</data-grid>
|
|
100
|
+
</criteria-paged>
|
|
101
|
+
|
|
102
|
+
<table class="table-hover">
|
|
103
|
+
<tr class="table-bordered">
|
|
104
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
|
|
105
|
+
<td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">合计: {{sumsmodel.f_fillgas}}</td>
|
|
106
|
+
</tr>
|
|
107
|
+
</table>
|
|
108
|
+
<!--<colligate-details :showinfo="showinfo" :businesstype="businesstype" :data="data" @close-info="showinfo=false"></colligate-details>-->
|
|
109
|
+
<!--<modal :show.sync="printshow" v-ref:modal backdrop="false">-->
|
|
110
|
+
<!--<header slot="modal-header" class="modal-header text-center">-->
|
|
111
|
+
<!--<h4 class="modal-title">打印列选择</h4>-->
|
|
112
|
+
<!--<input type="checkbox" class="" id="f_generations" v-model="all">-->
|
|
113
|
+
<!--<label for="f_generations" class="font-size">全选</label>-->
|
|
114
|
+
<!--</header>-->
|
|
115
|
+
<!--<article slot="modal-body">-->
|
|
116
|
+
<!--<div class="auto col-sm-11 col-md-offset-1" style="margin-top: 10px;">-->
|
|
117
|
+
<!--<div class="col-sm-3" v-for="f in fields">-->
|
|
118
|
+
<!--<input type="checkbox" class="" :id="'water-owe-details-'+$index" v-model="modelval" :value="$key">-->
|
|
119
|
+
<!--<label :for="'water-owe-details-'+$index" class="font-size">{{f}}</label>-->
|
|
120
|
+
<!--</div>-->
|
|
121
|
+
<!--</div>-->
|
|
122
|
+
<!--</article>-->
|
|
123
|
+
<!--<footer slot="modal-footer" class="modal-footer">-->
|
|
124
|
+
<!--<center>-->
|
|
125
|
+
<!--<button v-show="printshow" type="button" class="btn btn-default" @click='close()'>取消</button>-->
|
|
126
|
+
<!--<button v-show="printshow" type="button" class="btn btn-success" @click='print()'>打印</button>-->
|
|
127
|
+
<!--<print-table :model='model' v-show="false" v-ref:print-->
|
|
128
|
+
<!--:top='40' :left='60' :right='40' :bottom='60'-->
|
|
129
|
+
<!--:thead="thead" :tfoot='tfoot' :attach="yangsen"-->
|
|
130
|
+
<!--:fields="modelval" :printpage="true">-->
|
|
131
|
+
<!--</print-table>-->
|
|
132
|
+
<!--</center>-->
|
|
133
|
+
<!--</footer>-->
|
|
134
|
+
<!--</modal>-->
|
|
135
|
+
</div>
|
|
136
|
+
</template>
|
|
137
|
+
|
|
138
|
+
<script>
|
|
139
|
+
import { PagedList } from 'vue-client'
|
|
140
|
+
import defaultPrint from '../config/DefaultPrint'
|
|
141
|
+
import exportConfig from '../config/exportConfig'
|
|
142
|
+
|
|
143
|
+
let readySomething = async function (self) {
|
|
144
|
+
self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
|
|
145
|
+
self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
|
|
146
|
+
//self.$refs.paged.$refs.cri.model.f_sendsuccess = ['有效']
|
|
147
|
+
/* await self.$refs.paged.$refs.cri.search()
|
|
148
|
+
self.sumsmodel = self.$refs.paged.$refs.grid.model.sums*/
|
|
149
|
+
}
|
|
150
|
+
export default {
|
|
151
|
+
data() {
|
|
152
|
+
return {
|
|
153
|
+
data: {},
|
|
154
|
+
model: new PagedList('rs/sql/AbndonQuery', 20,{tablename:' "t_abandon" '}),
|
|
155
|
+
criteriaShow: true,
|
|
156
|
+
headData: ["用户编号","用户姓名","操作人","操作日期","弃用状态","弃用原因","其他弃用原因","同步状态"],
|
|
157
|
+
bodyData: ["f_userinfo_id", "f_user_name", "f_operator", "f_operate_date", "f_state", "f_reason", "f_othereason", "f_sendsuccess"],
|
|
158
|
+
|
|
159
|
+
filialeNameStr: null,
|
|
160
|
+
filialeCodeStr: this.$login.f.f_orgids,
|
|
161
|
+
userid: this.$login.f.id,
|
|
162
|
+
source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
|
|
163
|
+
|
|
164
|
+
modelval: [],
|
|
165
|
+
printshow: false,
|
|
166
|
+
all: false,
|
|
167
|
+
fields: {},
|
|
168
|
+
thead: '',
|
|
169
|
+
tfoot: '',
|
|
170
|
+
//合计数据
|
|
171
|
+
sumsmodel: {}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
ready(){
|
|
175
|
+
readySomething(this).then(() => {
|
|
176
|
+
this.$emit('ready')
|
|
177
|
+
}).catch((error) => {
|
|
178
|
+
this.$emit('error', error)
|
|
179
|
+
})
|
|
180
|
+
},
|
|
181
|
+
methods: {
|
|
182
|
+
//p标签点击方法
|
|
183
|
+
p_click(p_id,i_id){
|
|
184
|
+
document.getElementById(p_id).style.display="none"
|
|
185
|
+
document.getElementById(i_id).style.display="inline-block"
|
|
186
|
+
document.getElementById(i_id).select()
|
|
187
|
+
console.log(p_id,i_id)
|
|
188
|
+
},
|
|
189
|
+
//input失去焦点方法
|
|
190
|
+
input_blur(p_id,i_id){
|
|
191
|
+
document.getElementById(p_id).style.display="-webkit-box"
|
|
192
|
+
document.getElementById(i_id).style.display="none"
|
|
193
|
+
console.log(p_id,i_id)
|
|
194
|
+
},
|
|
195
|
+
selfSearch (args) {
|
|
196
|
+
this.model.search(args.condition, args.model)
|
|
197
|
+
this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
|
|
198
|
+
},
|
|
199
|
+
clear(){
|
|
200
|
+
Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
|
|
201
|
+
this.$refs.paged.$refs.cri.model[key] = ''
|
|
202
|
+
})
|
|
203
|
+
},
|
|
204
|
+
show(){
|
|
205
|
+
this.criteriaShow = true
|
|
206
|
+
},
|
|
207
|
+
hidden(){
|
|
208
|
+
this.criteriaShow = !this.criteriaShow
|
|
209
|
+
},
|
|
210
|
+
getRes(obj) {
|
|
211
|
+
this.filialeNameStr = obj.res
|
|
212
|
+
this.filialeCodeStr = obj.resids
|
|
213
|
+
},
|
|
214
|
+
stamp () {
|
|
215
|
+
this.all = false
|
|
216
|
+
//默认选择要打印的列
|
|
217
|
+
this.modelval = defaultPrint.config
|
|
218
|
+
this.fields = this.getfield
|
|
219
|
+
console.log('所有打印字段',this.fields)
|
|
220
|
+
this.printshow = true
|
|
221
|
+
this.put()
|
|
222
|
+
},
|
|
223
|
+
put () {
|
|
224
|
+
// 对Modelval进行排序
|
|
225
|
+
this.sortModelval()
|
|
226
|
+
this.thead = `<tr><th colspan=${this.modelval.length}>启用查询报表</th></tr><tr>`
|
|
227
|
+
for (let key of this.modelval) {
|
|
228
|
+
this.thead += '<th>' + this.fields[key] + '</th>'
|
|
229
|
+
}
|
|
230
|
+
this.thead += '</tr>'
|
|
231
|
+
},
|
|
232
|
+
dealmsg (val) {
|
|
233
|
+
console.log('---------------dealmsg')
|
|
234
|
+
val.model = this.model.model
|
|
235
|
+
this.$dispatch('deal-msg',val)
|
|
236
|
+
},
|
|
237
|
+
print () {
|
|
238
|
+
this.$refs.print.PrintAsFile()
|
|
239
|
+
this.printshow = false
|
|
240
|
+
},
|
|
241
|
+
close () {
|
|
242
|
+
this.printshow = false
|
|
243
|
+
this.all = false
|
|
244
|
+
},
|
|
245
|
+
// 对选择的列进行排序
|
|
246
|
+
sortModelval () {
|
|
247
|
+
let sortModel = []
|
|
248
|
+
Object.keys(this.fields).forEach((key) => {
|
|
249
|
+
if (this.modelval.includes(key)) {
|
|
250
|
+
sortModel.push(key)
|
|
251
|
+
}
|
|
252
|
+
})
|
|
253
|
+
this.modelval = sortModel
|
|
254
|
+
console.log('选择的打印的字段', this.modelval)
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
watch:{
|
|
258
|
+
'all' (val) {
|
|
259
|
+
if (val) {
|
|
260
|
+
this.modelval = this.bodyData
|
|
261
|
+
} else {
|
|
262
|
+
this.modelval = defaultPrint.config
|
|
263
|
+
this.put()
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
'modelval.length' () {
|
|
267
|
+
this.put()
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
computed:{
|
|
271
|
+
getCondition(){
|
|
272
|
+
return {condition: `${this.$refs.paged.$refs.cri.condition} `}
|
|
273
|
+
},
|
|
274
|
+
getfield(){
|
|
275
|
+
return exportConfig.disableConfig
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
</script>
|
|
280
|
+
<style scoped>
|
|
281
|
+
.cell{
|
|
282
|
+
width:500px
|
|
283
|
+
}
|
|
284
|
+
.sp{
|
|
285
|
+
width: 500px;
|
|
286
|
+
word-break: break-word;
|
|
287
|
+
}
|
|
288
|
+
</style>
|