sale-client 3.5.130 → 3.5.132

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,193 +1,193 @@
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:8400'
16
- //var fuwu = 'http://39.108.82.124:8400/'
17
- // var fuwu = 'http://121.36.106.17:8400/'
18
- // 铜川正式
19
- // var fuwu = 'http://61.134.55.234:9999/'
20
- // 铜川测试
21
- // var fuwu = 'http://61.134.55.234:9999/'
22
- // var fuwu = 'http://60.222.250.39:8300/'
23
- // 韶关
24
- // var fuwu = 'http://119.146.1.106:8300/'
25
- // 巩义测试服务
26
- // var fuwu = 'http://192.168.0.227:8400'
27
- // 燎原测试服务
28
- // var fuwu = 'http://121.41.19.238:8400 '
29
- // var fuwu = 'http://121.41.19.238:9001/'
30
-
31
- // var fuwu = 'http://139.214.92.34:8301/'
32
-
33
- var proxyTable = {
34
- // '/'
35
- // '/rs/logic/stopBasicLivingNew':{
36
- // target:'http://127.0.0.1:8080'
37
- // },
38
- // '/rs/logic/getBatchOperaPro':{
39
- // target:'http://127.0.0.1:8080'
40
- // },
41
- // '/rs/sql/sale_getUser':{
42
- // target:'http://127.0.0.1:8080'
43
- // },
44
- // '/rs/logic/getOperBtns':{
45
- // target:'http://127.0.0.1:8080'
46
- // },
47
- // '/rs/file/uploadFile':{
48
- // target:'http://127.0.0.1:8080'
49
- // },
50
- // '/rs/business/batchRunExcelDefault/filemanage_fileSave/newSettleFileImport':{
51
- // target:'http://127.0.0.1:8080'
52
- // },
53
- // '/rs/business/batchRunNew/BatchmachineDownHand/machineDownHand':{
54
- // target:'http:127.0.0.1:8080'
55
- // },
56
- // '/rs/sql/getDownPlan':{
57
- // target:'http:127.0.0.1:8080'
58
- // },
59
- // '/rs/logic/saleExport': {
60
- // target: fuwu
61
- // },
62
- // '/rs/logic/saleGetExportProgress': {
63
- // target: fuwu
64
- // },
65
- // '/rs/logic/getWarningMsg': {
66
- // target: 'http://localhost:8080/'
67
- // },
68
- '/rs/file': {
69
- target: fuwu
70
- },
71
- '/files': {
72
- target: fuwu
73
- },
74
- // 查找资源服务数据
75
- '/rs/search': {
76
- target: fuwu
77
- },
78
- // 查找资源服务数据
79
- '/rs/logic/getLogin': {
80
- target: fuwu
81
- },
82
- // 查找资源服务数据
83
- '/rs/logic/getInitData': {
84
- target: fuwu
85
- },
86
- '/rs/logic/getSaleInitData': {
87
- target: fuwu
88
- },
89
- '/invoice': {
90
- target: fuwu
91
- },
92
- // 用户登录服务地址
93
- '/rs/user': {
94
- target: fuwu
95
- },
96
- '/rs/path/getParams': {
97
- target: fuwu
98
- },
99
- '/rs/data': {
100
- target: fuwu
101
- },
102
- '/rs/license': {
103
- target: fuwu
104
- },
105
- '/rs/db': {
106
- target: fuwu
107
- },
108
- '/excel': {
109
- target: fuwu
110
- },
111
- '/rs/config': {
112
- target: fuwu
113
- },
114
- '/rs/sql/getLicenseById': {
115
- target: fuwu
116
- },
117
- '/rs/sql/manage_getarealist': {
118
- target: fuwu
119
- },
120
- '/rs/sql/manage_getstreetlist': {
121
- target: fuwu
122
- },
123
- '/rs/report': {
124
- target: 'http://121.36.106.17:8400/'
125
- },
126
- '/rs/vue': {
127
- target: fuwu
128
- },
129
- '/webmeter': {
130
- target: 'http://192.168.50.4:8450'
131
- },
132
- '/rs': {
133
- // target: 'http://192.168.30.63:8081/'
134
- // target: 'http://121.36.106.17:8400/'
135
- target: fuwu
136
- }
137
- }
138
-
139
- var devMiddleware = require('webpack-dev-middleware')(compiler, {
140
- publicPath: config.output.publicPath,
141
- stats: {
142
- colors: true,
143
- chunks: false
144
- }
145
- })
146
-
147
- var hotMiddleware = require('webpack-hot-middleware')(compiler)
148
- // force page reload when html-webpack-plugin template changes
149
- compiler.plugin('compilation', function (compilation) {
150
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
151
- hotMiddleware.publish({action: 'reload'})
152
- cb()
153
- })
154
- })
155
-
156
- // proxy api requests
157
- Object.keys(proxyTable).forEach(function (context) {
158
- var options = proxyTable[context]
159
- if (typeof options === 'string') {
160
- options = {target: options}
161
- }
162
- app.use(proxyMiddleware(context, options))
163
- })
164
-
165
- // handle fallback for HTML5 history API
166
- app.use(require('connect-history-api-fallback')())
167
- // app.use(function (req, res, next) {
168
- // res.header('Access-Control-Allow-Origin', '*')
169
- // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
170
- // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
171
- // res.header('X-Powered-By', '3,2,1')
172
- // res.header('Access-Control-Allow-Credentials', 'true')
173
- // res.header('Content-Type', 'application/json;charset=utf-8')
174
- // next()
175
- // })
176
-
177
- // serve webpack bundle output
178
- app.use(devMiddleware)
179
-
180
- // enable hot-reload and state-preserving
181
- // compilation error display
182
- app.use(hotMiddleware)
183
-
184
- // serve pure static assets
185
- app.use('/static', express.static('./static'))
186
-
187
- module.exports = app.listen(8085, function (err) {
188
- if (err) {
189
- console.log(err)
190
- return
191
- }
192
- console.log('Listening at http://localhost:8085')
193
- })
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:8400'
16
+ var fuwu = 'http://39.108.82.124:8400/'
17
+ // var fuwu = 'http://121.36.106.17:8400/'
18
+ // 铜川正式
19
+ // var fuwu = 'http://61.134.55.234:9999/'
20
+ // 铜川测试
21
+ // var fuwu = 'http://61.134.55.234:9999/'
22
+ // var fuwu = 'http://60.222.250.39:8300/'
23
+ // 韶关
24
+ // var fuwu = 'http://119.146.1.106:8300/'
25
+ // 巩义测试服务
26
+ // var fuwu = 'http://192.168.0.227:8400'
27
+ // 燎原测试服务
28
+ // var fuwu = 'http://121.41.19.238:8400 '
29
+ // var fuwu = 'http://121.41.19.238:9001/'
30
+
31
+ // var fuwu = 'http://139.214.92.34:8301/'
32
+
33
+ var proxyTable = {
34
+ // '/'
35
+ // '/rs/logic/stopBasicLivingNew':{
36
+ // target:'http://127.0.0.1:8080'
37
+ // },
38
+ // '/rs/logic/getBatchOperaPro':{
39
+ // target:'http://127.0.0.1:8080'
40
+ // },
41
+ // '/rs/sql/sale_getUser':{
42
+ // target:'http://127.0.0.1:8080'
43
+ // },
44
+ // '/rs/logic/getOperBtns':{
45
+ // target:'http://127.0.0.1:8080'
46
+ // },
47
+ // '/rs/file/uploadFile':{
48
+ // target:'http://127.0.0.1:8080'
49
+ // },
50
+ // '/rs/business/batchRunExcelDefault/filemanage_fileSave/newSettleFileImport':{
51
+ // target:'http://127.0.0.1:8080'
52
+ // },
53
+ // '/rs/business/batchRunNew/BatchmachineDownHand/machineDownHand':{
54
+ // target:'http:127.0.0.1:8080'
55
+ // },
56
+ // '/rs/sql/getDownPlan':{
57
+ // target:'http:127.0.0.1:8080'
58
+ // },
59
+ // '/rs/logic/saleExport': {
60
+ // target: fuwu
61
+ // },
62
+ // '/rs/logic/saleGetExportProgress': {
63
+ // target: fuwu
64
+ // },
65
+ // '/rs/logic/getWarningMsg': {
66
+ // target: 'http://localhost:8080/'
67
+ // },
68
+ '/rs/file': {
69
+ target: fuwu
70
+ },
71
+ '/files': {
72
+ target: fuwu
73
+ },
74
+ // 查找资源服务数据
75
+ '/rs/search': {
76
+ target: fuwu
77
+ },
78
+ // 查找资源服务数据
79
+ '/rs/logic/getLogin': {
80
+ target: fuwu
81
+ },
82
+ // 查找资源服务数据
83
+ '/rs/logic/getInitData': {
84
+ target: fuwu
85
+ },
86
+ '/rs/logic/getSaleInitData': {
87
+ target: fuwu
88
+ },
89
+ '/invoice': {
90
+ target: fuwu
91
+ },
92
+ // 用户登录服务地址
93
+ '/rs/user': {
94
+ target: fuwu
95
+ },
96
+ '/rs/path/getParams': {
97
+ target: fuwu
98
+ },
99
+ '/rs/data': {
100
+ target: fuwu
101
+ },
102
+ '/rs/license': {
103
+ target: fuwu
104
+ },
105
+ '/rs/db': {
106
+ target: fuwu
107
+ },
108
+ '/excel': {
109
+ target: fuwu
110
+ },
111
+ '/rs/config': {
112
+ target: fuwu
113
+ },
114
+ '/rs/sql/getLicenseById': {
115
+ target: fuwu
116
+ },
117
+ '/rs/sql/manage_getarealist': {
118
+ target: fuwu
119
+ },
120
+ '/rs/sql/manage_getstreetlist': {
121
+ target: fuwu
122
+ },
123
+ '/rs/report': {
124
+ target: 'http://121.36.106.17:8400/'
125
+ },
126
+ '/rs/vue': {
127
+ target: fuwu
128
+ },
129
+ '/webmeter': {
130
+ target: 'http://39.108.82.124:8400/'
131
+ },
132
+ '/rs': {
133
+ // target: 'http://192.168.30.63:8081/'
134
+ // target: 'http://121.36.106.17:8400/'
135
+ target: fuwu
136
+ }
137
+ }
138
+
139
+ var devMiddleware = require('webpack-dev-middleware')(compiler, {
140
+ publicPath: config.output.publicPath,
141
+ stats: {
142
+ colors: true,
143
+ chunks: false
144
+ }
145
+ })
146
+
147
+ var hotMiddleware = require('webpack-hot-middleware')(compiler)
148
+ // force page reload when html-webpack-plugin template changes
149
+ compiler.plugin('compilation', function (compilation) {
150
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
151
+ hotMiddleware.publish({action: 'reload'})
152
+ cb()
153
+ })
154
+ })
155
+
156
+ // proxy api requests
157
+ Object.keys(proxyTable).forEach(function (context) {
158
+ var options = proxyTable[context]
159
+ if (typeof options === 'string') {
160
+ options = {target: options}
161
+ }
162
+ app.use(proxyMiddleware(context, options))
163
+ })
164
+
165
+ // handle fallback for HTML5 history API
166
+ app.use(require('connect-history-api-fallback')())
167
+ // app.use(function (req, res, next) {
168
+ // res.header('Access-Control-Allow-Origin', '*')
169
+ // res.header('Access-Control-Allow-Headers', 'X-Requested-With')
170
+ // res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
171
+ // res.header('X-Powered-By', '3,2,1')
172
+ // res.header('Access-Control-Allow-Credentials', 'true')
173
+ // res.header('Content-Type', 'application/json;charset=utf-8')
174
+ // next()
175
+ // })
176
+
177
+ // serve webpack bundle output
178
+ app.use(devMiddleware)
179
+
180
+ // enable hot-reload and state-preserving
181
+ // compilation error display
182
+ app.use(hotMiddleware)
183
+
184
+ // serve pure static assets
185
+ app.use('/static', express.static('./static'))
186
+
187
+ module.exports = app.listen(8085, function (err) {
188
+ if (err) {
189
+ console.log(err)
190
+ return
191
+ }
192
+ console.log('Listening at http://localhost:8089')
193
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.130",
3
+ "version": "3.5.132",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -93,7 +93,7 @@
93
93
  </div>
94
94
  <div class="row">
95
95
  <div class="col-sm-2"></div>
96
- <input v-if="fileSaveData.reason==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
96
+ <input v-if="fileSaveData.reason ==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
97
97
  </div>
98
98
  </article>
99
99
  <footer slot="modal-footer" class="modal-footer">
@@ -394,7 +394,7 @@
394
394
  import * as Util from '../../../Util'
395
395
 
396
396
  let readyGen = async function (self) {
397
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
397
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStartAndEndDateString()[0]
398
398
  self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
399
399
  await self.$LoadParams.loadMeterBook(self.f_filialeid)
400
400
  self.loadMeterBooks()
@@ -414,12 +414,13 @@
414
414
  dep: [],
415
415
  user: []
416
416
  },
417
- config:{
418
- examine: false,
417
+ config: {
418
+ examine: false
419
419
  },
420
420
  imgfilename: '',
421
421
  // 小区
422
422
  residentialArea: [],
423
+ inputtouPerson: [],
423
424
  imgshow: false,
424
425
  criteriaShow: false,
425
426
  orgCondtionStr: '',
@@ -444,8 +445,8 @@
444
445
  'f_adjustable_name': '调压箱名称',
445
446
  'f_inputtor': '抄表员'
446
447
  },
447
- auditState:[{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
448
- auditState1:[{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
448
+ auditState: [{label: '全部', value: ''}, {label: '已审核', value: '已抄表'}, {label: '未审核', value: '待审核'}],
449
+ auditState1: [{label: '全部', value: ''}, {label: '审核失败', value: '审核失败'}],
449
450
  meters: [{label: '全部', value: ''}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
450
451
  resultstate: this.$appdata.getParam('抄表结果状态'),
451
452
  meterstates: this.$appdata.getParam('抄表状态') ? [{
@@ -475,7 +476,7 @@
475
476
  methods: {
476
477
  // 修正本期底数
477
478
  amend (row) {
478
- let tablebase = window.prompt('请输入你要修正的底数值,上期底数:'+ row.f_meter_base)
479
+ let tablebase = window.prompt('请输入你要修正的底数值,上期底数:' + row.f_meter_base)
479
480
  if (!tablebase) return
480
481
  if (tablebase < 0) {
481
482
  this.$showAlert(`底数不能小于0,请注意!`, 'warning', 2000)
@@ -596,9 +597,9 @@
596
597
  this.imgshow = false
597
598
  },
598
599
  imgShow (val) {
599
- console.log("-----------val2:",val)
600
+ console.log('-----------val2:', val)
600
601
  this.imgfilename = `rs/image/file/` + val
601
- console.log("-----------imgfilename2:",this.imgfilename)
602
+ console.log('-----------imgfilename2:', this.imgfilename)
602
603
  this.imgshow = true
603
604
  },
604
605
  async getaddress () {
@@ -632,6 +633,17 @@
632
633
  } else {
633
634
  args.condition = `${args.condition}` + this.orgCondtionStr
634
635
  }
636
+ // 抄表员查询条件
637
+ this.inputtouPerson = this.$refs.paged.$refs.cri.model.f_inputtor
638
+ if (this.inputtouPerson.length !== 0) {
639
+ let str = JSON.stringify(this.inputtouPerson)
640
+ str = str.replace(/"/g, `'`)
641
+ str = str.replace(/\[/g, ``)
642
+ str = str.replace(/\]/g, ``)
643
+ console.log('=====抄表员model22222222222绑定====', str)
644
+ // 查询多个抄表员时条件
645
+ args.condition += ` and f_inputtor in ( ${str} )`
646
+ }
635
647
  this.excelCondition = args.condition
636
648
  this.$refs.paged.$refs.grid.selectInit()
637
649
  this.model.search(args.condition, args.model)
@@ -696,7 +708,7 @@
696
708
  },
697
709
  loadMeterBooks () {
698
710
  this.meterbooks = this.$GetSaleParam.getMeterBooks()
699
- },
711
+ }
700
712
 
701
713
  },
702
714
  computed: {
@@ -397,7 +397,8 @@ export default {
397
397
  }
398
398
  },
399
399
  closeParam () {
400
- // this.$refs.form.row={}
400
+ this.$refs.form.paramtype = undefined
401
+ this.$refs.form.paramGroup = undefined
401
402
  this.showParame = !this.showParame
402
403
  // if (this.isCheckAll) {
403
404
  this.map.clear()
@@ -406,7 +407,8 @@ export default {
406
407
  // this.isCheckAll = false
407
408
  },
408
409
  clear () {
409
- this.$refs.form.paramtype = ''
410
+ this.$refs.form.paramtype = undefined
411
+ this.$refs.form.paramGroup = undefined
410
412
  // this.isCheckAll = false
411
413
  this.showParame = false
412
414
  this.map.clear()
@@ -4,38 +4,43 @@
4
4
  <div class="col-sm-4">
5
5
  <label class="font_normal_body" style="text-align:left">参数类型</label>
6
6
  </div>
7
- <div class="col-sm-8">
7
+ <div class="col-sm-4">
8
+ <v-select
9
+ placeholder="请选择参数组别"
10
+ :value.sync="paramGroup"
11
+ style="width:40%"
12
+ width="80%"
13
+ :search="false"
14
+ :value-single="true"
15
+ @change="paramGroupChange"
16
+ v-model="paramGroup"
17
+ :options='paramGroups'
18
+ close-on-select
19
+ ></v-select>
20
+ </div>
21
+ <div class="col-sm-4" v-show="['读取','设置'].includes(paramGroup)">
8
22
  <v-select
9
23
  placeholder="请选择参数类型"
10
24
  :value.sync="paramtype"
11
25
  style="width:40%"
12
- width="40%"
26
+ width="80%"
27
+ :search="false"
13
28
  :value-single="true"
14
29
  v-model="paramtype"
15
30
  :options='paramtypes'
16
31
  close-on-select
17
32
  ></v-select>
18
33
  </div>
19
- <!--<div class="col-sm-8" >
20
- -&#45;&#45;&#45;&#45;{{row.overdueMessageValue}}
21
- <input :type="text" v-model="row.overdueMessageValue" :value.sync="row.overdueMessageValue" style="width:70%" placeholder="" class="input_search">
22
- </div>-->
23
- <div v-for="(index,data) in newmeterinfo" style="height: auto">
34
+ <div v-for="(_,data) in newmeterinfo" style="height: auto">
24
35
  <div class="col-sm-12" style="height: auto" v-if="data.name===paramtype"
25
- v-for="(param_index,param) in data.params">
36
+ v-for="(_,param) in data.params">
26
37
  <div class="col-sm-4">
27
38
  <label class="font_normal_body" style="text-align:left">{{ param.name }}:</label>
28
39
  <p class="glyphicon glyphicon-info-sign" style="margin-top:5%;color:#4a7cae"
29
40
  :title="param.remark + ',当前系统设置默认值为:'+param.default_value"></p>
30
41
  </div>
31
- <!-- <div class="col-sm-4">-->
32
- <!-- <label class="font_normal_body"-->
33
- <!-- style="text-align:left">{{ param.default_value ? `当前默认值为:${param.default_value};` : '当前未设置默认值' }}</label>-->
34
- <!-- </div>-->
35
42
  <div class="col-sm-8" v-if="['设置特殊故障是否关阀','设置表功能开关'].includes(paramtype)">
36
- <radio-btn v-model="row[param.title]" :value.sync="row[param.title]"></radio-btn>
37
- <!-- <label>启用<input type="radio" v-model="param.isenbale" @click="reMeterinfo(index,param_index,data.params)" :disabled="!param.default_value" value="启用"/></label>-->
38
- <!-- <label>保持不变<input type="radio" v-model="param.isenbale" @click="reMeterinfo(index,param_index,data.params)" value="保持不变"/></label>-->
43
+ <radio-btn @toggle="radioBtnToggle" :title="param.title" v-model="row[param.title]" :value.sync="row[param.title]"></radio-btn>
39
44
  </div>
40
45
  <template v-if="!['设置特殊故障是否关阀','设置表功能开关'].includes(paramtype)">
41
46
  <div class="col-sm-8" v-if="param.type!=='option'">
@@ -196,7 +201,13 @@ export default {
196
201
  paramtype: '',
197
202
  param: {},
198
203
  history: [],
199
- isenbale: false
204
+ isenbale: false,
205
+ paramGroups: [{label: '读取', value: '读取'}, {label: '设置', value: '设置'},
206
+ {label: '设置表功能开关', value: '设置表功能开关'}, {
207
+ label: '设置特殊故障是否关阀',
208
+ value: '设置特殊故障是否关阀'
209
+ }],
210
+ paramGroup: ''
200
211
  }
201
212
  },
202
213
  ready () {
@@ -222,7 +233,7 @@ export default {
222
233
  if (temp && temp.params.length > 0) {
223
234
  for (let i = 0; i < temp.params.length; i++) {
224
235
  if (['设置特殊故障是否关阀', '设置表功能开关'].includes(val)) {
225
- this.row[temp.params[i].title] = '0'
236
+ this.row[temp.params[i].title] = ['保持不变']
226
237
  } else {
227
238
  if (temp.params[i].default_value) {
228
239
  this.row[temp.params[i].title] = temp.params[i].default_value
@@ -231,27 +242,49 @@ export default {
231
242
  }
232
243
  }
233
244
  this.row = Object.assign({}, this.row)
234
- // if (this.user.length === 1) {
235
- // this.$resetpost('rs/sql/getIotParams', {data: {t_userfiles_id: this.user[0].f_userfiles_id}}, {resolveMsg: null, rejectMsg: null}).then((rat) => {
236
- // this.row = {}
237
- // if (rat.data.length > 0) {
238
- // rat.data.forEach((item) => {
239
- // console.log('=============>this.paramtype', val)
240
- // console.log('=============>item', item.f_param_group_name)
241
- // if (val === item.f_param_group_name) {
242
- // this.$set('row.' + item.f_param_lname, item.f_param_value)
243
- // }
244
- // })
245
- // // let param = JSON.parse(rat.data[0].f_data)
246
- // // console.log(param)
247
- // // this.row= param
248
- // }
249
- // })
250
- // }
251
245
  }
252
246
  }
253
247
  },
254
248
  methods: {
249
+ radioBtnToggle (title, value) {
250
+ // 设置表功能开关 -> 启用时操作 -> 设置
251
+ // pzwbit0 -> bzwbit0
252
+ // 设置特殊故障是否关阀 -> 启用时操作 -> 设置
253
+ // pbit0 -> bbit0
254
+ // 当启用 为 ['保持不变']时 设置应为 ['保持不变']
255
+ // 当启用 为 ['启用']时 设置应为 ['启用']
256
+ // 当启用 为 []时 设置应为 ['启用']
257
+ // 获取到设置的title
258
+ // 把第一个p替换成b
259
+ if (!title.startsWith('p')) {
260
+ return
261
+ }
262
+ let _title = title.replace('p', 'b')
263
+ if (value.length === 1) {
264
+ if (value[0] === '保持不变') {
265
+ this.row[_title] = ['保持不变']
266
+ } else {
267
+ this.row[_title] = ['启用']
268
+ }
269
+ } else {
270
+ this.row[_title] = ['启用']
271
+ }
272
+ this.row = Object.assign({}, this.row)
273
+ },
274
+ paramGroupChange (val) {
275
+ const tempArr = ['设置特殊故障是否关阀', '设置表功能开关']
276
+ if (['读取', '设置'].includes(val)) {
277
+ this.paramtypes = this.newmeterinfo
278
+ .filter(item => item.theType === val && !tempArr.includes(item.name))
279
+ .map(item => {
280
+ return {label: item.name, value: item.name}
281
+ })
282
+ .sort((a, b) => a.label.length - b.label.length)
283
+ this.paramtype = undefined
284
+ return
285
+ }
286
+ this.paramtype = val
287
+ },
255
288
  close () {
256
289
  this.row = {}
257
290
  this.$dispatch('close')
@@ -399,8 +432,8 @@ export default {
399
432
  this.newmeterinfo = [{}]
400
433
 
401
434
  let res = await this.$resetpost('/webmeter/rs/logic/getParamsByGasBrand', {data: {gasBrandId: val}}, {
402
- resolveMsg: '参数已加载',
403
- rejectMsg: null
435
+ resolveMsg: null,
436
+ rejectMsg: '参数获取失败'
404
437
  })
405
438
  let allDefaultValue = await this.$resetpost('/rs/sql/getAllDefaultValues', {data: {gasBrandId: val}}, {
406
439
  resolveMsg: null,