manage-client 4.1.72 → 4.1.73

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.72",
3
+ "version": "4.1.73",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -209,6 +209,7 @@
209
209
  <th><nobr>起方(液晶)</nobr></th>
210
210
  <th><nobr>止方</nobr></th>
211
211
  <th><nobr>止方(液晶)</nobr></th>
212
+ <th><nobr>止方(液晶)【公式】</nobr></th>
212
213
  <th><nobr>期间用气量</nobr></th>
213
214
 
214
215
  <th><nobr>期间用气金额</nobr></th>
@@ -262,6 +263,7 @@
262
263
  <th style="text-align:center"><nobr>{{row.f_last_shengyu_gas}}</nobr></th>
263
264
  <th style="text-align:center"><nobr>{{row.f_tablebase}}</nobr></th>
264
265
  <th style="text-align:center"><nobr>{{row.f_shengyu_gas}}</nobr></th>
266
+ <th style="text-align:center"><nobr>{{row.f_shengyu_gas_gongshi}}</nobr></th>
265
267
  <th style="text-align:center"><nobr>{{row.f_actualtablebase}}</nobr></th>
266
268
  <th style="text-align:center"><nobr>{{row.f_real_fee}}</nobr></th>
267
269
  <th style="text-align:center"><nobr>{{row.f_pregas}}</nobr></th>
@@ -1895,26 +1895,44 @@ export default {
1895
1895
  },
1896
1896
  GasStatistics: {
1897
1897
  'f_userinfo_code': '客户编号',
1898
- 'f_user_name': '客户姓名',
1898
+ 'f_user_name': '客户名称',
1899
1899
  'f_residential_area': '小区',
1900
1900
  'f_address': '地址',
1901
1901
  'f_user_phone': '电话',
1902
1902
  'f_table_state': '气表状态',
1903
1903
  'f_gascode': '燃气证号',
1904
- 'f_meternumber': '表号',
1905
1904
  'f_meter_brand': '气表品牌',
1905
+ 'f_meternumber': '表号',
1906
1906
  'f_meter_classify': '表具类型',
1907
1907
  'f_meter_title': '表描述',
1908
1908
  'f_price_name': '气价名称',
1909
- 'f_user_type': '用户类型',
1909
+ 'f_detailprice': '气价详情',
1910
1910
  'f_gasproperties': '用气性质',
1911
- 'f_balance': '期初余额',
1911
+ 'f_last_gas': '期初余量',
1912
+ 'f_last_balance': '期初余额',
1912
1913
  'f_last_tablebase': '起方',
1914
+ 'f_last_shengyu_gas': '起方(液晶)',
1913
1915
  'f_tablebase': '止方',
1914
- 'f_oughtamount': '期间用气量',
1915
- 'f_oughtfee': '期间用气金额',
1916
- 'f_collection': '期末充值金额',
1917
- 'f_curbalance': '期末余额',
1916
+ 'f_shengyu_gas': '止方(液晶)',
1917
+ 'f_shengyu_gas_gongshi': '止方(液晶)【公式】',
1918
+ 'f_actualtablebase': '期间用气量',
1919
+ 'f_real_fee': '期间用气金额',
1920
+ 'f_pregas': '期间充值气量',
1921
+ 'f_during_price': '期间充值单价',
1922
+ 'f_collection': '期间充值金额',
1923
+ 'f_bq_f_pregas': '期间补气量',
1924
+ 'f_bq_preamount': '期间补气金额',
1925
+ 'f_remain_gas': '期末余量',
1926
+ 'f_remain_curbalance': '期末余额',
1927
+ 'f_remain_stair1price': '一阶剩余单价',
1928
+ 'f_remain_stair1amount': '一阶剩余气量',
1929
+ 'f_remain_stair1fee': '一阶剩余金额',
1930
+ 'f_remain_stair2price': '二阶剩余单价',
1931
+ 'f_remain_stair2amount': '二阶剩余气量',
1932
+ 'f_remain_stair2fee': '二阶剩余金额',
1933
+ 'f_remain_stair3price': '三阶剩余单价',
1934
+ 'f_remain_stair3amount': '三阶剩余气量',
1935
+ 'f_remain_stair3fee': '三阶剩余金额',
1918
1936
  'f_gas_state': '用气状态',
1919
1937
  'f_changetable_state': '是否换表',
1920
1938
  'f_first_input_date': '首次抄表时间',
@@ -288,6 +288,9 @@
288
288
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
289
289
  三阶气费合计:&emsp;{{sumsmodel.f_stair3fee}}
290
290
  </td>
291
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
292
+ 期末余额合计:&emsp;{{sumsmodel.f_curbalance}}
293
+ </td>
291
294
  </tr>
292
295
  </table>
293
296
  </div>
@@ -348,7 +351,8 @@
348
351
  f_stairamount2:0,
349
352
  f_stair2fee:0,
350
353
  f_stairamount3:0,
351
- f_stair3fee:0
354
+ f_stair3fee:0,
355
+ f_curbalance:0
352
356
  }),
