sale-client 3.6.560 → 3.6.561

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.
File without changes
@@ -1,2 +1,2 @@
1
- #Wed Jun 25 17:54:33 CST 2025
1
+ #Mon Apr 14 10:14:01 CST 2025
2
2
  gradle.version=5.2.1
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.560",
3
+ "version": "3.6.561",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -50,6 +50,7 @@
50
50
  console.log(userinfoid)
51
51
  this.showbuy = true
52
52
  this.f_userinfo_id = userinfoid
53
+ console.log("uuuurl", window.location.href)
53
54
  this.$resetpost('wx/rs/logic/wordToosRept', {f_userinfo_id: this.f_userinfo_id}, {resolveMsg: null, rejectMsg: '获取合同失败!!'}).then(item => {
54
55
  if (item.data.length > 0) {
55
56
  this.scheduleData = item.data[0]
@@ -58,7 +59,8 @@
58
59
  // 2. 对 URL 进行编码
59
60
  let fullUrl = encodeURI(this.url.replace(/\\/g, '/'))
60
61
  this.$resetpost(`rs/convert/convertImg`, {url: fullUrl}, {resolveMsg: null, rejectMsg: null}).then((ret) => {
61
- let img = window.location.href + 'files' + ret.data
62
+ let href = window.location.href.split('#')[0]
63
+ let img = href + 'files' + ret.data
62
64
  this.imgurl = encodeURI(img.replace(/\\/g, '/'))
63
65
  console.log(this.imgurl)
64
66
  this.showbuy = false
@@ -109,7 +109,7 @@
109
109
  v-model="model.f_serial_number" placeholder="业务单号">
110
110
  </div>
111
111
  <div class="col-sm-4">
112
- <label for="f_write_card" style="color: red" class=" font_normal_body">是否写卡</label>
112
+ <label for="f_write_card" style="color: red" class=" font_normal_body">是否写</label>
113
113
  <v-select id="f_write_card"
114
114
  v-model="model.f_write_card"
115
115
  placeholder='是否写卡'
@@ -459,13 +459,21 @@
459
459
  }
460
460
  }
461
461
  },
462
- calText (val) {
463
- let str = ''
462
+ calText(val) {
463
+ let str = '';
464
+ let total = 0; // 用于存储总金额
465
+
464
466
  val.forEach((item) => {
465
- str = str + item.f_price + ' x ' + item.f_gas + '+'
466
- })
467
- str = str.slice(0, str.length - 1)
468
- this.calculatedetail = str
467
+ const price = parseFloat(item.f_price);
468
+ const gas = parseFloat(item.f_gas);
469
+ const result = price * gas; // 计算每项的结果
470
+ total += result; // 累加到总金额
471
+ str += `${price} x ${gas} = ${result.toFixed(3)} + `; // 显示三位小数
472
+ });
473
+
474
+ str = str.slice(0, -2); // 去掉最后的 " + "
475
+ str += ` = ${total.toFixed(3)}`; // 添加总和,并保留三位小数
476
+ this.calculatedetail = str;
469
477
  },
470
478
  close () {
471
479
  this.print = false
@@ -172,7 +172,11 @@ export default {
172
172
  },
173
173
  changeDate () {
174
174
  for (let i = 0; i < this.devicesinfonew.length; i++) {
175
- if (this.devicesinfonew[i].f_devices_type == '报警器') {
175
+ if (this.devicesinfonew[i].f_devices_type == '民用-报警器') {
176
+ this.devicesinfonew[i].f_alarm_type = '民用'
177
+ this.alarmExpireDate(i)
178
+ } else if(this.devicesinfonew[i].f_devices_type == '工商-报警器'){
179
+ this.devicesinfonew[i].f_alarm_type = '工商'
176
180
  this.alarmExpireDate(i)
177
181
  } else if (this.devicesinfonew[i].f_devices_type == '切断阀' || this.devicesinfonew[i].f_devices_type == '自闭阀') {
178
182
  this.expireDate(i)
@@ -200,6 +204,9 @@ export default {
200
204
  } else {
201
205
  let b = new Date(this.devicesinfonew[index].f_firstcheck_date)
202
206
  let year = (b.getFullYear() - 0) + 5
207
+ if(this.devicesinfonew[index].f_alarm_type == '民用'){
208
+ year = (b.getFullYear() - 0) + 3
209
+ }
203
210
  let year2 = (b.getFullYear() - 0) + 1
204
211
  let month = (b.getMonth() - 0) + 1
205
212
  var day = b.getDate()