sale-client 3.6.564 → 3.6.566

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.
@@ -1,2 +1,2 @@
1
- #Mon Apr 14 10:14:01 CST 2025
1
+ #Wed Jun 25 17:54:33 CST 2025
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.564",
3
+ "version": "3.6.566",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  "qrcodejs2": "^0.0.2",
25
25
  "vue": "^1.0.17",
26
26
  "webpack-dev-server": "^2.11.5",
27
- "vue-client": "1.24.157",
27
+ "vue-client": "1.25.38",
28
28
  "yarn": "^1.22.10"
29
29
  },
30
30
  "devDependencies": {
@@ -92,9 +92,7 @@
92
92
  <saletab header="合同查看" v-if="permission('合同查看')">
93
93
  <contract-signing-list :row="row" v-if="show == '合同查看'" @deal-msg="dealMsg"></contract-signing-list>
94
94
  </saletab>
95
- <saletab header="用户重点记录" v-if="permission('用户重点记录')">
96
- <user-key-record :row="row" @deal-msg="dealMsg"></user-key-record>
97
- </saletab>
95
+ s
98
96
  <!-- <saletab header="报装流转记录" v-if="permission('报装流转记录查看')">-->
99
97
  <!-- <supervisory-control :row="row" ></supervisory-control>-->
100
98
  <!-- </saletab>-->
@@ -80,7 +80,7 @@
80
80
  <input type="text" class="input_search" style="width:60%" v-model="row.f_rate_flow"
81
81
  placeholder='流量' v-next-el="{id: $index+'devicesmodel'}" :id="$index+'brand'">
82
82
  </div>
83
- <div class="col-sm-6 form-group" style="padding-right: 5px;" v-if="row.f_devices_type == '切断阀' && devicesinfoShow">
83
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-if="row.f_devices_type.includes('切断阀') && devicesinfoShow">
84
84
  <label class="font_normal_body">报废日期</label>
85
85
  <datepicker placeholder="报废日期" style="width: 60%"
86
86
  v-model="row.f_expire_date" disabled
@@ -88,6 +88,12 @@
88
88
  :format="'yyyy-MM-dd HH:mm:ss'">
89
89
  </datepicker>
90
90
  </div>
91
+ <div class="col-sm-6 form-group" style="padding-right: 5px;" v-if="row.f_devices_type.includes('切断阀') && devicesinfoShow">
92
+ <label class="font_normal_body">以表带阀</label>
93
+ <v-select :value.sync="row.f_devices_starp" v-model="row.f_devices_starp"
94
+ :options='devicesstarp' placeholder='设备类型' :value-single="true"
95
+ close-on-select ></v-select>
96
+ </div>
91
97
  <div class="col-sm-6 form-group" style="padding-right: 5px;" v-if="row.f_devices_type && row.f_devices_type.includes('报警器') && devicesinfoShow">
92
98
  <label class="font_normal_body">报废日期</label>
93
99
  <datepicker placeholder="报废日期" style="width: 60%"
@@ -149,6 +155,7 @@ export default {
149
155
  imgdelete: '/images/mainicon/deletedevice.png',
150
156
  imgadd: '/images/mainicon/adddevice.png',
151
157
  devicetypes: this.$appdata.getParam('表具设备类型'),
158
+ devicesstarp: this.$appdata.getParam('以表带阀'),
152
159
  devicesinfoShow: false
153
160
  }
154
161
  },
@@ -6,14 +6,14 @@
6
6
  <div class="row">
7
7
  <div v-if="isGas" class="col-sm-4" :class="[$v.f_pregas.dctest ? 'has-error' : 'has-success']">
8
8
  <label class="font_normal_body">赠&emsp;&emsp;气</label>
9
- <input class="input_search" style="width:60%" type="number" @blur="pregas"
9
+ <input class="input_search" style="width:60%" type="number" @blur="pregas" :disabled="isDiBao"
10
10
  v-validate:f_pregas='{ dctest: [0, ">=" ]}' v-model="model.f_pregas" placeholder="赠气量"
