manage-client 3.3.178 → 3.3.180

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,206 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main" @keyup.enter="search">
4
+ <div class="flex" v-if="!show">
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 for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ :format="'yyyy-MM-dd HH:mm:ss'"
15
+ :show-reset-button="true"
16
+ >
17
+ </datepicker>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label for="endDate" class="font_normal_body">结束日期</label>
21
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
22
+ v-model="model.endDate"
23
+ :value.sync="model.endDate"
24
+ :format="'yyyy-MM-dd HH:mm:ss'"
25
+ :show-reset-button="true"
26
+ >
27
+ </datepicker>
28
+ </div>
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
31
+ <v-select :value.sync="model.f_residential_area"
32
+ class="select_list select"
33
+ enter-push
34
+ multiple
35
+ condition="a.f_residential_area in {}"
36
+ v-model="model.f_residential_area"
37
+ style="width: 60%"
38
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
39
+ close-on-select>
40
+ </v-select>
41
+ </div>
42
+ <div class="span" style="float:right;">
43
+ <button class="button_search button_spacing" @click="search()">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
46
+ </div>
47
+ </div>
48
+ <div class="row" v-show="$parent.$parent.criteriaShow">
49
+ <div class="col-sm-2 form-group">
50
+ <label class="font_normal_body">组织机构</label>
51
+ <res-select
52
+ restype='organization'
53
+ @res-select="$parent.$parent.getorg"
54
+ is-mul="false"
55
+ :initresid='$parent.$parent.curorgid'
56
+ >
57
+ </res-select>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </criteria>
62
+
63
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
64
+ <template partial='head'>
65
+ <tr>
66
+ <th>
67
+ <nobr>小区</nobr>
68
+ </th>
69
+ <th>
70
+ <nobr>楼号</nobr>
71
+ </th>
72
+ <th>
73
+ <nobr>总户数</nobr>
74
+ </th>
75
+ <th>
76
+ <nobr>机表</nobr>
77
+ </th>
78
+ <th>
79
+ <nobr>卡表</nobr>
80
+ </th>
81
+ <th>
82
+ <nobr>物联网表</nobr>
83
+ </th>
84
+ </tr>
85
+ </template>
86
+ <template partial='body'>
87
+ <td style="text-align:center">
88
+ <nobr>{{row.f_residential_area}}</nobr>
89
+ </td>
90
+ <td style="text-align: center;">
91
+ <nobr>{{row.f_building}}</nobr>
92
+ </td>
93
+ <td style="text-align: center;">
94
+ <nobr>{{row.useriddata}}</nobr>
95
+ </td>
96
+ <td style="text-align: center;">
97
+ <nobr>{{row.jibdata}}</nobr>
98
+ </td>
99
+ <td style="text-align: center;">
100
+ <nobr>{{row.kadata}}</nobr>
101
+ </td>
102
+ <td style="text-align: center;">
103
+ <nobr>{{row.wuliandata}}</nobr>
104
+ </td>
105
+ </template>
106
+ <template partial='foot'></template>
107
+ </data-grid>
108
+ </criteria-paged>
109
+ </div>
110
+ </div>
111
+ </div>
112
+ </template>
113
+
114
+ <script>
115
+ import {HttpResetClass, PagedList} from 'vue-client'
116
+
117
+ let readySomething = async function (self) {
118
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
119
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
120
+ }
121
+ export default {
122
+ title: '小区楼栋统计',
123
+ data() {
124
+ return {
125
+ showinfo: false,
126
+ show:false,
127
+ model: new PagedList('api/af-revenue/sql/areaGeneralQuery', 20, {startDate: 'this.model.startDate', endDate: 'this.model.endDate'}),
128
+ criteriaShow: false,
129
+ //小区
130
+ residentialArea: [],
131
+ // 公司下拉
132
+ curorgid: [this.$login.f.orgid],
133
+ f_orgid: '',
134
+ f_filialeids: this.$login.f.f_orgid
135
+ }
136
+ },
137
+ ready() {
138
+ this.getaddress()
139
+ readySomething(this).then(() => {
140
+ this.$emit('ready')
141
+ }).catch((error) => {
142
+ this.$emit('error', error)
143
+ })
144
+ },
145
+ methods: {
146
+ getorg (val) {
147
+ this.f_orgid = this.$login.convertToIn(val)
148
+ this.f_filialeids = val[0]
149
+ },
150
+ async getaddress(){
151
+ console.log('开始获取小区')
152
+ let HttpReset = new HttpResetClass()
153
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
154
+ data: {
155
+ condition: `1=1 and s.f_orgid = '${this.$login.f.orgid}'`
156
+ }
157
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
158
+ console.log('小区',data)
159
+ let house = [{label: '全部', value: ''}]
160
+ for (let row of data.data){
161
+ console.log('开始保存小区')
162
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
163
+ }
164
+ this.residentialArea = house
165
+ },
166
+ search(){
167
+ this.$refs.paged.$refs.cri.search()
168
+ },
169
+ selfSearch(args) {
170
+ if (this.$refs.paged.$refs.cri.model.startDate === '' || this.$refs.paged.$refs.cri.model.endDate === ''){
171
+ this.$showAlert('请先选择开始时间、结束时间,再进行查询操作!', 'warning', 3000)
172
+ } else {
173
+ if (!this.f_orgid) {
174
+ this.getorg([this.$login.f.orgid])
175
+ }
176
+ args.condition = `${args.condition} and a.f_filialeid = '${this.f_filialeids}'`
177
+ this.model.search(args.condition, args.model)
178
+ }
179
+ },
180
+ clear() {
181
+ //清空部门和人员
182
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].selectres = []
183
+ //部门和人员变为全选
184
+ this.$refs.paged.$refs.cri.$refs.sel.$children[1].$children[0].isSelectAll = false
185
+ this.$refs.paged.$refs.cri.$refs.sel.$children[2].$children[0].isSelectAll = false
186
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
187
+ this.$refs.paged.$refs.cri.model[key] = []
188
+ })
189
+ },
190
+ show() {
191
+ this.criteriaShow = true
192
+ },
193
+ hidden() {
194
+ this.criteriaShow = !this.criteriaShow
195
+ }
196
+ },
197
+ events:{
198
+ },
199
+ watch: {
200
+ 'model'(val) {
201
+ }
202
+ },
203
+ computed: {
204
+ }
205
+ }
206
+ </script>
@@ -94,14 +94,14 @@
94
94
  condition="f_meter_state = '{}'"
