sale-client 3.6.475 → 3.6.477

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.475",
3
+ "version": "3.6.477",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -74,9 +74,12 @@
74
74
  v-validate:f_used_name=getConfigValidate("f_used_name",false)
75
75
  :placeholder="getConfigPlaceholder('f_used_name','曾用名')">
76
76
  </div>
77
- <div style="" class="col-sm-4 form-group">
77
+ <div style="" class="col-sm-4 form-group"
78
+ v-show="(formconfig && formconfig.f_rent_phone && formconfig.f_rent_phone.required) || !onlyshowmust"
79
+ :class="[$v.f_rent_phone.required ? 'has-error' : '']" v-if="getConfigShowItem('f_rent_phone')">
78
80
  <label for="f_rent_phone" class="font_normal_body">&ensp;备用电话</label>
79
81
  <input type="text" v-model="baseinfo.base.f_rent_phone" class="input_search" style="width:60%"
82
+ v-validate:f_rent_phone=getConfigValidate("f_rent_phone",false)
80
83
  placeholder="备用电话">
81
84
  </div>
82
85
  <div class="col-sm-4 form-group"
@@ -340,7 +343,7 @@
340
343
  }
341
344
  return {}
342
345
  },
343
- getConfigShowItem (name,defaultVal = true) {
346
+ getConfigShowItem (name, defaultVal = true) {
344
347
  if (this.formconfig && this.formconfig[name] && this.formconfig[name].hasOwnProperty('showItem')) {
345
348
  return this.formconfig[name].showItem
346
349
  } else {
@@ -178,7 +178,7 @@
178
178
  /**
179
179
  * 发票补打
180
180
  */
181
- let reprintGen = async function* (self, row) {
181
+ let reprintGen = async function (self, row) {
182
182
  try {
183
183
  row.billUrl = self.getBillUrl(row)
184
184
  if (!row.billUrl) {
@@ -136,7 +136,10 @@ export default {
136
136
  },
137
137
  async zdfk () {
138
138
  let data = {
139
- f_userfiles_id: this.row.f_userfiles_id
139
+ inputtor: Vue.$login.f.name,
140
+ inputtorid: Vue.$login.f.id,
141
+ f_userfiles_id: this.row.f_userfiles_id,
142
+ meterBrandName: this.row.f_alias
140
143
  }
141
144
  if (this.row.f_network_valve === '关闭') {
142
145
  await this.$resetpost('rs/logic/openzdfk', data, {resolveMsg: '开启自动阀控成功。', rejectMsg: '开启自动阀控失败!!!'})
@@ -177,7 +177,7 @@
177
177
  /**
178
178
  * 发票补打
179
179
  */
180
- let reprintGen = async function* (self, row) {
180
+ let reprintGen = async function (self, row) {
181
181
  try {
182
182
  row.billUrl = self.getBillUrl(row)
183
183
  if (!row.billUrl) {
@@ -470,6 +470,10 @@
470
470
  this.validateOk = !val.isOk
471
471
  this.billData.bill = val.bill
472
472
  },
473
+ roundToDecimalPlace (number, decimalPlaces) {
474
+ const factor = Math.pow(10, decimalPlaces)
475
+ return Math.round(number * factor) / factor
476
+ },
473
477
  getcollection () {
474
478
  let money = 0
475
479
  let flag = true
@@ -479,8 +483,10 @@
479
483
  money += ((item.f_unitprice - 0) * (item.f_number - 0)) - 0
480
484
  }
481
485
  })
486
+ console.log(money)
482
487
  if (money != 0) {
483
- this.model.f_collection = money.toFixed(2)
488
+ this.model.f_collection = this.roundToDecimalPlace(money, 2)
489
+ console.log(this.model.f_collection)
484
490
  }
485
491
  if (!flag) this.model.f_collection = ''
486
492
  },
@@ -177,7 +177,7 @@
177
177
  /**
178
178
  * 发票补打
179
179
  */
180
- let reprintGen = async function* (self, row) {
180
+ let reprintGen = async function (self, row) {
181
181
  try {
182
182
  row.billUrl = self.getBillUrl(row)
183
183
  if (!row.billUrl) {
@@ -253,8 +253,8 @@
253
253
  noLimitGas: '',
254
254
  f_opr_state: '移入',
255
255
  f_final_opr_state: '移出',
256
- f_function: [],
257
- f_level: '',
256
+ f_function: ['限制购气'],
257
+ f_level: '',
258
258
  f_userinfo_code: '',
259
259
  f_userinfo_id: '',
260
260
  f_user_name: '',
@@ -281,10 +281,7 @@
281
281
  limites: [{label: '限购气量', value: '限购气量'}, {label: '限购金额', value: '限购金额'}],
282
282
  fstate: [{label: '移入', value: '移入'}, {label: '移出', value: '移出'}],
283
283
  flevel: [{label: '高', value: '高'}, {label: '中', value: '中'}, {label: '低', value: '低'}],
284
- fFunction: this.$appdata.getParam('限制功能') ? [{
285
- label: '全部',
286
- value: ''
287
- }, ...this.$appdata.getParam('限制功能')] : [],
284
+ fFunction: this.$appdata.getParam('限制功能') ? [...this.$appdata.getParam('限制功能')] : [],
288
285
  nolimitGas: [{label: '是', value: '0'}, {label: '否', value: '1'}],
289
286
  fcomments: this.$appdata.getParam('移入原因') ? [...this.$appdata.getParam('移入原因')] : [],
290
287
  yccomments: this.$appdata.getParam('移出重点用户原因') ? [...this.$appdata.getParam('移出重点用户原因')] : []
@@ -128,7 +128,7 @@
128
128
  </div>
129
129
  <div class="col-sm-2 form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}" >
130
130
  <label class=" font_normal_body">移入原因</label>
131
- <v-select
131
+ <v-select search min-width="260px"
132
132
  :value.sync="model.f_comments"
133
133
  v-model="model.f_comments"
134
134
  :options="$parent.$parent.fcomments"
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
  <div class="col-sm-2 form-group" :class="{'col-sm-2':!$parent.$parent.$parent.isdetail, 'col-sm-3':$parent.$parent.$parent.isdetail}" >
109
109
  <label class=" font_normal_body">移入原因</label>
110
- <v-select
110
+ <v-select search min-width="260px"
111
111
  :value.sync="model.f_black_comments"
112
112
  v-model="model.f_black_comments"
113
113
  :options="$parent.$parent.fcomments"
@@ -178,7 +178,7 @@
178
178
  /**
179
179
  * 发票补打
180
180
  */
181
- let reprintGen = async function* (self, row) {
181
+ let reprintGen = async function (self, row) {
182
182
  try {
183
183
  row.billUrl = self.getBillUrl(row)
184
184
  if (!row.billUrl) {
@@ -841,7 +841,8 @@ export default {
841
841
  'f_stair3amount': '三阶气量',
842
842
  'f_stair3price': '三阶单价',
843
843
  'f_stair3fee': '三阶气费',
844
- 'f_rest_date': '所属年月'
844
+ 'f_rest_date': '所属年月',
845
+ 'f_usetype': '使用类型'
845
846
  }
846
847
  },
847
848
  batchBankConfig2: {
@@ -178,7 +178,7 @@
178
178
  /**
179
179
  * 发票补打
180
180
  */
181
- let reprintGen = async function* (self, row) {
181
+ let reprintGen = async function (self, row) {
182
182
  try {
183
183
  row.billUrl = self.getBillUrl(row)
184
184
  if (!row.billUrl) {
@@ -178,7 +178,7 @@
178
178
  /**
179
179
  * 发票补打
180
180
  */
181
- let reprintGen = async function* (self, row) {
181
+ let reprintGen = async function (self, row) {
182
182
  try {
183
183
  row.billUrl = self.getBillUrl(row)
184
184
  if (!row.billUrl) {
@@ -20,7 +20,7 @@ let GetSaleParam = {
20
20
  bookcodes:[],
21
21
  inputtors: [],
22
22
  async initinputtor () {
23
- let res = await Vue.resetpost('rs/sql/sale_getAlluserRes', {data: {
23
+ let res = await Vue.resetpost('rs/sql/sale_getAlluserRes?pageNo=1&pageSize=999999', {data: {
24
24
  condition: ' 1=1'
25
25
  }}, {resolveMsg: null, rejectMsg: '获取用户出错!!!'})
26
26
  console.log('resdata:', res.data)
@@ -38,11 +38,12 @@ let GetSaleParam = {
38
38
  return res.rolestr.indexOf('抄表员') > -1 && res.f_orgid == orgid
39
39
  }
40
40
  })
41
-
41
+ console.log(arr)
42
42
  arr.forEach((res) => {
43
43
  inputtors.push({label: res.name, value: res.name})
44
44
  })
45
45
  }
46
+ console.log(inputtors)
46
47
  return inputtors
47
48
  },
48
49
  getGasstyle (key) {