manage-client 3.2.132 → 3.2.135

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.
@@ -0,0 +1,221 @@
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 HH:mm:ss'"
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 HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div><!--
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ is-mul="false"
35
+ @res-select="$parent.$parent.getdep"
36
+ :parentresid="$parent.$parent.depresid"
37
+ :initresid='$parent.$parent.depid'>
38
+ </res-select>
39
+
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;人员&nbsp;&nbsp;&nbsp; </label>
43
+ <res-select restype='user'
44
+ is-mul="false"
45
+ @res-select="$parent.$parent.getuser"
46
+ :parentresid="$parent.$parent.userresid"
47
+ :initresid='$parent.$parent.operatorid'>
48
+ </res-select>
49
+ </div>
50
+ -->
51
+ <res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ </div>
53
+ <div class="span" style = "float:right;">
54
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
55
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
56
+ <report-excel id='gasprice'></report-excel>
57
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
58
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
59
+ </div>
60
+ <div class="row" v-show="$parent.$parent.criteriaShow">
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">收费状态</label>
63
+ <v-select :value.sync="$parent.$parent.f_state" multiple
64
+ v-model="$parent.$parent.f_state"
65
+ :options='$parent.$parent.charge_state' placeholder='请选择'
66
+ condition="f_state in {}"
67
+ close-on-select></v-select>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </criteria>
72
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
73
+ <table class='tableprint' style="margin: 0px auto">
74
+ <thead>
75
+ <tr>
76
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
77
+ <h3 style="text-align: center">铜川售气占比报表</h3>
78
+ </th>
79
+ </tr>
80
+ <tr>
81
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
82
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
83
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
84
+ <!--打印时间:{{{$parent.printTime}}}-->
85
+ 打印时间:{{$parent.printTime}}
86
+ <!--收费员:{{// $parent.operatorname}}-->
87
+ </th>
88
+ </tr>
89
+ <tr>
90
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
91
+ <div>
92
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
93
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
94
+ <!-- <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$refs.criteria.$refs.res.obj.operatornames[0]">人员:{{$parent.operatorname}}</span>-->
95
+ </div>
96
+ </th>
97
+ </tr>
98
+ </thead>
99
+ <tr>
100
+ <td :colspan='$parent.spans' class="noborder">
101
+ {{{ model.data.substring(26,model.data.length-8) }}}
102
+ </td>
103
+ </tr>
104
+ <tfoot>
105
+ <tr style="text-align: left">
106
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
107
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
108
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
109
+ </tr>
110
+ </tfoot>
111
+ </table>
112
+ {{{ $parent.reportStr}}}
113
+ </div>
114
+ </criteria-paged>
115
+ </div>
116
+ </template>
117
+
118
+ <script>
119
+ import { DataModel } from 'vue-client'
120
+ import co from 'co'
121
+
122
+ export default {
123
+ title: '铜川售气占比报表',
124
+ props: ['data'],
125
+ data () {
126
+ return {
127
+ printTime: this.$login.toStandardTimeString(),
128
+ depresid: [],
129
+ userresid: [],
130
+ f_orgid: this.$login.f.orgid,
131
+ f_depid: this.$login.f.depids,
132
+ f_operatorid: this.$login.f.id,
133
+ operatorid: [],
134
+ depid: [],
135
+ orgname: '',
136
+ depname: '',
137
+ criteriaShow: false,
138
+ operatorname: '',
139
+ orgCondtionStr: '1=1',
140
+ f_state:['有效'],
141
+ model: new DataModel('rs/report/esaleMonthReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
142
+ f_orgid: 'this.model.f_orgid'}),
143
+ reportStr: null,
144
+ resshow:['company','department','operator'],
145
+ spans: 0,
146
+ initres: {
147
+ org: [this.$login.f.orgid],
148
+ dep: [],
149
+ user: []
150
+ }
151
+ }
152
+ },
153
+ ready () {
154
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
155
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
156
+ console.log(this.$login.f)
157
+ },
158
+ methods: {
159
+ searchData () {
160
+ this.$refs.paged.$refs.criteria.search()
161
+ },
162
+ selfSearch (args) {
163
+ this.printTime = this.$login.toStandardTimeString()
164
+ let orgcondition = '1=1'
165
+ let orgstr = this.orgCondtionStr
166
+ orgcondition = orgcondition + orgstr
167
+ /* if (this.f_orgid && this.f_orgid[0]) {
168
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
169
+ }
170
+ if (this.f_depid && this.f_depid[0]) {
171
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
172
+ }
173
+ if(this.f_operatorid && this.f_operatorid[0]) {
174
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
175
+ }*/
176
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
177
+ this.$refs.paged.search(args)
178
+ },
179
+
180
+ hidden() {
181
+ this.criteriaShow = !this.criteriaShow
182
+ },
183
+ getRes (condition, obj) {
184
+ this.orgCondtionStr = condition
185
+ this.orgname = obj.orgnames[0]
186
+ this.depname = obj.depnames[0]
187
+ },
188
+ getdep (obj, val) {
189
+ this.depname = val[0]
190
+ this.userresid = obj
191
+ this.f_depid = obj
192
+ },
193
+ getuser ( obj, val) {
194
+ this.operatorname = val[0]
195
+ this.f_operatorid = obj
196
+ }
197
+ },
198
+ watch: {
199
+ 'model.data' (val) {
200
+ let len=0
201
+ let a=val.split('</tr>')
202
+ for(let i=0;i<a.length;i++){
203
+ if(a[i].split('</td>').length-1>len){
204
+ len=a[i].split('</td>').length-1
205
+ }
206
+ }
207
+ this.spans = len
208
+ }
209
+ },
210
+ computed: {
211
+ charge_state() {
212
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
213
+ }
214
+ }
215
+ }
216
+ </script>
217
+ <style scoped>
218
+ .noborder{
219
+ border: none;
220
+ }
221
+ </style>
@@ -106,7 +106,7 @@
106
106
  condition="f_payment in {}"
107
107
  close-on-select></v-select>
108
108
  </div>
109
- <div class="col-sm-2 form-group">
109
+ <div class="col-sm-2 form-group" v-if="titleShow">
110
110
  <label class="font_normal_body" title="参数:支付渠道查询">支付渠道</label>
111
111
  <v-select :value.sync="model.f_bank_type" multiple
112
112
  v-model="model.f_bank_type"
@@ -430,7 +430,7 @@
430
430
  <th>
431
431
  <nobr>写卡状态</nobr>
432
432
  </th>
433
- <th>
433
+ <th v-if="titleShow">
434
434
  <nobr>支付渠道</nobr>
435
435
  </th>
436
436
  <th>
@@ -626,7 +626,7 @@
626
626
  <td style="text-align: center;">
627
627
  <nobr>{{row.f_write_card}}</nobr>
628
628
  </td>
629
- <td style="text-align: center;">
629
+ <td style="text-align: center;" v-if="titleShow">
630
630
  <nobr>{{row.f_bank_type}}</nobr>
631
631
  </td>
632
632
  <td style="text-align: center;">
@@ -832,6 +832,7 @@
832
832
  data() {
833
833
  return {
834
834
  IdCardInfo:'',
835
+ titleShow : true,
835
836
  card:'',
836
837
  isSingleUser: null,
837
838
  startDate1:'',
@@ -914,6 +915,7 @@
914
915
  this.$refs.paged.$refs.cri.model.f_state=['有效']
915
916
  this.getaddress()
916
917
  this.getEquipment()
918
+ this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
917
919
  //加载抄表册
918
920
  this.$MagGetSaleParam.initinputtor();
919
921
  this.getinputtores();
@@ -92,14 +92,14 @@
92
92
  :options='$parent.$parent.issecond' placeholder='请选择'
93
93
  close-on-select></v-select>
94
94
  </div>
95
- <div class="col-sm-2 form-group" >
95
+ <div class="col-sm-2 form-group" v-if="titleShow">
96
96
  <label for="f_usetype" class="font_normal_body" title="参数:使用类型">使用类型</label>
97
97
  <v-select :value.sync="model.f_usetype" v-model="model.f_usetype"
98
98
  condition="f_usetype = '{}'"
99
99
  :options='$parent.$parent.usetype' placeholder='请选择'
100
100
  close-on-select></v-select>
101
101
  </div>
102
- <div class="col-sm-2 form-group">
102
+ <div class="col-sm-2 form-group" v-if="titleShow">
103
103
  <label class="font_normal_body">用气性质</label>
104
104
  <v-select :value.sync="model.f_gasproperties" v-model="model.f_gasproperties"
105
105
  :options='$parent.$parent.gasproperties' placeholder='请选择'
@@ -210,7 +210,7 @@
210
210
  condition="isbgl = '{}'"
211
211
  close-on-select></v-select>
212
212
  </div>
213
- <div class="col-sm-2 form-group" v-if="!$filialeInfo || $filialeInfo!=='rongcheng'">
213
+ <div class="col-sm-2 form-group" v-if="titleShow">
214
214
  <label class="font_normal_body">用户等级</label>
215
215
  <v-select :value.sync="model.f_user_grade"
216
216
  v-model="model.f_user_grade"
@@ -284,10 +284,10 @@
284
284
  <th>
285
285
  <nobr>客户类型</nobr>
286
286
  </th>
287
- <th>
287
+ <th v-if="titleShow">
288
288
  <nobr>使用类型</nobr>
289
289
  </th>
290
- <th>
290
+ <th v-if="titleShow">
291
291
  <nobr>用气性质</nobr>
292
292
  </th>
293
293
  <th>
@@ -363,10 +363,10 @@
363
363
  <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
364
364
  <nobr>{{row.f_user_type}}</nobr>
365
365
  </td>
366
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
366
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" v-if="titleShow">
367
367
  <nobr>{{row.f_usetype}}</nobr>
368
368
  </td>
369
- <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
369
+ <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;" v-if="titleShow">
370
370
  <nobr>{{row.f_gasproperties}}</nobr>
371
371
  </td>
372
372
  <td :class="row.f_table_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
@@ -506,6 +506,7 @@
506
506
  data() {
507
507
  return {
508
508
  IdCardInfo:'',
509
+ titleShow : true,
509
510
  card:'',
510
511
  isSingleUser: null,
511
512
  other:[],
@@ -560,6 +561,7 @@
560
561
  },
561
562
  ready() {
562
563
  console.log("===========",this.$filialeInfo)
564
+ this.titleShow = this.$appdata.getSingleValue('是否显示筛选框') == null? true : this.$appdata.getSingleValue('是否显示筛选框')
563
565
  readySomething(this).then(() => {
564
566
  this.$emit('ready')
565
567
  }).catch((error) => {
@@ -7,7 +7,8 @@
7
7
  <tabs header="换表查询" v-if="permission('换表查询')">
8
8
  <change-meter-query v-if="show.includes('换表查询')" @deal-msg="dealMsg" :data="data"></change-meter-query>
9
9
  </tabs>
10
- <tabs header="机表抄表查询" v-if="permission('机表抄表查询')">
10
+ <!--<tabs header="机表抄表查询" v-if="permission('机表抄表查询')">-->
11
+ <tabs header="机表抄表查询" v-if="false">
11
12
  <handplan-query v-if="show.includes('机表抄表查询')" @deal-msg="dealMsg" :data="data"></handplan-query>
12
13
  </tabs>
13
14
  <tabs header="过户查询" v-if="permission('过户查询')">
@@ -37,7 +38,8 @@
37
38
  <!-- <tabs header="减免优惠查询" v-if="permission('减免优惠查询')">-->
38
39
  <!-- <over-due-query v-if="show.includes('减免优惠查询')" @deal-msg="dealMsg" :data="data"></over-due-query>-->
39
40
  <!-- </tabs>-->
40
- <tabs header="调价补差查询" v-if="permission('调价补差查询')">
41
+ <!--<tabs header="调价补差查询" v-if="permission('调价补差查询')">-->
42
+ <tabs header="调价补差查询" v-if="false">
41
43
  <priceadjust-query v-if="show.includes('调价补差查询')" @deal-msg="dealMsg" :data="data"></priceadjust-query>
42
44
  </tabs>
43
45
  <tabs header="迁表查询" v-if="permission('迁表查询')">
@@ -52,18 +54,24 @@
52
54
  <!-- <tabs header="操作记录查询" v-if="permission('操作记录查询')">-->
53
55
  <!-- <record-query v-if="show == '操作记录查询'" @deal-msg="dealMsg" :data="data"></record-query>-->
54
56
  <!-- </tabs>-->
55
- <tabs header="业务查询" v-if="permission('业务查询')">
57
+ <!--<tabs header="业务查询" v-if="permission('业务查询')">-->
58
+ <tabs header="业务查询" v-if="false">
56
59
  <busines-query v-if="show.includes('业务查询')" @deal-msg="dealMsg" :data="data"></busines-query>
57
60
  </tabs>
58
- <tabs header="预存查询" v-if="permission('预存查询')">
61
+ <!--<tabs header="预存查询" v-if="permission('预存查询')">-->
62
+ <tabs header="预存查询" v-if="false">
59
63
  <yucun-detailss v-if="show.includes('预存查询')" @deal-msg="dealMsg" :data="data"></yucun-detailss>
60
64
  </tabs>
61
- <tabs header="发折查询" v-if="permission('发折查询')">
65
+ <!--<tabs header="发折查询" v-if="permission('发折查询')">-->
66
+ <tabs header="发折查询" v-if="false">
62
67
  <sendbook-query v-if="show.includes('发折查询')" @deal-msg="dealMsg" :data="data"></sendbook-query>
63
68
  </tabs>
64
69
  <tabs header="用户参保查询" v-if="permission('用户参保查询')">
65
70
  <user-insured v-if="show.includes('用户参保查询')" @deal-msg="dealMsg" :data="data"></user-insured>
66
71
  </tabs>
72
+ <tabs header="开户查询" v-if="permission('开户查询')">
73
+ <new-account-query v-if="show == '开户查询'" @deal-msg="dealMsg"></new-account-query>
74
+ </tabs>
67
75
  <!-- <tabs header="资源操作记录查询" v-if="permission('资源操作记录查询')">-->
68
76
  <!-- <resource-operating-query v-if="show == '资源操作记录查询'" @deal-msg="dealMsg" :data="data"></resource-operating-query>-->
69
77
  <!-- </tabs>-->