sale-client 3.5.40 → 3.5.41

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.
@@ -89,13 +89,13 @@ var proxyTable = {
89
89
  target: fuwu
90
90
  },
91
91
  '/rs/report': {
92
- target: 'http://121.36.106.17:8400/'
92
+ target: fuwu
93
93
  },
94
94
  '/rs/vue': {
95
95
  target: fuwu
96
96
  },
97
97
  '/webmeter': {
98
- target: 'http://192.168.50.4:8450'
98
+ target: fuwu
99
99
  },
100
100
  '/rs': {
101
101
  // target: 'http://192.168.30.63:8081/'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.40",
3
+ "version": "3.5.41",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -372,11 +372,8 @@ let cardBtnGen = async function (self, val) {
372
372
  }
373
373
  }
374
374
  }
375
-
376
375
  // 验证卡上是否有气, 1). 卡上的气量和金额大于0 2). 只认累购的表会有一个新参数 NewParam.IsInsert (0: 未接表 1: 已接表)
377
-
378
376
  let cardHasGas = false
379
-
380
377
  if ((self.cardInfo.Gas - 0) > 0 || (self.cardInfo.Money - 0) > 0) {
381
378
  cardHasGas = true
382
379
  }
@@ -763,7 +763,6 @@
763
763
  this.clean()
764
764
  },
765
765
  paymentchange () {
766
- console.log('model.f_payment', this.model.f_payment[0])
767
766
  if (JSON.stringify(this.model.f_payment).indexOf('转账') !== -1) {
768
767
  // 进入转账筛选条件
769
768
  this.model.f_banktransfer_person = ''
@@ -84,6 +84,7 @@
84
84
  <th style="text-align:center;">
85
85
  <nobr>操作类型</nobr>
86
86
  </th>
87
+ <!-- 查这里-->
87
88
  <th style="text-align:center;">
88
89
  <nobr>操作状态</nobr>
89
90
  </th>
@@ -132,8 +133,10 @@
132
133
  <td style="text-align:center;">
133
134
  <nobr>{{row.f_type}}</nobr>
134
135
  </td>
136
+ <!-- 这里-->
135
137
  <td style="text-align:center;">
136
- <nobr>{{row.f_state}}</nobr>
138
+ <nobr>{{$parent.$parent.$parent.stateFlow(row)}}</nobr>
139
+ <!-- <nobr>{{row.f_state}}</nobr>-->
137
140
  </td>
138
141
  <td style="text-align:center;">
139
142
  <nobr>{{row.f_operator}}</nobr>
@@ -187,7 +190,7 @@
187
190
  import {PagedList} from 'vue-client'
188
191
 
189
192
  export default {
190
- title: '指令页面',
193
+ title: '指令查看',
191
194
  name: 'Querylnstruct',
192
195
  props: {
193
196
  row: {},
@@ -211,7 +214,6 @@
211
214
  cancelid: '',
212
215
  f_userfiles_id: '',
213
216
  model: new PagedList('rs/sql/insturctDetailQuery', 30),
214
- // model: null,
215
217
  row: null,
216
218
  searchshow: false,
217
219
  show: false
@@ -230,6 +232,25 @@
230
232
  }
231
233
  },
232
234
  methods: {
235
+ stateFlow: function (row) {
236
+ console.log(row)
237
+ let state = ""
238
+ if (row.f_instruct_type.includes("阀门控制")) {
239
+ let content = JSON.parse(row.f_instruct_content)
240
+ if (content.isOpen !== null) {
241
+ if (content.isOpen === 1) {
242
+ state = "开阀"
243
+ } else if (content.isOpen === 0) {
244
+ state = "关阀"
245
+ } else {
246
+ state = row.f_state
247
+ }
248
+ return state
249
+ }
250
+ } else {
251
+ return row.f_state
252
+ }
253
+ },
233
254
  clickshow () {
234
255
  this.searchshow = !this.searchshow
235
256
  },
@@ -4,8 +4,8 @@
4
4
  <criteria :model='model' partial='criteria' v-ref:criteria @condition-changed='$parent.selfSearch'>
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
7
- <div class="col-sm-2">
8
- <label class="font_normal_body" >气表协议类型</label>
7
+ <div class="col-sm-2 ">
8
+ <label class="font_normal_body" >协议类型</label>
9
9
  <v-select style="width:60%" title="气表协议类型"
10
10
  placeholder='气表协议类型'
11
11
  :value.sync="model.f_metertype"
@@ -15,7 +15,7 @@
15
15
  close-on-select
16
16
  :value-single="true" v-ref:brand> </v-select>
17
17
  </div>
18
- <div class="col-sm-2">
18
+ <div class="col-sm-2 ">
19
19
  <label class="font_normal_body">气表品牌</label>
20
20
  <v-select
21
21
  placeholder='气表品牌'
@@ -26,7 +26,7 @@
26
26
  condition="f_gasbrand_id = '{}'"
27
27
  close-on-select></v-select>
28
28
  </div>
29
- <div class="col-sm-2 form-group">
29
+ <div class="col-sm-2 ">
30
30
  <label class="font_normal_body">气表型号</label>
31
31
  <v-select :value.sync="model.f_meter_style"
32
32
  v-model="model.f_meter_style"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div id="unit" class="flex-row">
3
- <div class="flex basic-main" style="width:auto;">
3
+ <div class="flex basic-main" style="max-width:65%;">
4
4
  <param-set-default-list v-ref:defaultlist></param-set-default-list>
5
5
  </div>
6
6
  <div class="flex binary-right" style="flex:1; ">
@@ -203,6 +203,10 @@ export default {
203
203
  }
204
204
  }
205
205
  }
206
+ if (params.length === 0) {
207
+ this.$showAlert('没有需要设置得参数', 'warning', 2000)
208
+ return
209
+ }
206
210
  let param = {
207
211
  condition: 'g.f_gasbrand_id = ' + this.gasbrandid[0],
208
212
  switchCheckAll: this.checked1,
@@ -247,7 +251,10 @@ export default {
247
251
  }
248
252
  }
249
253
  }
250
- debugger
254
+ if (params.length === 0) {
255
+ this.$showAlert('没有需要设置得参数', 'warning', 2000)
256
+ return
257
+ }
251
258
  let param = {
252
259
  condition: 'g.f_gasbrand_id = ' + this.gasbrandid[0] + ' and f.f_userfiles_id in (' + filesid + ')',
253
260
  switchCheckAll: this.checked1,
@@ -292,8 +299,8 @@ export default {
292
299
  this.newmeterinfo[i].params[j].isenbale = false
293
300
  for (let n = 0; n < allDefaultValue.data.length; n++) {
294
301
  if (this.newmeterinfo[i].params[j].name === allDefaultValue.data[n].f_param_name && this.newmeterinfo[i].name === allDefaultValue.data[n].f_group_name && allDefaultValue.data[n].f_param_title === this.newmeterinfo[i].params[j].title) {
295
- this.newmeterinfo[i].params[j].default_value = allDefaultValue.data[i].f_param_value
296
- this.newmeterinfo[i].params[j].default_id = allDefaultValue.data[i].default_id
302
+ this.newmeterinfo[i].params[j].default_value = allDefaultValue.data[n].f_param_value
303
+ this.newmeterinfo[i].params[j].default_id = allDefaultValue.data[n].default_id
297
304
  break
298
305
  }
299
306
  }