manage-client 4.0.57 → 4.0.58-2

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.0.57",
3
+ "version": "4.0.58-2",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -70,6 +70,39 @@
70
70
  condition="f_meter_brand = '{}'"
71
71
  ></v-select>
72
72
  </div>
73
+ <div class="col-sm-2 form-group">
74
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
75
+ <v-select :value.sync="model.f_residential_area"
76
+ class="select_list select"
77
+ v-model="model.f_residential_area"
78
+ style="width: 60%"
79
+ multiple
80
+ condition="f_residential_area in {}"
81
+ :options='$parent.$parent.residentialArea' placeholder='选择小区'
82
+ close-on-select>
83
+
84
+ </v-select>
85
+ </div>
86
+ <div class="col-sm-2 form-group">
87
+ <label class="font_normal_body">楼号</label>
88
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_building"
89
+ condition="f_building = '{}'" placeholder='楼号'>
90
+ </div>
91
+ <div class="col-sm-2 form-group">
92
+ <label class="font_normal_body">单元</label>
93
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_unit"
94
+ condition="f_unit = '{}'" placeholder='单元'>
95
+ </div>
96
+ <div class="col-sm-2 form-group">
97
+ <label class="font_normal_body">楼层</label>
98
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_floor"
99
+ condition="f_floor = '{}'" placeholder='楼层'>
100
+ </div>
101
+ <div class="col-sm-2 form-group">
102
+ <label class="font_normal_body">房间号</label>
103
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_room"
104
+ condition="f_room = '{}'" placeholder='房间号'>
105
+ </div>
73
106
  </div>
74
107
  </div>
75
108
  </criteria>
@@ -98,6 +131,9 @@
98
131
  <th>
99
132
  <nobr>绑定状态</nobr>
100
133
  </th>
134
+ <th>
135
+ <nobr>小区</nobr>
136
+ </th>
101
137
  <th>
102
138
  <nobr>客户地址</nobr>
103
139
  </th>
@@ -129,6 +165,9 @@
129
165
  <td :class="'back-blue'" style="text-align: center;">
130
166
  <nobr>{{row.f_band_state}}</nobr>
131
167
  </td>
168
+ <td :class="'back-blue'" style="text-align: center;">
169
+ <nobr>{{row.f_residential_area}}</nobr>
170
+ </td>
132
171
  <td :class="'back-blue'" style="text-align: center;">
133
172
  <nobr>{{row.f_address}}</nobr>
134
173
  </td>
@@ -172,6 +211,7 @@
172
211
  criteriaShow: false,
173
212
  orgCondtionStr: '',
174
213
  modelval: [],
214
+ residentialArea: [],
175
215
  printshow: false,
176
216
  all: false,
177
217
  fields: {},
@@ -197,6 +237,7 @@
197
237
  }
198
238
  },
