sale-client 3.5.71 → 3.5.72

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.
@@ -12,7 +12,7 @@ var compiler = webpack(config)
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
13
  var bendi = 'http://121.36.106.17:8400', bendi1 = 'http://121.36.106.17:8400/'
14
14
  // 公司测试服务
15
- var fuwu = 'http://117.33.181.102:8400/'
15
+ var fuwu = 'http://39.108.82.124:8400/'
16
16
  // var fuwu = 'http://121.36.106.17:8400/'
17
17
  // 铜川正式
18
18
  // var fuwu = 'http://61.134.55.234:9999/'
@@ -92,7 +92,7 @@ var proxyTable = {
92
92
  target: fuwu
93
93
  },
94
94
  '/rs/report': {
95
- target: 'http://117.33.181.102:8400/'
95
+ target: 'http://121.36.106.17:8400/'
96
96
  },
97
97
  '/rs/vue': {
98
98
  target: fuwu
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.71",
3
+ "version": "3.5.72",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -32,15 +32,15 @@
32
32
  <!-- <label class="font_normal_body"-->
33
33
  <!-- style="text-align:left">{{ param.default_value ? `当前默认值为:${param.default_value};` : '当前未设置默认值' }}</label>-->
34
34
  <!-- </div>-->
35
- <div class="col-sm-8" v-if="paramtype==='设置表功能开关'">
35
+ <div class="col-sm-8" v-if="['设置特殊故障是否关阀','设置表功能开关'].includes(paramtype)">
36
36
  <radio-btn v-model="row[param.title]" :value.sync="row[param.title]"></radio-btn>
37
37
  <!-- <label>启用<input type="radio" v-model="param.isenbale" @click="reMeterinfo(index,param_index,data.params)" :disabled="!param.default_value" value="启用"/></label>-->
38
38
  <!-- <label>保持不变<input type="radio" v-model="param.isenbale" @click="reMeterinfo(index,param_index,data.params)" value="保持不变"/></label>-->
39
39
  </div>
40
- <template v-if="paramtype!=='设置表功能开关'">
40
+ <template v-if="!['设置特殊故障是否关阀','设置表功能开关'].includes(paramtype)">
41
41
  <div class="col-sm-8" v-if="param.type!=='option'">
42
42
  <input :type="param.type" v-model="row[param.title]"
43
- style="width:70%" :value.sync="row[param.title]"
43
+ style="width:70%" :value.sync="row[param.title]"
44
44
  placeholder="" class="input_search">
45
45
  </div>
46
46
  <div class="col-sm-8" v-if="param.type==='option'">
@@ -187,7 +187,7 @@ export default {
187
187
  title: '参数设置',
188
188
  props: ['user', 'checked1', 'gasbrandid', 'condition'],
189
189
  components: {RadioBtn},
190
- data () {
190
+ data() {
191
191
  return {
192
192
  newmeterinfo: [{}],
193
193
  row: {},
@@ -199,7 +199,7 @@ export default {
199
199
  isenbale: false
200
200
  }
201
201
  },
202
- ready () {
202
+ ready() {
203
203
 
204
204
  },
205
205
  watch: {
@@ -209,12 +209,12 @@ export default {
209
209
  },
210
210
  deep: true
211
211
  },
212
- 'gasbrandid' (val) {
212
+ 'gasbrandid'(val) {
213
213
  if (val[0]) {
214
214
  this.refreshParam(val[0])
215
215
  }
216
216
  },
217
- 'paramtype' (val) {
217
+ 'paramtype'(val) {
218
218
  this.row = {}
219
219
  if (val) {
220
220
  // 循环给row赋值 row存储当前页面的值 虽然我不知道为什么这么设计 但是目前只能继续用了
@@ -248,11 +248,11 @@ export default {
248
248
  }
249
249
  },
250
250
  methods: {
251
- close () {
251
+ close() {
252
252
  this.row = {}
253
253
  this.$dispatch('close')
254
254
  },
255
- async setParamDefault () {
255
+ async setParamDefault() {
256
256
  let params = []
257
257
  for (let i = 0; i < this.newmeterinfo.length; i++) {
258
258
  for (let j = 0; j < this.newmeterinfo[i].params.length; j++) {
@@ -266,14 +266,12 @@ export default {
266
266
  data.param_value = this.row[key] ? (this.row[key].code ? this.row[key].code : this.row[key]) : null
267
267
  data.param_content = this.row[key] ? (this.row[key].content ? this.row[key].content : this.row[key]) : null
268
268
  data.param_lname = this.newmeterinfo[i].params[j].title
269
- if (this.paramtype === '设置表功能开关') {
270
- if (this.row[key].length === 2 || (this.row[key].length === 1 && this.row[key][0] === '启用')) {
269
+ if (['设置特殊故障是否关阀', '设置表功能开关'].includes(this.paramtype)) {
270
+ if (this.row[key].length === 1 && this.row[key][0] === '启用') {
271
271
  data.param_value = data.param_content = '1'
272
- }
273
- if (this.row[key].length === 0) {
272
+ params.push(data)
273
+ } else if (this.row[key].length === 0) {
274
274
  data.param_value = data.param_content = '0'
275
- }
276
- if (!(this.row[key].length === 1 && this.row[key][0] === '保持不变')) {
277
275
  params.push(data)
278
276
  }
279
277
  } else if (this.row[key]) {
@@ -301,14 +299,16 @@ export default {
301
299
  f_gasbrand_id: this.gasbrandid[0]
302
300
  }
303
301
  console.log(param)
304
- await this.$resetpost('/rs/logic/alteration_batch', {data: param}, {
305
- rejectMsg: '批量保存失败',
306
- resolveMsg: '保存成功'
307
- })
302
+ if (params.length > 0) {
303
+ await this.$resetpost('/rs/logic/alteration_batch', {data: param}, {
304
+ rejectMsg: '批量保存失败',
305
+ resolveMsg: '保存成功'
306
+ })
307
+ }
308
308
  this.row = null
309
309
  this.$dispatch('clear')
310
310
  },
311
- async setParam () {
311
+ async setParam() {
312
312
  let user = []
313
313
  let filesid = ''
314
314
  this.user.forEach((item) => {
@@ -332,15 +332,12 @@ export default {
332
332
  data.param_value = this.row[key] ? (this.row[key].code ? this.row[key].code : this.row[key]) : null
333
333
  data.param_content = this.row[key] ? (this.row[key].content ? this.row[key].content : this.row[key]) : null
334
334
  data.param_lname = this.newmeterinfo[i].params[j].title
335
- if (this.paramtype === '设置表功能开关') {
336
- debugger
337
- if (this.row[key].length === 2 || (this.row[key].length === 1 && this.row[key][0] === '启用')) {
335
+ if (['设置特殊故障是否关阀', '设置表功能开关'].includes(this.paramtype)) {
336
+ if (this.row[key].length === 1 && this.row[key][0] === '启用') {
338
337
  data.param_value = data.param_content = '1'
339
- }
340
- if (this.row[key].length === 0) {
338
+ params.push(data)
339
+ } else if (this.row[key].length === 0) {
341
340
  data.param_value = data.param_content = '0'
342
- }
343
- if (!(this.row[key].length === 1 && this.row[key][0] === '保持不变')) {
344
341
  params.push(data)
345
342
  }
346
343
  } else if (this.row[key]) {
@@ -369,14 +366,16 @@ export default {
369
366
  f_gasbrand_id: this.gasbrandid[0]
370
367
  }
371
368
  console.log(param)
372
- await this.$resetpost('/rs/logic/alteration_batch', {data: param}, {
373
- rejectMsg: '批量保存失败',
374
- resolveMsg: '保存成功'
375
- })
369
+ if (params.length > 0) {
370
+ await this.$resetpost('/rs/logic/alteration_batch', {data: param}, {
371
+ rejectMsg: '批量保存失败',
372
+ resolveMsg: '保存成功'
373
+ })
374
+ }
376
375
  this.row = null
377
376
  this.$dispatch('clear')
378
377
  },
379
- async refreshParam (val) {
378
+ async refreshParam(val) {
380
379
  this.paramtypes = []
381
380
  let temp = {
382
381
  tablename: 't_gasbrand',
@@ -420,7 +419,7 @@ export default {
420
419
  }
421
420
  this.$dispatch('showparam', true)
422
421
  },
423
- async getBrandParamsHistory () {
422
+ async getBrandParamsHistory() {
424
423
  let http = new HttpResetClass()
425
424
  let res = await http.load('POST', 'rs/sql/getBrandParamHistory', {
426
425
  data: {
@@ -1,6 +1,6 @@
1
1
  <template>
2
- <label>启用<input type="checkbox" v-model="value" @click="onChange('启用')" value="启用"/></label>
3
- <label>保持不变<input type="checkbox" v-model="value" @click="onChange('保持不变')" value="保持不变"/></label>
2
+ <label>启用<input type="checkbox" v-model="value" @click="onChange('启用')" :disabled="value.includes('保持不变')" value="启用"/></label>
3
+ <label>保持不变<input type="checkbox" v-model="value" @click="onChange('保持不变')" :disabled="value.includes('启用')" value="保持不变"/></label>
4
4
  </template>
5
5
 
6
6
  <script>
@@ -10,7 +10,7 @@ export default {
10
10
  props: {
11
11
  value: {
12
12
  type: Array,
13
- default: []
13
+ default: ['保持不变']
14
14
  }
15
15
  },
16
16
  data () {