sale-client 3.5.170 → 3.5.172

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.
Files changed (29) hide show
  1. package/build/dev-server.js +201 -201
  2. package/package.json +1 -1
  3. package/src/components/charge/ChargeManage.vue +8 -1
  4. package/src/components/charge/business/CardMeterCenter.vue +13 -4
  5. package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +37 -33
  6. package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +8 -3
  7. package/src/components/revenue/base/leftview/meterinfodetail.vue +2 -2
  8. package/src/components/revenue/changeInsurance/InsuranceChargesDetails.vue +31 -17
  9. package/src/components/revenue/comprehen/Maintenance/fillgas/fillgasSpecific.vue +0 -1
  10. package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +2 -1
  11. package/src/filiale/rongchuang/CardMeterCenter.vue +36 -7
  12. package/src/filiale/shanxian/components/FilesManage/MeterinfoTest.vue +108 -69
  13. package/src/filiale/shanxian/components/FilesManage/UserGeneralInfoTest.vue +15 -9
  14. package/src/filiale/shanxian/components/revenue/ChargeList.vue +918 -0
  15. package/src/filiale/shanxian/components/revenue/base/Userinfo.vue +186 -0
  16. package/src/filiale/shanxian/sale.js +11 -1
  17. package/src/filiale/tongchuan/CardMeterCenter.vue +13 -5
  18. package/src/filiale/xiangyun/GasPrice.vue +524 -0
  19. package/src/filiale/xiangyun/IOTRefund.vue +169 -0
  20. package/src/filiale/xiangyun/RefundManage.vue +31 -0
  21. package/src/filiale/xiangyun/cardChargeQuery.vue +184 -0
  22. package/src/filiale/xiangyun/cardChargeQuery1.vue +171 -0
  23. package/src/filiale/xiangyun/cardRefund.vue +165 -0
  24. package/src/filiale/xiangyun/machineChargeQuery.vue +184 -0
  25. package/src/filiale/xiangyun/machineChargeQuery1.vue +171 -0
  26. package/src/filiale/xiangyun/machineRefund.vue +177 -0
  27. package/src/filiale/xiangyun/sale.js +18 -0
  28. package/src/main.js +1 -1
  29. package/src/plugins/LogicService.js +1 -1
