manage-client 4.1.73 → 4.1.74-weinan

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/.eslintrc.js CHANGED
@@ -15,6 +15,8 @@ module.exports = {
15
15
  // allow debugger during development
16
16
  'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
17
17
  // 必须使用全等
18
- 'eqeqeq': 0
18
+ 'eqeqeq': 0,
19
+ "import/no-unresolved": ["error", { "caseSensitive": true }],
20
+ "camelcase": "off"
19
21
  }
20
22
  }
@@ -6,7 +6,7 @@ const proxyMiddleware = require('http-proxy-middleware')
6
6
  const app = express()
7
7
  const compiler = webpack(config)
8
8
 
9
- const server = 'http://192.168.50.67:31567/'
9
+ const server = 'http://172.168.1.11:8400/#'
10
10
  const local = 'http://127.0.0.1:9026/'
11
11
  const proxyTable = {
12
12
  '/rs/logic/exportfile': {
@@ -15,24 +15,24 @@ const proxyTable = {
15
15
  '/dataManage': {
16
16
  target: server
17
17
  },
18
- '/api/af-revenue/sql/': {
19
- pathRewrite: {
20
- '^/api/af-revenue': '/'
21
- },
22
- target: local
23
- },
24
- '/api/af-revenue/report/': {
25
- pathRewrite: {
26
- '^/api/af-revenue': '/'
27
- },
28
- target: local
29
- },
30
- '/api/af-revenue/logic': {
31
- pathRewrite: {
32
- '^/api/af-revenue': '/'
33
- },
34
- target: local
35
- },
18
+ // '/api/af-revenue/sql/': {
19
+ // pathRewrite: {
20
+ // '^/api/af-revenue': '/'
21
+ // },
22
+ // target: local
23
+ // },
24
+ // '/api/af-revenue/report/': {
25
+ // pathRewrite: {
26
+ // '^/api/af-revenue': '/'
27
+ // },
28
+ // target: local
29
+ // },
30
+ // '/api/af-revenue/logic': {
31
+ // pathRewrite: {
32
+ // '^/api/af-revenue': '/'
33
+ // },
34
+ // target: local
35
+ // },
36
36
  '/api': {
37
37
  target: server
38
38
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.73",
3
+ "version": "4.1.74-weinan",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -67,7 +67,7 @@
67
67
  "style": "0.0.3",
68
68
  "style-loader": "^0.20.3",
69
69
  "swiper": "^5.4.5",
70
- "system-clients": "4.0.12",
70
+ "system-clients": "3.2.87",
71
71
  "ldap-clients": "3.0.96",
72
72
  "url-loader": "^0.5.7",
73
73
  "vue-amap": "0.5.10",
@@ -0,0 +1,200 @@
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'"
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'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2 form-group">
28
+ <label class="font_normal_body">用户类型</label>
29
+ <v-select :value.sync="model.f_user_type"
30
+ v-model="model.f_user_type"
31
+ multiple
32
+ :options='$parent.$parent.user_type' placeholder='请选择'
33
+ condition="f_user_type in {}"
34
+ close-on-select></v-select>
35
+ </div>
36
+ <div class="col-sm-2 form-group">
37
+ <label class="font_normal_body">用气性质</label>
38
+ <v-select :value.sync="model.f_gasproperties"
39
+ v-model="model.f_gasproperties"
40
+ multiple
41
+ :options='$parent.$parent.gasproperties' placeholder='请选择'
42
+ condition="f_gasproperties in {}"
43
+ close-on-select></v-select>
44
+ </div>
45
+ <res-select-group :show-component="$parent.$parent.resshow"
46
+ :selectin="true" :initres="$parent.$parent.initres"
47
+ :cascade =true @re-res="$parent.$parent.getRes"
48
+ v-ref:sel>
49
+ </res-select-group>
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='3cm' 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;<br/>
70
+ <!--收费员:{{// $parent.operatorname}}-->
71
+ </th>
72
+ </tr>
73
+ <tr >
74
+ <th v-if="false" :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
75
+ <div>
76
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
77
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
78
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$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
+ {{{ $parent.reportStr}}}
97
+ </div>
98
+ </criteria-paged>
99
+ </div>
100
+ </template>
101
+
102
+ <script>
103
+ import { DataModel } from 'vue-client'
104
+ import co from 'co'
105
+ export default {
106
+ title: '客服中心报账单',
107
+ props: ['data'],
108
+ data () {
109
+ return {
110
+ printTime: this.$login.toStandardTimeString(),
111
+ depresid: [],
112
+ userresid: [],
113
+ f_orgid: this.$login.f.orgid,
114
+ f_depid: this.$login.f.depids,
115
+ // f_operatorid: this.$login.f.id,
116
+ operatorid: [],
117
+ depid: [],
118
+ orgname: '',
119
+ depname: '',
120
+ criteriaShow: false,
121
+ operatorname: '',
122
+ orgCondtionStr: '1=1',
123
+ f_user_type: '',
124
+ f_gasproperties: '',
125
+ f_state: ['有效'],
126
+ model: new DataModel('api/af-revenue/report/rh_charge', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
127
+ f_orgid: 'this.model.f_orgid'}),
128
+ reportStr: null,
129
+ resshow: ['company', 'department', 'operator'],
130
+ spans: 0,
131
+ initres: {
132
+ org: [this.$login.f.orgid],
133
+ dep: [],
134
+ user: []
135
+ }
136
+ }
137
+ },
138
+ ready () {
139
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString()
140
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString()
141
+ },
142
+ methods: {
143
+ searchData () {
144
+ this.$refs.paged.$refs.criteria.search()
145
+ },
146
+ selfSearch (args) {
147
+ this.printTime = this.$login.toStandardTimeString()
148
+ let orgcondition = args.condition
149
+ let orgstr = this.orgCondtionStr
150
+ orgcondition = orgcondition + orgstr
151
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
152
+ this.$refs.paged.search(args)
153
+ },
154
+
155
+ hidden () {
156
+ this.criteriaShow = !this.criteriaShow
157
+ },
158
+ getRes (condition, obj) {
159
+ this.orgCondtionStr = condition
160
+ this.orgname = obj.orgnames[0]
161
+ this.depname = obj.depnames[0]
162
+ this.operatorname = obj.operatornames[0]
163
+ },
164
+ getdep (obj, val) {
165
+ this.depname = val[0]
166
+ this.userresid = obj
167
+ this.f_depid = obj
168
+ },
169
+ getuser ( obj, val) {
170
+ this.operatorname = val[0]
171
+ this.f_operatorid = obj
172
+ }
173
+ },
174
+ watch: {
175
+ 'model.data' (val) {
176
+ let len=0
177
+ let a=val.split('</tr>')
178
+ for(let i=0;i<a.length;i++){
179
+ if(a[i].split('</td>').length-1>len){
180
+ len=a[i].split('</td>').length-1
181
+ }
182
+ }
183
+ this.spans = len
184
+ }
185
+ },
186
+ computed: {
187
+ user_type () {
188
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
189
+ },
190
+ gasproperties () {
191
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用气性质')]
192
+ }
193
+ }
194
+ }
195
+ </script>
196
+ <style scoped>
197
+ .noborder{
198
+ border: none;
199
+ }
200
+ </style>
@@ -676,7 +676,9 @@ export default {
676
676
  'f_network_valve': '自动阀控',
677
677
  'f_defendcard': '防盗卡号',
678
678
  'f_factory_date': '生产年月',
679
- 'f_meteread_date': '最后通讯时间'
679
+ 'f_meteread_date': '最后通讯时间',
680
+ 'f_xiaohushijian': '销户时间',
681
+ 'f_xiaohuyuanyin': '销户原因'
680
682
  // 'latest_f_pregas' : '最后购气量',
681
683
  // 'latest_f_collection':'最后购气金额',
682
684
  // 'f_max_operate_date': '最后购气日期'
@@ -315,6 +315,18 @@
315
315
  close-on-select>
316
316
  </v-select>
317
317
  </div>
318
+ <div class="col-sm-2 form-group">
319
+ <label for="f_user_usenature" class="font_normal_body" title="参数:票据类型查询">票据类型</label>
320
+ <v-select id="print"
321
+ v-model="model.f_bill_style"
322
+ placeholder='请选择'
323
+ :value.sync="model.f_bill_style"
324
+ :options='$parent.$parent.billStyles'
325
+ condition="f_bill_style = '{}'"
326
+ close-on-select
327
+ clear-button>
328
+ </v-select>
329
+ </div>
318
330
  </div>
319
331
  </div>
320
332
  </div>
@@ -352,6 +364,9 @@
352
364
  <data-order field="f_operate_date" name="收费日期"
353
365
  :order.sync="$parent.$parent.$parent.orderFields.f_operate_date"></data-order>
354
366
  </th>
367
+ <th>
368
+ <nobr>票据类型</nobr>
369
+ </th>
355
370
  <th>
356
371
  <nobr>状态</nobr>
357
372
  </th>
@@ -400,6 +415,9 @@
400
415
  <td style="text-align: center;">
401
416
  <nobr>{{row.f_operate_date}}</nobr>
402
417
  </td>
418
+ <td style="text-align: center;">
419
+ <nobr>{{row.f_bill_style}}</nobr>
420
+ </td>
403
421
  <td style="text-align: center;">
404
422
  <nobr>{{row.f_state}}</nobr>
405
423
  </td>
@@ -850,6 +868,9 @@
850
868
  },
851
869
  bank(){
852
870
  return [{label: '全部', value: ''}, ...this.$appdata.getParam('银行名称')]
871
+ },
872
+ billStyles(){
873
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('票据类型查询')]
853
874
  }
854
875
  }
855
876
  }
@@ -72,7 +72,7 @@ export default{
72
72
  'f_delaypay': '违约金', 'f_comments': '备注', 'f_operator': '操作员', 'f_depname': '部门', 'f_orgname': '公司',
73
73
  'f_yucun': '预存金额', 'f_card_id': '卡号', 'f_stairamount1': '一阶气量', 'f_stair1price': '一阶单价', 'f_stair1fee': '一阶气费',
74
74
  'f_stair2amount': '二阶气量', 'f_stair2price': '二阶单价', 'f_stair2fee': '二阶气费',
75
- 'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_inputtor': '抄表员', 'f_residential_area': '小区', 'f_serial_number': '业务单号'
75
+ 'f_stair3amount': '三阶气量', 'f_stair3price': '三阶单价', 'f_stair3fee': '三阶气费', 'f_inputtor': '抄表员', 'f_residential_area': '小区', 'f_serial_number': '业务单号', 'f_bill_style': '票据类型'
76
76
  },
77
77
  pricetypeGasConfig: {
78
78
  'f_price': '价格类型', 'f_gas': '当日售气量', 'f_money': '当日售气金额'