sale-client 3.6.203 → 3.6.205
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
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
f_times: self.row.cardInfo.Times + 1,
|
|
120
120
|
f_total_gas: data.f_add_gas === '计入' ? (self.row.f_total_gas - 0) + (self.model.f_pregas - 0) : (self.row.f_total_gas - 0),
|
|
121
121
|
f_total_fee: data.f_add_gas === '计入' ? (self.row.f_total_fee - 0) + (self.model.f_preamount - 0) : (self.row.f_total_fee - 0),
|
|
122
|
-
f_write_totalgas:
|
|
123
|
-
f_write_totalfee:
|
|
122
|
+
f_write_totalgas: (self.row.f_write_totalgas - 0) + (self.model.f_pregas - 0),
|
|
123
|
+
f_write_totalfee: (self.row.f_write_totalfee - 0) + (self.model.f_preamount - 0),
|
|
124
124
|
f_balance_gas: 0,
|
|
125
125
|
f_balance_amount: 0
|
|
126
126
|
}
|
|
@@ -152,15 +152,15 @@
|
|
|
152
152
|
|
|
153
153
|
// 保存表类型
|
|
154
154
|
data.f_meter_type = self.row.f_meter_type
|
|
155
|
-
if(!(self.row.f_hascard==null)
|
|
156
|
-
data.f_times = self.row.f_times+1
|
|
157
|
-
}else{
|
|
155
|
+
if (!(self.row.f_hascard == null) && !(self.row.f_share_times == null) && self.row.f_meter_type == '物联网表' && self.row.f_hascard == '是' && self.row.f_share_times == '是') {
|
|
156
|
+
data.f_times = self.row.f_times + 1
|
|
157
|
+
} else {
|
|
158
158
|
data.f_times = self.row.cardInfo.Times + 1
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
let result = await self.$resetpost('rs/logic/sale_fillGas', data, {resolveMsg: null, rejectMsg: '补气报错!!!'})
|
|
162
162
|
|
|
163
|
-
if (self.row.f_meter_type == '机表' || self.model.f_write_card ==='不写卡') {
|
|
163
|
+
if (self.row.f_meter_type == '机表' || self.model.f_write_card === '不写卡') {
|
|
164
164
|
self.$showAlert('补气成功', 'success', 2000)
|
|
165
165
|
return result.data.id
|
|
166
166
|
} else {
|
|
@@ -172,8 +172,8 @@
|
|
|
172
172
|
let params = self.getWriteCard(cardParams, self.row, data)
|
|
173
173
|
params.kh = cardId
|
|
174
174
|
params.kzt = getLastOper.data.ispick === '未过表' && getLastOper.data.lastsell_oper === '发卡售气' ? '0' : '1'
|
|
175
|
-
if(!(self.row.f_hascard==null)
|
|
176
|
-
params.cs = self.row.f_times+1
|
|
175
|
+
if (!(self.row.f_hascard == null) && !(self.row.f_share_times == null) && self.row.f_meter_type == '物联网表' && self.row.f_hascard == '是' && self.row.f_share_times == '是') {
|
|
176
|
+
params.cs = self.row.f_times + 1
|
|
177
177
|
}
|
|
178
178
|
console.log('获取其他补气写卡参数,,', params)
|
|
179
179
|
|
|
@@ -210,7 +210,7 @@
|
|
|
210
210
|
await self.$getConfig(self, 'OtherGas')
|
|
211
211
|
console.log('其他补气config', self.config)
|
|
212
212
|
self.model.f_add_gas = [self.config.addGas]
|
|
213
|
-
self.model.f_write_card=self.config.writeCard
|
|
213
|
+
self.model.f_write_card = self.config.writeCard
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
export default {
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
url: 'rs/report/acceptOtherGas_bill',
|
|
251
251
|
billnumber: ''
|
|
252
252
|
},
|
|
253
|
-
writecard: [{label: '写卡',value:'写卡'},{label: '不写卡',value:'不写卡'}],
|
|
253
|
+
writecard: [{label: '写卡', value: '写卡'}, {label: '不写卡', value: '不写卡'}],
|
|
254
254
|
blodid: '',
|
|
255
255
|
addTaskModel: {
|
|
256
256
|
f_task_name: '',
|
|
@@ -454,6 +454,8 @@
|
|
|
454
454
|
klx: row.f_coding,
|
|
455
455
|
kzt: '1',
|
|
456
456
|
dqdm: row.f_area_code,
|
|
457
|
+
ljgql: (row.f_write_totalgas - 0) + (data.f_pregas - 0), // 当前累计购气量
|
|
458
|
+
ljgqje: (row.f_write_totalfee - 0) + (data.f_preamount - 0), // 累计购气金额
|
|
457
459
|
meterid: row.f_meternumber ? row.f_meternumber : 0 // 表号
|
|
458
460
|
// meternumber: row.f_meternumber ? row.f_meternumber : 0
|
|
459
461
|
}
|