@@ -1,201 +1,201 @@
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://192.168.50.4:8450'
16
- // 梅河口
17
- // var fuwu = 'http://139.214.92.34:8301'
18
- // 单县
19
- // var fuwu = 'http://119.187.112.234:8400'
20
- // 中盛
21
- // var fuwu = 'http://39.99.85.14:8400'
22
- // 燎原
23
- var fuwu = 'http://121.40.52.133:9001'
24
- // 葛华
25
- // var fuwu = 'http://219.138.226.181:8401'
26
- // 乌海
27
- // var fuwu = 'http://203.57.101.233:8400'
28
- // 铜川
29
- // var fuwu = 'http://61.134.55.234:9999/'
30
- // var fuwu = 'http://60.222.250.39:8300/'
31
- // 韶关
32
- // var fuwu = 'http://119.146.1.106:8300/'
33
- // 巩义测试服务
34
- // var fuwu = 'http://192.168.0.227:8400'
35
- // 燎原测试服务
36
- // var fuwu = 'http://121.41.19.238:8400 '
37
- // var fuwu = 'http://121.41.19.238:9001/'
38
-
39
- // var fuwu = 'http://139.214.92.34:8301/'
40
-
41
- var proxyTable = {
42
- // '/'
43
- // '/rs/logic/stopBasicLivingNew':{
44
- // target:'http://127.0.0.1:8080'
45
- // },
46
- // '/rs/logic/getBatchOperaPro':{
47
- // target:'http://127.0.0.1:8080'
48
- // },
49
- // '/rs/sql/sale_getUser':{
50
- // target:'http://127.0.0.1:8080'
51
- // },
52
- // '/rs/logic/getOperBtns':{
53
- // target:'http://127.0.0.1:8080'
54
- // },
55
- // '/rs/file/uploadFile':{
56
- // target:'http://127.0.0.1:8080'
57
- // },
58
- // '/rs/business/batchRunExcelDefault/filemanage_fileSave/newSettleFileImport':{
59
- // target:'http://127.0.0.1:8080'
60
- // },
61
- // '/rs/business/batchRunNew/BatchmachineDownHand/machineDownHand':{
62
- // target:'http:127.0.0.1:8080'
63
- // },
64
- // '/rs/sql/getDownPlan':{
65
- // target:'http:127.0.0.1:8080'
66
- // },
67
- // '/rs/logic/saleExport': {
68
- // target: fuwu
69
- // },
70
- // '/rs/logic/saleGetExportProgress': {
71
- // target: fuwu
72
- // },
73
- // '/rs/logic/getWarningMsg': {
74
- // target: 'http://localhost:8080/'
75
- // },
76
- '/rs/file': {
77
- target: fuwu
78
- },
79
- '/files': {
80
- target: fuwu
81
- },
82
- // 查找资源服务数据
83
- '/rs/search': {
84
- target: fuwu
85
- },
86
- // 查找资源服务数据
87
- '/rs/logic/getLogin': {
88
- target: fuwu
89
- },
90
- // 查找资源服务数据
91
- '/rs/logic/getInitData': {
92
- target: fuwu
93
- },
94
- '/rs/logic/getSaleInitData': {
95
- target: fuwu
96
- },
97
- '/invoice': {
98
- target: fuwu
99
- },
100
- // 用户登录服务地址
101
- '/rs/user': {
102
- target: fuwu
103
- },
104
- '/rs/path/getParams': {
105
- target: fuwu
106
- },
107
- '/rs/data': {
108
- target: fuwu
109
- },
110
- '/rs/license': {
111
- target: fuwu
112
- },
113
- '/rs/db': {
114
- target: fuwu
115
- },
116
- '/excel': {
117
- target: fuwu
118
- },
119
- '/rs/config': {
120
- target: fuwu
121
- },
122
- '/rs/sql/getLicenseById': {
123
- target: fuwu
124
- },
125
- '/rs/sql/manage_getarealist': {
126
- target: fuwu
127
- },
128
- '/rs/sql/manage_getstreetlist': {
129
- target: fuwu
130
- },
131
- '/rs/report': {
132
- target: 'http://121.36.106.17:8400/'
133
- },
134
- '/rs/vue': {
135
- target: fuwu
136
- },
137
- '/webmeter': {
138
- target: 'http://192.168.50.4:8450'
139
- },
140
- '/rs': {
141
- // target: 'http://192.168.30.63:8081/'
142
- // target: 'http://121.36.106.17:8400/'
143
- target: fuwu
144
- }
145
- }
146
-
147
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
148
- publicPath: config.output.publicPath,
149
- stats: {
150
- colors: true,
151
- chunks: false
152
- }
153
- })
154
-
155
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
156
- // force page reload when html-webpack-plugin template changes
157
- compiler.plugin('compilation', function (compilation) {
158
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
159
- hotMiddleware.publish({action: 'reload'})
160
- cb()
161
- })
162
- })
163
-
164
- // proxy api requests
165
- Object.keys(proxyTable).forEach(function (context) {
166
- var options = proxyTable[context]
167
- if (typeof options === 'string') {
168
- options = {target: options}
169
- }
170
- app.use(proxyMiddleware(context, options))
171
- })
172
-
173
- // handle fallback for HTML5 history API
174
- app.use(require('connect-history-api-fallback')())
175
- // app.use(function (req, res, next) {
176
- // res.header('Access-Control-Allow-Origin', '*')
177
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
178
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
179
- // res.header('X-Powered-By', '3,2,1')
180
- // res.header('Access-Control-Allow-Credentials', 'true')
181
- // res.header('Content-Type', 'application/json;charset=utf-8')
182
- // next()
183
- // })
184
-
185
- // serve webpack bundle output
186
- app.use(devMiddleware)
187
-
188
- // enable hot-reload and state-preserving
189
- // compilation error display
190
- app.use(hotMiddleware)
191
-
192
- // serve pure static assets
193
- app.use('/static', express.static('./static'))
194
-
195
- module.exports = app.listen(8089, function (err) {
196
- if (err) {
197
- console.log(err)
198
- return
199
- }
200
- console.log('Listening at http://localhost:8089')
201
- })
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://192.168.50.4:8450'
16
+ // 梅河口
17
+ // var fuwu = 'http://139.214.92.34:8301'
18
+ // 单县
19
+ // var fuwu = 'http://119.187.112.234:8400'
20
+ // 中盛
21
+ // var fuwu = 'http://39.99.85.14:8400'
22
+ // 燎原
23
+ var fuwu = 'http://121.36.106.17:8400'
24
+ // 葛华
25
+ // var fuwu = 'http://219.138.226.181:8401'
26
+ // 乌海
27
+ // var fuwu = 'http://203.57.101.233:8400'
28
+ // 铜川
29
+ // var fuwu = 'http://61.134.55.234:9999/'
30
+ // var fuwu = 'http://60.222.250.39:8300/'
31
+ // 韶关
32
+ // var fuwu = 'http://119.146.1.106:8300/'
33
+ // 巩义测试服务
34
+ // var fuwu = 'http://192.168.0.227:8400'
35
+ // 燎原测试服务
36
+ // var fuwu = 'http://121.41.19.238:8400 '
37
+ // var fuwu = 'http://121.41.19.238:9001/'
38
+
39
+ // var fuwu = 'http://139.214.92.34:8301/'
40
+
41
+ var proxyTable = {
42
+ // '/'
43
+ // '/rs/logic/stopBasicLivingNew':{
44
+ // target:'http://127.0.0.1:8080'
45
+ // },
46
+ // '/rs/logic/getBatchOperaPro':{
47
+ // target:'http://127.0.0.1:8080'
48
+ // },
49
+ // '/rs/sql/sale_getUser':{
50
+ // target:'http://127.0.0.1:8080'
51
+ // },
52
+ // '/rs/logic/getOperBtns':{
53
+ // target:'http://127.0.0.1:8080'
54
+ // },
55
+ // '/rs/file/uploadFile':{
56
+ // target:'http://127.0.0.1:8080'
57
+ // },
58
+ // '/rs/business/batchRunExcelDefault/filemanage_fileSave/newSettleFileImport':{
59
+ // target:'http://127.0.0.1:8080'
60
+ // },
61
+ // '/rs/business/batchRunNew/BatchmachineDownHand/machineDownHand':{
62
+ // target:'http:127.0.0.1:8080'
63
+ // },
64
+ // '/rs/sql/getDownPlan':{
65
+ // target:'http:127.0.0.1:8080'
66
+ // },
67
+ // '/rs/logic/saleExport': {
68
+ // target: fuwu
69
+ // },
70
+ // '/rs/logic/saleGetExportProgress': {
71
+ // target: fuwu
72
+ // },
73
+ // '/rs/logic/getWarningMsg': {
74
+ // target: 'http://localhost:8080/'
75
+ // },
76
+ '/rs/file': {
77
+ target: fuwu
78
+ },
79
+ '/files': {
80
+ target: fuwu
81
+ },
82
+ // 查找资源服务数据
83
+ '/rs/search': {
84
+ target: fuwu
85
+ },
86
+ // 查找资源服务数据
87
+ '/rs/logic/getLogin': {
88
+ target: fuwu
89
+ },
90
+ // 查找资源服务数据
91
+ '/rs/logic/getInitData': {
92
+ target: fuwu
93
+ },
94
+ '/rs/logic/getSaleInitData': {
95
+ target: fuwu
96
+ },
97
+ '/invoice': {
98
+ target: fuwu
99
+ },
100
+ // 用户登录服务地址
101
+ '/rs/user': {
102
+ target: fuwu
103
+ },
104
+ '/rs/path/getParams': {
105
+ target: fuwu
106
+ },
107
+ '/rs/data': {
108
+ target: fuwu
109
+ },
110
+ '/rs/license': {
111
+ target: fuwu
112
+ },
113
+ '/rs/db': {
114
+ target: fuwu
115
+ },
116
+ '/excel': {
117
+ target: fuwu
118
+ },
119
+ '/rs/config': {
120
+ target: fuwu
121
+ },
122
+ '/rs/sql/getLicenseById': {
123
+ target: fuwu
124
+ },
125
+ '/rs/sql/manage_getarealist': {
126
+ target: fuwu
127
+ },
128
+ '/rs/sql/manage_getstreetlist': {
129
+ target: fuwu
130
+ },
131
+ '/rs/report': {
132
+ target: 'http://121.36.106.17:8400/'
133
+ },
134
+ '/rs/vue': {
135
+ target: fuwu
136
+ },
137
+ '/webmeter': {
138
+ target: 'http://192.168.50.4:8450'
139
+ },
140
+ '/rs': {
141
+ // target: 'http://192.168.30.63:8081/'
142
+ // target: 'http://121.36.106.17:8400/'
143
+ target: fuwu
144
+ }
145
+ }
146
+
147
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
148
+ publicPath: config.output.publicPath,
149
+ stats: {
150
+ colors: true,
151
+ chunks: false
152
+ }
153
+ })
154
+
155
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
156
+ // force page reload when html-webpack-plugin template changes
157
+ compiler.plugin('compilation', function (compilation) {
158
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
159
+ hotMiddleware.publish({action: 'reload'})
160
+ cb()
161
+ })
162
+ })
163
+
164
+ // proxy api requests
165
+ Object.keys(proxyTable).forEach(function (context) {
166
+ var options = proxyTable[context]
167
+ if (typeof options === 'string') {
168
+ options = {target: options}
169
+ }
170
+ app.use(proxyMiddleware(context, options))
171
+ })
172
+
173
+ // handle fallback for HTML5 history API
174
+ app.use(require('connect-history-api-fallback')())
175
+ // app.use(function (req, res, next) {
176
+ // res.header('Access-Control-Allow-Origin', '*')
177
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
178
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
179
+ // res.header('X-Powered-By', '3,2,1')
180
+ // res.header('Access-Control-Allow-Credentials', 'true')
181
+ // res.header('Content-Type', 'application/json;charset=utf-8')
182
+ // next()
183
+ // })
184
+
185
+ // serve webpack bundle output
186
+ app.use(devMiddleware)
187
+
188
+ // enable hot-reload and state-preserving
189
+ // compilation error display
190
+ app.use(hotMiddleware)
191
+
192
+ // serve pure static assets
193
+ app.use('/static', express.static('./static'))
194
+
195
+ module.exports = app.listen(8089, function (err) {
196
+ if (err) {
197
+ console.log(err)
198
+ return
199
+ }
200
+ console.log('Listening at http://localhost:8089')
201
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.170",
3
+ "version": "3.5.172",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
 
36
36
  </div>
37
37
  <div v-if="!listpage">
38
- <user-info-detail-manage-new :f_userfiles_id="rowData.f_userfiles_id" @cancel-main="cancel"></user-info-detail-manage-new>
38
+ <user-info-detail-manage-new parentname="charge-manage" :f_userfiles_id="rowData.f_userfiles_id" @cancel-main="cancel" @cancel-re="cancelAndRefresh"></user-info-detail-manage-new>
39
39
  </div>
40
40
  <div v-if="showModal">
41
41
  <charge-modal :warninginfo="warningInfo" :row="modalrow" :modal-show.sync="showModal" @close="close" @modalsuccess="modalsuccess"></charge-modal>
@@ -145,6 +145,13 @@ export default {
145
145
  cancel (obj) {
146
146
  this.listpage = true
147
147
  },
148
+ cancelAndRefresh (obj) {
149
+ this.listpage = true
150
+ this.clean()
151
+ this.clearCondition()
152
+ this.$refs.list.searchNoData()
153
+ this.$refs.card.search()
154
+ },
148
155
  modalsuccess (obj) {
149
156
  this.showModal = false
150
157
  this.$refs.list.criteriaShow = false
@@ -94,25 +94,34 @@
94
94
  v-scale="[curbalance, 4]" placeholder="本期结余" disabled>
95
95
  </div>
96
96
 
97
- <div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气'"
97
+ <div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气' && row.f_meter_type.includes('卡表')"
98
98
  :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
99
99
  <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
100
100
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
101
101
  v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0), ">=" ] }'
102
102
  v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, 4]" :disabled="$refs.givechange.promptText != ''">
