sale-client 3.4.104 → 3.4.107
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 +157 -157
- package/package.json +1 -1
- package/src/components/FilesManage/UserDeviceInfoTest.vue +17 -2
- package/src/components/FilesManage/UserMeterInfoTest.vue +155 -155
- package/src/components/FilesManageNew/UserGeneralInfoTest.vue +599 -599
- package/src/components/charge/ChargeList.vue +897 -897
- package/src/components/charge/ChargeManage.vue +243 -243
- package/src/components/charge/business/ShowCiTiaoCard.vue +168 -168
- package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +171 -171
- package/src/components/revenue/base/rightview/CardList.vue +478 -478
- package/src/components/revenue/comprehen/ComprehenOperation/ReplaceCard/ReplaceCardManage.vue +415 -415
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +14 -5
- package/src/filiale/macheng/UserEssentialInfoTest.vue +22 -2
- package/src/filiale/qianneng/machine/MachineMeterCenter.vue +721 -721
- package/src/filiale/qianneng/sale.js +27 -27
- package/src/filiale/tongchuan/CardList.vue +482 -0
- package/src/filiale/tongchuan/base/RecordCancel.vue +2 -0
- package/src/filiale/tongchuan/sale.js +4 -2
- package/src/main.js +23 -23
- package/src/sale.js +1065 -1065
package/build/dev-server.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
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:8080/',bendi1 = 'http://119.146.1.106:8300/'
|
|
14
|
-
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://192.168.50.4: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://127.0.0.1:8079'
|
|
92
|
-
},
|
|
93
|
-
'/rs/vue': {
|
|
94
|
-
target: fuwu
|
|
95
|
-
},
|
|
96
|
-
'/rs': {
|
|
97
|
-
// target: 'http://192.168.30.63:8081/'
|
|
98
|
-
|
|
99
|
-
target:
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
104
|
-
publicPath: config.output.publicPath,
|
|
105
|
-
stats: {
|
|
106
|
-
colors: true,
|
|
107
|
-
chunks: false
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
112
|
-
// force page reload when html-webpack-plugin template changes
|
|
113
|
-
compiler.plugin('compilation', function (compilation) {
|
|
114
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
115
|
-
hotMiddleware.publish({action: 'reload'})
|
|
116
|
-
cb()
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
// proxy api requests
|
|
121
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
122
|
-
var options = proxyTable[context]
|
|
123
|
-
if (typeof options === 'string') {
|
|
124
|
-
options = {target: options}
|
|
125
|
-
}
|
|
126
|
-
app.use(proxyMiddleware(context, options))
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
// handle fallback for HTML5 history API
|
|
130
|
-
app.use(require('connect-history-api-fallback')())
|
|
131
|
-
// app.use(function (req, res, next) {
|
|
132
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
133
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
134
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
135
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
136
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
137
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
138
|
-
// next()
|
|
139
|
-
// })
|
|
140
|
-
|
|
141
|
-
// serve webpack bundle output
|
|
142
|
-
app.use(devMiddleware)
|
|
143
|
-
|
|
144
|
-
// enable hot-reload and state-preserving
|
|
145
|
-
// compilation error display
|
|
146
|
-
app.use(hotMiddleware)
|
|
147
|
-
|
|
148
|
-
// serve pure static assets
|
|
149
|
-
app.use('/static', express.static('./static'))
|
|
150
|
-
|
|
151
|
-
module.exports = app.listen(8089, function (err) {
|
|
152
|
-
if (err) {
|
|
153
|
-
console.log(err)
|
|
154
|
-
return
|
|
155
|
-
}
|
|
156
|
-
console.log('Listening at http://localhost:8089')
|
|
157
|
-
})
|
|
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:8080/',bendi1 = 'http://119.146.1.106:8300/'
|
|
14
|
+
// 公司测试服务
|
|
15
|
+
var fuwu = 'http://192.168.50.4: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://127.0.0.1:8079'
|
|
92
|
+
},
|
|
93
|
+
'/rs/vue': {
|
|
94
|
+
target: fuwu
|
|
95
|
+
},
|
|
96
|
+
'/rs': {
|
|
97
|
+
// target: 'http://192.168.30.63:8081/'
|
|
98
|
+
target: 'http://127.0.0.1:8080'
|
|
99
|
+
// target:fuwu
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
104
|
+
publicPath: config.output.publicPath,
|
|
105
|
+
stats: {
|
|
106
|
+
colors: true,
|
|
107
|
+
chunks: false
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
112
|
+
// force page reload when html-webpack-plugin template changes
|
|
113
|
+
compiler.plugin('compilation', function (compilation) {
|
|
114
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
115
|
+
hotMiddleware.publish({action: 'reload'})
|
|
116
|
+
cb()
|
|
117
|
+
})
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
// proxy api requests
|
|
121
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
122
|
+
var options = proxyTable[context]
|
|
123
|
+
if (typeof options === 'string') {
|
|
124
|
+
options = {target: options}
|
|
125
|
+
}
|
|
126
|
+
app.use(proxyMiddleware(context, options))
|
|
127
|
+
})
|
|
128
|
+
|
|
129
|
+
// handle fallback for HTML5 history API
|
|
130
|
+
app.use(require('connect-history-api-fallback')())
|
|
131
|
+
// app.use(function (req, res, next) {
|
|
132
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
133
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
134
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
135
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
136
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
137
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
138
|
+
// next()
|
|
139
|
+
// })
|
|
140
|
+
|
|
141
|
+
// serve webpack bundle output
|
|
142
|
+
app.use(devMiddleware)
|
|
143
|
+
|
|
144
|
+
// enable hot-reload and state-preserving
|
|
145
|
+
// compilation error display
|
|
146
|
+
app.use(hotMiddleware)
|
|
147
|
+
|
|
148
|
+
// serve pure static assets
|
|
149
|
+
app.use('/static', express.static('./static'))
|
|
150
|
+
|
|
151
|
+
module.exports = app.listen(8089, function (err) {
|
|
152
|
+
if (err) {
|
|
153
|
+
console.log(err)
|
|
154
|
+
return
|
|
155
|
+
}
|
|
156
|
+
console.log('Listening at http://localhost:8089')
|
|
157
|
+
})
|
package/package.json
CHANGED
|
@@ -56,8 +56,11 @@
|
|
|
56
56
|
<div class="row auto" style="margin-left: 10px;">
|
|
57
57
|
<div class="col-sm-6 form-group" style="padding-right: 5px;" :class="[row.f_devices_type == '壁挂炉' && (row.f_input_person == '' || row.f_input_person == null) ? 'has-error' : '']">
|
|
58
58
|
<label class="font_normal_body">安装人 </label>
|
|
59
|
-
<input type="text" class="input_search" style="width:60%" v-model="row.f_input_person"
|
|
60
|
-
placeholder='安装人'
|
|
59
|
+
<!-- <input type="text" class="input_search" style="width:60%" v-model="row.f_input_person"-->
|
|
60
|
+
<!-- placeholder='安装人'>-->
|
|
61
|
+
<v-select :value.sync="row.f_input_person" v-model="row.f_input_person"
|
|
62
|
+
:options='installperson' placeholder='安装人'
|
|
63
|
+
close-on-select></v-select>
|
|
61
64
|
</div>
|
|
62
65
|
<div class="col-sm-6 form-group" style="padding-right: 5px;" :class="[row.f_devices_type == '壁挂炉' && row.f_input_date == '' ? 'has-error' : '']">
|
|
63
66
|
<label class="font_normal_body">安装日期</label>
|
|
@@ -264,6 +267,18 @@ export default {
|
|
|
264
267
|
}
|
|
265
268
|
},
|
|
266
269
|
computed: {
|
|
270
|
+
installperson () {
|
|
271
|
+
// return this.$login.f.f_installman
|
|
272
|
+
let rs = new Array()
|
|
273
|
+
for (let i = 0; i < this.$login.f.f_installman.length; i++) {
|
|
274
|
+
let temp = {
|
|
275
|
+
label: this.$login.f.f_installman[i].name,
|
|
276
|
+
value: this.$login.f.f_installman[i].name
|
|
277
|
+
}
|
|
278
|
+
rs.push(temp)
|
|
279
|
+
}
|
|
280
|
+
return rs
|
|
281
|
+
},
|
|
267
282
|
},
|
|
268
283
|
methods: {
|
|
269
284
|
showTableBtn () {
|
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto">
|
|
3
|
-
<div class="" v-for="row in meterinfo">
|
|
4
|
-
<div style="margin-bottom: 2%; margin-top: 2%">
|
|
5
|
-
<img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
|
|
6
|
-
<a style="font-size: 20px;font-weight: 500;">表具{{$index+1}}信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
7
|
-
<button class="button_search" style="width: max-content" @click="deleteMeter($index, row)" v-if="!row.f_table_state ">删除表具
|
|
8
|
-
</button>
|
|
9
|
-
<button class="button_search" style="width: max-content" @click="showDevices($index, row)">用气设备信息</button>
|
|
10
|
-
<button class="button_search" style="width: max-content" @click="showFire($index, row)">点火信息</button>
|
|
11
|
-
</div>
|
|
12
|
-
<file-meter-info :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
|
|
13
|
-
@delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id"></file-meter-info>
|
|
14
|
-
<file-user-fire-info @clearfire="clearfire(row)" :addressinfo="addressinfo" :fireinfo.sync="fireinfo" :show_fire.sync="show_fire" :meter.sync="row" :baseinfo.sync="baseinfo"
|
|
15
|
-
:userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-fire-info>
|
|
16
|
-
|
|
17
|
-
</div>
|
|
18
|
-
<div class="panel panel-default auto text-center" @click="addMeter()" style="cursor: pointer;" v-if="permission('建档一户多表')">
|
|
19
|
-
<span class="glyphicon glyphicon-plus"></span>
|
|
20
|
-
<!--<img :src="imgmeter" alt="图片加载失败" class="img-rounded" style="width: 50px;margin:10px;">-->
|
|
21
|
-
</div>
|
|
22
|
-
<file-user-device-info :devicesinfo.sync="devicesinfo" :show_devices.sync="show_devices"
|
|
23
|
-
:f_input_person="f_input_person" :userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-device-info>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script>
|
|
28
|
-
import UserDeviceInfoTest from './UserDeviceInfoTest'
|
|
29
|
-
export default {
|
|
30
|
-
components: {UserDeviceInfoTest},
|
|
31
|
-
title: '表具信息',
|
|
32
|
-
data () {
|
|
33
|
-
return {
|
|
34
|
-
pricenames: [],
|
|
35
|
-
devicesinfo: [],
|
|
36
|
-
show_devices: false,
|
|
37
|
-
fireinfo : {},
|
|
38
|
-
f_input_person: '',
|
|
39
|
-
show_fire: false,
|
|
40
|
-
imgdelete: '/images/mainicon/deletedevice.png',
|
|
41
|
-
imgsrc: '/images/mainicon/biaopan.png',
|
|
42
|
-
imgmeter: '/images/mainicon/addmeter.png'
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
// props: ['meterinfo', 'usertype', 'gasproperties', 'metervalid'],
|
|
46
|
-
|
|
47
|
-
props: {
|
|
48
|
-
meterinfo: [],
|
|
49
|
-
usertype: {},
|
|
50
|
-
gasproperties: {},
|
|
51
|
-
metervalid: {
|
|
52
|
-
twoWay: true
|
|
53
|
-
},
|
|
54
|
-
addressinfo:{},
|
|
55
|
-
baseinfo:{},
|
|
56
|
-
f_filialeid: {},
|
|
57
|
-
f_userinfo_id: {},
|
|
58
|
-
overdueset:{}
|
|
59
|
-
},
|
|
60
|
-
ready () {
|
|
61
|
-
console.log('表具信息,,,,', this.meterinfo)
|
|
62
|
-
},
|
|
63
|
-
methods: {
|
|
64
|
-
permission (name) {
|
|
65
|
-
if (!this.$login.r.find(value => value == name)) {
|
|
66
|
-
return false
|
|
67
|
-
}
|
|
68
|
-
return true
|
|
69
|
-
},
|
|
70
|
-
isNull (value) {
|
|
71
|
-
return value && value.length > 0
|
|
72
|
-
},
|
|
73
|
-
addMeter () {
|
|
74
|
-
this.meterinfo.push({
|
|
75
|
-
// 表号
|
|
76
|
-
f_meternumber: '',
|
|
77
|
-
f_metertitles: '',
|
|
78
|
-
f_area_code: '',
|
|
79
|
-
// 气表品牌
|
|
80
|
-
gasbrand: '',
|
|
81
|
-
// 气表型号
|
|
82
|
-
gasmodel: '',
|
|
83
|
-
// 气表类型
|
|
84
|
-
gasmodeltype: '',
|
|
85
|
-
pricetype: '', // 气价类型
|
|
86
|
-
pricename: '', // 气价名称
|
|
87
|
-
f_user_type: '', // 用户类型
|
|
88
|
-
f_gasproperties: '', // 用气性质
|
|
89
|
-
f_inputtor: '',
|
|
90
|
-
// 安装位置
|
|
91
|
-
f_position: '',
|
|
92
|
-
f_subscribe_date: '',
|
|
93
|
-
// 左右表
|
|
94
|
-
f_aroundmeter: '',
|
|
95
|
-
f_garbage_fee: '',
|
|
96
|
-
f_meter_base: '',
|
|
97
|
-
// 安装人
|
|
98
|
-
f_instaler_person: '',
|
|
99
|
-
// 通气人
|
|
100
|
-
f_gas_person: '',
|
|
101
|
-
f_adjustable: '', // 调压箱
|
|
102
|
-
devicesinfo: [],
|
|
103
|
-
fireinfo: {}
|
|
104
|
-
})
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
showDevices (index, row) {
|
|
108
|
-
this.devicesinfo = []
|
|
109
|
-
this.show_devices = true
|
|
110
|
-
this.devicesinfo = row.devicesinfo
|
|
111
|
-
if ( row.f_install_person[0]) {
|
|
112
|
-
this.f_input_person = row.f_install_person[0]
|
|
113
|
-
}
|
|
114
|
-
console.log('查看设备信息', this.devicesinfo)
|
|
115
|
-
},
|
|
116
|
-
showFire (index, row) {
|
|
117
|
-
if(row.f_user_type.length==0){
|
|
118
|
-
this.$showAlert('请先确定客户类型', 'warning', 3000)
|
|
119
|
-
}else{
|
|
120
|
-
this.fireinfo = {}
|
|
121
|
-
this.show_fire = true
|
|
122
|
-
this.fireinfo = row.fireinfo?row.fireinfo:{}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
// 清楚表具信息
|
|
126
|
-
|
|
127
|
-
clearMeter () {
|
|
128
|
-
this.meterinfo = []
|
|
129
|
-
},
|
|
130
|
-
deleteMeter (index) {
|
|
131
|
-
this.meterinfo.splice(index, 1)
|
|
132
|
-
this.valida()
|
|
133
|
-
},
|
|
134
|
-
valida () {
|
|
135
|
-
for (var i = 0; i < this.meterinfo.length; i++) {
|
|
136
|
-
console.log('表具信息验证', this.meterinfo, this.meterinfo[i].valid)
|
|
137
|
-
if (!this.meterinfo[i].valid) {
|
|
138
|
-
this.metervalid = false
|
|
139
|
-
return
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
this.metervalid = true
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
</script>
|
|
147
|
-
<style lang="less">
|
|
148
|
-
.user-meter-padding {
|
|
149
|
-
.form-group {
|
|
150
|
-
> div {
|
|
151
|
-
padding-right: 5px;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<div class="" v-for="row in meterinfo">
|
|
4
|
+
<div style="margin-bottom: 2%; margin-top: 2%">
|
|
5
|
+
<img style="margin-top: -5px" src="../../../static/images/lefticon/矩形1183.png">
|
|
6
|
+
<a style="font-size: 20px;font-weight: 500;">表具{{$index+1}}信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
7
|
+
<button class="button_search" style="width: max-content" @click="deleteMeter($index, row)" v-if="!row.f_table_state ">删除表具
|
|
8
|
+
</button>
|
|
9
|
+
<button class="button_search" style="width: max-content" @click="showDevices($index, row)">用气设备信息</button>
|
|
10
|
+
<button class="button_search" style="width: max-content" @click="showFire($index, row)">点火信息</button>
|
|
11
|
+
</div>
|
|
12
|
+
<file-meter-info :meter="row" :f_filialeid="f_filialeid" :usertype="usertype" :gasproperties="gasproperties" :overdueset="overdueset" @self-valid='valida'
|
|
13
|
+
@delete-meter="deleteMeter($index)" :f_userinfo_id="f_userinfo_id"></file-meter-info>
|
|
14
|
+
<file-user-fire-info @clearfire="clearfire(row)" :addressinfo="addressinfo" :fireinfo.sync="fireinfo" :show_fire.sync="show_fire" :meter.sync="row" :baseinfo.sync="baseinfo"
|
|
15
|
+
:userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-fire-info>
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
<div class="panel panel-default auto text-center" @click="addMeter()" style="cursor: pointer;" v-if="permission('建档一户多表')">
|
|
19
|
+
<span class="glyphicon glyphicon-plus"></span>
|
|
20
|
+
<!--<img :src="imgmeter" alt="图片加载失败" class="img-rounded" style="width: 50px;margin:10px;">-->
|
|
21
|
+
</div>
|
|
22
|
+
<file-user-device-info :devicesinfo.sync="devicesinfo" :show_devices.sync="show_devices"
|
|
23
|
+
:f_input_person="f_input_person" :userinfoid='data.baseinfo.base.f_userinfo_id'></file-user-device-info>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script>
|
|
28
|
+
import UserDeviceInfoTest from './UserDeviceInfoTest'
|
|
29
|
+
export default {
|
|
30
|
+
components: {UserDeviceInfoTest},
|
|
31
|
+
title: '表具信息',
|
|
32
|
+
data () {
|
|
33
|
+
return {
|
|
34
|
+
pricenames: [],
|
|
35
|
+
devicesinfo: [],
|
|
36
|
+
show_devices: false,
|
|
37
|
+
fireinfo : {},
|
|
38
|
+
f_input_person: '',
|
|
39
|
+
show_fire: false,
|
|
40
|
+
imgdelete: '/images/mainicon/deletedevice.png',
|
|
41
|
+
imgsrc: '/images/mainicon/biaopan.png',
|
|
42
|
+
imgmeter: '/images/mainicon/addmeter.png'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
// props: ['meterinfo', 'usertype', 'gasproperties', 'metervalid'],
|
|
46
|
+
|
|
47
|
+
props: {
|
|
48
|
+
meterinfo: [],
|
|
49
|
+
usertype: {},
|
|
50
|
+
gasproperties: {},
|
|
51
|
+
metervalid: {
|
|
52
|
+
twoWay: true
|
|
53
|
+
},
|
|
54
|
+
addressinfo:{},
|
|
55
|
+
baseinfo:{},
|
|
56
|
+
f_filialeid: {},
|
|
57
|
+
f_userinfo_id: {},
|
|
58
|
+
overdueset:{}
|
|
59
|
+
},
|
|
60
|
+
ready () {
|
|
61
|
+
console.log('表具信息,,,,', this.meterinfo)
|
|
62
|
+
},
|
|
63
|
+
methods: {
|
|
64
|
+
permission (name) {
|
|
65
|
+
if (!this.$login.r.find(value => value == name)) {
|
|
66
|
+
return false
|
|
67
|
+
}
|
|
68
|
+
return true
|
|
69
|
+
},
|
|
70
|
+
isNull (value) {
|
|
71
|
+
return value && value.length > 0
|
|
72
|
+
},
|
|
73
|
+
addMeter () {
|
|
74
|
+
this.meterinfo.push({
|
|
75
|
+
// 表号
|
|
76
|
+
f_meternumber: '',
|
|
77
|
+
f_metertitles: '',
|
|
78
|
+
f_area_code: '',
|
|
79
|
+
// 气表品牌
|
|
80
|
+
gasbrand: '',
|
|
81
|
+
// 气表型号
|
|
82
|
+
gasmodel: '',
|
|
83
|
+
// 气表类型
|
|
84
|
+
gasmodeltype: '',
|
|
85
|
+
pricetype: '', // 气价类型
|
|
86
|
+
pricename: '', // 气价名称
|
|
87
|
+
f_user_type: '', // 用户类型
|
|
88
|
+
f_gasproperties: '', // 用气性质
|
|
89
|
+
f_inputtor: '',
|
|
90
|
+
// 安装位置
|
|
91
|
+
f_position: '',
|
|
92
|
+
f_subscribe_date: '',
|
|
93
|
+
// 左右表
|
|
94
|
+
f_aroundmeter: '',
|
|
95
|
+
f_garbage_fee: '',
|
|
96
|
+
f_meter_base: '',
|
|
97
|
+
// 安装人
|
|
98
|
+
f_instaler_person: '',
|
|
99
|
+
// 通气人
|
|
100
|
+
f_gas_person: '',
|
|
101
|
+
f_adjustable: '', // 调压箱
|
|
102
|
+
devicesinfo: [],
|
|
103
|
+
fireinfo: {}
|
|
104
|
+
})
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
showDevices (index, row) {
|
|
108
|
+
this.devicesinfo = []
|
|
109
|
+
this.show_devices = true
|
|
110
|
+
this.devicesinfo = row.devicesinfo
|
|
111
|
+
if ( row.f_install_person[0]) {
|
|
112
|
+
this.f_input_person = row.f_install_person[0]
|
|
113
|
+
}
|
|
114
|
+
console.log('查看设备信息', this.devicesinfo)
|
|
115
|
+
},
|
|
116
|
+
showFire (index, row) {
|
|
117
|
+
if(row.f_user_type.length==0){
|
|
118
|
+
this.$showAlert('请先确定客户类型', 'warning', 3000)
|
|
119
|
+
}else{
|
|
120
|
+
this.fireinfo = {}
|
|
121
|
+
this.show_fire = true
|
|
122
|
+
this.fireinfo = row.fireinfo?row.fireinfo:{}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
// 清楚表具信息
|
|
126
|
+
|
|
127
|
+
clearMeter () {
|
|
128
|
+
this.meterinfo = []
|
|
129
|
+
},
|
|
130
|
+
deleteMeter (index) {
|
|
131
|
+
this.meterinfo.splice(index, 1)
|
|
132
|
+
this.valida()
|
|
133
|
+
},
|
|
134
|
+
valida () {
|
|
135
|
+
for (var i = 0; i < this.meterinfo.length; i++) {
|
|
136
|
+
console.log('表具信息验证', this.meterinfo, this.meterinfo[i].valid)
|
|
137
|
+
if (!this.meterinfo[i].valid) {
|
|
138
|
+
this.metervalid = false
|
|
139
|
+
return
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
this.metervalid = true
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
</script>
|
|
147
|
+
<style lang="less">
|
|
148
|
+
.user-meter-padding {
|
|
149
|
+
.form-group {
|
|
150
|
+
> div {
|
|
151
|
+
padding-right: 5px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</style>
|