manage-client 3.1.48 → 3.1.51

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.
@@ -27,16 +27,27 @@
27
27
  >
28
28
  </datepicker>
29
29
  </div>
30
- <div class="col-sm-2 form-group ">
31
- <label class="font_normal_body">客户编号</label>
32
- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
33
- condition="f_userinfo_code = '{}' " placeholder="客户编号">
34
- </div>
35
- <div class="col-sm-2 form-group">
36
- <label class="font_normal_body">客户名称</label>
37
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
38
- condition="f_user_name like '%{}%'" placeholder="客户名称">
30
+ <div class="col-sm-3 form-group" >
31
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
32
+ <right-tree id="org"
33
+ @re-res="$parent.$parent.getRes" style="width: 60%">
34
+ </right-tree>
39
35
  </div>
36
+ <!-- <res-select-group-->
37
+ <!-- :initres="$parent.$parent.initres"-->
38
+ <!-- :show-component="['company']"-->
39
+ <!-- @re-res="$parent.$parent.getRes" v-ref:sel>-->
40
+ <!-- </res-select-group>-->
41
+ <!-- <div class="col-sm-2 form-group ">-->
42
+ <!-- <label class="font_normal_body">客户编号</label>-->
43
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"-->
44
+ <!-- condition="f_userinfo_code = '{}' " placeholder="客户编号">-->
45
+ <!-- </div>-->
46
+ <!-- <div class="col-sm-2 form-group">-->
47
+ <!-- <label class="font_normal_body">客户名称</label>-->
48
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"-->
49
+ <!-- condition="f_user_name like '%{}%'" placeholder="客户名称">-->
50
+ <!-- </div>-->
40
51
 
41
52
  <div class="span" style="float:right;">
42
53
  <button class="button_search button_spacing" @click="search()">查询</button>
@@ -48,7 +59,7 @@
48
59
  :footer="$parent.$parent.footer"
49
60
  :header="$parent.$parent.other"
50
61
  sqlurl="rs/logic/exportfile"
51
- sql-name="getSellinggasList"
62
+ sql-name="getSellinggasListNew"
52
63
  template-name='气费收款情况导出'
53
64
  :choose-col="true"></export-excel>
54
65
  <print-data :sum-field="$parent.$parent.getfield" :model="$parent.model" :field="$parent.$parent.getfield"
@@ -59,20 +70,20 @@
59
70
  <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>
60
71
  </div>
61
72
  </div>
62
- <div class="row" v-show="$parent.$parent.criteriaShow">
63
- <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
64
- <div class="col-sm-2 form-group">
65
- <label class="font_normal_body">客户电话</label>
66
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
67
- condition="f_user_phone like '%{}%'" placeholder="客户电话">
68
- </div>
69
- <div class="col-sm-2 form-group">
70
- <label class="font_normal_body">客户地址</label>
71
- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
72
- condition="f_address like '%{}%'" placeholder='客户地址'>
73
- </div>
73
+ <!-- <div class="row" v-show="$parent.$parent.criteriaShow">-->
74
+ <!-- -->
75
+ <!-- <div class="col-sm-2 form-group">-->
76
+ <!-- <label class="font_normal_body">客户电话</label>-->
77
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"-->
78
+ <!-- condition="f_user_phone like '%{}%'" placeholder="客户电话">-->
79
+ <!-- </div>-->
80
+ <!-- <div class="col-sm-2 form-group">-->
81
+ <!-- <label class="font_normal_body">客户地址</label>-->
82
+ <!-- <input type="text" style="width:60%" class="input_search" v-model="model.f_address"-->
83
+ <!-- condition="f_address like '%{}%'" placeholder='客户地址'>-->
84
+ <!-- </div>-->
74
85
 
75
- </div>
86
+ <!-- </div>-->
76
87
  </div>
77
88
  </criteria>
78
89
 
@@ -200,7 +211,7 @@ import {HttpResetClass, PagedList} from 'vue-client'
200
211
  defaultPrint: ['f_account', 'f_pre_pay', 'f_month']
201
212
  },
202
213
  footer:[],