103
103
  </div>
104
- <div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment=='赠气'"
104
+ <div class="col-sm-3" v-if="row.f_collection_type === '按气量' && model.f_payment=='赠气' && row.f_meter_type.includes('卡表')"
105
105
  :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
106
106
  <label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收&emsp;款</font></label>
107
107
  <input id="f_collection" class="input_search" style="width:60%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
108
108
  v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_totalcost, 4]" :disabled="$refs.givechange.promptText != ''">
109
109
  </div>
110
- <div class="col-sm-3" v-if="row.f_collection_type === '按金额'">
110
+ <div class="col-sm-3" v-if="row.f_collection_type === '按金额' && row.f_meter_type.includes('卡表')">
111
111
  <label for="f_collection" class=" font_normal_body"><font size="4px" style="font-weight:bold">*收&emsp;款</font></label>
112
112
  <input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;" type="number" v-model="model.f_collection"
113
113
  v-el:fcollection @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))" v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
114
114
  </div>
115
- <div class="col-sm-1 form-group">
115
+ <div class="col-sm-4" v-if="!row.f_meter_type.includes('卡表')">
116
+ <label for="f_collection" class=" font_normal_body"><font size="4px"
117
+ style="font-weight:bold">*收&emsp;款</font></label>
118
+ <input id="f_collection" class="input_search" style="width:50%;font-size: 18px;font-weight:bold;"
119
+ type="number" v-model="model.f_collection"
120
+ v-el:fcollection
121
+ @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
122
+ v-scale="[model.f_collection, 4]" disabled>
123
+ </div>
124
+ <div class="col-sm-1 form-group" v-show=" row.f_meter_type.includes('卡表')">
116
125
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
117
126
  </div>
