manage-client 3.2.69 → 3.2.72

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.
File without changes
@@ -1,2 +1,2 @@
1
- #Wed Oct 20 10:54:09 CST 2021
2
- gradle.version=5.5
1
+ #Mon Oct 26 16:02:57 CST 2020
2
+ gradle.version=6.1.1
@@ -1,174 +1,176 @@
1
- var express = require('express')
2
- var webpack = require('webpack')
3
- var config = require('./webpack.dev.conf')
4
- var proxyMiddleware = require('http-proxy-middleware')
5
- // var httpProxy = require('http-proxy')
6
-
7
- var app = express()
8
- var compiler = webpack(config)
9
- // var proxy = httpProxy.createProxyServer()
10
-
11
- // Define HTTP proxies to your custom API backend
12
- // https://github.com/chimurai/http-proxy-middleware
13
- // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
- var shaoguan='http://119.146.1.106:8300/'
15
- var qtx='http://36.103.222.144:6300/'
16
- var bendi = 'http://127.0.0.1:8086/', fuwu_login = 'http://192.168.50.4:8400'
17
- var fuwu = 'http://192.168.50.4:8400'
18
- var system = 'http://192.168.50.4:8400'
19
- //192.168.
20
- // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
21
- // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
22
- var proxyTable = {
23
- '/rs/logic/exportfile': {
24
- target: fuwu
25
- },
26
- '/files': {
27
- target: fuwu
28
- },
29
- // 查找资源服务数据
30
- '/rs/search': {
31
- target: fuwu
32
- },
33
- // 查找资源服务数据
34
- '/rs/logic/getLogin': {
35
- target: fuwu
36
- },
37
- // 查找资源服务数据
38
- '/rs/logic/getInitData': {
39
- target: fuwu
40
- },
41
- '/rs/logic/getSaleInitData':{
42
- target: fuwu
43
- },
44
- // 用户登录服务地址
45
- '/rs/user': {
46
- target: fuwu
47
- },
48
- '/rs/path/getParams': {
49
- target: fuwu
50
- },
51
- '/rs/data': {
52
- target: fuwu
53
- },
54
- '/rs/license': {
55
- target: fuwu
56
- },
57
- '/rs/db': {
58
- target: fuwu
59
- },
60
- '/excel': {
61
- target: fuwu
62
- },
63
- '/rs/config': {
64
- target: fuwu
65
- },
66
- '/rs/sql/getLicenseById': {
67
- target: fuwu
68
- },
69
- '/rs/report': {
70
- target: fuwu
71
- },
72
- '/rs/vue': {
73
- target: fuwu
74
- },
75
- '/rs/file': {
76
- target: fuwu
77
- },
78
- '/rs/logic/SumSettleFileImport': {
79
- target: 'http://127.0.0.1:8080'
80
- },
81
- '/rs': {
82
- target: fuwu
83
- }
84
- }
85
-
86
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
87
- publicPath: config.output.publicPath,
88
- stats: {
89
- colors: true,
90
- chunks: false
91
- }
92
- })
93
-
94
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
95
- // force page reload when html-webpack-plugin template changes
96
- compiler.plugin('compilation', function (compilation) {
97
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
98
- hotMiddleware.publish({action: 'reload'})
99
- cb()
100
- })
101
- })
102
-
103
- // proxy api requests
104
- Object.keys(proxyTable).forEach(function (context) {
105
- var options = proxyTable[context]
106
- if (typeof options === 'string') {
107
- options = {target: options}
108
- }
109
- app.use(proxyMiddleware(context, options))
110
- })
111
-
112
- // handle fallback for HTML5 history API
113
- app.use(require('connect-history-api-fallback')())
114
- // app.use(function (req, res, next) {
115
- // res.header('Access-Control-Allow-Origin', '*')
116
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
117
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
118
- // res.header('X-Powered-By', '3,2,1')
119
- // res.header('Access-Control-Allow-Credentials', 'true')
120
- // res.header('Content-Type', 'application/json;charset=utf-8')
121
- // next()
122
- // })
123
-
124
- // serve webpack bundle output
125
- app.use(devMiddleware)
126
-
127
- // enable hot-reload and state-preserving
128
- // compilation error display
129
- app.use(hotMiddleware)
130
-
131
- // serve pure static assets
132
- app.use('/static', express.static('./static'))
133
-
134
- // app.all('/rs/*', function (req, res) {
135
- // proxy.web(req, res, {
136
- // target: 'http://127.0.0.1:8081/reports'
137
- // })
138
- // })
139
-
140
- // app.all('/rs/*', function (req, res) {
141
- // proxy.web(req, res, {
142
- // target: 'http://127.0.0.1:8081/ldap'
143
- // })
144
- // })
145
- // app.all('/excel/*', function (req, res) {
146
- // proxy.web(req, res, {
147
- // target: 'http://127.0.0.1:8081/charge'
148
- // })
149
- // })
150
-
151
- // app.all('/rs/*', function (req, res) {
152
- // proxy.web(req, res, {
153
- // target: 'http://127.0.0.1:82/charge'
154
- // })
155
- // })
156
-
157
- // app.all('/*', function (req, res) {
158
- // proxy.web(req, res, {
159
- // target: 'http://127.0.0.1:82'
160
- // })
161
- // })
162
- // app.all('/rs/user', function (req, res) {
163
- // proxy.web(req, res, {
164
- // target: 'http://127.0.0.1:82'
165
- // })
166
- // })
167
-
168
- module.exports = app.listen(8083, function (err) {
169
- if (err) {
170
- console.log(err)
171
- return
172
- }
173
- console.log('Listening at http://localhost:8085')
174
- })
1
+ var express = require('express')
2
+ var webpack = require('webpack')
3
+ var config = require('./webpack.dev.conf')
4
+ var proxyMiddleware = require('http-proxy-middleware')
5
+ // var httpProxy = require('http-proxy')
6
+
7
+ var app = express()
8
+ var compiler = webpack(config)
9
+ // var proxy = httpProxy.createProxyServer()
10
+
11
+ // Define HTTP proxies to your custom API backend
12
+ // https://github.com/chimurai/http-proxy-middleware
13
+ // var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
14
+ var shaoguan='http://119.146.1.106:8300/'
15
+ var qtx='http://36.103.222.144:6300/'
16
+ var bendi = 'http://127.0.0.1:8090'
17
+ // var bendi = 'http://172.168.1.11:9001'
18
+ var fuwu = 'http://192.168.50.4:8400'
19
+ // var fuwu = 'http://172.168.1.11:9001'
20
+ var system = 'http://192.168.50.4:8400'
21
+ //192.168.
22
+ // var str = 'http://127.0.0.1:8080/manage', str2 = 'http://192.168.50.199:8300'
23
+ // var str = 'http://192.168.10.233:8300', str2 = 'http://192.168.10.14:8300'
24
+ var proxyTable = {
25
+ '/rs/logic/exportfile': {
26
+ target: fuwu
27
+ },
28
+ '/files': {
29
+ target: fuwu
30
+ },
31
+ // 查找资源服务数据
32
+ '/rs/search': {
33
+ target: fuwu
34
+ },
35
+ // 查找资源服务数据
36
+ '/rs/logic/getLogin': {
37
+ target: fuwu
38
+ },
39
+ // 查找资源服务数据
40
+ '/rs/logic/getInitData': {
41
+ target: fuwu
42
+ },
43
+ '/rs/logic/getSaleInitData':{
44
+ target: fuwu
45
+ },
46
+ // 用户登录服务地址
47
+ '/rs/user': {
48
+ target: fuwu
49
+ },
50
+ '/rs/path/getParams': {
51
+ target: fuwu
52
+ },
53
+ '/rs/data': {
54
+ target: fuwu
55
+ },
56
+ '/rs/license': {
57
+ target: fuwu
58
+ },
59
+ '/rs/db': {
60
+ target: fuwu
61
+ },
62
+ '/excel': {
63
+ target: fuwu
64
+ },
65
+ '/rs/config': {
66
+ target: fuwu
67
+ },
68
+ '/rs/sql/getLicenseById': {
69
+ target: fuwu
70
+ },
71
+ '/rs/report': {
72
+ target: bendi
73
+ },
74
+ '/rs/vue': {
75
+ target: fuwu
76
+ },
77
+ '/rs/file': {
78
+ target: bendi
79
+ },
80
+ '/rs/logic/SumSettleFileImport': {
81
+ target: 'http://127.0.0.1:8080'
82
+ },
83
+ '/rs': {
84
+ target: fuwu
85
+ }
86
+ }
87
+
88
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
89
+ publicPath: config.output.publicPath,
90
+ stats: {
91
+ colors: true,
92
+ chunks: false
93
+ }
94
+ })
95
+
96
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
97
+ // force page reload when html-webpack-plugin template changes
98
+ compiler.plugin('compilation', function (compilation) {
99
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
100
+ hotMiddleware.publish({action: 'reload'})
101
+ cb()
102
+ })
103
+ })
104
+
105
+ // proxy api requests
106
+ Object.keys(proxyTable).forEach(function (context) {
107
+ var options = proxyTable[context]
108
+ if (typeof options === 'string') {
109
+ options = {target: options}
110
+ }
111
+ app.use(proxyMiddleware(context, options))
112
+ })
113
+
114
+ // handle fallback for HTML5 history API
115
+ app.use(require('connect-history-api-fallback')())
116
+ // app.use(function (req, res, next) {
117
+ // res.header('Access-Control-Allow-Origin', '*')
118
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
119
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
120
+ // res.header('X-Powered-By', '3,2,1')
121
+ // res.header('Access-Control-Allow-Credentials', 'true')
122
+ // res.header('Content-Type', 'application/json;charset=utf-8')
123
+ // next()
124
+ // })
125
+
126
+ // serve webpack bundle output
127
+ app.use(devMiddleware)
128
+
129
+ // enable hot-reload and state-preserving
130
+ // compilation error display
131
+ app.use(hotMiddleware)
132
+
133
+ // serve pure static assets
134
+ app.use('/static', express.static('./static'))
135
+
136
+ // app.all('/rs/*', function (req, res) {
137
+ // proxy.web(req, res, {
138
+ // target: 'http://127.0.0.1:8081/reports'
139
+ // })
140
+ // })
141
+
142
+ // app.all('/rs/*', function (req, res) {
143
+ // proxy.web(req, res, {
144
+ // target: 'http://127.0.0.1:8081/ldap'
145
+ // })
146
+ // })
147
+ // app.all('/excel/*', function (req, res) {
148
+ // proxy.web(req, res, {
149
+ // target: 'http://127.0.0.1:8081/charge'
150
+ // })
151
+ // })
152
+
153
+ // app.all('/rs/*', function (req, res) {
154
+ // proxy.web(req, res, {
155
+ // target: 'http://127.0.0.1:82/charge'
156
+ // })
157
+ // })
158
+
159
+ // app.all('/*', function (req, res) {
160
+ // proxy.web(req, res, {
161
+ // target: 'http://127.0.0.1:82'
162
+ // })
163
+ // })
164
+ // app.all('/rs/user', function (req, res) {
165
+ // proxy.web(req, res, {
166
+ // target: 'http://127.0.0.1:82'
167
+ // })
168
+ // })
169
+
170
+ module.exports = app.listen(8085, function (err) {
171
+ if (err) {
172
+ console.log(err)
173
+ return
174
+ }
175
+ console.log('Listening at http://localhost:8085')
176
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "3.2.69",
3
+ "version": "3.2.72",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -163,11 +163,11 @@
163
163
  <td ><nobr>{{row.f_address}}</nobr></td>
164
164
  <td style="text-align:center" v-show="$parent.$parent.$parent.isdeal">
165
165
  <nobr>
166
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_user_id}}</a></span>
166
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_meternumber}}</a></span>
167
167
  </nobr>
