sale-client 3.4.188 → 3.4.191

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,160 +1,160 @@
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://121.36.106.17:8400/',bendi1 = 'http://121.36.106.17:8400/'
14
- // 公司测试服务
15
- var fuwu = 'http://121.36.106.17:8400'
16
- //铜川正式
17
- // var fuwu = 'http://61.134.55.234:9999/'
18
- //铜川测试
19
- // var fuwu = 'http://61.134.55.234:9999/'
20
- // var fuwu = 'http://60.222.250.39:8300/'
21
- //韶关
22
- // var fuwu = 'http://119.146.1.106:8300/'
23
- // 巩义测试服务
24
- // var fuwu = 'http://192.168.0.227:8400'
25
- // 燎原测试服务
26
- // var fuwu = 'http://121.41.19.238:8400 '
27
- // var fuwu = 'http://121.41.19.238:9001/'
28
-
29
- // var fuwu = 'http://139.214.92.34:8301/'
30
-
31
- var proxyTable = {
32
- '/rs/logic/saleExport': {
33
- target: fuwu
34
- },
35
- '/rs/logic/saleGetExportProgress': {
36
- target: fuwu
37
- },
38
- '/files': {
39
- target: fuwu
40
- },
41
- // 查找资源服务数据
42
- '/rs/search': {
43
- target: fuwu
44
- },
45
- // 查找资源服务数据
46
- '/rs/logic/getLogin': {
47
- target: fuwu
48
- },
49
- // 查找资源服务数据
50
- '/rs/logic/getInitData': {
51
- target: fuwu
52
- },
53
- '/rs/logic/getSaleInitData': {
54
- target: fuwu
55
- },
56
- '/invoice':{
57
- target: fuwu
58
- },
59
- // 用户登录服务地址
60
- '/rs/user': {
61
- target: fuwu
62
- },
63
- '/rs/path/getParams': {
64
- target: fuwu
65
- },
66
- '/rs/data': {
67
- target: fuwu
68
- },
69
- '/rs/license': {
70
- target: fuwu
71
- },
72
- '/rs/db': {
73
- target: fuwu
74
- },
75
- '/excel': {
76
- target: fuwu
77
- },
78
- '/rs/config': {
79
- target: fuwu
80
- },
81
- '/rs/sql/getLicenseById': {
82
- target: fuwu
83
- },
84
- '/rs/sql/manage_getarealist': {
85
- target: fuwu
86
- },
87
- '/rs/sql/manage_getstreetlist': {
88
- target: fuwu
89
- },
90
- '/rs/report': {
91
- target: 'http://121.36.106.17:8400/'
92
- },
93
- '/rs/vue': {
94
- target: fuwu
95
- },
96
- '/webmeter': {
97
- target: 'http://192.168.50.4:8450'
98
- },
99
- '/rs': {
100
- // target: 'http://192.168.30.63:8081/'
101
- // target: 'http://121.36.106.17:8400/'
102
- target:fuwu
103
- }
104
- }
105
-
106
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
107
- publicPath: config.output.publicPath,
108
- stats: {
109
- colors: true,
110
- chunks: false
111
- }
112
- })
113
-
114
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
115
- // force page reload when html-webpack-plugin template changes
116
- compiler.plugin('compilation', function (compilation) {
117
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
118
- hotMiddleware.publish({action: 'reload'})
119
- cb()
120
- })
121
- })
122
-
123
- // proxy api requests
124
- Object.keys(proxyTable).forEach(function (context) {
125
- var options = proxyTable[context]
126
- if (typeof options === 'string') {
127
- options = {target: options}
128
- }
129
- app.use(proxyMiddleware(context, options))
130
- })
131
-
132
- // handle fallback for HTML5 history API
133
- app.use(require('connect-history-api-fallback')())
134
- // app.use(function (req, res, next) {
135
- // res.header('Access-Control-Allow-Origin', '*')
136
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
137
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
138
- // res.header('X-Powered-By', '3,2,1')
139
- // res.header('Access-Control-Allow-Credentials', 'true')
140
- // res.header('Content-Type', 'application/json;charset=utf-8')
141
- // next()
142
- // })
143
-
144
- // serve webpack bundle output
145
- app.use(devMiddleware)
146
-
147
- // enable hot-reload and state-preserving
148
- // compilation error display
149
- app.use(hotMiddleware)
150
-
151
- // serve pure static assets
152
- app.use('/static', express.static('./static'))
153
-
154
- module.exports = app.listen(8089, function (err) {
155
- if (err) {
156
- console.log(err)
157
- return
158
- }
159
- console.log('Listening at http://localhost:8089')
160
- })
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://121.36.106.17:8400/',bendi1 = 'http://121.36.106.17:8400/'
14
+ // 公司测试服务
15
+ var fuwu = 'http://121.36.106.17:8400/'
16
+ //铜川正式
17
+ // var fuwu = 'http://61.134.55.234:9999/'
18
+ //铜川测试
19
+ // var fuwu = 'http://61.134.55.234:9999/'
20
+ // var fuwu = 'http://60.222.250.39:8300/'
21
+ //韶关
22
+ // var fuwu = 'http://119.146.1.106:8300/'
23
+ // 巩义测试服务
24
+ // var fuwu = 'http://192.168.0.227:8400'
25
+ // 燎原测试服务
26
+ // var fuwu = 'http://121.41.19.238:8400 '
27
+ // var fuwu = 'http://121.41.19.238:9001/'
28
+
29
+ // var fuwu = 'http://139.214.92.34:8301/'
30
+
31
+ var proxyTable = {
32
+ '/rs/logic/saleExport': {
33
+ target: fuwu
34
+ },
35
+ '/rs/logic/saleGetExportProgress': {
36
+ target: fuwu
37
+ },
38
+ '/files': {
39
+ target: fuwu
40
+ },
41
+ // 查找资源服务数据
42
+ '/rs/search': {
43
+ target: fuwu
44
+ },
45
+ // 查找资源服务数据
46
+ '/rs/logic/getLogin': {
47
+ target: fuwu
48
+ },
49
+ // 查找资源服务数据
50
+ '/rs/logic/getInitData': {
51
+ target: fuwu
52
+ },
53
+ '/rs/logic/getSaleInitData': {
54
+ target: fuwu
55
+ },
56
+ '/invoice':{
57
+ target: fuwu
58
+ },
59
+ // 用户登录服务地址
60
+ '/rs/user': {
61
+ target: fuwu
62
+ },
63
+ '/rs/path/getParams': {
64
+ target: fuwu
65
+ },
66
+ '/rs/data': {
67
+ target: fuwu
68
+ },
69
+ '/rs/license': {
70
+ target: fuwu
71
+ },
72
+ '/rs/db': {
73
+ target: fuwu
74
+ },
75
+ '/excel': {
76
+ target: fuwu
77
+ },
78
+ '/rs/config': {
79
+ target: fuwu
80
+ },
81
+ '/rs/sql/getLicenseById': {
82
+ target: fuwu
83
+ },
84
+ '/rs/sql/manage_getarealist': {
85
+ target: fuwu
86
+ },
87
+ '/rs/sql/manage_getstreetlist': {
88
+ target: fuwu
89
+ },
90
+ '/rs/report': {
91
+ target: 'http://121.36.106.17:8400/'
92
+ },
93
+ '/rs/vue': {
94
+ target: fuwu
95
+ },
96
+ '/webmeter': {
97
+ target: 'http://192.168.50.4:8450'
98
+ },
99
+ '/rs': {
100
+ // target: 'http://192.168.30.63:8081/'
101
+ target: 'http://121.36.106.17:8400/'
102
+ // target:fuwu
103
+ }
104
+ }
105
+
106
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
107
+ publicPath: config.output.publicPath,
108
+ stats: {
109
+ colors: true,
110
+ chunks: false
111
+ }
112
+ })
113
+
114
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
115
+ // force page reload when html-webpack-plugin template changes
116
+ compiler.plugin('compilation', function (compilation) {
117
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
118
+ hotMiddleware.publish({action: 'reload'})
119
+ cb()
120
+ })
121
+ })
122
+
123
+ // proxy api requests
124
+ Object.keys(proxyTable).forEach(function (context) {
125
+ var options = proxyTable[context]
126
+ if (typeof options === 'string') {
127
+ options = {target: options}
128
+ }
129
+ app.use(proxyMiddleware(context, options))
130
+ })
131
+
132
+ // handle fallback for HTML5 history API
133
+ app.use(require('connect-history-api-fallback')())
134
+ // app.use(function (req, res, next) {
135
+ // res.header('Access-Control-Allow-Origin', '*')
136
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
137
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
138
+ // res.header('X-Powered-By', '3,2,1')
139
+ // res.header('Access-Control-Allow-Credentials', 'true')
140
+ // res.header('Content-Type', 'application/json;charset=utf-8')
141
+ // next()
142
+ // })
143
+
144
+ // serve webpack bundle output
145
+ app.use(devMiddleware)
146
+
147
+ // enable hot-reload and state-preserving
148
+ // compilation error display
149
+ app.use(hotMiddleware)
150
+
151
+ // serve pure static assets
152
+ app.use('/static', express.static('./static'))
153
+
154
+ module.exports = app.listen(8089, function (err) {
155
+ if (err) {
156
+ console.log(err)
157
+ return
158
+ }
159
+ console.log('Listening at http://localhost:8089')
160
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.4.188",
3
+ "version": "3.4.191",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,93 @@
1
+ <template>
2
+ <div class="auto">
3
+ <modal width="30%" :show.sync="show" v-ref:modal title="备用电话管理" large backdrop="false" class="">
4
+ <article slot="modal-body" class="modal-body">
5
+ <div class="text-center">
6
+ <div v-for="row in userphonelist">
7
+ <validator name='v'>
8
+ <form class="form-horizontal select-overspread">
9
+ <div class="row" v-if="row.f_state==='有效'">
10
+ <div class="col-sm-10 form-group">
11
+ <label for="f_rent_phone" class="font_normal_body">&emsp;&emsp;&emsp;&emsp;&emsp;备用电话&emsp;&emsp;</label>
12
+ <input class="input_search"
13
+ style="width:50%"
14
+ type="text"
15
+ v-model="row.f_rent_phone"
16
+ :value.sync="row.f_rent_phone"
17
+ placeholder="备用电话">
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <button type="button" class="glyphicon glyphicon-minus btn-danger" @click.stop="delphone($index,row)"></button>
21
+ </div>
22
+ </div>
23
+ </form>
24
+ </validator>
25
+ </div>
26
+ <div class="panel panel-default auto text-center" @click="addphone()" style="cursor: pointer;">
27
+ <span class="glyphicon glyphicon-plus"></span>
28
+ </div>
29
+ </div>
30
+ </article>
31
+ <footer slot="modal-footer" class="modal-footer">
32
+ <button type="button" class="btn btn-success" @click='close()'>确认</button>
33
+ </footer>
34
+ </modal>
35
+ </div>
36
+ </template>
37
+ <script>
38
+ import Vue from 'vue'
39
+ export default {
40
+ title: '备用电话管理',
41
+ data () {
42
+ return {
43
+ }
44
+ },
45
+ props: {
46
+ userphonelist: {
47
+ type: Array
48
+ },
49
+ show: {
50
+ type: Boolean,
51
+ default: false
52
+ }
53
+ },
54
+ ready () {
55
+ console.log('备用电话管理:',JSON.stringify(this.userphonelist))
56
+ },
57
+ methods: {
58
+ addphone () {
59
+ this.userphonelist.push({
60
+ f_userinfo_id: this.f_userinfo_id?this.f_userinfo_id:'',
61
+ f_rent_phone:'',
62
+ f_state: '有效',
63
+ f_operator: Vue.$login.f.name,
64
+ f_operatorid: Vue.$login.f.id,
65
+ f_orgid: Vue.$login.f.orgid,
66
+ f_orgname: Vue.$login.f.orgs,
67
+ f_depid: Vue.$login.f.depids,
68
+ f_depname: Vue.$login.f.deps
69
+ })
70
+ },
71
+ delphone (index,row) {
72
+ this.$showMessage('是否确定要删除此条数据?', ['confirm', 'cancel']).then((res) => {
73
+ if (res === 'confirm') {
74
+ if (row.id) {
75
+ this.userphonelist[index].f_state = '无效'
76
+ } else {
77
+ this.userphonelist.splice(index, 1)
78
+ }
79
+ }
80
+ })
81
+ },
82
+ close(){
83
+ this.show = false
84
+ }
85
+ },
86
+ computed: {
87
+
88
+ }
89
+ }
90
+ </script>
91
+
92
+ <style lang="less">
93
+ </style>
@@ -1,5 +1,8 @@
1
1
  <template>
2
2
  <div>
3
+ <div style="margin-bottom: 2%; margin-top: 2%">
4
+ <button class="button_search" style="width: max-content" @click="phoneManage()">管理备用电话</button>
5
+ </div>
3
6
  <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
4
7
  <form class="form-horizontal select-overspread ">
5
8
  <div class="row">
@@ -203,6 +206,7 @@
203
206
  <footer slot="modal-footer" class="modal-footer">
204
207
  </footer>
205
208
  </modal>
209
+ <file-user-phone :show.sync="showphone" :userphonelist="userphonelist" :f_userinfo_id="baseinfo.base.f_userinfo_id"></file-user-phone>
206
210
  </div>
207
211
  </template>
208
212
 
@@ -223,11 +227,12 @@
223
227
 
224
228
  export default {
225
229
  title: '基本信息',
226
- props: ['baseinfo', 'addressinfo', 'isedit'],
230
+ props: ['baseinfo', 'addressinfo', 'isedit', 'userphonelist'],
227
231
  data () {
228
232
  return {
229
233
  showselectaddress: false,
230
234
  site: '',
235
+ showphone: false,
231
236
  areas: [],
232
237
  streets: [],
233
238
  residentials: [],
@@ -283,6 +288,10 @@
283
288
  compoent.baseinfo.base.f_idnumber = msg.strID
284
289
  compoent.baseinfo.base.f_user_name = msg.strName.trim()
285
290
  // compoent.baseinfo.base.f_credentials=["身份证"]
291
+ },
292
+ phoneManage () {
293
+ this.showphone = true
294
+ console.log('查看用户备用电话信息', this.userphonelist)
286
295
  }
287
296
  },
288
297
  watch: {
@@ -10,7 +10,7 @@
10
10
  <button class="button_search" style="width: max-content" @click="uploadPictures()">拍照</button>
11
11
  <button class="button_search" style="width: max-content" @click="openBankAccount()" v-if="data.meterinfo[0].f_user_type[0] === '非民用' && ($login.r.includes('银行开户'))">银行开户</button>
12
12
  </div>
13
- <file-user-essential-info :baseinfo="data.baseinfo" :addressinfo="data.addressinfo" @valid="essentialInfo = true"
13
+ <file-user-essential-info :userphonelist="data.baseinfo.userphonelist" :baseinfo="data.baseinfo" :addressinfo="data.addressinfo" @valid="essentialInfo = true"
14
14
  @invalid="essentialInfo = false" v-ref:useressential :isedit="isedit"></file-user-essential-info>
15
15
  <file-userinfo-device :userinfodevices.sync="userinfodevices" :show_userinfodevices.sync="show_userinfodevices"
16
16
  :userinfoid='data.baseinfo.base.f_userinfo_id'></file-userinfo-device>
@@ -160,7 +160,9 @@ export default {
160
160
  userinfodevices: [],
161
161
  bank: {
162
162
  f_bank_name: ''
163
- }
163
+ },
164
+ //用户备用电话信息
165
+ userphonelist: []
164
166
  },
165
167
  addressinfo: {},
166
168
  meterinfo: [{
@@ -530,7 +532,9 @@ export default {
530
532
  f_idnumber: '',
531
533
  f_meter_book_num: ''
532
534
  },
533
- bank: {}
535
+ bank: {},
536
+ //用户备用电话信息
537
+ userphonelist: []
534
538
  },
535
539
  addressinfo: {
536
540
  // 详细地址