sale-client 3.6.158 → 3.6.159

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.158",
3
+ "version": "3.6.159",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -964,6 +964,18 @@
964
964
  </script>
965
965
  <style lang="less">
966
966
  #meterInfoTest{
967
+ // 去掉number类型输入框的上下箭头
968
+ input[type="number"] {
969
+ &::-webkit-inner-spin-button,
970
+ &::-webkit-outer-spin-button {
971
+ -webkit-appearance: none;
972
+ margin: 0;
973
+ }
974
+
975
+ & {
976
+ -moz-appearance: textfield;
977
+ }
978
+ }
967
979
  #addboxmap {
968
980
  height: 300px;
969
981
  }
@@ -397,6 +397,12 @@
397
397
  :options='overdueset' placeholder='违约金规则'
398
398
  close-on-select></v-select>
399
399
  </div>
400
+ <div class="col-sm-4 form-group">
401
+ <label class="font_normal_body" title="三项强制措施">三项强制措施</label>
402
+ <v-select :value.sync="row.f_force_measure" :options='forceMeasure'
403
+ placeholder='三项强制措施' close-on-select :multiple="true"
404
+ v-model='row.f_force_measure'></v-select>
405
+ </div>
400
406
 
401
407
  <template v-if="config.stuckFlowmeterShow">
402
408
  <div class="col-sm-4 form-group">
@@ -602,6 +608,7 @@ export default {
602
608
  usetype: this.$appdata.getParam('使用类型'),
603
609
  usestate: this.$appdata.getParam('使用状态'),
604
610
  aroundmeters: this.$appdata.getParam('左右表'),
611
+ forceMeasure: this.$appdata.getParam('三项强制措施'),
605
612
  garbagefee: this.$appdata.getParam('垃圾费'),
606
613
  valvestate: this.$appdata.getParam('阀门状态'),
607
614
  usertypes: this.$appdata.getParam('用户类型'),
@@ -640,6 +647,9 @@ export default {
640
647
  if (this.row.pricetype === '混合气价') {
641
648
  this.ratioshow = true
642
649
  }
650
+ if (this.row.f_force_measure[0]) {
651
+ this.row.f_force_measure = this.row.f_force_measure[0].split(',')
652
+ }
643
653
  if (this.row.f_meternumber) {
644
654
  this.meterNumberDisabled = true
645
655
  }
@@ -253,14 +253,20 @@
253
253
  :options='usestate' placeholder='使用状态'
254
254
  close-on-select></v-select>
255
255
  </div>
256
- <div style="" class="col-sm-6 form-group">
256
+ <div style="" class="col-sm-8 form-group">
257
257
  <label for="f_userfiles_address" class="font_normal_body ">安装地址&nbsp;</label>
258
258
  <input class="input_search" style="width:80%" v-model="row.f_userfiles_address"/>
259
259
  </div>
260
- <div style="" class="col-sm-6 form-group">
260
+ <div style="" class="col-sm-8 form-group">
261
261
  <label for="f_alarm_code" class="font_normal_body ">报警器编码&nbsp;</label>
262
262
  <input class="input_search" style="width:80%" v-model="row.f_alarm_code"/>
263
263
  </div>
264
+ <div class="col-sm-4 form-group">
265
+ <label class="font_normal_body" title="三项强制措施">三项强制措施</label>
266
+ <v-select :value.sync="row.f_force_measure" :options='forceMeasure'
267
+ placeholder='三项强制措施' close-on-select :multiple="true"
268
+ v-model='row.f_force_measure'></v-select>
269
+ </div>
264
270
  </div>
265
271
  </form>
266
272
  </validator>
@@ -354,6 +360,7 @@ let meterBookGen = function * (self) {
354
360
  selectUserFiles: '', // 选中的 userfiles
355
361
  jurisdiction: this.$login.r,
356
362
  positions: this.$appdata.getParam('安装位置'),
363
+ forceMeasure: this.$appdata.getParam('三项强制措施'),
357
364
  usetype: this.$appdata.getParam('使用类型'),
358
365
  usestate: this.$appdata.getParam('使用状态'),
359
366
  aroundmeters: this.$appdata.getParam('左右表'),
@@ -380,6 +387,9 @@ let meterBookGen = function * (self) {
380
387
  if (this.row.pricetype === '混合气价') {
381
388
  this.ratioshow = true
382
389
  }
390
+ if (this.row.f_force_measure[0]) {
391
+ this.row.f_force_measure = this.row.f_force_measure[0].split(',')
392
+ }
383
393
  co(meterBookGen(this))
384
394
  },
385
395
  methods: {
@@ -51,7 +51,7 @@
51
51
  v-model="row.f_unitprice"
52
52
  :value.sync="row.f_unitprice"
53
53
  v-validate:f_unitprice='{required: true}'
54
- :disabled="row.brandspec[0]==='开卡费'"
54
+ :disabled="row.f_brand_spec[0]==='开卡费'"
55
55
  placeholder="单价" v-next-el='sl'>
56
56
  </div>
57
57
  <div class="col-sm-4" :class="{'has-success':row.f_number,'has-error':!row.f_number}">
@@ -148,6 +148,21 @@ let FileManageService = {
148
148
  meter.f_remanent_gas = isNaN(meter.f_remanent_gas) || meter.f_remanent_gas === '' ? 0.00 : (meter.f_remanent_gas - 0).toFixed(4)
149
149
  meter.f_price_ratio = meter.f_price_ratio ? meter.f_price_ratio : null
150
150
  meter.f_fire_state = meter.f_fire_state1 ? '1' : '0'
151
+ let forcemeasure = meter.f_force_measure
152
+ meter.f_force_measure = ''
153
+ if (forcemeasure.length > 0) {
154
+ for (var c = 0; c < forcemeasure.length; c++) {
155
+ if (forcemeasure[c]) {
156
+ if (c !== forcemeasure.length - 1) {
157
+ meter.f_force_measure = meter.f_force_measure + forcemeasure[c] + ','
158
+ } else {
159
+ meter.f_force_measure = meter.f_force_measure + forcemeasure[c]
160
+ }
161
+ }
162
+ }
163
+ } else {
164
+ meter.f_force_measure = null
165
+ }
151
166
  if (meter.gasmodel[0] == null) {
152
167
  meter.f_gasmodel_id = ''
153
168
  } else {