353
357
  showbottomsum:false //页面下方是否有合计: 默认为false, 在watch修改
354
358
  }
@@ -0,0 +1,335 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label class="font_normal_body">客户编号</label>
11
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
12
+ condition="f_userinfo_code = '{}' " placeholder="客户编号">
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户名称</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
+ condition=" f_user_name like '%{}%'" placeholder='客户名称'>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">用户地址</label>
21
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
22
+ condition="f_address like '%{}%'" placeholder='客户地址'>
23
+ </div>
24
+ <!-- <div class="col-sm-2">-->
25
+ <!-- <label class="font_normal_body">组织机构</label>-->
26
+ <!-- <res-select :initresid="$parent.$parent.org"-->
27
+ <!-- style="width:60%"-->
28
+ <!-- @res-select="$parent.$parent.getorg"-->
29
+ <!-- restype='organization'>-->
30
+ <!-- </res-select>-->
31
+
32
+ <!-- </div>-->
33
+ <div class="col-sm-2 form-group">
34
+ <label class="font_normal_body">&emsp;公司&emsp;</label>
35
+ <right-tree @re-res="$parent.$parent.getorg"
36
+ :initresid='$parent.$parent.org'></right-tree>
37
+ </div>
38
+ <div class="span" style="float:right;">
39
+ <button class="button_search button_spacing" @click="search()">查询</button>
40
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
41
+ <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
42
+ :field="$parent.$parent.getfield" :header="$parent.$parent.other"
43
+ sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="manage_getReportDataQuery" template-name='结算查询导出'
44
+ :choose-col="true"></export-excel>
45
+ <div style="float: right" class="button_spacing"
46
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
47
+ @click="$parent.$parent.hidden()"></div>
48
+ </div>
49
+
50
+ </div>
51
+
52
+ <div class="row" v-show="$parent.$parent.criteriaShow">
53
+ <div class="col-sm-2 form-group">
54
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
55
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_meternumber"
56
+ condition="f_meternumber like '%{}%'" placeholder='表号'>
57
+ </div>
58
+ <div class="col-sm-2 form-group">
59
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
60
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_residential_area"
61
+ condition="f_residential_area like '%{}%'" placeholder='小区'>
62
+ </div>
63
+ <div class="col-sm-2 form-group">
64
+ <label class="font_normal_body">气表品牌</label>
65
+ <v-select
66
+ placeholder='气表品牌'
67
+ :value.sync="model.f_meter_brand"
68
+ v-model="model.f_meter_brand"
69
+ :options='$parent.$parent.meterbrands'
70
+ close-on-select
71
+ condition="f_meter_brand='{}'">
72
+ </v-select>
73
+ </div>
74
+ <div class="col-sm-2 form-group" >
75
+ <label class="font_normal_body">气表型号</label>
76
+ <v-select
77
+ placeholder='气表型号'
78
+ :value.sync="model.f_meter_style"
79
+ v-model="model.f_meter_style"
80
+ :options='$parent.$parent.metertypes'
81
+ close-on-select
82
+ condition="f_meter_style='{}'">
83
+ </v-select>
84
+ </div>
85
+ <div class="col-sm-2 form-group">
86
+ <label for="startDate" class="font_normal_body">插入时间</label>
87
+ <datepicker id="startDate" placeholder="插入时间" style="width:60%"
88
+ v-model="model.startDate"
89
+ :value.sync="model.startDate"
90
+ :format="'yyyy-MM-dd HH:mm:ss'"
91
+ :show-reset-button="true"
92
+ condition="f_insert_date >= '{}'">
93
+ </datepicker>
94
+ </div>
95
+ <div class="col-sm-2 form-group">
96
+ <label for="endDate" class="font_normal_body">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;</label>
97
+ <datepicker id="endDate" placeholder="插入时间" style="width:60%"
98
+ v-model="model.endDate"
99
+ :value.sync="model.endDate"
100
+ :format="'yyyy-MM-dd HH:mm:ss'"
101
+ :show-reset-button="true"
102
+ condition="f_insert_date <= '{}'">
103
+ </datepicker>
104
+ </div>
105
+ <div class="col-sm-2 form-group">
106
+ <label class="font_normal_body">客户类型</label>
107
+ <v-select :value.sync="model.f_user_type"
108
+ @change="$parent.$parent.userTypeChange()"
109
+ :options='$parent.$parent.usertypes' placeholder='请选择' v-model="model.f_user_type"
110
+ condition="f_user_type = '{}'"
111
+ close-on-select></v-select>
112
+ </div>
113
+ <div class="col-sm-2 form-group">
114
+ <label class="font_normal_body">用气性质</label>
115
+ <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
116
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
117
+ condition="f_gasproperties = '{}'"
118
+ close-on-select></v-select>
119
+ </div>
120
+ <div class="col-sm-2 form-group">
121
+ <label class="font_normal_body">用气类型</label>
122
+ <v-select :value.sync="model.f_user_nature" v-model="model.f_user_nature"
123
+ :options='$parent.$parent.usernatures' placeholder='请选择'
124
+ condition="f_user_nature = '{}'"
125
+ close-on-select></v-select>
126
+ </div>
127
+ <div class="col-sm-2 form-group">
128
+ <label class="font_normal_body">区&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;域</label>
129
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_slice_area"
130
+ condition="f_slice_area like '%{}%'" placeholder='区域'>
131
+ </div>
132
+ </div>
133
+
134
+ </div>
135
+ </criteria>
136
+
137
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
138
+ <template partial='head'>
139
+ <tr>
140
+ <th v-for="row in $parent.$parent.$parent.headData">
141
+ <nobr>{{row}}</nobr>
142
+ </th>
143
+ </tr>
144
+ </template>
145
+ <template partial='body'>
146
+ <tr v-for="row in $parent.$parent.$parent.model.rows">
147
+ <td style="text-align: center;" v-for="item in $parent.$parent.$parent.config.fieldMapping">
148
+ <nobr v-if="item == 'f_lowlithiumbattery'">{{row[item] == 1 ? '是' : '否'}}</nobr>
149
+ <nobr v-if="item == 'f_magneticinterference'">{{row[item] == 1 ? '异常' : '正常'}}</nobr>
150
+ <nobr v-if="item != 'f_magneticinterference' && item != 'f_lowlithiumbattery'">{{row[item]}}</nobr>
151
+ </td>
152
+ </tr>
153
+ </template>
154
+ <template partial='foot'></template>
155
+ </data-grid>
156
+ </criteria-paged>
157
+ </div>
158
+ </div>
159
+ </div>
160
+ </template>
161
+
162
+ <script>
163
+ import {HttpResetClass, PagedList} from 'vue-client'
164
+ import tableConfig from './config/tableConfig'
165
+ import exportConfig from './config/exportConfig'
166
+ import plugin from 'system-clients/src/plugins/GetLoginInfoService'
167
+
168
+ let readySomething = async function (self) {
169
+ await self.$MagLoadParams.loadParam()
170
+ self.initParams()
171
+ // self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
172
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums;
173
+ }
174
+ export default {
175
+ title: '上报数据查询',
176
+ data() {
177
+ return {
178
+ other:[],
179
+ sumsmodel: {},
180
+ footer:[],
181
+ model: new PagedList('api/af-revenue/sql/manage_getReportDataQuery', 20, {}),
182
+ criteriaShow: false,
183
+ config: {
184
+ fieldMapping: {
185
+ f_userinfo_code: '客户编号',
186
+ f_user_name: '客户名称'
187
+ }
188
+ },
189
+ WarningType: [
190
+ {label: '全部', value: ''}
191
+ ],
192
+ Warningstyles: [
193
+ {label: '全部', value: ''}
194
+ ],
195
+ styles:false,
196
+ headData: [],
197
+ bodyData: [],
198
+ gasproperties:[],
199
+ orgCondtionStr: " and f_filialeid in (" + this.$login.f.orgid+")",
200
+ resshow:['company'],
201
+ org:[this.$login.f.orgid],
202
+ meterbrands:[]
203
+ }
204
+ },
205
+ created () {
206
+ this.config.fieldMapping=tableConfig.ReportDataQuery
207
+ console.log("========================")
208
+ console.log(this.config.fieldMapping)
209
+ var item="用户编号"
210
+ console.log("~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
211
+ console.log(this.config.fieldMapping[item])
212
+ this.headData=Object.keys(this.config.fieldMapping)
213
+ // for(var i=0;i<this.config.fieldMapping;i++){
214
+ // this.headData.push(this.config.fieldMapping[i])
215
+ // }
216
+
217
+ },
218
+ ready() {
219
+ this.$refs.paged.$refs.cri.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
220
+ this.$refs.paged.$refs.cri.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
221
+ console.log(this.$refs.paged.$refs.cri.model.startDate)
222
+ console.log(this.$refs.paged.$refs.cri.model.endDate)
223
+ readySomething(this).then(() => {
224
+ this.$emit('ready')
225
+ }).catch((error) => {
226
+ this.$emit('error', error)
227
+ })
228
+ },
229
+ methods: {
230
+ userTypeChange () {
231
+ this.gasproperties=[]
232
+ if(this.$refs.paged.$refs.cri.model !==null) {
233
+ this.$refs.paged.$refs.cri.model.f_gasproperties=''
234
+ this.gasproperties = this.$appdata.getParam(this.$refs.paged.$refs.cri.model.f_user_type[0])
235
+ }
236
+ else{
237
+ this.gasproperties =[{label: '全部', value: ''}]
238
+ }
239
+ },
240
+ initParams() {
241
+ // 初始化气表品牌
242
+ let brandArr = []
243
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
244
+ let temp = {}
245
+ if(item.value.f_meter_type==='物联网表'){
246
+ temp.label = item.label
247
+ temp.value = item.value.f_meter_brand
248
+ brandArr.push(temp )
249
+ }
250
+ })
251
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
252
+ //初始化气表价格
253
+ this.prices = this.$MagGetSaleParam.getPrices();
254
+ },
255
+ showMeterStyle() {
256
+ this.styles = true
257
+ },
258
+ search() {
259
+ this.$refs.paged.$refs.cri.search()
260
+ },
261
+ async selfSearch(args) {
262
+ args.condition = `${args.condition}` + this.orgCondtionStr
263
+ await this.model.search(args.condition, args.model)
264
+ // 查询到数据进行处理
265
+ // if (this.model.rows.length > 0) {
266
+ // this.bodyData = Object.keys(this.model.rows[0])
267
+ // }
268
+ },
269
+ getorg(obj) {
270
+ if (obj.resids.length>0) {
271
+ this.orgCondtionStr = " and f_filialeid in " + plugin.convertToIn(obj.resids)
272
+ }else
273
+ {
274
+ this.orgCondtionStr = " and f_filialeid = " + this.$login.f.orgid
275
+ }
276
+ },
277
+ clear() {
278
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
279
+ this.$refs.paged.$refs.cri.model[key] = []
280
+ })
281
+ },
282
+ hidden() {
283
+ this.criteriaShow = !this.criteriaShow
284
+ },
285
+
286
+ // getRes(obj) {
287
+ // this.orgCondtionStr = obj
288
+ // }
289
+ getotherfooter() {
290
+ this.other = [];
291
+ this.footer = [];
292
+ let otherInData = [];
293
+ let secondLine = [
294
+ `开始时间: ${this.$refs.paged.$refs.cri.model.startDate}`,
295
+ `结束时间: ${this.$refs.paged.$refs.cri.model.startDate}`
296
+ ];
297
+ otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`);
298
+ let footerData = []
299
+
300
+ this.footer.push(footerData);
301
+ this.other.push(otherInData);
302
+ this.other.push(secondLine);
303
+ }
304
+ },
305
+ watch: {
306
+ sumsmodel:{
307
+ handler: function(val) {
308
+ this.getotherfooter();
309
+ },
310
+ deep: true
311
+ },
312
+ },
313
+ computed: {
314
+ metertypes() {
315
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
316
+ },
317
+ usernatures(){
318
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]
319
+ },
320
+ usertypes() {
321
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('用户类型')]
322
+ },
323
+ getCondition() {
324
+ return {
325
+ startDate: this.$refs.paged.$refs.cri.model.startDate,
326
+ endDate: this.$refs.paged.$refs.cri.model.endDate,
327
+ condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
328
+ }
329
+ },
330
+ getfield() {
331
+ return exportConfig.ReportDataConfig
332
+ }
333
+ }
334
+ }
335
+ </script>
@@ -2467,6 +2467,7 @@ export default {
2467
2467
  'f_userinfo_code': '用户编号',
2468
2468
  'f_user_name': '用户名称',
2469
2469
  'f_meternumber': '表号',
2470
+ 'f_slice_area': '区域',
2470
2471
  'f_tablebase': '本次抄表底数',
2471
2472
  'f_last_tablebase': '上次抄表底数',
2472
2473
  'f_jval': '表计剩余余额',
@@ -5,6 +5,7 @@ export default {
5
5
  '用户名称': 'f_user_name',
6
6
  '用户地址': 'f_address',
7
7
  '小区': 'f_residential_area',
8
+ '区域': 'f_slice_area',
8
9
  '用户类型': 'f_user_type',
9
10
  '用气类型': 'f_user_nature',
10
11
  '用气性质': 'f_gasproperties',
@@ -4,4 +4,6 @@ export default function () {
4
4
  Vue.component('day-report-list', (resolve) => {
5
5
  require(['./DayReportList'], resolve)
6
6
  })
7
+ // 物联网表结算查询
8
+ Vue.component('report-data-query', (resolve) => { require(['./ReportDataQuery'], resolve) })
7
9
  }