203
- model: new PagedList('rs/sql/getSellinggasListNew', 20,{startDate: 'this.model.startDate', endDate: 'this.model.endDate'},{
214
+ model: new PagedList('rs/sql/getSellinggasListNew', 20,{startDate: 'this.model.startDate', endDate: 'this.model.endDate', temp: 'this.model.temp'},{
204
215
  f_last_balance:0,
205
216
  f_account:0,
206
217
  f_wechat_pay:0,
@@ -210,6 +221,8 @@ import {HttpResetClass, PagedList} from 'vue-client'
210
221
  f_sum_pay:0,
211
222
  f_balance:0
212
223
  }),
224
+ f_orgid: '',
225
+ orgname: '',
213
226
  criteriaShow: false,
214
227
  orgCondtionStr: '',
215
228
  modelval: [],
@@ -258,16 +271,28 @@ import {HttpResetClass, PagedList} from 'vue-client'
258
271
 
259
272
 
260
273
  selfSearch(args) {
261
- args.condition = `${args.condition}` + this.orgCondtionStr
262
- new HttpResetClass().load('POST','rs/logic/getSellinggasListNewLogic',
263
- {
264
- condition:args.condition,
265
- startDate:args.model.startDate,
266
- endDate:args.model.endDate
267
- }).then(res =>{
268
- this.model.search(args.condition, args.model)
269
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
270
- })
274
+ let orgcondition = '1=1'
275
+ if(this.f_orgid[0]){
276
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
277
+ }
278
+ args.condition = orgcondition
279
+ let s = new Date(new Date().getFullYear(), new Date().getMonth(), 1)
280
+ let e = new Date(args.model.endDate)
281
+ if (s <= e) {
282
+ args.model.temp = true
283
+ }else {
284
+ args.model.temp = false
285
+ }
286
+ this.model.search(args.condition, args.model)
287
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
288
+ // new HttpResetClass().load('POST','rs/logic/getSellinggasListNewLogic',
289
+ // {
290
+ // condition:args.condition,
291
+ // startDate:args.model.startDate,
292
+ // endDate:args.model.endDate
293
+ // }).then(res =>{
294
+ //
295
+ // })
271
296
  },
272
297
  clear() {
273
298
  //清空部门和人员
@@ -285,9 +310,13 @@ import {HttpResetClass, PagedList} from 'vue-client'
285
310
  hidden() {
286
311
  this.criteriaShow = !this.criteriaShow
287
312
  },
288
- getRes(obj) {
289
- console.log(obj,"========")
290
- this.orgCondtionStr = obj
313
+ // getRes(obj) {
314
+ // console.log(obj,"========")
315
+ // this.orgCondtionStr = obj
316
+ // },
317
+ getRes (obj) {
318
+ this.orgname = obj.res[0]
319
+ this.f_orgid = obj.resids
291
320
  },
292
321
  stamp() {
293
322
  this.all = false
@@ -356,7 +385,8 @@ import {HttpResetClass, PagedList} from 'vue-client'
356
385
  return {
357
386
  startDate: this.$refs.paged.$refs.cri.model.startDate,
358
387
  endDate: this.$refs.paged.$refs.cri.model.endDate,
359
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr
388
+ condition: this.$refs.paged.model.condition,
389
+ temp: this.$refs.paged.$refs.cri.model.temp
360
390
  }
361
391
  },
362
392
  getfield() {
@@ -177,7 +177,7 @@
177
177
  <nobr>{{row.f_real_amount}}</nobr>
178
178
  </td>
179
179
  <td style="text-align: center;">
180
- <nobr>{{row.f_total_gas}}</nobr>
180
+ <nobr>{{row.totalgas}}</nobr>
181
181
  </td>
182
182
  <td style="text-align: center;">
183
183
  <nobr>{{row.f_yuliang}}</nobr>
package/src/main.js CHANGED
@@ -1,66 +1,66 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
-
5
- // import { sale } from 'sale-client'
6
- import { system } from 'system-clients'
7
- import { ldap } from 'ldap-clients'
8
- import saleManage from './saleManage'
9
- import webmeterManage from './webmeterManage'
10
- import reportManage from './reportManage'
11
- import newmanage from './newmanage'
12
- import ManageHome from './ManageHome'
13
- import echarts from 'echarts'
14
- import AMap from 'vue-amap'
15
-
16
- Vue.config.silent = true
17
- // Vue.mmType = 'AES'
18
-
19
- Vue.use(AMap);
20
-
21
- // 初始化vue-amap
22
- AMap.initAMapApiLoader({
23
- // 高德key
24
- key: '3cec9ae8e2349207f7ac29279e3f4abe',
25
- // 插件集合 (插件按需引入)
26
- plugin: [
27
- "AMap.Autocomplete", //输入提示插件
28
- "AMap.PlaceSearch", //POI搜索插件
29
- "AMap.Scale", //右下角缩略图插件 比例尺
30
- "AMap.OverView", //地图鹰眼插件
31
- "AMap.ToolBar", //地图工具条
32
- "AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
33
- "AMap.PolyEditor", //编辑 折线多,边形
34
- "AMap.CircleEditor", //圆形编辑器插件
35
- "AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
36
- ],
37
- uiVersion: "1.0"
38
- });
39
- /** **************************通用组件******************************/
40
-
41
- Vue.prototype.$echarts = echarts
42
- all()
43
- // sale()
44
- ldap()
45
- system(false)
46
- saleManage()
47
-
48
- webmeterManage()
49
- ManageHome()
50
- newmanage()
51
- reportManage()
52
- require('system-clients/src/styles/less/bootstrap.less')
53
- require('./components/qinhua/Style/qinhuaStyle.less')
54
- // require('./bootstrap/less/manageStyle/manageChile.less')
55
- // require('./bootstrap/less/manageStyle/safeStyle.less')
56
-
57
- //大屏展示要放开的样式
58
- // require('system-clients/src/styles/less/manageStyle/manageChile.less')
59
- // require('system-clients/src/styles/less/manageStyle/safeStyle.less')
60
- // require('system-clients/src/styles/less/manageStyle/manageStyle.less')
61
-
62
- new Vue({
63
- el: 'body',
64
- components: { App }
65
- })
66
-
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+
5
+ // import { sale } from 'sale-client'
6
+ import { system } from 'system-clients'
7
+ import { ldap } from 'ldap-clients'
8
+ import saleManage from './saleManage'
9
+ import webmeterManage from './webmeterManage'
10
+ import reportManage from './reportManage'
11
+ import newmanage from './newmanage'
12
+ import ManageHome from './ManageHome'
13
+ import echarts from 'echarts'
14
+ import AMap from 'vue-amap'
15
+
16
+ Vue.config.silent = true
17
+ // Vue.mmType = 'AES'
18
+
19
+ Vue.use(AMap);
20
+
21
+ // 初始化vue-amap
22
+ AMap.initAMapApiLoader({
23
+ // 高德key
24
+ key: '3cec9ae8e2349207f7ac29279e3f4abe',
25
+ // 插件集合 (插件按需引入)
26
+ plugin: [
27
+ "AMap.Autocomplete", //输入提示插件
28
+ "AMap.PlaceSearch", //POI搜索插件
29
+ "AMap.Scale", //右下角缩略图插件 比例尺
30
+ "AMap.OverView", //地图鹰眼插件
31
+ "AMap.ToolBar", //地图工具条
32
+ "AMap.MapType", //类别切换控件,实现默认图层与卫星图、实施交通图层之间切换的控制
33
+ "AMap.PolyEditor", //编辑 折线多,边形
34
+ "AMap.CircleEditor", //圆形编辑器插件
35
+ "AMap.Geolocation" //定位控件,用来获取和展示用户主机所在的经纬度位置
36
+ ],
37
+ uiVersion: "1.0"
38
+ });
39
+ /** **************************通用组件******************************/
40
+
41
+ Vue.prototype.$echarts = echarts
42
+ all()
43
+ // sale()
44
+ ldap()
45
+ system(false)
46
+ saleManage('liaoyuan')
47
+
48
+ webmeterManage()
49
+ ManageHome()
50
+ newmanage()
51
+ reportManage()
52
+ require('system-clients/src/styles/less/bootstrap.less')
53
+ require('./components/qinhua/Style/qinhuaStyle.less')
54
+ // require('./bootstrap/less/manageStyle/manageChile.less')
55
+ // require('./bootstrap/less/manageStyle/safeStyle.less')
56
+
57
+ //大屏展示要放开的样式
58
+ // require('system-clients/src/styles/less/manageStyle/manageChile.less')
59
+ // require('system-clients/src/styles/less/manageStyle/safeStyle.less')
60
+ // require('system-clients/src/styles/less/manageStyle/manageStyle.less')
61
+
62
+ new Vue({
63
+ el: 'body',
64
+ components: { App }
65
+ })
66
+