95
95
  close-on-select></v-select>
96
96
  </div>
97
- <!--<div class="col-sm-2 form-group">
97
+ <div class="col-sm-2 form-group">
98
98
  <label class="font_normal_body">表单状态</label>
99
99
  <v-select :value.sync="model.f_hand_state"
100
100
  v-model="model.f_hand_state"
101
101
  :options='$parent.$parent.handstate' placeholder='请选择'
102
102
  condition="f_hand_state = '{}'"
103
103
  close-on-select></v-select>
104
- </div>-->
104
+ </div>
105
105
  <div class="col-sm-2 form-group">
106
106
  <label class="font_normal_body">&nbsp;&nbsp;&nbsp;抄表员</label>
107
107
  <v-select :value.sync="model.f_inputtor"
@@ -9,10 +9,10 @@
9
9
  <tabs header="非收费业务查询" v-if="permission('非收费业务查询')">
10
10
  <no-business-query v-if="show.includes('非收费业务查询')" @deal-msg="dealMsg"></no-business-query>
11
11
  </tabs>
12
- <tabs header="小区综合查询" v-if="!newWebHand&&permission('小区综合查询')">
13
- <area-general-query v-if="show.includes('小区综合查询')" @deal-msg="dealMsg"></area-general-query>
12
+ <tabs header="小区楼栋统计" v-if="permission('小区楼栋统计')">
13
+ <area-general-query v-if="show.includes('小区楼栋统计')" @deal-msg="dealMsg"></area-general-query>
14
14
  </tabs>
15
- <tabs header="小区综合查询" v-if="newWebHand&&permission('小区综合查询')">
15
+ <tabs header="小区综合查询" v-if="permission('小区综合查询')">
16
16
  <new-area-general-query v-if="show.includes('小区综合查询')" @deal-msg="dealMsg"></new-area-general-query>
17
17
  </tabs>
18
18
  <tabs header="小区收费查询" v-if="permission('小区收费查询')">
@@ -2,7 +2,6 @@
2
2
  <div id="unit" class="flex-row">
3
3
  <div class="basic-main" @keyup.enter="search">
4
4
  <div class="flex" v-if="!show">
5
-
6
5
  <criteria-paged :model="model" v-ref:paged>
7
6
  <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
8
7
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
@@ -41,8 +40,6 @@
41
40
  <div class="span" style="float:right;">
42
41
  <button class="button_search button_spacing" @click="search()">查询</button>
43
42
  <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
- <!--<button class="btn btn-default" @click="$parent.$parent.stamp()">打印</button>-->
45
-
46
43
  <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
47
44
  :field="$parent.$parent.getfield" :header="$parent.$parent.other"
48
45
  sqlurl="api/af-revenue/logic/openapi/exportfile" sql-name="otherChargeQuery" template-name='其他收费查询导出'
@@ -54,7 +51,6 @@
54
51
  <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
55
52
  </div>
56
53
  </div>
57
-
58
54
  <div class="row" v-show="$parent.$parent.criteriaShow">
59
55
  <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
60
56
  <div class="col-sm-2 form-group">
@@ -405,7 +401,7 @@
405
401
  tfoot: '',
406
402
  initres: {
407
403
  org:[this.$login.f.orgid],
408
- dep:[],
404
+ dep:[this.$login.f.depids],
409
405
  user:[],
410
406
  },
411
407
  show:false,
@@ -426,6 +422,9 @@
426
422
  }
427
423
  },
428
424
  ready() {
425
+ console.log('=-=-=-=-=-=-=-=')
426
+ console.log(this.$login.f)
427
+ console.log('=-=-=-=-=-=-=-=')
429
428
  readySomething(this).then(() => {
430
429
  this.$emit('ready')
431
430
  }).catch((error) => {