11
11
  v-ref:f_pregas>
12
12
  </div>
13
13
  <div class="col-sm-4" v-if="!isGas">
14
14
  <label for="f_preamount" class=" font_normal_body">金&emsp;&emsp;额:</label>
15
15
  <input class="input_search" style="width:60%" type="number" min="0" v-model="model.f_preamount"
16
- placeholder="金额">
16
+ placeholder="金额" :disabled="isDiBao">
17
17
  </div>
18
18
  </div>
19
19
  <div class="row">
@@ -34,6 +34,7 @@
34
34
  <v-select :value.sync="model.f_gift_gas_reason"
35
35
  value-single
36
36
  :options='giftGasReason'
37
+ @change="giftGasReasonChange"
37
38
  placeholder='请选择'
38
39
  selected="请选择赠气原因"
39
40
  style="width:60%"
@@ -73,11 +74,21 @@ let otherGasGen = async function (self) {
73
74
  f_user_id: self.row.f_user_id,
74
75
  version: self.row.version,
75
76
  f_times: self.row.cardInfo.Times + 1,
76
- f_total_gas: data.f_add_gas === '计入' ? (self.row.f_total_gas - 0) + (self.model.f_pregas - 0) : (self.row.f_total_gas - 0),
77
- f_total_fee: data.f_add_gas === '计入' ? (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) : (self.row.f_total_fee - 0),
77
+ f_total_gas: data.f_add_gas === '计入' && self.model.f_gift_gas_reason !== '低保赠气' ? (self.row.f_total_gas - 0) + (self.model.f_pregas - 0) : (self.row.f_total_gas - 0),
78
+ f_total_fee: data.f_add_gas === '计入' && self.model.f_gift_gas_reason !== '低保赠气' ? (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) : (self.row.f_total_fee - 0),
78
79
  f_balance_gas: 0,
79
80
  f_balance_amount: 0
80
81
  }
82
+ if (self.model.f_gift_gas_reason === '低保赠气') {
83
+ data.f_curbalance = ((self.row.f_balance - 0) + (self.model.f_preamount)).toFixed(4)
84
+ data.userinfo = {
85
+ f_userinfo_id: self.row.f_userinfo_id,
86
+ version: self.row.userinfo_version,
87
+ f_balance: ((self.row.f_balance - 0) + (self.model.f_preamount)).toFixed(4)
88
+ }
89
+ } else {
90
+ data.f_times = self.row.cardInfo.Times + 1
91
+ }
81
92
 
82
93
  let cardId = self.row.f_card_id
