sale-client 3.5.93 → 3.5.95

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.
@@ -36,9 +36,9 @@ var proxyTable = {
36
36
  '/rs/logic/saleGetExportProgress': {
37
37
  target: fuwu
38
38
  },
39
- // '/rs/logic/getWarningMsg': {
40
- // // target: 'http://localhost:8080/'
41
- // },
39
+ '/rs/logic/getWarningMsg': {
40
+ target: 'http://localhost:8080/'
41
+ },
42
42
  '/rs/file': {
43
43
  target: fuwu
44
44
  },
@@ -88,6 +88,9 @@ var proxyTable = {
88
88
  '/rs/sql/getLicenseById': {
89
89
  target: fuwu
90
90
  },
91
+ '/rs/sql/getGasPriceInfo': {
92
+ target: 'http://127.0.0.1:8080'
93
+ },
91
94
  '/rs/sql/manage_getarealist': {
92
95
  target: fuwu
93
96
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.93",
3
+ "version": "3.5.95",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -76,6 +76,14 @@
76
76
  close-on-select v-ref:type>
77
77
  </v-select>
78
78
  </div>
79
+ <div :class="{'col-sm-2 form-group':!$parent.$parent.$parent.isdetail,'col-sm-3 form-group':$parent.$parent.$parent.isdetail}">
80
+ <label class="font_normal_body">气价状态</label>
81
+ <v-select :value.sync="model.f_price_state" v-model="model.f_price_state"
82
+ placeholder='气价状态' :options="$parent.$parent.price_states"
83
+ condition="f_price_state = '{}'"
84
+ close-on-select v-ref:type>
85
+ </v-select>
86
+ </div>
79
87
  </div>
80
88
  </div>
81
89
 
@@ -198,6 +206,7 @@
198
206
  f_orgid: '',
199
207
  gasproperties: [],
200
208
  custom: [{label: '全部', value: ''}, {label: '正常气价', value: '正常气价'}, {label: '自定义气价', value: '自定义气价'}],
209
+ price_states: [{label: '全部', value: ''}, {label: '使用中', value: '使用中'}, {label: '删除', value: '删除'}, {label: '已作废', value: '已作废'}],
201
210
  usertypes: this.$appdata.getParam('用户类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')] : []
202
211
  }
203
212
  },
@@ -215,13 +224,14 @@
215
224
  },
216
225
  ready () {
217
226
  this.$refs.paged.$refs.cri.model.performDate = this.$login.toStandardDateString()
227
+ this.$refs.paged.$refs.cri.model.f_price_state = '使用中'
218
228
  this.search()
219
229
  },
