manage-client 3.2.161 → 3.2.162

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.
@@ -1,176 +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://192.168.50.4:8400'
17
- // var bendi = 'http://172.168.1.11:9001'
18
- var fuwu = 'http://192.168.50.4:8400'
19
- // var fuwu = 'http://203.57.101.233: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
- })
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://192.168.50.4:8400'
17
+ // var bendi = 'http://172.168.1.11:9001'
18
+ var fuwu = 'http://121.36.106.17:8400/'
19
+ // var fuwu = 'http://203.57.101.233: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.161",
3
+ "version": "3.2.162",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -115,6 +115,9 @@
115
115
  <tabs header="增值业务汇总查询" v-if="permission('增值业务汇总查询')">
116
116
  <valueadd-count-query @deal-msg="dealMsg" :selectorg.sync="selectOrgid" ></valueadd-count-query>
117
117
  </tabs>
118
+ <tabs header="受理单查询" v-if="permission('受理单查询')">
119
+ <print-sheet-query @deal-msg="dealMsg" :selectorg.sync="selectOrgid" ></print-sheet-query>
120
+ </tabs>
118
121
  </tab-button>
119
122
  <!-- </div>-->
120
123
  <!-- <div v-if="!listpage">-->
@@ -0,0 +1,212 @@
1
+ <template>
2
+ <div id="unit" class="flex-row">
3
+ <div class="basic-main">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged>
6
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
7
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
8
+ <div class="row">
9
+ <div class="col-sm-2 form-group">
10
+ <label for="startDate" class="font_normal_body">开始日期</label>
11
+ <datepicker id="startDate" placeholder="开始日期" style="width:60%"
12
+ v-model="model.startDate"
13
+ :value.sync="model.startDate"
14
+ condition="ps.f_operate_date >= '{}'"
15
+ :format="'yyyy-MM-dd HH:mm:ss'"
16
+ :show-reset-button="true"
17
+ >
18
+ </datepicker>
19
+ </div>
20
+ <div class="col-sm-2 form-group">
21
+ <label for="endDate" class="font_normal_body">结束日期</label>
22
+ <datepicker id="endDate" placeholder="结束日期" style="width:60%"
23
+ v-model="model.endDate"
24
+ :value.sync="model.endDate"
25
+ condition="ps.f_operate_date <= '{}'"
26
+ :format="'yyyy-MM-dd HH:mm:ss'"
27
+ :show-reset-button="true"
28
+ >
29
+ </datepicker>
30
+ </div>
31
+ <!--<div class="form-group col-sm-2">-->
32
+ <!--<label class="font_normal_body">选择小区</label>-->
33
+ <!--<v-select :value.sync="model.f_residential_area" :value-single="true"-->
34
+ <!--class="select_list select"-->
35
+ <!--style="width: 60%"-->
36
+ <!--v-model="model.f_residential_area"-->
37
+ <!--:options='$parent.$parent.residentialArea' placeholder='选择小区'-->
38
+ <!--condition="ua.f_residential_area = '{}'"-->
39
+ <!--close-on-select search="true">-->
40
+ <!--</v-select>-->
41
+ <!--</div>-->
42
+ <div class="span" style="float:right;">
43
+ <button class="button_search button_spacing" @click="search">查询</button>
44
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
45
+
46
+ <export-excel :data="$parent.$parent.getCondition"
47
+ :field="$parent.$parent.getfield"
48
+ sqlurl="rs/logic/exportfile"
49
+ sql-name="printSheetQuery"
50
+ template-name='受理单查询导出'
51
+ :choose-col="true"></export-excel>
52
+ <print-data :model="$parent.model" :field="$parent.$parent.getfield"
53
+ :defaultfield="$parent.$parent.defaultfield"
54
+ titletable="受理单查询导出"></print-data>
55
+ <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>
56
+
57
+ </div>
58
+ </div>
59
+ <div class="row" v-show="$parent.$parent.criteriaShow">
60
+ <res-select-group :initres="$parent.$parent.initres" :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
61
+ <div class="col-sm-2 form-group">
62
+ <label class="font_normal_body">用户编号</label>
63
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_userinfo_code"
64
+ condition="ua.f_userinfo_code = '{}' " placeholder="用户编号">
65
+ </div>
66
+ <div class="col-sm-2 form-group">
67
+ <label class="font_normal_body">用户姓名</label>
68
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
69
+ condition="ui.f_user_name = '{}' " placeholder="用户姓名">
70
+ </div>
71
+ <div class="form-group col-sm-3">
72
+ <label class="font_normal_body">打印次数</label>
73
+ <v-input :value.sync="$parent.f_print_num" :expression.sync = 'model.f_print_num'
74
+ condition="f_print_num {}" v-model="model.f_print_num" style="width: 60%"
75
+ typeof="number"
76
+ placeholder="打印条数" ></v-input>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </criteria>
81
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid >
82
+ <template partial='head'>
83
+ <tr>
84
+ <th v-for="(key,value ) in $parent.$parent.$parent.config.pageFilds" ><nobr>{{value}}</nobr></th>
85
+ </tr>
86
+ </template>
87
+ <template partial='body'>
88
+ <td style="text-align: center;" v-for="(key,value ) in $parent.$parent.$parent.config.pageFilds"><nobr>{{row[key]}}</nobr></td>
89
+ </template>
90
+ <template partial='foot'></template>
91
+ </data-grid>
92
+ </criteria-paged>
93
+ </div>
94
+ </div>
95
+ </div>
96
+ </template>
97
+
98
+ <script>
99
+ import {PagedList, HttpResetClass} from 'vue-client'
100
+ import defaultPrint from '../config/DefaultPrint'
101
+ import exportConfig from "../config/exportConfig";
102
+ import plugins from "../../../plugins/GetLoginInfoService";
103
+
104
+ let readySomething = async function (self) {
105
+ self.initParams()
106
+ self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
107
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
108
+ self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
109
+ }
110
+
111
+ export default {
112
+ title: '受理单打印查询',
113
+ data() {
114
+ let model = new PagedList('rs/sql/printSheetQuery', 20, {
115
+ startdate: 'this.model.startDate',
116
+ enddate: 'this.model.endDate'
117
+ })
118
+ model.f_filialeid = this.$login.f.orgid
119
+ return {
120
+ //默认打印列
121
+ defaultfield: [],
122
+ config: {
123
+ pageFilds:{
124
+ 'f_userinfo_code': '用户编号', 'f_user_name': '用户姓名', 'f_user_phone': '用户电话', 'f_user_type': '用户类型' ,'f_address':'用户地址',
125
+ 'f_operate_date':'操作时间','f_print_time':'打印时间','f_print_num':'打印次数','f_orgname':'组织机构','f_depname':'部门','f_operator':'操作人'
126
+ },
127
+ defaultPrint: ['f_userinfo_code', 'f_user_name', 'f_user_phone','f_user_type','f_address','f_operate_date','f_print_time']
128
+ },
129
+ data: {},
130
+ other: [],
131
+ footer: [],
132
+ meterbrands: [],
133
+ initres: {
134
+ org:[this.$login.f.orgid],
135
+ dep:[],
136
+ user:[]
137
+ },
138
+ model: model,
139
+ criteriaShow: false,
140
+ f_filialeid: this.$login.f.orgid,
141
+ orgid: [this.$login.f.orgid],
142
+ //小区
143
+ residentialArea: [],
144
+ orgCondtionStr: '',
145
+ }
146
+ },
147
+ ready() {
148
+ this.getaddress()
149
+ readySomething(this).then(() => {
150
+ this.$emit('ready')
151
+ }).catch((error) => {
152
+ this.$emit('error', error)
153
+ })
154
+ },
155
+ methods: {
156
+ // async getaddress() {
157
+ // console.log('开始获取小区')
158
+ // let HttpReset = new HttpResetClass()
159
+ // var data = await HttpReset.load('POST', 'rs/sql/manage_getarealist', {
160
+ // data: {
161
+ // condition: `1=1 and s.f_filialeid = '${this.$login.f.orgid}'`
162
+ // }
163
+ // }, {resolveMsg: null, rejectMsg: '获取小区失败!'})
164
+ // console.log('小区', data)
165
+ // let house = [{label: '全部', value: ''}]
166
+ // for (let row of data.data) {
167
+ // console.log('开始保存小区')
168
+ // house.push({label: row.f_residential_area, value: row.f_residential_area})
169
+ // }
170
+ // this.residentialArea = house
171
+ // },
172
+ selfSearch(args) {
173
+ args.condition = `${args.condition}` + this.orgCondtionStr
174
+ this.model.search(args.condition, args.model)
175
+ },
176
+ async getRes(condition,obj) {
177
+ console.log(condition,"========")
178
+ this.orgCondtionStr = condition
179
+
180
+ },
181
+ clear() {
182
+ Object.keys(this.$refs.paged.$refs.cri.model).forEach((key) => {
183
+ this.$refs.paged.$refs.cri.model[key] = []
184
+ })
185
+ },
186
+ hidden() {
187
+ this.criteriaShow = !this.criteriaShow
188
+ }
189
+ },
190
+ watch: {
191
+
192
+ },
193
+ computed: {
194
+
195
+ getCondition() {
196
+ var con = ""
197
+ if (this.orgCondtionStr) {
198
+ con = `${this.$refs.paged.$refs.cri.condition} ` + this.orgCondtionStr
199
+ } else {
200
+ con = `${this.$refs.paged.$refs.cri.condition}`
201
+ }
202
+ return {
203
+ condition: con
204
+ }
205
+ },
206
+ getfield() {
207
+ return this.config.pageFilds
208
+ }
209
+ }
210
+
211
+ }
212
+ </script>