apply-clients 3.4.73 → 3.4.75
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.
- package/build/dev-server.js +119 -116
- package/package.json +1 -1
- package/src/filiale/hongda/pc/ServiceView.vue +1 -1
- package/src/filiale/hongda/pc.js +6 -6
- package/src/filiale/linzhou/pc/ServiceControl.vue +27 -22
- package/src/filiale/linzhou/pc/SupervisoryServiceControl.vue +884 -0
- package/src/filiale/linzhou/pc/chargeManagement.vue +675 -0
- package/src/filiale/linzhou/pc.js +3 -1
- package/src/main.js +23 -23
package/build/dev-server.js
CHANGED
|
@@ -1,116 +1,119 @@
|
|
|
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
|
-
|
|
9
|
-
var ldap = 'http://
|
|
10
|
-
var applyinstall = 'http://
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'/rs/
|
|
22
|
-
target: ldap
|
|
23
|
-
},
|
|
24
|
-
//
|
|
25
|
-
'/rs/
|
|
26
|
-
target: ldap
|
|
27
|
-
},
|
|
28
|
-
//
|
|
29
|
-
'/rs/
|
|
30
|
-
target: ldap
|
|
31
|
-
},
|
|
32
|
-
//
|
|
33
|
-
'/rs/logic/
|
|
34
|
-
target: ldap
|
|
35
|
-
},
|
|
36
|
-
//
|
|
37
|
-
'/rs/
|
|
38
|
-
target: ldap
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'/
|
|
54
|
-
target: applyinstall
|
|
55
|
-
},
|
|
56
|
-
'/
|
|
57
|
-
target: applyinstall
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
//
|
|
92
|
-
|
|
93
|
-
//
|
|
94
|
-
// res.header('
|
|
95
|
-
// res.header('Access-Control-Allow-
|
|
96
|
-
// res.header('
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
//
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
//
|
|
108
|
-
app.use(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
+
// var ldap = 'http://121.36.79.201:8400'
|
|
10
|
+
// var applyinstall = 'http://121.36.79.201:8400'
|
|
11
|
+
var ldap = 'http://219.138.226.181:8401'
|
|
12
|
+
var applyinstall = 'http://219.138.226.181:8401'
|
|
13
|
+
|
|
14
|
+
var proxyTable = {
|
|
15
|
+
'/rs/logic/getSaleInitData': {
|
|
16
|
+
target: ldap
|
|
17
|
+
},
|
|
18
|
+
'/rs/workflow': {
|
|
19
|
+
target: applyinstall
|
|
20
|
+
},
|
|
21
|
+
'/rs/vue': {
|
|
22
|
+
target: ldap
|
|
23
|
+
},
|
|
24
|
+
// 查找资源服务数据
|
|
25
|
+
'/rs/search': {
|
|
26
|
+
target: ldap
|
|
27
|
+
},
|
|
28
|
+
// 街道查询
|
|
29
|
+
'/rs/sql/address_getstreetlist': {
|
|
30
|
+
target: ldap
|
|
31
|
+
},
|
|
32
|
+
// 创建街道
|
|
33
|
+
'/rs/logic/address_updatestreet': {
|
|
34
|
+
target: ldap
|
|
35
|
+
},
|
|
36
|
+
// 创建小区
|
|
37
|
+
'/rs/logic/address_updatearea': {
|
|
38
|
+
target: ldap
|
|
39
|
+
},
|
|
40
|
+
// 用户登录服务地址
|
|
41
|
+
'/rs/user': {
|
|
42
|
+
target: ldap
|
|
43
|
+
},
|
|
44
|
+
'/rs/logic/getInitData': {
|
|
45
|
+
target: ldap?ldap:applyinstall
|
|
46
|
+
},
|
|
47
|
+
'/rs/logic/getLogin': {
|
|
48
|
+
target: ldap
|
|
49
|
+
},
|
|
50
|
+
'/rs/file': { // 文件上传
|
|
51
|
+
target: applyinstall
|
|
52
|
+
},
|
|
53
|
+
'/project': { // 文件回显
|
|
54
|
+
target: applyinstall
|
|
55
|
+
},
|
|
56
|
+
'/rs': {
|
|
57
|
+
target: applyinstall
|
|
58
|
+
},
|
|
59
|
+
'/ws': {
|
|
60
|
+
target: applyinstall,
|
|
61
|
+
ws: true // 代理webSocket
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
66
|
+
publicPath: config.output.publicPath,
|
|
67
|
+
stats: {
|
|
68
|
+
colors: true,
|
|
69
|
+
chunks: false
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
74
|
+
// force page reload when html-webpack-plugin template changes
|
|
75
|
+
compiler.plugin('compilation', function (compilation) {
|
|
76
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
77
|
+
hotMiddleware.publish({action: 'reload'})
|
|
78
|
+
cb()
|
|
79
|
+
})
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
// proxy api requests
|
|
83
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
84
|
+
var options = proxyTable[context]
|
|
85
|
+
if (typeof options === 'string') {
|
|
86
|
+
options = {target: options}
|
|
87
|
+
}
|
|
88
|
+
app.use(proxyMiddleware(context, options))
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
// handle fallback for HTML5 history API
|
|
92
|
+
app.use(require('connect-history-api-fallback')())
|
|
93
|
+
// app.use(function (req, res, next) {
|
|
94
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
95
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
96
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
97
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
98
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
99
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
100
|
+
// next()
|
|
101
|
+
// })
|
|
102
|
+
|
|
103
|
+
// serve webpack bundle output
|
|
104
|
+
app.use(devMiddleware)
|
|
105
|
+
|
|
106
|
+
// enable hot-reload and state-preserving
|
|
107
|
+
// compilation error display
|
|
108
|
+
app.use(hotMiddleware)
|
|
109
|
+
|
|
110
|
+
// serve pure static assets
|
|
111
|
+
app.use('/static', express.static('./static'))
|
|
112
|
+
|
|
113
|
+
module.exports = app.listen(8300, function (err) {
|
|
114
|
+
if (err) {
|
|
115
|
+
console.log(err)
|
|
116
|
+
return
|
|
117
|
+
}
|
|
118
|
+
console.log('Listening at http://localhost:8300')
|
|
119
|
+
})
|
package/package.json
CHANGED
package/src/filiale/hongda/pc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
|
-
|
|
3
|
-
let specialComp = {
|
|
4
|
-
'
|
|
5
|
-
}
|
|
6
|
-
exports.specialComp = specialComp
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
|
|
3
|
+
let specialComp = {
|
|
4
|
+
'service-view': (resolve) => { require(['./pc/ServiceView'], resolve) },
|
|
5
|
+
}
|
|
6
|
+
exports.specialComp = specialComp
|
|
@@ -301,6 +301,14 @@
|
|
|
301
301
|
let temp = JSON.parse(JSON.stringify(this.selectdata))
|
|
302
302
|
console.log('打印下temp',temp)
|
|
303
303
|
this.show_data = temp
|
|
304
|
+
for (const item of this.show_data.fields) {
|
|
305
|
+
if(item.label==='气价名称'){
|
|
306
|
+
item.value=this.show_data.f_price_name
|
|
307
|
+
}
|
|
308
|
+
if(item.label==='安装合同编号'&& this.show_data.f_whether_underground == '无'){
|
|
309
|
+
item.required=false
|
|
310
|
+
}
|
|
311
|
+
}
|
|
304
312
|
this.$nextTick(() => {
|
|
305
313
|
this.showview = true
|
|
306
314
|
})
|
|
@@ -742,7 +750,7 @@
|
|
|
742
750
|
},
|
|
743
751
|
async getDesignerPeople () {
|
|
744
752
|
let data = {
|
|
745
|
-
source: 'this.getParentByType($organization$).getChildByName(
|
|
753
|
+
source: 'this.getParentByType($organization$).getChildByName($施工部报装$).getChildren()',
|
|
746
754
|
userid: this.$login.f.id
|
|
747
755
|
}
|
|
748
756
|
|
|
@@ -751,7 +759,7 @@
|
|
|
751
759
|
'POST',
|
|
752
760
|
`rs/search`,
|
|
753
761
|
{data: data},
|
|
754
|
-
{resolveMsg: null, rejectMsg: '
|
|
762
|
+
{resolveMsg: null, rejectMsg: '施工人员查询失败!!!'}
|
|
755
763
|
)
|
|
756
764
|
|
|
757
765
|
return res.data.map(item => {
|
|
@@ -763,9 +771,6 @@
|
|
|
763
771
|
},
|
|
764
772
|
async surveyStopApply () {
|
|
765
773
|
console.log('终止报建!!!!!')
|
|
766
|
-
|
|
767
|
-
this.show_data.f_stop_reason = '现场勘察不符合报装条件'
|
|
768
|
-
|
|
769
774
|
let data = {
|
|
770
775
|
data: this.show_data,
|
|
771
776
|
user: this.$login.f
|
|
@@ -1669,23 +1674,13 @@
|
|
|
1669
1674
|
&& (this.show_data.defname === '报装申请') && this.show_data.button.button_name === '提交'){
|
|
1670
1675
|
await this.contract_number()
|
|
1671
1676
|
}
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
// }
|
|
1680
|
-
// let http = new HttpResetClass()
|
|
1681
|
-
// let restpz = await http.load(
|
|
1682
|
-
// 'POST',
|
|
1683
|
-
// `rs/sql/checkuser`,
|
|
1684
|
-
// {data: dataz},
|
|
1685
|
-
// {resolveMsg: null, rejectMsg: '报建数据查询失败!!!'}
|
|
1686
|
-
// )
|
|
1687
|
-
// this.show_data.actid=restpz.data[0].actid
|
|
1688
|
-
// }
|
|
1677
|
+
if (this.show_data.defname === '验收送气' && this.show_data.f_air_tightness === '不合格' && this.show_data.button.button_name === '提交'){
|
|
1678
|
+
this.show_data.button.button_name = '维修'
|
|
1679
|
+
}
|
|
1680
|
+
if (this.show_data.defname === '踏勘设计' && this.show_data.f_is_have === '否' && this.show_data.button.button_name === '提交'){
|
|
1681
|
+
this.surveyStopApply()
|
|
1682
|
+
return
|
|
1683
|
+
}
|
|
1689
1684
|
let res = await this.$resetpost(
|
|
1690
1685
|
`rs/logic/ApplyProductService`,
|
|
1691
1686
|
{data: this.show_data},
|
|
@@ -1841,6 +1836,16 @@
|
|
|
1841
1836
|
this.setLabelValue("地址", f_address)
|
|
1842
1837
|
}
|
|
1843
1838
|
}
|
|
1839
|
+
if (this.show_data.defname === '踏勘设计' && this.show_data.f_is_have === '否'){
|
|
1840
|
+
if (this.show_data.fields[index+1].label == '不具备安装原因'){
|
|
1841
|
+
this.show_data.fields[index+1].hidden = false
|
|
1842
|
+
this.show_data.fields[index+1].required = true
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
if (this.show_data.defname === '工程派工' && this.show_data.f_start_build && this.show_data.f_end_build){
|
|
1846
|
+
this.show_data.f_build_days = (new Date(this.show_data.f_end_build) - new Date(this.show_data.f_start_build))/1000/60/60/24
|
|
1847
|
+
this.setLabelValue("预计施工天数", this.show_data.f_build_days)
|
|
1848
|
+
}
|
|
1844
1849
|
},
|
|
1845
1850
|
selectSearch (val, index) {},
|
|
1846
1851
|
'onblur' (index) {},
|