83
94
  if (self.row.f_tag && self.row.f_tag !== 'null') {
@@ -88,31 +99,34 @@ let otherGasGen = async function (self) {
88
99
 
89
100
  // 保存表类型
90
101
  data.f_meter_type = self.row.f_meter_type
91
- data.f_times = self.row.cardInfo.Times + 1
92
102
 
93
103
  let result = await self.$resetpost('rs/logic/fedWithgaIc', data, {resolveMsg: null, rejectMsg: '补气报错!!!'})
94
104
  try {
95
- // 写卡操作
96
- let cardParams = await self.$resetpost('rs/logic/stairCard', {
97
- data: {
98
- f_card_id: cardId + '',
99
- f_alias: self.row.f_alias,
100
- f_user_id: self.row.f_user_id
101
- }
102
- }, {resolveMsg: null, rejectMsg: '获取写卡参数失败'})
103
- // 获取写卡参数
104
- let params = self.getWriteCard(cardParams, self.row, data)
105
- params.kh = cardId
106
- console.log('获取其他补气写卡参数,,', params)
107
- let url = 'http://127.0.0.1:8003/WriteGasCard'
108
- let cardRes = await self.$resetpost(url, params, {resolveMsg: null, rejectMsg: '补气卡服务错误'})
105
+ if (self.model.f_gift_gas_reason !== '低保赠气') {
106
+ // 写卡操作
107
+ let cardParams = await self.$resetpost('rs/logic/stairCard', {
108
+ data: {
109
+ f_card_id: cardId + '',
110
+ f_alias: self.row.f_alias,
111
+ f_user_id: self.row.f_user_id
112
+ }
113
+ }, {resolveMsg: null, rejectMsg: '获取写卡参数失败'})
114
+ // 获取写卡参数
115
+ let params = self.getWriteCard(cardParams, self.row, data)
116
+ params.kh = cardId
117
+ console.log('获取其他补气写卡参数,,', params)
118
+ let url = 'http://127.0.0.1:8003/WriteGasCard'
119
+ let cardRes = await self.$resetpost(url, params, {resolveMsg: null, rejectMsg: '补气卡服务错误'})
109
120
 
110
- // 卡服务写卡异常,业务逻辑回滚
111
- if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
112
- throw new Error(`卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`)
121
+ // 卡服务写卡异常,业务逻辑回滚
122
+ if (!cardParams || !result || cardRes.data.Err || cardRes.data.Exception) {
123
+ throw new Error(`卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`)
124
+ } else {
125
+ await self.$CommonService.updatePassword(self.row, cardRes)
126
+ self.$showAlert('赠气成功', 'success', 2000)
127
+ return result.data.id
128
+ }
113
129
  } else {
114
- await self.$CommonService.updatePassword(self.row, cardRes)
115
- self.$showAlert('赠气成功', 'success', 2000)
116
130
  return result.data.id
117
131
  }
118
132
  } catch (error) {
@@ -145,6 +159,7 @@ export default {
145
159
  fillamount: ''
146
160
  },
147
161
  randomBusinessId: '',
162
+ isDiBao: false,
148
163
  resid: [], // 存放新增的f_files表中id
149
164
  model: {
150
165
  f_pregas: 0,
@@ -189,6 +204,15 @@ export default {
189
204
  }
190
205
  },
191
206
  methods: {
207
+ async giftGasReasonChange () {
208
+ if (this.model.f_gift_gas_reason === '低保赠气') {
209
+ this.isDiBao = true
210
+ this.model.f_pregas = this.$appdata.getSingleValue('低保赠气气量') ? this.$appdata.getSingleValue('低保赠气气量') : 0
211
+ // 进行划价
212
+ let getAmount = await this.$CommonService.gasCalculate(this.row, this.model.f_pregas)
213
+ this.model.f_preamount = getAmount.data.chargenum
214
+ }
215
+ },
192
216
  getRandomId () {
193
217
  this.randomBusinessId = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
194
218
  let res = Math.random() * 16 | 0
@@ -230,10 +230,9 @@
230
230
  this.model.f_address_state = '已通气'
231
231
  this.initAreas(this.f_filialeids)
232
232
  // 添加特殊地址选省市区
233
-
234
- this.initpcds(` f_filialeid = '${this.f_filialeids}'`)
235
- this.initstreets(` f_filialeid = '${this.f_filialeids}' `)
236
- this.initareas(` f_filialeid = '${this.f_filialeids}'`)
233
+ this.initpcds(` 1=1`)
234
+ this.initstreets(` f_pcd_id = '${this.model.f_pcd_id}' `)
235
+ this.initareas(` f_street_id = '${this.model.f_street_id}'`)
237
236
  },
238
237
 
239
238
  // 初始化片区
@@ -622,6 +621,7 @@
622
621
  this.operation='modify'
623
622
  this.onedata='one'
624
623
  this.model=Object.assign({},row)
624
+ this.initdata()
625
625
  if(row.f_special=='1'){
626
626
  this.usertype = true
627
627
  }else{
File without changes
File without changes
Binary file