manage-client 3.3.122 → 3.3.123

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,238 @@
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="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_user_type"
64
+ v-model="$parent.$parent.f_user_type"
65
+ :options='$parent.$parent.user_type' placeholder='请选择'
66
+ condition="f_user_type = '{}'"
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="$parent.$parent.f_state" multiple-->
72
+ <!--v-model="$parent.$parent.f_state"-->
73
+ <!--:options='$parent.$parent.charge_state' placeholder='请选择'-->
74
+ <!--condition="f_state in {}"-->
75
+ <!--close-on-select></v-select>-->
76
+ <!--</div>-->
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
81
+ <table class='tableprint' style="margin: 0px auto">
82
+ <thead>
83
+ <tr>
84
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
85
+ <h3 style="text-align: center">收费结账报表</h3>
86
+ </th>
87
+ </tr>
88
+ <tr>
89
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
90
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
91
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
92
+ <!--打印时间:{{{$parent.printTime}}}-->
93
+ 打印时间:{{$parent.printTime}}
94
+ <!--收费员:{{// $parent.operatorname}}-->
95
+ </th>
96
+ </tr>
97
+ <tr>
98
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
99
+ <div>
100
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
101
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
102
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
103
+ </div>
104
+ </th>
105
+ </tr>
106
+ </thead>
107
+ <tr>
108
+ <td :colspan='$parent.spans' class="noborder">
109
+ {{{ model.data.substring(26,model.data.length-8) }}}
110
+ </td>
111
+ </tr>
112
+ <tfoot>
113
+ <tr style="text-align: left">
114
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
115
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
116
+ </tr>
117
+ </tfoot>
118
+ </table>
119
+ {{{ $parent.reportStr}}}
120
+ </div>
121
+ </criteria-paged>
122
+ </div>
123
+ </template>
124
+
125
+ <script>
126
+ import { DataModel } from 'vue-client'
127
+ import co from 'co'
128
+
129
+ export default {
130
+ title: '收费结账报表',
131
+ props: ['data'],
132
+ data () {
133
+ return {
134
+ printTime: this.$login.toStandardTimeString(),
135
+ depresid: [],
136
+ userresid: [],
137
+ f_orgid: this.$login.f.orgid,
138
+ f_depid: this.$login.f.depids,
139
+ // f_operatorid: this.$login.f.id,
140
+ operatorid: [],
141
+ depid: [],
142
+ orgname: '',
143
+ depname: '',
144
+ criteriaShow: false,
145
+ operatorname: '',
146
+ orgCondtionStr: '1=1',
147
+ f_user_type: '',
148
+ f_state:['有效'],
149
+ model: new DataModel('rs/report/tz_getmoneyall', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
150
+ f_orgid: 'this.model.f_orgid'}),
151
+ reportStr: null,
152
+ resshow:['company','department','operator'],
153
+ spans: 0,
154
+ initres: {
155
+ org: [this.$login.f.orgid],
156
+ dep: [],
157
+ user: []
158
+ }
159
+ }
160
+ },
161
+ ready () {
162
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
163
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
164
+ console.log(this.$login.f)
165
+ },
166
+ methods: {
167
+ searchData () {
168
+ this.$refs.paged.$refs.criteria.search()
169
+ },
170
+ selfSearch (args) {
171
+ this.printTime = this.$login.toStandardTimeString()
172
+ let orgcondition = '1=1'
173
+ let orgstr = this.orgCondtionStr
174
+ orgcondition = orgcondition + orgstr
175
+ console.log('23231312321:',this.f_user_type)
176
+ if(this.f_user_type && this.f_user_type[0]) {
177
+ orgcondition += ` and f_user_type = '${ this.f_user_type} '`
178
+ }
179
+ /* if (this.f_orgid && this.f_orgid[0]) {
180
+ orgcondition += ` and f_orgid in ('${this.f_orgid}')`
181
+ }
182
+ if (this.f_depid && this.f_depid[0]) {
183
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
184
+ }
185
+ if(this.f_operatorid && this.f_operatorid[0]) {
186
+ orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
187
+ }*/
188
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
189
+ this.$refs.paged.search(args)
190
+ },
191
+
192
+ hidden() {
193
+ this.criteriaShow = !this.criteriaShow
194
+ },
195
+ getRes (condition, obj) {
196
+ this.orgCondtionStr = condition
197
+ this.orgname = obj.orgnames[0]
198
+ this.depname = obj.depnames[0]
199
+ console.log(obj,"========")
200
+ this.operatorname = obj.operatornames[0]
201
+ },
202
+ getdep (obj, val) {
203
+ this.depname = val[0]
204
+ this.userresid = obj
205
+ this.f_depid = obj
206
+ },
207
+ getuser ( obj, val) {
208
+ this.operatorname = val[0]
209
+ this.f_operatorid = obj
210
+ }
211
+ },
212
+ watch: {
213
+ 'model.data' (val) {
214
+ let len=0
215
+ let a=val.split('</tr>')
216
+ for(let i=0;i<a.length;i++){
217
+ if(a[i].split('</td>').length-1>len){
218
+ len=a[i].split('</td>').length-1
219
+ }
220
+ }
221
+ this.spans = len
222
+ }
223
+ },
224
+ computed: {
225
+ charge_state() {
226
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费状态')]
227
+ },
228
+ user_type () {
229
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
230
+ }
231
+ }
232
+ }
233
+ </script>
234
+ <style scoped>
235
+ .noborder{
236
+ border: none;
237
+ }
238
+ </style>
@@ -149,6 +149,9 @@
149
149
  <th>
150
150
  <nobr>本期底数</nobr>
151
151
  </th>
152
+ <th>
153
+ <nobr>附件查看</nobr>
154
+ </th>
152
155
  <th>
153
156
  <nobr>气量</nobr>
154
157
  </th>
@@ -204,6 +207,10 @@
204
207
  <td style="text-align: center;">
205
208
  <nobr>{{row.f_tablebase}}</nobr>
206
209
  </td>
210
+ <td style="text-align:center">
211
+ <img-self :src="row.f_handplan_image" v-if="row.f_handplan_image" :width="100" :height="100"></img-self>
212
+ <img-self :src="`rs/image/file/${row.f_notified_path}`" v-if="row.f_notified_path" :width="100" :height="100"></img-self>
213
+ </td>
207
214
  <td style="text-align: center;">
208
215
  <nobr>{{row.f_real_amount}}</nobr>
209
216
  </td>
@@ -189,6 +189,7 @@
189
189
  let readyGen = async function (self) {
190
190
  await self.$MagLoadParams.loadParam()
191
191
  self.getfield = self.config.excelHeaders
192
+ self.initQueryParam();
192
193
  }
193
194
  export default {
194
195
  title: '开关阀记录查询',
@@ -252,7 +253,7 @@
252
253
  let arr = []
253
254
  this.$MagGetSaleParam.getGasbrand().forEach((item) => {
254
255
  let temp = {}
255
- if(item.value.f_meter_type==='物联网表'){
256
+ if(item.value.f_meter_type==='物联网表' || item.value.f_meter_type==='机表'){
256
257
  temp.label = item.label
257
258
  temp.value = item.value.f_meter_brand
258
259
  arr.push(temp )
@@ -298,7 +299,6 @@
298
299
  this.f_orgid = `${this.f_orgid_new}`;
299
300
  }
300
301
  await this.model.search(args.condition, args.model)
301
- await this.initQueryParam();
302
302
  await this.$refs.paged.$refs.grid.InitializedData()
303
303
  await this.$refs.paged.$refs.grid.displayColumnSettings(undefined)
304
304
 
@@ -214,7 +214,10 @@
214
214
  <nobr>付款方式</nobr>
215
215
  </th>
216
216
  <th>
217
- <nobr>气表底数</nobr>
217
+ <nobr>旧表底数</nobr>
218
+ </th>
219
+ <th>
220
+ <nobr>新表底数</nobr>
218
221
  </th>
219
222
  <th>
220
223
  <nobr>表上余额</nobr>
@@ -303,6 +306,9 @@
303
306
  <td style="text-align: center;">
304
307
  <nobr>{{row.f_payment}}</nobr>
305
308
  </td>
309
+ <td style="text-align: center;">
310
+ <nobr>{{row.f_using_base_old}}</nobr>
311
+ </td>
306
312
  <td style="text-align: center;">
307
313
  <nobr>{{row.f_meter_base}}</nobr>
308
314
  </td>