118
127
  </div>
@@ -279,48 +279,52 @@
279
279
  cancelmain () {
280
280
  this.$emit('cancel-main')
281
281
  },
282
- clearBarrier(){
282
+ clearBarrier () {
283
283
  // 地址
284
284
  // 127.0.0.1:8445
285
285
  // 参数
286
- let datas = {
287
- moduleName:"XiMeiSystem", // 固定值
288
- content:{
289
- tradeCode:"3015",// 固定值
290
- appid: "yysf", // 固定值
291
- partner: "cqsemay_bcts", // 固定值
292
- version:"v1", // 固定值
293
- tasked:this.getuuid(), // 任务id
294
- notifyUrl:"http://192.168.2.10:8445/webmeter/rs/logic/XiMeiSystemCallBack", // 固定值
295
- meterNo: this.row.f_meternumber,// 表号
296
- signType:" MD5" //固定值
286
+ let datas = {
287
+ moduleName: 'XiMeiSystem', // 固定值
288
+ content: {
289
+ tradeCode: '3015', // 固定值
290
+ appid: 'yysf', // 固定值
291
+ partner: 'cqsemay_bcts', // 固定值
292
+ version: 'v1', // 固定值
293
+ tasked: this.getuuid(), // 任务id
294
+ notifyUrl: 'http://192.168.2.10:8445/webmeter/rs/logic/XiMeiSystemCallBack', // 固定值
295
+ meterNo: this.row.f_meternumber, // 表号
296
+ signType: ' MD5' // 固定值
297
297
  },
298
- title: "清除异常", // 固定值
299
- type: "清除异常", // 固定值
300
- inputtor:this.row.f_operator, // 操作人
301
- userId:this.row.f_userfiles_id, // 表档案ID
298
+ title: '清除异常', // 固定值
299
+ type: '清除异常', // 固定值
300
+ inputtor: this.row.f_operator, // 操作人
301
+ userId: this.row.f_userfiles_id, // 表档案ID
302
302
  dataId: null // 操作记录ID
303
303
  }
304
- this.$resetpost('/webmeter/rs/logic/syncSaveSetParamsTemplate', {data: datas},{resolveMsg: `清理成功`, rejectMsg: `清理失败`}).then(res => {
304
+ this.$resetpost('/webmeter/rs/logic/syncSaveSetParamsTemplate', {data: datas}, {resolveMsg: `清理成功`, rejectMsg: `清理失败`}).then(res => {
305
305
  })
306
306
  },
307
- getuuid(){
308
- let uuidA = '';
309
- var s = [];
310
- var hexDigits = '0123456789abcdef';
307
+ getuuid () {
308
+ let uuidA = ''
309
+ var s = []
310
+ var hexDigits = '0123456789abcdef'
311
311
  for (var i = 0; i < 36; i++) {
312
- s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
312
+ s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1)
313
313
  }
314
- s[14] = '4';
315
- s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);
316
- s[8] = s[13] = s[18] = s[23] = '-';
317
- uuidA = s.join('');
318
- return uuidA;
314
+ s[14] = '4'
315
+ s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1)
316
+ s[8] = s[13] = s[18] = s[23] = '-'
317
+ uuidA = s.join('')
318
+ return uuidA
319
319
  },
320
320
  async goChargeManage () {
321
321
  await this.$copyText(this.row.f_userinfo_code)
322
322
  this.$showAlert(`用户编号已复制到剪切板!`, 'success', 2000)
323
- this.$goto('charge-manage', {f: this.$login.f}, 'main')
323
+ if (this.row.parentname === 'charge-manage') {
324
+ this.$emit('cancel-re')
325
+ } else {
326
+ this.$goto('charge-manage', {f: this.$login.f}, 'main')
327
+ }
324
328
  },
325
329
  openUser () {
326
330
  this.$showMessage(`是否需要给用户进行开户?`, ['confirm', 'cancel']).then(async (res) => {
@@ -328,7 +332,7 @@
328
332
  let data = {
329
333
  f_userfiles_id: this.row.f_userfiles_id
330
334
  }
331
- this.$resetpost('rs/logic/startup',data)
335
+ this.$resetpost('rs/logic/startup', data)
332
336
  }
333
337
  })
334
338
  },
@@ -338,11 +342,11 @@
338
342
  f_userfiles_id: this.row.f_userfiles_id
339
343
  }
340
344
  if (this.row.f_network_valve !== '1') {
341
- this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
342
- this.row.f_network_valve = '1'
345
+ this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '关闭自动阀控成功。', rejectMsg: '关闭自动阀控失败!!!'})
346
+ this.row.f_network_valve = '1'
343
347
  } else {
344
- this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
345
- this.row.f_network_valve = null
348
+ this.$resetpost('rs/logic/closezdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
349
+ this.row.f_network_valve = null
346
350
  }
347
351
  },
