manage-client 4.1.34 → 4.1.36
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 +13 -13
- package/package.json +1 -1
- package/src/components/SellReport/outletSell.vue +256 -0
- package/src/filiale/WEINAN/RecordInfoQuery.vue +2 -2
- package/src/filiale/WEINAN/manage/ChangeMeterQuery.vue +3 -3
- package/src/filiale/jinbin/exportConfig.js +1110 -0
- package/src/filiale/jinbin/sale/businessquery/ChargeQuery.vue +1372 -0
- package/src/filiale/jinbin/sale.js +7 -0
- package/src/filiale/meihekou/BalanceTable.vue +3 -3
- package/src/filiale/rongcheng/exportConfig.js +6 -6
- package/src/reportManage.js +4 -0
package/build/dev-server.js
CHANGED
|
@@ -11,17 +11,17 @@ var compiler = webpack(config)
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
13
|
// var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
|
|
14
|
-
var shaoguan = 'http://61.163.123.47:30785/'
|
|
15
|
-
var qtx = 'http://61.163.123.47:30785/'
|
|
14
|
+
// var shaoguan = 'http://61.163.123.47:30785/'
|
|
15
|
+
// var qtx = 'http://61.163.123.47:30785/'
|
|
16
16
|
// var bendi = 'http://220.194.141.253:8600/'
|
|
17
17
|
// var bendi = 'http://203.57.101.233:9001'
|
|
18
18
|
// var bendi = 'http://172.168.1.11:9001/'
|
|
19
19
|
// var bendi = 'http://203.57.101.233:9001/'
|
|
20
20
|
// var bendi = 'http://121.36.106.17:8400/'
|
|
21
21
|
// var fuwu = 'http://203.57.101.233:9001'
|
|
22
|
-
var bendi = 'http://
|
|
22
|
+
var bendi = 'http://192.168.50.67:31567/'
|
|
23
23
|
// var bendi = 'http://119.187.112.234:8400/'
|
|
24
|
-
var wode = 'http://
|
|
24
|
+
var wode = 'http://192.168.50.67:31567/'
|
|
25
25
|
// 192.168.
|
|
26
26
|
// var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
|
|
27
27
|
// var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
|
|
@@ -30,41 +30,41 @@ var proxyTable = {
|
|
|
30
30
|
target: bendi
|
|
31
31
|
},
|
|
32
32
|
'/dataManage': {
|
|
33
|
-
target: 'http://
|
|
33
|
+
target: 'http://192.168.50.67:31567/'
|
|
34
34
|
|
|
35
35
|
},
|
|
36
36
|
'/api/af-revenue/sql/WeChatPaydetail': {
|
|
37
37
|
pathRewrite: {
|
|
38
38
|
'^/api/af-revenue': '/rs'
|
|
39
39
|
},
|
|
40
|
-
target: 'http://
|
|
40
|
+
target: 'http://192.168.50.67:31567/'
|
|
41
41
|
},
|
|
42
42
|
'/api/af-revenue/sql/WeChatPayment': {
|
|
43
43
|
pathRewrite: {
|
|
44
44
|
'^/api/af-revenue': '/rs'
|
|
45
45
|
},
|
|
46
|
-
target: 'http://
|
|
46
|
+
target: 'http://192.168.50.67:31567/'
|
|
47
47
|
},
|
|
48
48
|
'/api/af-revenue/sql/getGasInspection': {
|
|
49
49
|
pathRewrite: {
|
|
50
50
|
'^/api/af-revenue': '/rs'
|
|
51
51
|
},
|
|
52
|
-
target: 'http://
|
|
52
|
+
target: 'http://192.168.50.67:31567/'
|
|
53
53
|
},
|
|
54
54
|
'/api/af-revenue/sql/inspectList_sellinggas': {
|
|
55
55
|
pathRewrite: {
|
|
56
56
|
'^/api/af-revenue': '/rs'
|
|
57
57
|
},
|
|
58
|
-
target: 'http://
|
|
58
|
+
target: 'http://192.168.50.67:31567/'
|
|
59
59
|
},
|
|
60
60
|
'/api/af-revenue/sql/inspectList': {
|
|
61
61
|
pathRewrite: {
|
|
62
62
|
'^/api/af-revenue': '/rs'
|
|
63
63
|
},
|
|
64
|
-
target: 'http://
|
|
64
|
+
target: 'http://192.168.50.67:31567/'
|
|
65
65
|
},
|
|
66
66
|
'/api': {
|
|
67
|
-
target: 'http://
|
|
67
|
+
target: 'http://192.168.50.67:31567/'
|
|
68
68
|
|
|
69
69
|
},
|
|
70
70
|
'/rs/sql/chargeQuery_by_gasproperties': {
|
|
@@ -78,7 +78,7 @@ var proxyTable = {
|
|
|
78
78
|
},
|
|
79
79
|
// 查找资源服务数据
|
|
80
80
|
'/rs/search': {
|
|
81
|
-
target: 'http://
|
|
81
|
+
target: 'http://192.168.50.67:31567/'
|
|
82
82
|
},
|
|
83
83
|
// 查找资源服务数据
|
|
84
84
|
'/rs/logic/getLogin': {
|
|
@@ -120,7 +120,7 @@ var proxyTable = {
|
|
|
120
120
|
target: bendi
|
|
121
121
|
},
|
|
122
122
|
'/rs/vue': {
|
|
123
|
-
target: 'http://
|
|
123
|
+
target: 'http://192.168.50.67:31567/'
|
|
124
124
|
},
|
|
125
125
|
'/rs/file': {
|
|
126
126
|
target: bendi
|
package/package.json
CHANGED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="basic-main" style="height: 98%">
|
|
3
|
+
<criteria-paged :model="model" :pager='false' v-ref:paged>
|
|
4
|
+
<criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
|
|
5
|
+
<p class="bg-info text-center" style="padding: 8px;">物联网月用气报表(户数)</p>
|
|
6
|
+
<div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
|
|
7
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
8
|
+
<div class="row">
|
|
9
|
+
<div class="col-sm-3" >
|
|
10
|
+
<label class="font_normal_body" for="startDate">开始日期</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:disabled-days-of-Week="[]"
|
|
15
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
16
|
+
:show-reset-button="reset">
|
|
17
|
+
</datepicker>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="col-sm-3" >
|
|
20
|
+
<label class="font_normal_body" for="endDate">结束日期</label>
|
|
21
|
+
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
22
|
+
v-model="model.endDate"
|
|
23
|
+
:value.sync="model.endDate"
|
|
24
|
+
:disabled-days-of-Week="[]"
|
|
25
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
26
|
+
:show-reset-button="reset">
|
|
27
|
+
</datepicker>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="col-sm-3">
|
|
30
|
+
<label class="font_normal_body">气表品牌</label>
|
|
31
|
+
<v-select :value.sync="model.gasbrand"
|
|
32
|
+
v-model='model.gasbrand'
|
|
33
|
+
:options='$parent.$parent.meterbrands'
|
|
34
|
+
:multiple = "true"
|
|
35
|
+
condition="f_meter_brand in {}"
|
|
36
|
+
placeholder='气表品牌'
|
|
37
|
+
close-on-select></v-select>
|
|
38
|
+
</div>
|
|
39
|
+
<res-select-group :style="'col-sm-3'" @re-res="$parent.$parent.getRes" :show-component="$parent.$parent.showComponent" v-ref:sel></res-select-group>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="span" style = "float:right;">
|
|
42
|
+
<button class="button_search" @click="$parent.$parent.search()">查询</button>
|
|
43
|
+
<report-print id='gasprice' top='3cm' left='0' width='100%' height='100%'></report-print>
|
|
44
|
+
<report-excel id='gasprice'></report-excel>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</criteria>
|
|
48
|
+
<div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
|
|
49
|
+
<table class='tableprint' style="margin: 0px auto" v-if="!$parent.data.f_files_path" >
|
|
50
|
+
<thead>
|
|
51
|
+
<tr>
|
|
52
|
+
<th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: left;">
|
|
53
|
+
<h3 style="text-align: center">网点汇总报表</h3>
|
|
54
|
+
</th>
|
|
55
|
+
</tr>
|
|
56
|
+
<tr>
|
|
57
|
+
<th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
|
|
58
|
+
开始时间:{{model.model.startDate}}
|
|
59
|
+
结束时间:{{ model.model.endDate }}
|
|
60
|
+
</th>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
|
|
64
|
+
打印时间:{{{$parent.printTime}}}
|
|
65
|
+
</th>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<th colspan='{{$parent.spans}}' style="font-weight: normal; text-align: center;">
|
|
69
|
+
<div>
|
|
70
|
+
<span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
|
|
71
|
+
<span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
|
|
72
|
+
<span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
|
|
73
|
+
</div>
|
|
74
|
+
</th>
|
|
75
|
+
</tr>
|
|
76
|
+
</thead>
|
|
77
|
+
<tr>
|
|
78
|
+
<td colspan='{{$parent.spans}}' id="test">
|
|
79
|
+
{{{ model.data.substring(26,model.data.length-8) }}}
|
|
80
|
+
</td>
|
|
81
|
+
</tr>
|
|
82
|
+
<tfoot>
|
|
83
|
+
<tr style="text-align: left" >
|
|
84
|
+
<th colspan='1'>财务审核:</th>
|
|
85
|
+
<th colspan='1'>收款审核:</th>
|
|
86
|
+
<th colspan='1'>收款员:</th>
|
|
87
|
+
</tr>
|
|
88
|
+
</tfoot>
|
|
89
|
+
</table>
|
|
90
|
+
{{{ $parent.reportStr}}}
|
|
91
|
+
</div>
|
|
92
|
+
</criteria-paged>
|
|
93
|
+
<modal :show.sync="show" v-ref:modal small backdrop="false">
|
|
94
|
+
<header slot="modal-header" class="modal-header">
|
|
95
|
+
<h4 class="modal-title">输入文件名称</h4>
|
|
96
|
+
</header>
|
|
97
|
+
<article slot="modal-body" class="modal-body">
|
|
98
|
+
<div class="form-group">
|
|
99
|
+
<input type="text" class="form-control" v-model="filename" placeholder='保存的文件名'>
|
|
100
|
+
</div>
|
|
101
|
+
</article>
|
|
102
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
103
|
+
<button v-show="show" type="button" class="btn btn-default" @click='close'>取消</button>
|
|
104
|
+
<button v-show="show" type="button" class="btn btn-success" @click='confirm(filename)'>确认</button>
|
|
105
|
+
</footer>
|
|
106
|
+
</modal>
|
|
107
|
+
</div>
|
|
108
|
+
</template>
|
|
109
|
+
|
|
110
|
+
<script>
|
|
111
|
+
import { DataModel } from 'vue-client'
|
|
112
|
+
import co from 'co'
|
|
113
|
+
let saveFile = function * (self) {
|
|
114
|
+
// 线验证文件是否重名
|
|
115
|
+
let count = yield self.$resetpost('api/af-revenue/sql/manageSingleTable',
|
|
116
|
+
{data: {tablename: 't_report_record', condition: `f_files_name = '${self.filename}'`}},
|
|
117
|
+
{resolveMsg: null, rejectMsg: null})
|
|
118
|
+
if (count.data.length > 0) {
|
|
119
|
+
self.$showAlert('无法保存,文件名重名', 'warning', 3000)
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
let saveBack = yield self.$resetpost('api/af-revenue/logic/saveReport', {f_files_content: self.$refs.paged.$els.handcollect.innerHTML,
|
|
123
|
+
f_files_name: self.filename, f_files_type: self.data.f_report_type, f_component_name: 'manage-bus-summary',
|
|
124
|
+
f_operator: this.$login.f.name, f_query_month: `${self.model.model.startDate}-${self.model.model.endDate}`,
|
|
125
|
+
f_outlets: this.$login.f.depname})
|
|
126
|
+
if (saveBack.data.status === 'succeed') {
|
|
127
|
+
self.show = false
|
|
128
|
+
self.filename = ''
|
|
129
|
+
// 后台保存完成,通知刷新
|
|
130
|
+
self.$dispatch('save-success', self.filename)
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
let readySomething = async function(self) {
|
|
134
|
+
await self.$LoadParams.loadParam(self.f_filialeid)
|
|
135
|
+
self.loadMeterBooks()
|
|
136
|
+
}
|
|
137
|
+
export default {
|
|
138
|
+
title: '网点汇总报表',
|
|
139
|
+
props: ['data'],
|
|
140
|
+
data () {
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
printTime: this.$login.toStandardTimeString(),
|
|
144
|
+
depresid: [],
|
|
145
|
+
userresid: [],
|
|
146
|
+
f_orgid: this.$login.f.orgid,
|
|
147
|
+
f_depid: this.$login.f.depids,
|
|
148
|
+
f_operatorid: this.$login.f.id,
|
|
149
|
+
operatorid: [],
|
|
150
|
+
depid: [],
|
|
151
|
+
showComponent:['company','department','operator'],
|
|
152
|
+
meterbrands:[{label: '全部',value: ''}],
|
|
153
|
+
orgname: '',
|
|
154
|
+
depname: '',
|
|
155
|
+
operatorname: '',
|
|
156
|
+
orgCondtionStr: '1=1',
|
|
157
|
+
model: new DataModel('api/af-revenue/report/outletTongHua', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', f_orgid: 'this.model.f_orgid'}),
|
|
158
|
+
reportStr: null,
|
|
159
|
+
show: false,
|
|
160
|
+
spans: ''
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
},
|
|
164
|
+
ready () {
|
|
165
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()+' 00:00:00'
|
|
166
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()+" 23:59:59"
|
|
167
|
+
readySomething(this)
|
|
168
|
+
// this.$refs.paged.$refs.criteria.search()
|
|
169
|
+
console.log(this.$login.f)
|
|
170
|
+
},
|
|
171
|
+
methods: {
|
|
172
|
+
loadMeterBooks(){
|
|
173
|
+
let meterbrand = this.$GetSaleParam.getGasbrand()
|
|
174
|
+
for(let row of meterbrand){
|
|
175
|
+
this.meterbrands.push({label: row.label,value: row.value.f_meter_brand})
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
search () {
|
|
179
|
+
this.$refs.paged.$refs.criteria.search()
|
|
180
|
+
},
|
|
181
|
+
selfSearch (args) {
|
|
182
|
+
this.printTime = this.$login.toStandardTimeString()
|
|
183
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = this.orgCondtionStr + ' and ' + args.condition
|
|
184
|
+
this.$refs.paged.search(args)
|
|
185
|
+
},
|
|
186
|
+
getRes (obj) {
|
|
187
|
+
// console.log('getres', obj)
|
|
188
|
+
/* this.orgname = obj.res[0]
|
|
189
|
+
this.depresid = obj.resids
|
|
190
|
+
this.f_orgid = obj.resids*/
|
|
191
|
+
this.orgCondtionStr = '1=1 ' + obj
|
|
192
|
+
},
|
|
193
|
+
getdep (obj, val) {
|
|
194
|
+
// this.depname = val[0]
|
|
195
|
+
this.userresid = obj
|
|
196
|
+
this.f_depid = obj
|
|
197
|
+
},
|
|
198
|
+
getuser ( obj, val) {
|
|
199
|
+
this.operatorname = val[0]
|
|
200
|
+
this.f_operatorid = obj
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
// 根据文件路径获取储存的报表内容
|
|
204
|
+
getFileContent (path) {
|
|
205
|
+
this.$resetpost('api/af-revenue/logic/getReportFileContent', {f_files_path: path}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
206
|
+
this.reportStr = res.data.filecontent
|
|
207
|
+
this.model.state = '正确'
|
|
208
|
+
})
|
|
209
|
+
},
|
|
210
|
+
confirm () {
|
|
211
|
+
if (!this.filename || this.filename === '') {
|
|
212
|
+
this.$showAlert('无法保存,文件名不能为空', 'warning', 3000)
|
|
213
|
+
}
|
|
214
|
+
let saveGen = saveFile(this)
|
|
215
|
+
co(saveGen)
|
|
216
|
+
},
|
|
217
|
+
close () {
|
|
218
|
+
this.show = false
|
|
219
|
+
},
|
|
220
|
+
// 将报表保存成文件
|
|
221
|
+
confirmReport () {
|
|
222
|
+
this.show = true
|
|
223
|
+
this.filename = this.data.f_report_name + this.$login.toStandardDateString()
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
watch: {
|
|
227
|
+
'data' (val) {
|
|
228
|
+
if (val.f_files_path) {
|
|
229
|
+
this.getFileContent(val.f_files_path)
|
|
230
|
+
} else {
|
|
231
|
+
this.reportStr = null
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
'model.data' (val) {
|
|
235
|
+
let tab = document.getElementById('test').children[0]
|
|
236
|
+
// (4-3)*2+3
|
|
237
|
+
var tds = tab.getElementsByTagName('td')
|
|
238
|
+
var num = 0
|
|
239
|
+
for (let td of tds) {
|
|
240
|
+
let span = td.getAttribute('colspan')
|
|
241
|
+
num = num + ((span ? span : 1) - 0)
|
|
242
|
+
}
|
|
243
|
+
console.log("返回的数为"+num)
|
|
244
|
+
this.spans = num
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
computed: {
|
|
248
|
+
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
</script>
|
|
252
|
+
<style scoped>
|
|
253
|
+
.noborder{
|
|
254
|
+
border: none;
|
|
255
|
+
}
|
|
256
|
+
</style>
|
|
@@ -920,9 +920,9 @@
|
|
|
920
920
|
this.prices = this.$MagGetSaleParam.getPrices();
|
|
921
921
|
},
|
|
922
922
|
async getaddress (searchText){
|
|
923
|
-
let condition =
|
|
923
|
+
let condition = ` f_orgid = '${this.$login.f.orgid}'`
|
|
924
924
|
if (searchText) {
|
|
925
|
-
condition = ` f_residential_area like '%${searchText}%' `
|
|
925
|
+
condition = condition + ` and f_residential_area like '%${searchText}%' `
|
|
926
926
|
}
|
|
927
927
|
let HttpReset = new HttpResetClass()
|
|
928
928
|
HttpReset.load('POST', 'api/af-revenue/sql/manageSingleTable?pageNo=1&pageSize=100', {
|
|
@@ -433,13 +433,13 @@
|
|
|
433
433
|
import exportConfig from '../config/exportConfig'
|
|
434
434
|
|
|
435
435
|
let readySomething = async function (self) {
|
|
436
|
-
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
437
|
-
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
438
436
|
|
|
439
437
|
self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
|
|
440
438
|
// self.$refs.paged.$refs.cri.search()
|
|
441
439
|
await self.$MagLoadParams.loadParam()
|
|
442
|
-
self.initParams()
|
|
440
|
+
await self.initParams()
|
|
441
|
+
self.$refs.paged.$refs.cri.model.startDate = self.data ? self.data.startDate : self.$login.toStandardDateString() + ' 00:00:00'
|
|
442
|
+
self.$refs.paged.$refs.cri.model.endDate = self.data ? self.data.endDate : self.$login.toStandardDateString() + ' 23:59:59'
|
|
443
443
|
// self.getaddress()
|
|
444
444
|
// self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
|
|
445
445
|
}
|