manage-client 4.1.120 → 4.1.122

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.
@@ -6,115 +6,102 @@ const proxyMiddleware = require('http-proxy-middleware')
6
6
  const app = express()
7
7
  const compiler = webpack(config)
8
8
 
9
- const server = 'https://yc.aofengcloud.com:31467'
9
+ const server = 'http://192.168.50.67:31567/'
10
10
  const local = 'http://127.0.0.1:9026/'
11
11
  const proxyTable = {
12
+ '/rs/logic/exportfile': {
13
+ target: server
14
+ },
12
15
  '/dataManage': {
13
- target: server,
14
- changeOrigin: true,
15
- secure: false
16
+ target: server
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
16
35
  },
17
- // ... existing code ...
18
36
  '/api': {
19
- target: server,
20
- changeOrigin: true,
21
- secure: false
37
+ target: server
38
+ },
39
+ '/rs/sql/chargeQuery_by_gasproperties': {
40
+ target: server
41
+ },
42
+ '/rs/logic/chargeQuery_by_gasproperties_line': {
43
+ target: server
22
44
  },
23
45
  '/files': {
24
- target: server,
25
- changeOrigin: true,
26
- secure: false
46
+ target: server
27
47
  },
28
48
  // 查找资源服务数据
29
49
  '/rs/search': {
30
- target: server,
31
- changeOrigin: true,
32
- secure: false
50
+ target: server
33
51
  },
34
52
  // 查找资源服务数据
35
53
  '/rs/logic/getLogin': {
36
- target: server,
37
- changeOrigin: true,
38
- secure: false
54
+ target: server
39
55
  },
40
56
  // 查找资源服务数据
41
57
  '/rs/logic/getInitData': {
42
- target: server,
43
- changeOrigin: true,
44
- secure: false
58
+ target: server
45
59
  },
46
60
  '/rs/logic/getSaleInitData': {
47
- target: server,
48
- changeOrigin: true,
49
- secure: false
61
+ target: server
50
62
  },
51
63
  // 用户登录服务地址
52
64
  '/rs/user': {
53
- target: server,
54
- changeOrigin: true,
55
- secure: false
65
+ target: server
56
66
  },
57
67
  '/rs/path/getParams': {
58
- target: server,
59
- changeOrigin: true,
60
- secure: false
68
+ target: server
61
69
  },
62
70
  '/rs/data': {
63
- target: server,
64
- changeOrigin: true,
65
- secure: false
71
+ target: server
66
72
  },
67
73
  '/rs/license': {
68
- target: server,
69
- changeOrigin: true,
70
- secure: false
74
+ target: server
71
75
  },
72
76
  '/rs/db': {
73
- target: server,
74
- changeOrigin: true,
75
- secure: false
77
+ target: server
76
78
  },
77
79
  '/excel': {
78
- target: server,
79
- changeOrigin: true,
80
- secure: false
80
+ target: server
81
81
  },
82
82
  '/rs/config': {
83
- target: server,
84
- changeOrigin: true,
85
- secure: false
83
+ target: server
86
84
  },
87
85
  '/rs/sql/getLicenseById': {
88
- target: server,
89
- changeOrigin: true,
90
- secure: false
86
+ target: server
91
87
  },
92
88
  '/rs/report': {
93
- target: server,
94
- changeOrigin: true,
95
- secure: false
89
+ target: server
96
90
  },
97
91
  '/rs/vue': {
98
- target: server,
99
- changeOrigin: true,
100
- secure: false
92
+ target: server
101
93
  },
102
94
  '/rs/file': {
103
- target: server,
104
- changeOrigin: true,
105
- secure: false
95
+ target: server
106
96
  },
107
97
  '/rs/sql/singleTable': {
108
- target: server,
109
- changeOrigin: true,
110
- secure: false
98
+ target: server
111
99
  },
112
100
  '/rs': {
113
- target: server,
114
- changeOrigin: true,
115
- secure: false
101
+ target: server
116
102
  }
117
103
  }
