apply-clients 6.0.6 → 6.0.7

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,72 +1,72 @@
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
- var app = express()
7
- var compiler = webpack(config)
8
- // var proxy = httpProxy.createProxyServer()
9
-
10
- // Define HTTP proxies to your custom API backend
11
- // https://github.com/chimurai/http-proxy-middleware
12
- var proxyTable = {
13
- '/rs': {
14
- target: 'http://218.93.226.210:7005'
15
- }
16
- }
17
-
18
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
19
- publicPath: config.output.publicPath,
20
- stats: {
21
- colors: true,
22
- chunks: false
23
- }
24
- })
25
-
26
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
27
- // force page reload when html-webpack-plugin template changes
28
- compiler.plugin('compilation', function (compilation) {
29
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
30
- hotMiddleware.publish({action: 'reload'})
31
- cb()
32
- })
33
- })
34
-
35
- // proxy api requests
36
- Object.keys(proxyTable).forEach(function (context) {
37
- var options = proxyTable[context]
38
- if (typeof options === 'string') {
39
- options = {target: options}
40
- }
41
- app.use(proxyMiddleware(context, options))
42
- })
43
-
44
- // handle fallback for HTML5 history API
45
- app.use(require('connect-history-api-fallback')())
46
- // app.use(function (req, res, next) {
47
- // res.header('Access-Control-Allow-Origin', '*')
48
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
49
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
50
- // res.header('X-Powered-By', '3,2,1')
51
- // res.header('Access-Control-Allow-Credentials', 'true')
52
- // res.header('Content-Type', 'application/json;charset=utf-8')
53
- // next()
54
- // })
55
-
56
- // serve webpack bundle output
57
- app.use(devMiddleware)
58
-
59
- // enable hot-reload and state-preserving
60
- // compilation error display
61
- app.use(hotMiddleware)
62
-
63
- // serve pure static assets
64
- app.use('/static', express.static('./static'))
65
-
66
- module.exports = app.listen(8004, function (err) {
67
- if (err) {
68
- console.log(err)
69
- return
70
- }
71
- console.log('Listening at http://localhost:8004')
72
- })
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
+ var app = express()
7
+ var compiler = webpack(config)
8
+ // var proxy = httpProxy.createProxyServer()
9
+
10
+ // Define HTTP proxies to your custom API backend
11
+ // https://github.com/chimurai/http-proxy-middleware
12
+ var proxyTable = {
13
+ '/rs': {
14
+ target: 'http://218.93.226.210:7005'
15
+ }
16
+ }
17
+
18
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
19
+ publicPath: config.output.publicPath,
20
+ stats: {
21
+ colors: true,
22
+ chunks: false
23
+ }
24
+ })
25
+
26
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
27
+ // force page reload when html-webpack-plugin template changes
28
+ compiler.plugin('compilation', function (compilation) {
29
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
30
+ hotMiddleware.publish({action: 'reload'})
31
+ cb()
32
+ })
33
+ })
34
+
35
+ // proxy api requests
36
+ Object.keys(proxyTable).forEach(function (context) {
37
+ var options = proxyTable[context]
38
+ if (typeof options === 'string') {
39
+ options = {target: options}
40
+ }
41
+ app.use(proxyMiddleware(context, options))
42
+ })
43
+
44
+ // handle fallback for HTML5 history API
45
+ app.use(require('connect-history-api-fallback')())
46
+ // app.use(function (req, res, next) {
47
+ // res.header('Access-Control-Allow-Origin', '*')
48
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
49
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
50
+ // res.header('X-Powered-By', '3,2,1')
51
+ // res.header('Access-Control-Allow-Credentials', 'true')
52
+ // res.header('Content-Type', 'application/json;charset=utf-8')
53
+ // next()
54
+ // })
55
+
56
+ // serve webpack bundle output
57
+ app.use(devMiddleware)
58
+
59
+ // enable hot-reload and state-preserving
60
+ // compilation error display
61
+ app.use(hotMiddleware)
62
+
63
+ // serve pure static assets
64
+ app.use('/static', express.static('./static'))
65
+
66
+ module.exports = app.listen(8004, function (err) {
67
+ if (err) {
68
+ console.log(err)
69
+ return
70
+ }
71
+ console.log('Listening at http://localhost:8044')
72
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "6.0.6",
3
+ "version": "6.0.7",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -157,9 +157,9 @@
157
157
  let condition = '1=1'
158
158
  // this.$refs.paged.$refs.cri.search()
159
159
  if (!this.$login.f.parent.parent.name.includes('统一资源管理')) {
160
- condition += ` and f_filiale = '${this.$login.f.f_fengongsi}'`
160
+ condition += `and f_filiale = '${this.$login.f.f_fengongsi}'`
161
161
  }
162
- this.$refs.pv.load(this.sqlurl, {data: {condition: condition}}).then((a) => {
162
+ this.$resetpost(this.sqlurl, {data: {condition: condition}}).then((a) => {
163
163
  if (a.data.length === 0) {
164
164
  this.model.rows = []
165
165
  this.model.state = '错误'
@@ -1,77 +1,77 @@
1
- <template>
2
- <div class="auto">
3
- <partial-view v-ref:pv>
4
- <!-- <div class="row"> -->
5
- <!-- <label class = " col-sm-3 control-label">用户姓名:</label> -->
6
- <!-- <span style="padding:0" class = " col-sm-3">{{model[0].f_user_name}}</span> -->
7
- <!-- <label class = "col-sm-3 control-label">操作人:</label>
8
- <span class = "col-sm-3">{{model.f_operator}}</span> -->
9
- <!-- </div> -->
10
- <table class="table table-bordered table-condensed self-table" id="table" >
11
- <!-- <tr>
12
- <td><b>缴费账户</b></td>
13
- <td>{{data.f_user_name}}</td>
14
- </tr> -->
15
- <tr>
16
- <td><b>缴费类型</b></td>
17
- <td>{{model.f_paytype}}</td>
18
- </tr>
19
- <tr>
20
- <td><b>缴费金额</b></td>
21
- <td>{{model.f_fee}}</td>
22
- </tr>
23
- <tr>
24
- <td><b>交款人</b></td>
25
- <td>{{model.f_payer}}</td>
26
- </tr>
27
- <tr>
28
- <td><b>缴费日期</b></td>
29
- <td>{{model.f_date}}</td>
30
- </tr>
31
- </table>
32
-
33
- </partial-view>
34
- </div>
35
- </template>
36
-
37
- <script>
38
- import Table from '../../../../Table'
39
- export default {
40
- title: '报建收费',
41
- props: ['data'],
42
- data () {
43
- return {
44
- model: {}
45
- }
46
- },
47
- ready () {
48
- console.log('rrrrrrrrrrrrrrr', this.data)
49
- let sql = 'singleTable_OrderBy'
50
- let condition = {
51
- items: '*',
52
- tablename: 't_paydetail',
53
- condition: 'id = ' + this.data.id,
54
- orderitem: 'id'
55
- }
56
- this.$info(`加载数据中..., sql:${sql}`)
57
- this.$refs.pv.load('rs/sql/singleTable', {data: condition}).then((a) => {
58
- this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
59
- this.model = a.data
60
- console.log('1111111model', this.model)
61
- console.log('1111111data', a.data)
62
- }).catch((error) => {
63
- if (error.status) {
64
- this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
65
- return
66
- }
67
- throw error
68
- })
69
- },
70
- methods: {
71
- // 获取表中字段对应的中文名
72
- getValue (key) {
73
- return Table.data[key]
74
- }
75
- }
76
- }
77
- </script>
1
+ <template>
2
+ <div class="auto">
3
+ <partial-view v-ref:pv>
4
+ <!-- <div class="row"> -->
5
+ <!-- <label class = " col-sm-3 control-label">用户姓名:</label> -->
6
+ <!-- <span style="padding:0" class = " col-sm-3">{{model[0].f_user_name}}</span> -->
7
+ <!-- <label class = "col-sm-3 control-label">操作人:</label>
8
+ <span class = "col-sm-3">{{model.f_operator}}</span> -->
9
+ <!-- </div> -->
10
+ <table class="table table-bordered table-condensed self-table" id="table" >
11
+ <!-- <tr>
12
+ <td><b>缴费账户</b></td>
13
+ <td>{{data.f_user_name}}</td>
14
+ </tr> -->
15
+ <tr>
16
+ <td><b>缴费类型</b></td>
17
+ <td>{{model.f_paytype}}</td>
18
+ </tr>
19
+ <tr>
20
+ <td><b>缴费金额</b></td>
21
+ <td>{{model.f_fee}}</td>
22
+ </tr>
23
+ <tr>
24
+ <td><b>交款人</b></td>
25
+ <td>{{model.f_payer}}</td>
26
+ </tr>
27
+ <tr>
28
+ <td><b>缴费日期</b></td>
29
+ <td>{{model.f_date}}</td>
30
+ </tr>
31
+ </table>
32
+
33
+ </partial-view>
34
+ </div>
35
+ </template>
36
+
37
+ <script>
38
+ import Table from '../../../../Table'
39
+ export default {
40
+ title: '报建收费',
41
+ props: ['data'],
42
+ data () {
43
+ return {
44
+ model: {}
45
+ }
46
+ },
47
+ ready () {
48
+ console.log('rrrrrrrrrrrrrrr', this.data)
49
+ let sql = 'singleTable_OrderBy'
50
+ let condition = {
51
+ items: '*',
52
+ tablename: 't_paydetail',
53
+ condition: 'id = ' + this.data.id,
54
+ orderitem: 'id'
55
+ }
56
+ this.$info(`加载数据中..., sql:${sql}`)
57
+ this.$resetpost('rs/sql/singleTable', {data: condition}).then((a) => {
58
+ this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
59
+ this.model = a.data
60
+ console.log('1111111model', this.model)
61
+ console.log('1111111data', a.data)
62
+ }).catch((error) => {
63
+ if (error.status) {
64
+ this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
65
+ return
66
+ }
67
+ throw error
68
+ })
69
+ },
70
+ methods: {
71
+ // 获取表中字段对应的中文名
72
+ getValue (key) {
73
+ return Table.data[key]
74
+ }
75
+ }
76
+ }
77
+ </script>
@@ -1,116 +1,116 @@
1
- <template>
2
- <div class="auto">
3
- <partial-view v-ref:pv>
4
- <!-- <div class="row"> -->
5
- <!-- <label class = " col-sm-3 control-label">用户姓名:</label> -->
6
- <!-- <span style="padding:0" class = " col-sm-3">{{model[0].f_user_name}}</span> -->
7
- <!-- <label class = "col-sm-3 control-label">操作人:</label>
8
- <span class = "col-sm-3">{{model.f_operator}}</span> -->
9
- <!-- </div> -->
10
- <table class="table table-bordered table-condensed self-table" id="table" >
11
- <tbody>
12
- <tr>
13
- <td><b>原开户费</b></td>
14
- <td>{{model.f_account_cost}}</td>
15
- <td><b>现开户费</b></td>
16
- <td>{{model.f_new_account_cost}}</td>
17
- </tr>
18
- <tr>
19
- <td><b>原入户安装费</b></td>
20
- <td>{{model.f_construction_cost}}</td>
21
- <td><b>现入户安装费</b></td>
22
- <td>{{model.f_new_construction_cost}}</td>
23
- </tr>
24
- <tr>
25
- <td><b>原材料费</b></td>
26
- <td>{{model.f_material_cost}}</td>
27
- <td><b>现材料费</b></td>
28
- <td>{{model.f_new_material_cost}}</td>
29
- </tr>
30
- <tr>
31
- <td><b>原工人费</b></td>
32
- <td>{{model.f_labor_cost}}</td>
33
- <td><b>现工人费</b></td>
34
- <td>{{model.f_new_labor_cost}}</td>
35
- </tr>
36
- <tr>
37
- <td><b>原改管费</b></td>
38
- <td>{{model.f_change_pipeline_cost}}</td>
39
- <td><b>现改管费</b></td>
40
- <td>{{model.f_new_change_pipeline_cost}}</td>
41
- </tr>
42
- <tr>
43
- <td><b>原设备安装费</b></td>
44
- <td>{{model.f_sbaz_cost}}</td>
45
- <td><b>现设备安装费</b></td>
46
- <td>{{model.f_new_sbaz_cost}}</td>
47
- </tr>
48
- <!-- <tr>
49
- <td><b>现入户安装费</b></td>
50
- <td>{{model.f_new_construction_cost}}</td>
51
- </tr>
52
- <tr>
53
- <td><b>现材料费</b></td>
54
- <td>{{model.f_new_material_cost}}</td>
55
- </tr>
56
- <tr>
57
- <td><b>现工人费</b></td>
58
- <td>{{model.f_new_labor_cost}}</td>
59
- </tr>
60
- <tr>
61
- <td><b>现改管费</b></td>
62
- <td>{{model.f_new_change_pipeline_cost}}</td>
63
- </tr>
64
- <tr>
65
- <td><b>现设备安装费</b></td>
66
- <td>{{model.f_new_sbaz_cost}}</td>
67
- </tr> -->
68
- <tr>
69
- <td><b>操作日期</b></td>
70
- <td colspan="3">{{model.f_date}}</td>
71
- </tr>
72
- </tbody>
73
- </table>
74
-
75
- </partial-view>
76
- </div>
77
- </template>
78
-
79
- <script>
80
- import Table from '../../../../Table'
81
- export default {
82
- title: '报建费用变更',
83
- props: ['data'],
84
- data () {
85
- return {
86
- model: {}
87
- }
88
- },
89
- ready () {
90
- let sql = 'singleTable_OrderBy'
91
- let data2 = {
92
- tablename: 't_changefee',
93
- condition: 'id = ' + this.data.id
94
- }
95
- this.$info(`加载数据中..., sql:${sql}`)
96
- this.$refs.pv.load('rs/sql/singleTable', {data: data2}).then((a) => {
97
- this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
98
- this.model = a.data
99
- console.log('1111111model', this.model)
100
- console.log('1111111data', a.data)
101
- }).catch((error) => {
102
- if (error.status) {
103
- this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
104
- return
105
- }
106
- throw error
107
- })
108
- },
109
- methods: {
110
- // 获取表中字段对应的中文名
111
- getValue (key) {
112
- return Table.data[key]
113
- }
114
- }
115
- }
116
- </script>
1
+ <template>
2
+ <div class="auto">
3
+ <partial-view v-ref:pv>
4
+ <!-- <div class="row"> -->
5
+ <!-- <label class = " col-sm-3 control-label">用户姓名:</label> -->
6
+ <!-- <span style="padding:0" class = " col-sm-3">{{model[0].f_user_name}}</span> -->
7
+ <!-- <label class = "col-sm-3 control-label">操作人:</label>
8
+ <span class = "col-sm-3">{{model.f_operator}}</span> -->
9
+ <!-- </div> -->
10
+ <table class="table table-bordered table-condensed self-table" id="table" >
11
+ <tbody>
12
+ <tr>
13
+ <td><b>原开户费</b></td>
14
+ <td>{{model.f_account_cost}}</td>
15
+ <td><b>现开户费</b></td>
16
+ <td>{{model.f_new_account_cost}}</td>
17
+ </tr>
18
+ <tr>
19
+ <td><b>原入户安装费</b></td>
20
+ <td>{{model.f_construction_cost}}</td>
21
+ <td><b>现入户安装费</b></td>
22
+ <td>{{model.f_new_construction_cost}}</td>
23
+ </tr>
24
+ <tr>
25
+ <td><b>原材料费</b></td>
26
+ <td>{{model.f_material_cost}}</td>
27
+ <td><b>现材料费</b></td>
28
+ <td>{{model.f_new_material_cost}}</td>
29
+ </tr>
30
+ <tr>
31
+ <td><b>原工人费</b></td>
32
+ <td>{{model.f_labor_cost}}</td>
33
+ <td><b>现工人费</b></td>
34
+ <td>{{model.f_new_labor_cost}}</td>
35
+ </tr>
36
+ <tr>
37
+ <td><b>原改管费</b></td>
38
+ <td>{{model.f_change_pipeline_cost}}</td>
39
+ <td><b>现改管费</b></td>
40
+ <td>{{model.f_new_change_pipeline_cost}}</td>
41
+ </tr>
42
+ <tr>
43
+ <td><b>原设备安装费</b></td>
44
+ <td>{{model.f_sbaz_cost}}</td>
45
+ <td><b>现设备安装费</b></td>
46
+ <td>{{model.f_new_sbaz_cost}}</td>
47
+ </tr>
48
+ <!-- <tr>
49
+ <td><b>现入户安装费</b></td>
50
+ <td>{{model.f_new_construction_cost}}</td>
51
+ </tr>
52
+ <tr>
53
+ <td><b>现材料费</b></td>
54
+ <td>{{model.f_new_material_cost}}</td>
55
+ </tr>
56
+ <tr>
57
+ <td><b>现工人费</b></td>
58
+ <td>{{model.f_new_labor_cost}}</td>
59
+ </tr>
60
+ <tr>
61
+ <td><b>现改管费</b></td>
62
+ <td>{{model.f_new_change_pipeline_cost}}</td>
63
+ </tr>
64
+ <tr>
65
+ <td><b>现设备安装费</b></td>
66
+ <td>{{model.f_new_sbaz_cost}}</td>
67
+ </tr> -->
68
+ <tr>
69
+ <td><b>操作日期</b></td>
70
+ <td colspan="3">{{model.f_date}}</td>
71
+ </tr>
72
+ </tbody>
73
+ </table>
74
+
75
+ </partial-view>
76
+ </div>
77
+ </template>
78
+
79
+ <script>
80
+ import Table from '../../../../Table'
81
+ export default {
82
+ title: '报建费用变更',
83
+ props: ['data'],
84
+ data () {
85
+ return {
86
+ model: {}
87
+ }
88
+ },
89
+ ready () {
90
+ let sql = 'singleTable_OrderBy'
91
+ let data2 = {
92
+ tablename: 't_changefee',
93
+ condition: 'id = ' + this.data.id
94
+ }
95
+ this.$info(`加载数据中..., sql:${sql}`)
96
+ this.$resetpost('rs/sql/singleTable', {data: data2}).then((a) => {
97
+ this.$info(`成功获取到数据!, data:${JSON.stringify(a.data)}`)
98
+ this.model = a.data
99
+ console.log('1111111model', this.model)
100
+ console.log('1111111data', a.data)
101
+ }).catch((error) => {
102
+ if (error.status) {
103
+ this.$warn(`加载数据出错, ${JSON.stringify(error)}`)
104
+ return
105
+ }
106
+ throw error
107
+ })
108
+ },
109
+ methods: {
110
+ // 获取表中字段对应的中文名
111
+ getValue (key) {
112
+ return Table.data[key]
113
+ }
114
+ }
115
+ }
116
+ </script>