348
352
  // 阀控管理
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="binary flex" >
3
3
  <div class="row binary-left flex" style="width:99%;height:98%;margin-bottom:0px">
4
- <div class="auto"><user-base-info-new :row="row" @cancel-main="cancel"></user-base-info-new></div>
4
+ <div class="auto"><user-base-info-new :row="row" @cancel-main="cancel" @cancel-re="cancelRe"></user-base-info-new></div>
5
5
  <saletabbut v-if="row" v-ref:list style="height:72%;margin-top: 1%">
6
6
  <saletab header="流水查询" v-if="permission('流水查询')">
7
7
  <record-query-user :row="row"></record-query-user>
@@ -104,7 +104,7 @@ import ChangeRecord from './ic_detail/ChangeRecord'
104
104
  import DeveiceRecord from './ic_detail/DeveiceRecord'
105
105
  export default {
106
106
  title: '用户详细信息',
107
- props: ['f_userfiles_id', 'f_userinfo_id','f_userinfo_code'],
107
+ props: ['f_userfiles_id', 'f_userinfo_id', 'f_userinfo_code', 'parentname'],
108
108
  components: {
109
109
  PriceAdjustmentQueryUser,
110
110
  PriceChangeQueryUser,
@@ -155,19 +155,24 @@ export default {
155
155
  condition = `f_userfiles_id = '${this.f_userfiles_id}'`
156
156
  } else if (this.f_userinfo_id) {
157
157
  condition = `f_userinfo_id = '${this.f_userinfo_id}'`
158
- }else if (this.f_userinfo_code){
158
+ } else if (this.f_userinfo_code) {
159
159
  condition = `f_userinfo_code = '${this.f_userinfo_code}'`
160
160
  }
161
161
 
162
162
  let getBaseInfo = await http.load('POST', 'rs/sql/iot_getUserBaseData',
163
163
  {data: {condition: condition}}, {resolveMsg: null, rejectMsg: '获取基本信息出错'})
164
164
  this.row = getBaseInfo.data[0]
165
+ this.row.parentname = this.parentname || ''
165
166
  },
166
167
 
167
168
  cancel (val) {
168
169
  this.$emit('cancel-main', val)
169
170
  },
170
171
 
172
+ cancelRe (val) {
173
+ this.$emit('cancel-re', val)
174
+ },
175
+
171
176
  butOper (val) {
172
177
  this.name = val
173
178
  }
@@ -126,7 +126,7 @@
126
126
  <span class = "col-sm-7">{{data?data.f_remanent_gas:dafault.f_remanent_gas}}</span>
127
127
  </div>
128
128
  <div class="row">
129
- <label class = "col-sm-5 " >左&ensp;右&ensp;表</label>
129
+ <label class = "col-sm-5 " >表&emsp;&emsp;向</label>
130
130
  <span class = "col-sm-7">{{data?data.f_aroundmeter:dafault.f_hand_date}}</span>
131
131
  </div>
132
132
  <div class="row">
@@ -158,7 +158,7 @@
158
158
  <span class = "col-sm-7">{{data?data.f_hand_date.substring(0,7):dafault.f_hand_date}}</span>
159
159
  </div>
160
160
  <div class="row">
161
- <label class = "col-sm-5 " >建表日期</label>
161
+ <label class = "col-sm-5 " >建档日期</label>
162
162
  <span class = "col-sm-7">{{data?data.f_input_date.substring(0,7):dafault.f_input_date}}</span>
163
163
  </div>
164
164
  <div class="row">