sale-client 3.6.157 → 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.157",
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
  }
@@ -62,14 +62,10 @@
62
62
  for (let row of this.sellingData) {
63
63
  let bill = await this.$resetpost(this.data.billUrl, {data: {condition: row.id, operator: `'${this.data.f_operator}'`}}, {resolveMsg: null})
64
64
  this.bill.data = bill.data
65
- await new Promise(resolve => {
66
- this.$nextTick(() => {
67
- setTimeout(() => {
68
- // 在延迟后执行打印操作
69
- this.asyncPrint(select)
70
- resolve()
71
- }, parseInt(this.timeOut)) // 延迟1秒钟打印下一张票据,可以根据需要调整延迟时间
72
- })
65
+ this.$nextTick(function () {
66
+ setTimeout(function () {
67
+ this.asyncPrint(select)
68
+ }, parseInt(this.timeOut)) // 延迟时间从this.timeOut中获取,需要确保timeOut是一个数字值
73
69
  })
74
70
  this.printControl = null
75
71
  }
@@ -115,7 +115,6 @@
115
115
  }, ...this.$appdata.getParam('是否有效')] : [],
116
116
  // row数据
117
117
  rowsdata: [],
118
- searchValue: this.$appdata.getSingleValue('综合条件查询') ? this.$appdata.getSingleValue('综合条件查询') : 'f_userfiles_id',
119
118
  fields: {'f_userinfo_code': '客户编号', 'f_user_name': '客户姓名', 'f_type': '换表类型', 'f_meter_base': '旧表底数', 'f_newmeter_base': '新表底数', 'f_changemeter_fee': '换表费', 'f_operator': '操作员', 'f_changemeter_date': '换表日期'},
120
119
  defaultfield: [
121
120
  'f_userinfo_code', 'f_user_name', 'f_type', 'f_meter_base', 'f_newmeter_base', 'f_changemeter_fee', 'f_operator', 'f_changemeter_date'
@@ -131,7 +130,7 @@
131
130
  },
132
131
  methods: {
133
132
  async search () {
134
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and ${this.searchValue} = '${this.row[this.searchValue]}' `
133
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.row.f_user_id}'`
135
134
  this.model.search(this.condition, this.model)
136
135
  let http = new HttpResetClass()
137
136
  let res = await http.load('POST', 'rs/sql/sale_ChangeMeterQuery', {
@@ -19,7 +19,7 @@
19
19
  <export-excel
20
20
  :data="{condition: $parent.$parent.condition}"
21
21
  :field="$parent.$parent.getfield"
22
- sqlurl="rs/logic/exportfile" sql-name="salegetGasUser" :template-name="$parent.$parent.meterbrand+'气价使用人'"
22
+ sqlurl="rs/logic/saleExport" sql-name="getGasBrandsUser" :template-name="$parent.$parent.meterbrand+'气价使用人'"
23
23
  :choose-col="true"></export-excel>
24
24
  <div style="float: right" class="button_spacing"
25
25
  :class="{'button_shrink_top': $parent.$parent.criteriaShow2,'button_shrink_bottom': !$parent.$parent.criteriaShow2}"
@@ -93,11 +93,12 @@
93
93
  pricetypes: this.$appdata.getParam('气价类型') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('气价类型')] : [],
94
94
  config: {
95
95
  excelHeaders: {
96
- 'f_price_name': '气价名称',
97
96
  'f_userinfo_code': '客户编号',
97
+ 'f_meternumber': '表号',
98
+ 'f_meter_brand': '气表品牌',
99
+ 'f_meter_type': '气表类型',
98
100
  'f_user_name': '客户姓名',
99
- 'f_address': '客户地址',
100
- 'f_orgname': '组织机构'
101
+ 'f_address': '客户地址'
101
102
  }
102
103
  },
103
104
  checked1: true,
@@ -67,7 +67,7 @@
67
67
  <th><nobr>违约金</nobr></th>
68
68
  <th><nobr>减免金额</nobr></th>
69
69
  <th><nobr>上期结余</nobr></th>
70
- <th><nobr v-if="!$parent.$parent.$parent.isIot">应交金额</nobr></th>
70
+ <th v-if="!$parent.$parent.$parent.isIot"><nobr >应交金额</nobr></th>
71
71
  <th><nobr>实收金额</nobr></th>
72
72
  <th><nobr>本期结余</nobr></th>
73
73
  <th><nobr>付款方式</nobr></th>
@@ -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 {