104
+
118
105
  const devMiddleware = require('webpack-dev-middleware')(compiler, {
119
106
  publicPath: config.output.publicPath,
120
107
  stats: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.120",
3
+ "version": "4.1.122",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,252 @@
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
+ <res-select-group :show-component="$parent.$parent.resshow"
28
+ :selectin="true" :initres="$parent.$parent.initres"
29
+ :cascade =true @re-res="$parent.$parent.getRes" v-ref:sel>
30
+ </res-select-group>
31
+ <div class="col-sm-2 form-group">
32
+ <label class="font_normal_body" title="参数:报表1收费类型">收费类型</label>
33
+ <v-select :value.sync="$parent.$parent.f_charge_type"
34
+ v-ref:f_charge_type
35
+ v-model="$parent.$parent.f_charge_type"
36
+ :options='$parent.$parent.chargeTypes'
37
+ placeholder='请选择'
38
+ :multiple="true">
39
+ </v-select>
40
+ </div>
41
+ <div class="col-sm-2 form-group">
42
+ <label class="font_normal_body" title="参数:报表1用气性质">用气性质</label>
43
+ <v-select :value.sync="$parent.$parent.f_gasproperties"
44
+ v-ref:gasproperties
45
+ v-model="$parent.$parent.f_gasproperties"
46
+ :options='$parent.$parent.gasproperties'
47
+ placeholder='请选择'
48
+ :multiple="true">
49
+ </v-select>
50
+ </div>
51
+ <div class="col-sm-2 form-group">
52
+ <label class="font_normal_body" title="参数:付款方式">收费方式</label>
53
+ <v-select :value.sync="$parent.$parent.f_payment"
54
+ v-ref:payment
55
+ v-model="$parent.$parent.f_payment"
56
+ :options='$parent.$parent.payments'
57
+ placeholder='请选择'
58
+ :multiple="true">
59
+ </v-select>
60
+ </div>
61
+ </div>
62
+ <div class="span" style = "float:right;">
63
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
64
+ <report-print id='gasprice' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
65
+ <report-excel id='gasprice'></report-excel>
66
+ </div>
67
+ </div>
68
+ </criteria>
69
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
70
+ <table class='tableprint' style="margin: 0px auto">
71
+ <thead>
72
+ <tr>
73
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
74
+ <h3 style="text-align: center">气价分组报表</h3>
75
+ </th>
76
+ </tr>
77
+ <tr>
78
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
79
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
80
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;<br/>
81
+ <!--打印时间:{{{$parent.printTime}}}-->
82
+ 打印时间:{{$parent.printTime}}
83
+ <!--收费员:{{// $parent.operatorname}}-->
84
+ </th>
85
+ </tr>
86
+ <tr>
87
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
88
+ <div>
89
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.orgname">公司:{{$parent.orgname}}</span>
90
+ <span v-show="$parent.depname"> 部门:{{$parent.depname}}</span>
91
+ <span style="font-weight: normal;text-align: center;margin:5px 15px" v-show="$parent.operatorname">人员:{{$parent.operatorname}}</span>
92
+ </div>
93
+ </th>
94
+ </tr>
95
+ </thead>
96
+ <tr>
97
+ <td :colspan='$parent.spans' class="noborder">
98
+ {{{ model.data.substring(26,model.data.length-8) }}}
99
+ </td>
100
+ </tr>
101
+ <tfoot>
102
+ <tr style="text-align: left">
103
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
104
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
105
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
106
+ </tr>
107
+ </tfoot>
108
+ </table>
109
+ {{{ $parent.reportStr }}}
110
+ </div>
111
+ </criteria-paged>
112
+ </div>
113
+ </template>
114
+
115
+ <script>
116
+ import { DataModel } from 'vue-client'
117
+ import co from 'co'
118
+
119
+ export default {
120
+ title: '气价分组报表',
121
+ props: ['data'],
122
+ data () {
123
+ return {
124
+ printTime: this.$login.toStandardTimeString(),
125
+ depresid: [],
126
+ userresid: [],
127
+ f_orgid: this.$login.f.orgid,
128
+ f_depid: this.$login.f.depids,
129
+ // f_operatorid: this.$login.f.id,
130
+ operatorid: [],
131
+ depid: [],
132
+ orgname: '',
133
+ depname: '',
134
+ f_charge_type: '',
135
+ f_gasproperties: '',
136
+ f_payment: '',
137
+ criteriaShow: false,
138
+ operatorname: '',
139
+ orgCondtionStr: '1=1',
140
+ model: new DataModel('api/af-revenue/report/jhPriceReport', {
141
+ startDate: 'this.model.startDate',
142
+ endDate: 'this.model.endDate',
143
+ f_orgid: 'this.model.f_orgid',
144
+ f_charge_type: 'this.model.f_charge_type',
145
+ f_gasproperties: 'this.model.f_gasproperties',
146
+ f_payment: 'this.model.f_payment'
147
+ }),
148
+ reportStr: null,
149
+ resshow: ['company', 'department', 'operator'],
150
+ spans: 0,
151
+ initres: {
152
+ org: [this.$login.f.orgid],
153
+ dep: [],
154
+ user: []
155
+ }
156
+ }
157
+ },
158
+ ready () {
159
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
160
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
161
+ console.log(this.$login.f)
162
+ },
163
+ methods: {
164
+ searchData () {
165
+ this.$refs.paged.$refs.criteria.search()
166
+ },
167
+ appendCondition (data) {
168
+ let stringValue = '('
169
+ for (let i = 0; i < data.length; i++) {
170
+ if (data[i]) {
171
+ if (i === data.length - 1) {
172
+ stringValue = stringValue + "'" + data[i] + "'"
173
+ } else {
174
+ stringValue = stringValue + "'" + data[i] + "',"
175
+ }
176
+ }
177
+ }
178
+ stringValue = stringValue + ')'
179
+ return stringValue
180
+ },
181
+ selfSearch (args) {
182
+ if (this.f_charge_type.length > 0) {
183
+ this.$refs.paged.$refs.criteria.model.f_charge_type = this.appendCondition(this.f_charge_type)
184
+ } else {
185
+ this.$refs.paged.$refs.criteria.model.f_charge_type = ''
186
+ }
187
+ if (this.f_gasproperties.length > 0) {
188
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = this.appendCondition(this.f_gasproperties)
189
+ } else {
190
+ this.$refs.paged.$refs.criteria.model.f_gasproperties = ''
191
+ }
192
+ if (this.f_payment.length > 0) {
193
+ this.$refs.paged.$refs.criteria.model.f_payment = this.appendCondition(this.f_payment)
194
+ } else {
195
+ this.$refs.paged.$refs.criteria.model.f_payment = ''
196
+ }
197
+ this.printTime = this.$login.toStandardTimeString()
198
+ let orgcondition = '1=1'
199
+ let orgstr = this.orgCondtionStr
200
+ orgcondition = orgcondition + orgstr
201
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
202
+ this.$refs.paged.search(args)
203
+ },
204
+ hidden () {
205
+ this.criteriaShow = !this.criteriaShow
206
+ },
207
+ getRes (condition, obj) {
208
+ this.orgCondtionStr = condition
209
+ this.orgname = obj.orgnames[0]
210
+ this.depname = obj.depnames[0]
211
+ this.operatorname = obj.operatornames[0]
212
+ },
213
+ getdep (obj, val) {
214
+ this.depname = val[0]
215
+ this.userresid = obj
216
+ this.f_depid = obj
217
+ },
218
+ getuser (obj, val) {
219
+ this.operatorname = val[0]
220
+ this.f_operatorid = obj
221
+ }
222
+ },
223
+ watch: {
224
+ 'model.data' (val) {
225
+ let len = 0
226
+ let a = val.split('</tr>')
227
+ for (let i = 0; i < a.length; i++) {
228
+ if (a[i].split('</td>').length - 1 > len) {
229
+ len = a[i].split('</td>').length - 1
230
+ }
231
+ }
232
+ this.spans = len
233
+ }
234
+ },
235
+ computed: {
236
+ payments () {
237
+ return this.$appdata.getParam('付款方式')
238
+ },
239
+ gasproperties () {
240
+ return this.$appdata.getParam('报表1用气性质')
241
+ },
242
+ chargeTypes () {
243
+ return this.$appdata.getParam('报表1收费类型')
244
+ }
245
+ }
246
+ }
247
+ </script>
248
+ <style scoped>
249
+ .noborder{
250
+ border: none;
251
+ }
252
+ </style>