manage-client 4.1.77 → 4.1.79-hyls

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.77",
3
+ "version": "4.1.79-hyls",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,188 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 100%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2 form-group" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2 form-group" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label for="f_inputtor">表类型:</label>
29
+ <v-select :value.sync="model.meterbrand"
30
+ v-model='model.meterbrand'
31
+ :options='$parent.$parent.meterbrand'
32
+ placeholder='表类型'
33
+ close-on-select v-el:cc></v-select>
34
+ </div>
35
+ <div class="col-sm-2 form-group">
36
+ <label for="f_inputtor">用气性质:</label>
37
+ <v-select :value.sync="model.gasproperties" v-model='model.gasproperties'
38
+ :options='$parent.$parent.gasproperties' placeholder='用气性质'
39
+ close-on-select v-el:cc></v-select>
40
+ </div>
41
+ </div>
42
+ <div class="span" style = "float:right;">
43
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
44
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
45
+ <report-excel id='gasprice'></report-excel>
46
+ </div>
47
+ </div>
48
+ </criteria>
49
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
50
+ <table class='tableprint' style="margin: 0px auto">
51
+ <thead>
52
+ <tr>
53
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
54
+ <h3 style="text-align: center">抄表情况统计表</h3>
55
+ </th>
56
+ </tr>
57
+ <tr>
58
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
59
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
60
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
61
+ <!--收费员:{{// $parent.operatorname}}-->
62
+ </th>
63
+ </tr>
64
+ <tr >
65
+ <th v-if="false" :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
66
+ <div>
67
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">表类型:{{$parent.meterbrand}}</span>
68
+ <span v-show="$parent.depname"> 用气性质:{{$parent.gasproperties}}</span>
69
+ </div>
70
+ </th>
71
+ </tr>
72
+ </thead>
73
+ <tr>
74
+ <td :colspan='$parent.spans' class="noborder">
75
+ {{{ model.data.substring(26,model.data.length-8) }}}
76
+ </td>
77
+ </tr>
78
+ <tfoot>
79
+ <!-- <tr style="text-align: left">-->
80
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>-->
81
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>-->
82
+ <!-- <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>-->
83
+ <!-- </tr>-->
84
+ </tfoot>
85
+ </table>
86
+ {{{ $parent.reportStr}}}
87
+ </div>
88
+ </criteria-paged>
89
+ </div>
90
+ </template>
91
+
92
+ <script>
93
+ import { DataModel } from 'vue-client'
94
+ import co from 'co'
95
+ export default {
96
+ title: '抄表员绩效统计表',
97
+ props: ['data'],
98
+ data () {
99
+ return {
100
+ printTime: this.$login.toStandardTimeString(),
101
+ depresid: [],
102
+ userresid: [],
103
+ f_orgid: this.$login.f.orgid,
104
+ f_depid: this.$login.f.depids,
105
+ // f_operatorid: this.$login.f.id,
106
+ operatorid: [],
107
+ depid: [],
108
+ orgname: '',
109
+ depname: '',
110
+ criteriaShow: false,
111
+ operatorname: '',
112
+ orgCondtionStr: '1=1',
113
+ f_user_type: '',
114
+ f_state: ['有效'],
115
+ model: new DataModel('api/af-revenue/report/hy_meter_input', {startDate: 'this.model.startDate', endDate: 'this.model.endDate', meterbrand: 'this.model.meterbrand[0]', gasproperties: 'this.model.gasproperties[0]'}),
116
+ reportStr: null,
117
+ resshow: ['company', 'department', 'operator'],
118
+ spans: 0,
119
+ initres: {
120
+ org: [this.$login.f.orgid],
121
+ dep: [],
122
+ user: []
123
+ }
124
+ }
125
+ },
126
+ ready () {
127
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()
128
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()
129
+ },
130
+ methods: {
131
+ searchData () {
132
+ this.$refs.paged.$refs.criteria.search()
133
+ },
134
+ selfSearch (args) {
135
+ this.printTime = this.$login.toStandardTimeString()
136
+ let orgcondition = '1=1'
137
+ let orgstr = this.orgCondtionStr
138
+ orgcondition = orgcondition + orgstr
139
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
140
+ this.$refs.paged.search(args)
141
+ },
142
+
143
+ hidden () {
144
+ this.criteriaShow = !this.criteriaShow
145
+ },
146
+ getRes (condition, obj) {
147
+ this.orgCondtionStr = condition
148
+ this.orgname = obj.orgnames[0]
149
+ this.depname = obj.depnames[0]
150
+ this.operatorname = obj.operatornames[0]
151
+ },
152
+ getdep (obj, val) {
153
+ this.depname = val[0]
154
+ this.userresid = obj
155
+ this.f_depid = obj
156
+ },
157
+ getuser ( obj, val) {
158
+ this.operatorname = val[0]
159
+ this.f_operatorid = obj
160
+ }
161
+ },
162
+ watch: {
163
+ 'model.data' (val) {
164
+ let len=0
165
+ let a=val.split('</tr>')
166
+ for(let i=0;i<a.length;i++){
167
+ if(a[i].split('</td>').length-1>len){
168
+ len=a[i].split('</td>').length-1
169
+ }
170
+ }
171
+ this.spans = len
172
+ }
173
+ },
174
+ computed: {
175
+ meterbrand () {
176
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('表类型1')]
177
+ },
178
+ gasproperties () {
179
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
180
+ }
181
+ }
182
+ }
183
+ </script>
184
+ <style scoped>
185
+ .noborder{
186
+ border: none;
187
+ }
188
+ </style>
@@ -643,7 +643,6 @@ export default {
643
643
  'f_is_mgq': '是否煤改气',
644
644
  'f_send_usegas_card': '是否发放天然气使用证',
645
645
  'f_meter_style': '型号',
646
- 'f_xc_meter_style': '现场表具型号',
647
646
  'f_table_state': '表具状态',
648
647
  'f_initial_base': '初始气表底数',
649
648
  'f_total_usegas_amount': '累计用气金额',
@@ -674,10 +673,7 @@ export default {
674
673
  'f_devices_type': '灶具信息',
675
674
  'f_network_valve': '自动阀控',
676
675
  'f_defendcard': '防盗卡号',
677
- 'f_factory_date': '生产年月',
678
- 'f_meteread_date': '最后通讯时间',
679
- 'f_xiaohushijian': '销户时间',
680
- 'f_xiaohuyuanyin': '销户原因'
676
+ 'f_factory_date': '生产年月'
681
677
  // 'latest_f_pregas' : '最后购气量',
682
678
  // 'latest_f_collection':'最后购气金额',
683
679
  // 'f_max_operate_date': '最后购气日期'
@@ -1941,7 +1937,7 @@ export default {
1941
1937
  },
1942
1938
  GasStatistics: {
1943
1939
  'f_userinfo_code': '客户编号',
1944
- 'f_user_name': '客户名称',
1940
+ 'f_user_name': '客户姓名',
1945
1941
  'f_residential_area': '小区',
1946
1942
  'f_address': '地址',
1947
1943
  'f_user_phone': '电话',
@@ -1952,33 +1948,15 @@ export default {
1952
1948
  'f_meter_classify': '表具类型',
1953
1949
  'f_meter_title': '表描述',
1954
1950
  'f_price_name': '气价名称',
1955
- 'f_detailprice': '气价详情',
1956
1951
  'f_gasproperties': '用气性质',
1957
- 'f_last_gas': '期初余量',
1958
- 'f_last_balance': '期初余额',
1952
+ 'f_balance': '期初余额',
1959
1953
  'f_last_tablebase': '起方',
1960
- 'f_last_shengyu_gas': '起方(液晶)',
1961
1954
  'f_tablebase': '止方',
1962
- 'f_shengyu_gas': '止方(液晶)',
1963
- 'f_shengyu_gas_gongshi': '止方(液晶)【公式】',
1964
- 'f_actualtablebase': '期间用气量',
1965
- 'f_real_fee': '期间用气金额',
1966
- 'f_pregas': '期间充值气量',
1967
- 'f_during_price': '期间充值单价',
1968
- 'f_collection': '期间充值金额',
1969
- 'f_bq_f_pregas': '期间补气量',
1955
+ 'f_oughtamount': '期间用气量',
1956
+ 'f_oughtfee': '期间用气金额',
1957
+ 'f_collection': '期末充值金额',
1970
1958
  'f_bq_preamount': '期间补气金额',
1971
- 'f_remain_gas': '期末余量',
1972
- 'f_remain_curbalance': '期末余额',
1973
- 'f_remain_stair1price': '一阶剩余单价',
1974
- 'f_remain_stair1amount': '一阶剩余气量',
1975
- 'f_remain_stair1fee': '一阶剩余金额',
1976
- 'f_remain_stair2price': '二阶剩余单价',
1977
- 'f_remain_stair2amount': '二阶剩余气量',
1978
- 'f_remain_stair2fee': '二阶剩余金额',
1979
- 'f_remain_stair3price': '三阶剩余单价',
1980
- 'f_remain_stair3amount': '三阶剩余气量',
1981
- 'f_remain_stair3fee': '三阶剩余金额',
1959
+ 'f_curbalance': '期末余额',
1982
1960
  'f_gas_state': '用气状态',
1983
1961
  'f_changetable_state': '是否换表',
1984
1962
  'f_first_input_date': '首次抄表时间',
@@ -40,7 +40,7 @@
40
40
  </div>
41
41
  </div>
42
42
  <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <res-select-group :show-component="['company','department']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
43
+ <res-select-group :show-component="['company','department','slicearea']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
44
44
  <div class="col-sm-2 form-group">
45
45
  <label class="font_normal_body">小区名称</label>
46
46
  <v-select :value.sync="model.f_residential_area"
@@ -351,10 +351,10 @@
351
351
  this.inputtores.push({label: "微信公众号", value: "微信公众号"})
352
352
  },
353
353
  async updateParams() {
354
- await this.$MagLoadParams.loadParam(this.f_filialeid)
355
- this.inputtores = [];
356
- this.inputtores.push({label: "全部", value: ""})
357
- await this.initSlice(this.f_filialeid)
354
+ // await this.$MagLoadParams.loadParam(this.f_filialeid)
355
+ // this.inputtores = [];
356
+ // this.inputtores.push({label: "全部", value: ""})
357
+ // await this.initSlice(this.f_filialeid)
358
358
  if(this.allorgid!=null){
359
359
  this.allorgid.forEach((res)=>{
360
360
  this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
@@ -431,8 +431,10 @@
431
431
  //查询多个抄表员时条件
432
432
  args.condition += ` and f_inputtor in ( ${str} )`
433
433
  }
434
- args.condition = `${args.condition} ` + this.orgCondtionStr
435
- this.model.search(args.condition, args.model)
434
+ let ratio1 = this.ratio-0
435
+ let ratio2 = 0-this.ratio
436
+ let condition = `${args.condition} ` + this.orgCondtionStr + ` and amount_ratio>=${ratio1} and amount_ratio<=${ratio2}`
437
+ this.model.search(condition, args.model)
436
438
  },
437
439
  clear() {
438
440
  //清空部门和人员
@@ -40,7 +40,7 @@
40
40
  </div>
41
41
  </div>
42
42
  <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <res-select-group :show-component="['company','department']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
43
+ <res-select-group :show-component="['company','department','slicearea']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
44
44
  <div class="col-sm-2 form-group">
45
45
  <label class="font_normal_body">小区名称</label>
46
46
  <v-select :value.sync="model.f_residential_area"
@@ -364,10 +364,8 @@ export default {
364
364
  this.inputtores.push({label: "微信公众号", value: "微信公众号"})
365
365
  },
366
366
  async updateParams () {
367
- await this.$MagLoadParams.loadParam(this.f_filialeid)
368
367
  this.inputtores = [];
369
368
  this.inputtores.push({label: "全部", value: ""})
370
- await this.initSlice(this.f_filialeid)
371
369
  if (this.allorgid != null) {
372
370
  this.allorgid.forEach((res) => {
373
371
  this.inputtores = this.inputtores.concat(this.$MagGetSaleParam.getresinputtor(res));
@@ -444,8 +442,10 @@ export default {
444
442
  //查询多个抄表员时条件
445
443
  args.condition += ` and f_inputtor in ( ${str} )`
446
444
  }
447
- args.condition = `${args.condition} ` + this.orgCondtionStr
448
- this.model.search(args.condition, args.model)
445
+ let ratio1 = this.ratio-0
446
+ let ratio2 = 0-this.ratio
447
+ let condition = `${args.condition} ` + this.orgCondtionStr + ` and amount_ratio>=${ratio1} and amount_ratio<=${ratio2}`
448
+ this.model.search(condition, args.model)
449
449
  },
450
450
  clear () {
451
451
  //清空部门和人员
@@ -14,7 +14,7 @@ export default function () {
14
14
  // 机表抄表环比查询
15
15
  Vue.component('handplan-ratio-query', (resolve) => { require(['./HandplanRatioQuery.vue'], resolve) })
16
16
  // 机表抄表查询
17
- Vue.component('webhandplan--ratio-query', (resolve) => { require(['./WebHandplanRatioQuery.vue'], resolve) })
17
+ Vue.component('webhandplan-ratio-query', (resolve) => { require(['./WebHandplanRatioQuery.vue'], resolve) })
18
18
  // 换表查询
19
19
  Vue.component('change-meter-query', (resolve) => {
20
20
  require(['./ChangeMeterQuery'], resolve)