220
230
  methods: {
221
- batchAdjust(){
222
- this.$parent.usershow=true
223
- this.$parent.priceid=null
224
- this.$parent.priceorgid=null
231
+ batchAdjust () {
232
+ this.$parent.usershow = true
233
+ this.$parent.priceid = null
234
+ this.$parent.priceorgid = null
225
235
  },
226
236
  showhistory (row) {
227
237
  this.show = true
@@ -6,10 +6,23 @@
6
6
  <li class="active"><a>{{data.name}}</a></li>
7
7
  </ul>
8
8
  <div class="col-sm-12" style="height: auto" v-for="param in data.params">
9
- {{param.name}}:{{row[param.title].bak_val}}
9
+ {{param.name}}:{{row[param.name+param.title].bak_val}}
10
10
  </div>
11
11
  </div>
12
12
  <div style="height: auto">
13
+ <ul class="nav nav-tabs col-sm-12" >
14
+ <li class="active"><a>区间用气量报警参数</a></li>
15
+ </ul>
16
+ <div class="col-sm-12" style="height: auto">时间区间1:{{row['readperiodusegasAlarmparam'].bak_val.timesection1||'暂无数据'}}</div>
17
+ <div class="col-sm-12" style="height: auto">区间1用气量:{{row['readperiodusegasAlarmparam'].bak_val.usegas1||'暂无数据'}}</div>
18
+ <div class="col-sm-12" style="height: auto">时间区间2:{{row['readperiodusegasAlarmparam'].bak_val.timesection2||'暂无数据'}}</div>
19
+ <div class="col-sm-12" style="height: auto">区间2用气量:{{row['readperiodusegasAlarmparam'].bak_val.usegas2||'暂无数据'}}</div>
20
+ <div class="col-sm-12" style="height: auto">时间区间3:{{row['readperiodusegasAlarmparam'].bak_val.timesection3||'暂无数据'}}</div>
21
+ <div class="col-sm-12" style="height: auto">区间3用气量:{{row['readperiodusegasAlarmparam'].bak_val.timesection3||'暂无数据'}}</div>
22
+ <div class="col-sm-12" style="height: auto">上次报警区间:{{row['readperiodusegasAlarmparam'].bak_val.realusegas1||'暂无数据'}}</div>
23
+ <div class="col-sm-12" style="height: auto">上次报警区间:{{row['readperiodusegasAlarmparam'].bak_val.realusegas2||'暂无数据'}}</div>
24
+ <div class="col-sm-12" style="height: auto">上次报警区间:{{row['readperiodusegasAlarmparam'].bak_val.realusegas3||'暂无数据'}}</div>
25
+ <!-- [{"yjbbhlength":28,"softversionNo":"n0100081","mzbbhlength":15,"mzversion":"BC25PAR01A04_BT","version":"2022-07-28","yjversion":"YIMS-M-T1-3-1-H-2-13-17_V1.1"}]-->
13
26
  <ul class="nav nav-tabs col-sm-12" >
14
27
  <li class="active"><a>软件版本号</a></li>
15
28
  </ul>
@@ -69,7 +82,7 @@ export default {
69
82
  handler: async function (val) {
70
83
  this.history = []
71
84
  if (val.length === 1) {
72
- await this.$resetpost('rs/sql/getIotParams', {data: {t_userfiles_id: val[0].f_userfiles_id}}, {resolveMsg: null, rejectMsg: null}).then((rat) => {
85
+ await this.$resetpost('rs/sql/getIotParams?pageNo=1&pageSize=9999999', {data: {t_userfiles_id: val[0].f_userfiles_id}}, {resolveMsg: null, rejectMsg: null}).then((rat) => {
73
86
  this.row = {}
74
87
  console.log('=============', rat.data)
75
88
  this.row.forceSafeCheckUsedDayCount = 0
@@ -78,18 +91,24 @@ export default {
78
91
  this.row.isForceSrape = '1'
79
92
  if (rat.data.length > 0) {
80
93
  rat.data.forEach((item) => {
81
- if (item.f_param_value === '1') {
82
- item.f_param_value = '开'
94
+ if (item.f_back_content === '1') {
95
+ item.f_back_content = '开'
83
96
  }
84
- if (item.f_param_value === '0') {
85
- item.f_param_value = '关'
97
+ if (item.f_back_content === '0') {
98
+ item.f_back_content = '关'
86
99
  }
87
100
  if (item.f_param_name === '读表功能') {
88
- if (item.f_param_value && item.f_param_value === 'getMeterVersion') {
89
- item.f_back_content = JSON.parse(item.f_back_content.replace('[', '').replace(']', ''))['softversionNo']
101
+ if (item.f_param_content === '读区间用气量报警参数' && item.f_back_content) {
102
+ let str = item.f_back_content.substring(0, item.f_back_content.indexOf(']'))
103
+ item.f_back_content = JSON.parse(str.replace('[', '').replace(']', ''))
104
+ }
105
+ if (item.f_param_value && item.f_back_content && item.f_param_value === 'getMeterVersion') {
106
+ let str = item.f_back_content.substring(0, item.f_back_content.indexOf(']'))
107
+ item.f_back_content = JSON.parse(str.replace('[', '').replace(']', ''))['softversionNo']
90
108
  }
91
- if (item.f_param_value && item.f_param_value === 'readNextreportTime') {
92
- let str = JSON.parse(item.f_back_content.replace('[', '').replace(']', ''))['datetime']
109
+ if (item.f_param_value && item.f_back_content && item.f_param_value === 'readNextreportTime') {
110
+ let str = item.f_back_content.substring(0, item.f_back_content.indexOf(']'))
111
+ str = JSON.parse(str.replace('[', '').replace(']', ''))['datetime']
93
112
  item.f_back_content = '20' + str.substr(0, 2) + '-' + str.substr(2, 2) + '-' + str.substr(4, 2) + ' ' +
94
113
  str.substr(6, 2) + ':' + str.substr(8, 2) + ':' + str.substr(10, 2)
95
114
  }
@@ -98,7 +117,7 @@ export default {
98
117
  }
99
118
  this.row[item.f_param_value] = {set_val: item.f_param_value, bak_val: item.f_back_content}
100
119
  } else {
101
- this.row[item.f_param_lname] = {set_val: item.f_param_value, bak_val: item.f_back_content}
120
+ this.row[item.f_param_name + item.f_param_lname] = {set_val: item.f_param_value, bak_val: item.f_back_content}
102
121
  }
103
122
  })
104
123
  // let param = JSON.parse(rat.data[0].f_data)
@@ -126,7 +145,7 @@ export default {
126
145
  this.newmeterinfo = [{}]
127
146
  try {
128
147
  let res = await this.$resetpost('/webmeter/rs/logic/getParamsByGasBrand', {data: {gasBrandId: val}}, {resolveMsg: null, rejectMsg: null})
129
- this.newmeterinfo = res.data.filter(item => { return (item.name !== '读表功能' && item.name !== '读记录数据') })
148
+ this.newmeterinfo = res.data.filter(item => { return (item.name !== '读表功能' && item.name !== '读记录数据' && item.name !== '设置区间用气量报警参数') })
130
149
  } catch (error) {
131
150
  this.$showAlert('该气表品牌不支持参数设置', 'warning', 1500)
132
151
  }