168
168
  </td>
169
169
  <td style="text-align:center;color:#3c763d" v-show="!$parent.$parent.$parent.isdeal"><nobr>
170
- <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_user_id}}</a></span>
170
+ <span @click="$parent.$parent.$parent.dealmsg(row)"><a>{{row.f_meternumber}}</a></span>
171
171
  </nobr></td>
172
172
  <td style="text-align:center"><nobr>{{row.f_meter_classify}}</nobr></td>
173
173
  <td style="text-align:center"><nobr>{{row.f_brand}}</nobr></td>
@@ -0,0 +1,181 @@
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-4" >
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-4" >
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-4 form-group" >
28
+ <label class="font_normal_body" for="org">公&emsp;&emsp;司:</label>
29
+ <right-tree id="org" @re-res="$parent.$parent.getRes" style="width: 60%"></right-tree>
30
+ </div>
31
+ <div class="col-sm-4 form-group">
32
+ <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
33
+ <res-select id="dep" restype='department' style="width: 60%"
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-4 form-group">
42
+ <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
43
+ <res-select id="oper" restype='user' style="width: 60%"
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='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.tablen' style="font-weight: normal; text-align: left;">
63
+ <h3 style="text-align: center">{{$parent.data.f_report_name}}</h3>
64
+ </th>
65
+ </tr>
66
+ <tr>
67
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
68
+ 时间区间:{{$refs.criteria.model.startDate}} - {{ $refs.criteria.model.endDate }}<br/>
69
+ 打印时间:{{$parent.printTime}}
70
+ </th>
71
+ </tr>
72
+ <tr>
73
+ <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
74
+ <div>
75
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
76
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
77
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
78
+ </div>
79
+ </th>
80
+ </tr>
81
+ </thead>
82
+ <tr>
83
+ <td :colspan='$parent.tablen' class="noborder">
84
+ {{{ model.data.substring(26,model.data.length-8) }}}
85
+ </td>
86
+ </tr>
87
+ <tfoot>
88
+ <tr style="text-align: left">
89
+ <th :colspan='Math.floor($parent.tablen/4)'>部门负责人:</th>
90
+ <th :colspan='Math.floor($parent.tablen/4)'>财务审核:</th>
91
+ <th :colspan='Math.round($parent.tablen/4)'>审核人:</th>
92
+ <th :colspan='Math.round($parent.tablen/4)'>制表人:</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
+
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
+ tablen: 0,
118
+ orgname: '',
119
+ depname: '',
120
+ operatorname: '',
121
+ orgCondtionStr: '1=1',
122
+ model: new DataModel('rs/report/wuhai_gyreport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
123
+ f_orgid: 'this.model.f_orgid'}),
124
+ reportStr: null,
125
+ show: false
126
+ }
127
+ },
128
+ ready () {
129
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
130
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
131
+ console.log(this.$login.f)
132
+ },
133
+ methods: {
134
+ searchData () {
135
+ this.$refs.paged.$refs.criteria.search()
136
+ },
137
+ selfSearch (args) {
138
+ this.printTime = this.$login.toStandardTimeString()
139
+ let orgcondition = '1=1'
140
+ if (this.f_orgid && this.f_orgid[0]) {
141
+ orgcondition += ' and f_orgid in (' + this.f_orgid + ')'
142
+ }
143
+ if (this.f_depid && this.f_depid[0]) {
144
+ orgcondition += ' and f_depid in (' + this.f_depid + ')'
145
+ }
146
+ if (this.f_operatorid && this.f_operatorid[0]) {
147
+ orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
148
+ }
149
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
150
+ this.$refs.paged.search(args)
151
+ },
152
+ getRes (obj) {
153
+ this.orgname = obj.res[0]
154
+ this.depresid = obj.resids
155
+ this.userresid = obj.resids
156
+ this.f_orgid = obj.resids
157
+ },
158
+ getdep (obj, val) {
159
+ this.depname = val[0]
160
+ // this.userresid = obj
161
+ this.f_depid = obj
162
+ },
163
+ getuser (obj, val) {
164
+ this.operatorname = val[0]
165
+ this.f_operatorid = obj
166
+ }
167
+ },
168
+ watch: {
169
+ 'model.data' (val) {
170
+ this.tablen = val.split('</tr>').map(item => item.split('</td>').length - 1).reduce((x, y) => x > y ? x : y)
171
+ }
172
+ },
173
+ computed: {
174
+ }
175
+ }
176
+ </script>
177
+ <style scoped>
178
+ .noborder{
179
+ border: none;
180
+ }
181
+ </style>
@@ -2,7 +2,7 @@
2
2
  <div class="flex">