199
239
  ready() {
240
+ this.getaddress()
200
241
  readySomething(this).then(() => {
201
242
  this.$emit('ready')
202
243
  }).catch((error) => {
@@ -211,6 +252,22 @@
211
252
  this.meterbrands.push({label: row.label,value: row.value.f_meter_brand})
212
253
  }
213
254
  },
255
+ async getaddress(){
256
+ console.log('开始获取小区')
257
+ let HttpReset = new HttpResetClass()
258
+ var data = await HttpReset.load('POST', 'api/af-revenue/sql/manage_getarealist', {
259
+ data: {
260
+ condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
261
+ }
262
+ }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
263
+ console.log('小区',data)
264
+ let house = []
265
+ for (let row of data.data){
266
+ console.log('开始保存小区')
267
+ house.push({label: row.f_residential_area, value: row.f_residential_area})
268
+ }
269
+ this.residentialArea = house
270
+ },
214
271
  //把数据库查询数据转换为下拉数据
215
272
  calculate(rows){
216
273
  let data = []
@@ -0,0 +1,178 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
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" >
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" >
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">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2">
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">
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
+ </div>
51
+ <div class="span" style = "float:right;">
52
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
53
+ <report-print id='gasprice' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
54
+ <report-excel id='gasprice'></report-excel>
55
+ </div>
56
+ </div>
57
+ </criteria>
58
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
59
+ <table class='tableprint' style="margin: 0px auto">
60
+ <thead>
61
+ <tr>
62
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
63
+ <h3 style="text-align: center">材料使用明细报表</h3>
64
+ </th>
65
+ </tr>
66
+ <tr>
67
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
68
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
69
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
70
+ 打印时间:{{{$parent.printTime}}}
71
+ </th>
72
+ </tr>
73
+ <tr>
74
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
75
+ <div>
76
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
77
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
78
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
79
+ </div>
80
+ </th>
81
+ </tr>
82
+ </thead>
83
+ <tr>
84
+ <td :colspan='$parent.spans' class="noborder">
85
+ {{{ model.data.substring(26,model.data.length-8) }}}
86
+ </td>
87
+ </tr>
88
+ <tfoot>
89
+ <tr style="text-align: left">
90
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
91
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
92
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
93
+ </tr>
94
+ </tfoot>
95
+ </table>
96
+ </div>
97
+ </criteria-paged>
98
+ </div>
99
+ </template>
100
+
101
+ <script>
102
+ import { DataModel } from 'vue-client'
103
+ import co from 'co'
104
+ export default {
105
+ title: '收款日报表',
106
+ props: ['data'],
107
+ data () {
108
+ return {
109
+ printTime: this.$login.toStandardTimeString(),
110
+ depresid: [],
111
+ userresid: [],
112
+ f_orgid: this.$login.f.orgid,
113
+ f_depid: this.$login.f.depids,
114
+ f_operatorid: this.$login.f.id,
115
+ operatorid: [],
116
+ depid: [],
117
+ orgname: '',
118
+ depname: '',
119
+ operatorname: '',
120
+ orgCondtionStr: '1=1',
121
+ model: new DataModel('api/af-revenue/report/MaterialUsageDetails', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
122
+ f_orgid: 'this.model.f_orgid'}),
123
+ reportStr: null,
124
+ spans: 0
125
+ }
126
+ },
127
+ ready () {
128
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
129
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
130
+ },
131
+ methods: {
132
+ searchData () {
133
+ this.$refs.paged.$refs.criteria.search()
134
+ },
135
+ selfSearch (args) {
136
+ this.printTime = this.$login.toStandardTimeString()
137
+ let orgcondition = '1=1'
138
+ if (this.f_orgid && this.f_orgid[0]) {
139
+ orgcondition += ` and f_orgid in ('${this.f_orgid}')`
140
+ }
141
+ if (this.f_depid && this.f_depid[0]) {
142
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
143
+ }
144
+ if(this.f_operatorid && this.f_operatorid[0]) {
145
+ orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
146
+ }
147
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
148
+ this.$refs.paged.search(args)
149
+ },
150
+ getRes (obj) {
151
+ this.orgname = obj.res[0]
152
+ this.depresid = obj.resids
153
+ this.f_orgid = obj.resids
154
+ },
155
+ getdep (obj, val) {
156
+ this.depname = val[0]
157
+ this.userresid = obj
158
+ this.f_depid = obj
159
+ },
160
+ getuser ( obj, val) {
161
+ this.operatorname = val[0]
162
+ this.f_operatorid = obj
163
+ }
164
+ },
165
+ watch: {
166
+ 'model.data' (val) {
167
+ this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
168
+ }
169
+ },
170
+ computed: {
171
+ }
172
+ }
173
+ </script>
174
+ <style scoped>
175
+ .noborder{
176
+ border: none;
177
+ }
178
+ </style>
@@ -0,0 +1,9 @@
1
+ // 分公司特殊组件页面注册
2
+ import Vue from 'vue'
3
+
4
+ export default function () {
5
+ // 气价分组汇总表
6
+ Vue.component('manage-material-usage-details', (resolve) => {
7
+ require(['./ManageMaterialUsageDetails'], resolve)
8
+ })
9
+ }
@@ -287,6 +287,13 @@
287
287
  :options='$parent.$parent.safe' placeholder='请选择'
288
288
  close-on-select></v-select>
289
289
  </div>
290
+ <div class="col-sm-2 form-group">
291
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;壁挂炉</label>
292
+ <v-select :value.sync="model.isbgl" v-model="model.isbgl"
293
+ :options='$parent.$parent.bgl' placeholder='请选择'
294
+ condition="isbgl = '{}'"
295
+ close-on-select></v-select>
296
+ </div>
290
297
  <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes"></res-select-group>
291
298
  </div>
292
299
  </div>
@@ -348,6 +355,9 @@
348
355
  <th>
349
356
  <nobr>缴费类型</nobr>
350
357
  </th>
358
+ <th>
359
+ <nobr>是否壁挂炉</nobr>
360
+ </th>
351
361
  <th>
352
362
  <nobr>银行户名</nobr>
353
363
  </th>
@@ -426,6 +436,9 @@
426
436
  <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
427
437
  <nobr>{{row.f_cost_type}}</nobr>
428
438
  </td>
439
+ <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
440
+ <nobr>{{row.isbgl}}</nobr>
441
+ </td>
429
442
  <td :class="row.f_user_state !== '正常'? 'back-red' : 'back-blue'" style="text-align: center;">
430
443
  <nobr><span v-if="row.f_cost_type =='银行代扣'">{{row.f_bank_accopen}}</span></nobr>
431
444
  </td>
@@ -919,6 +932,9 @@
919
932
 
920
933
  return [{label: '全部', value: ''}, ...rs]
921
934
  },
935
+ bgl(){
936
+ return [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}]
937
+ },
922
938
  userstates() {
923
939
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('客户状态')]
924
940
  },