manage-client 3.2.190 → 3.2.192

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,290 @@
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" :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
52
+ </div>
53
+ <div class="col-sm-2 form-group">
54
+ <label class="font_normal_body">用户类型</label>
55
+ <v-select :value.sync="$parent.$parent.f_user_type"
56
+ v-model="$parent.$parent.f_user_type"
57
+ :options='$parent.$parent.user_type' placeholder='请选择'
58
+ condition="f_user_type in '{}'"
59
+ close-on-select></v-select>
60
+ </div>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
63
+ <v-select :value.sync="model.f_payment" multiple
64
+ v-model="model.f_payment"
65
+ :options='$parent.$parent.payment' placeholder='请选择'
66
+ condition="f_payment in {}"
67
+ close-on-select></v-select>
68
+ </div>
69
+ <div class="col-sm-2 form-group">
70
+ <label class="font_normal_body">气表类型</label>
71
+ <v-select :value.sync="model.f_meter_type" multiple
72
+ :options='$parent.$parent.metertypes' placeholder='请选择' v-model="model.f_meter_type"
73
+ condition="f_meter_type in {}"
74
+ close-on-select></v-select>
75
+ </div>
76
+ <div class="col-sm-2 form-group">
77
+ <label class="font_normal_body">气表品牌</label>
78
+ <v-select :value.sync="model.f_meter_brand" multiple
79
+ v-model="model.f_meter_brand"
80
+ :options='$parent.$parent.meterbrands' placeholder='请选择'
81
+ condition="f_meter_brand in {}"
82
+ close-on-select></v-select>
83
+ </div>
84
+ <div class="span" style = "float:right;">
85
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
86
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
87
+ <report-excel id='gasprice'></report-excel>
88
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,
89
+ 'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
90
+ </div>
91
+ <div class="row" v-show="$parent.$parent.criteriaShow">
92
+
93
+ <!--<div class="col-sm-2 form-group">-->
94
+ <!--<label class="font_normal_body">收费状态</label>-->
95
+ <!--<v-select :value.sync="$parent.$parent.f_state" multiple-->
96
+ <!--v-model="$parent.$parent.f_state"-->
97
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
98
+ <!--condition="f_state in {}"-->
99
+ <!--close-on-select></v-select>-->
100
+ <!--</div>-->
101
+ </div>
102
+ </div>
103
+ </criteria>
104
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
105
+ <table class='tableprint' style="margin: 0px auto">
106
+ <thead>
107
+ <tr>
108
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
109
+ <h3 style="text-align: center">收费结账报表</h3>
110
+ </th>
111
+ </tr>
112
+ <tr>
113
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
114
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
115
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
116
+ <!--打印时间:{{{$parent.printTime}}}-->
117
+ 打印时间:{{$parent.printTime}}
118
+ <!--收费员:{{// $parent.operatorname}}-->
119
+ </th>
120
+ </tr>
121
+ <tr>
122
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
123
+ <div>
124
+ <span yle="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
125
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
126
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
127
+ </div>
128
+ </th>
129
+ </tr>
130
+ </thead>
131
+ <tr>
132
+ <td :colspan='$parent.spans' class="noborder">
133
+ {{{ model.data.substring(26,model.data.length-8) }}}
134
+ </td>
135
+ </tr>
136
+ <tfoot>
137
+ <tr style="text-align: left">
138
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
139
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
140
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
141
+ </tr>
142
+ </tfoot>
143
+ </table>
144
+ {{{ $parent.reportStr}}}
145
+ </div>
146
+ </criteria-paged>
147
+ </div>
148
+ </template>
149
+
150
+ <script>
151
+ import { DataModel } from 'vue-client'
152
+ import co from 'co'
153
+
154
+ let readySomething = async function (self) {
155
+ await self.$MagLoadParams.loadParam()
156
+ self.initParams()
157
+ }
158
+ export default {
159
+ title: '收费结账报表',
160
+ props: ['data'],
161
+ data () {
162
+ return {
163
+ printTime: this.$login.toStandardTimeString(),
164
+ depresid: [],
165
+ userresid: [],
166
+ f_orgid: this.$login.f.orgid,
167
+ f_depid: this.$login.f.depids,
168
+ // f_operatorid: this.$login.f.id,
169
+ operatorid: [],
170
+ depid: [],
171
+ orgname: '',
172
+ depname: '',
173
+ criteriaShow: false,
174
+ operatorname: '',
175
+ orgCondtionStr: '1=1',
176
+ f_user_type: '',
177
+ f_state:['有效'],
178
+ model: new DataModel('rs/report/getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
179
+ f_orgid: 'this.model.f_orgid'}),
180
+ reportStr: null,
181
+ resshow:['company','department','operator'],
182
+ spans: 0,
183
+ user_type:[],
184
+ meterbrands: [],
185
+ initres: {
186
+ org: [this.$login.f.orgid],
187
+ dep: [],
188
+ user: []
189
+ }
190
+ }
191
+ },
192
+ ready () {
193
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
194
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
195
+ console.log(this.$login.f)
196
+ readySomething(this).then(() => {
197
+ this.$emit('ready')
198
+ }).catch((error) => {
199
+ this.$emit('error', error)
200
+ })
201
+ },
202
+ methods: {
203
+ searchData () {
204
+ this.$refs.paged.$refs.criteria.search()
205
+ },
206
+ initParams() {
207
+ // 初始化气表品牌
208
+ let brandArr = []
209
+ this.$MagGetSaleParam.getGasbrand().forEach((item) => {
210
+ let temp = {}
211
+ temp.label = item.label
212
+ temp.value = item.value.f_meter_brand
213
+ brandArr.push(temp)
214
+ })
215
+ this.meterbrands = [{label: '全部', value: ''}, ...brandArr]
216
+
217
+ },
218
+ selfSearch (args) {
219
+ this.printTime = this.$login.toStandardTimeString()
220
+ let orgcondition = '1=1'
221
+ let orgstr = this.orgCondtionStr
222
+ orgcondition = orgcondition + orgstr
223
+ console.log('23231312321:',this.f_user_type)
224
+ if(this.f_user_type && this.f_user_type[0]) {
225
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
226
+ }
227
+ /* if (this.f_orgid && this.f_orgid[0]) {
228
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
229
+ }
230
+ if (this.f_depid && this.f_depid[0]) {
231
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
232
+ }
233
+ if(this.f_operatorid && this.f_operatorid[0]) {
234
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
235
+ }*/
236
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
237
+ this.$refs.paged.search(args)
238
+ },
239
+
240
+ hidden() {
241
+ this.criteriaShow = !this.criteriaShow
242
+ },
243
+ getRes (condition, obj) {
244
+ this.orgCondtionStr = condition
245
+ this.orgname = obj.orgnames[0]
246
+ this.depname = obj.depnames[0]
247
+ },
248
+ getdep (obj, val) {
249
+ this.depname = val[0]
250
+ this.userresid = obj
251
+ this.f_depid = obj
252
+ },
253
+ getuser ( obj, val) {
254
+ this.operatorname = val[0]
255
+ this.f_operatorid = obj
256
+ }
257
+ },
258
+ watch: {
259
+ 'model.data' (val) {
260
+ let len=0
261
+ let a=val.split('</tr>')
262
+ for(let i=0;i<a.length;i++){
263
+ if(a[i].split('</td>').length-1>len){
264
+ len=a[i].split('</td>').length-1
265
+ }
266
+ }
267
+ this.spans = len
268
+ }
269
+ },
270
+ computed: {
271
+ payment() {
272
+ return [...this.$appdata.getParam('付款方式查询')]
273
+ },
274
+ user_type () {
275
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
276
+ },
277
+ metertypes() {
278
+ return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表类型')]
279
+ }
280
+ // meterbrands() {
281
+ // return [{label: ' 全部 ', value: ''}, ...this.$appdata.getParam('气表品牌')]
282
+ // }
283
+ }
284
+ }
285
+ </script>
286
+ <style scoped>
287
+ .noborder{
288
+ border: none;
289
+ }
290
+ </style>
@@ -3,6 +3,9 @@
3
3
  <tabs header="指令查询" v-if="permission('指令查询')">
4
4
  <instruct-manage v-if="show.includes('指令查询')"></instruct-manage>
5
5
  </tabs>
6
+ <tabs header="历史指令查询" v-if="permission('历史指令查询')">
7
+ <instruct-manage-history v-if="show.includes('历史指令查询')"></instruct-manage-history>
8
+ </tabs>
6
9
  <tabs header="上报查询" v-if="permission('上报查询')">
7
10
  <report-list v-if="show.includes('上报查询')"></report-list>
8
11
  </tabs>
@@ -49,7 +52,7 @@
49
52
  methods: {
50
53
  permission (name) {
51
54
  // 保留是为了后面可能也会和综合查询一样加权限
52
- if (this.$login.r.find(value => value === '物联查询')) {
55
+ if (this.$login.r.find(value => value === '物联查询') || name === '历史指令查询') {
53
56
  if (!this.$login.r.find(value => value === name)) {
54
57
  return false
55
58
  }