3
3
  <partial-view v-ref:pv>
4
4
  <div class="span" v-show="!filtrate">
5
- <p class="bg-info text-center" style="padding: 8px;background: #5ac0d9;color: white;border-radius:10px 10px 0 0" title="选中报表后双击查看报表的配置信息" @dblclick="filtrate=!filtrate">报表类型</p>
5
+ <p class="bg-info text-center" style="padding: 8px;background: #5ac0d9;color: white;border-radius:10px 10px 0 0" title="选中报表后双击查看报表的配置信息" @dblclick="Update()">报表类型</p>
6
6
  <div style="height: 94%;overflow: auto;width: 104%">
7
7
  <div style="padding:3px" :style="{background: index===row ? '#dfedfb' : 'white'}" :class="styles=='2'?'col-sm-6 auto':'col-sm-12 auto'" v-for="(index,type) in types"
8
8
  @click="$dispatch('select-type',index, type),changecolor(index,type)"
@@ -133,6 +133,7 @@ export default {
133
133
  condition: cond ? cond:this.conditionStr
134
134
  }
135
135
  }).then((res) => {
136
+ console.log('sssss:',res.data)
136
137
  this.types = res.data
137
138
  }).catch((error) => {
138
139
 
@@ -190,6 +191,14 @@ export default {
190
191
  }
191
192
  this.reportTypes = typeArr
192
193
  },
194
+ Update(){
195
+ if (this.$login.r.includes('报表配置权限')) {
196
+ this.filtrate=!this.filtrate
197
+ } else {
198
+ this.$showMessage('您没有【报表配置权限】,若要进行报表配置,请联系管理员获取权限!')
199
+ }
200
+
201
+ },
193
202
  saveOrUpdate(val){
194
203
  // let sv={}
195
204
  for(let [key, value] of Object.entries(this.config)){