sale-client 4.3.82 → 4.3.83
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/build/dev-server.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
2
|
var checkVersion = require('./versionCheck.js')
|
|
3
3
|
checkVersion()
|
|
4
|
-
const [ serverRul, localUrl ] = ['http://
|
|
4
|
+
const [ serverRul, localUrl ] = ['http://219.151.186.185:31467/', 'http://localhost:9026']
|
|
5
5
|
var merge = require('webpack-merge')
|
|
6
6
|
var baseConfig = require('./webpack.dev.conf')
|
|
7
7
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
:data='row' @printok="printok" v-ref:printbill></print-bill>
|
|
164
164
|
<div style="text-align:right; height: 25%;">
|
|
165
165
|
<strong style="font-size: large" v-if="!config.notShowFormula">计算公式:{{calculatedetail ? calculatedetail : ' 暂无'}}</strong><br/>
|
|
166
|
+
<strong style="font-size: large" v-if="deductdetail">{{deductdetail ? deductdetail : ' 暂无'}}</strong><br/>
|
|
166
167
|
<payment-code-button :clickable="!$v.valid || validateOk || !islegal || clickConfirm"
|
|
167
168
|
:payment.sync="model.f_payment" :payment-data="paytype"
|
|
168
169
|
@confirm-payment="confirm()">
|
|
@@ -209,8 +210,11 @@
|
|
|
209
210
|
Object.assign(self.model, self.model, getAmount.data)
|
|
210
211
|
self.model.f_collection = self.model.f_totalcost
|
|
211
212
|
|
|
212
|
-
if(self.config.floor){
|
|
213
|
-
self.model.f_collection=Math.ceil(self.model.f_collection)
|
|
213
|
+
if (self.config.floor) {
|
|
214
|
+
self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
215
|
+
}
|
|
216
|
+
if (self.row.f_deduction_gas && self.row.f_deduction_gas > 0) {
|
|
217
|
+
self.model.f_pregas += self.row.f_deduction_gas
|
|
214
218
|
}
|
|
215
219
|
self.calText(getAmount.data.chargeprice)
|
|
216
220
|
} else {
|
|
@@ -233,7 +237,18 @@
|
|
|
233
237
|
if ((self.model.f_fill_gas - 0) < (self.model.f_pregas - 0)) {
|
|
234
238
|
// 超出【补气气量不符】部分走划价
|
|
235
239
|
let gas = self.model.f_pregas - self.model.f_fill_gas
|
|
236
|
-
let getAmount
|
|
240
|
+
let getAmount
|
|
241
|
+
if (self.row.f_deduction_gas) {
|
|
242
|
+
gas = (gas - 0) - self.row.f_deduction_gas
|
|
243
|
+
if (gas < 0) {
|
|
244
|
+
gas = 0
|
|
245
|
+
}
|
|
246
|
+
console.log(gas)
|
|
247
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, gas)
|
|
248
|
+
console.log(getAmount)
|
|
249
|
+
} else {
|
|
250
|
+
getAmount = await self.$CommonService.gasCalculate(self.model, gas)
|
|
251
|
+
}
|
|
237
252
|
console.log('划价返回', getAmount, self.openFee, self.row.f_balance)
|
|
238
253
|
self.model.f_preamount = getAmount.data.chargenum
|
|
239
254
|
// 计算气费和其他费用(暂时只有开卡费,之后有其他费在加)
|
|
@@ -390,11 +405,13 @@
|
|
|
390
405
|
f_collection: '',
|
|
391
406
|
chargeprice: [],
|
|
392
407
|
f_print: [],
|
|
408
|
+
f_deduction_gas:0,
|
|
393
409
|
f_meter_type: '',
|
|
394
410
|
f_voucher_number: ''
|
|
395
411
|
},
|
|
396
412
|
cardallot: null,
|
|
397
413
|
calculatedetail: '',
|
|
414
|
+
deductdetail:'',
|
|
398
415
|
blodid: '',
|
|
399
416
|
billData: {
|
|
400
417
|
url: 'api/af-revenue/report/card_gas_bill',
|
|
@@ -603,6 +620,15 @@
|
|
|
603
620
|
},
|
|
604
621
|
calText (val) {
|
|
605
622
|
let str = ''
|
|
623
|
+
if (this.row.f_deduction_gas) {
|
|
624
|
+
if ((this.row.f_deduction_gas-0) >= (this.model.f_pregas-0)) {
|
|
625
|
+
this.deductdetail = '本期优惠方量' + this.model.f_pregas
|
|
626
|
+
this.model.f_deduction_gas = this.model.f_pregas
|
|
627
|
+
} else {
|
|
628
|
+
this.deductdetail = '本期优惠方量' + this.row.f_deduction_gas
|
|
629
|
+
this.model.f_deduction_gas = this.row.f_deduction_gas
|
|
630
|
+
}
|
|
631
|
+
}
|
|
606
632
|
val.forEach((item) => {
|
|
607
633
|
str = str + item.f_price + ' x ' + item.f_gas + '+'
|
|
608
634
|
})
|
|
@@ -307,8 +307,8 @@ export default {
|
|
|
307
307
|
},
|
|
308
308
|
methods: {
|
|
309
309
|
async getAuditor () {
|
|
310
|
-
await this.$
|
|
311
|
-
this.auditor =
|
|
310
|
+
let auditor = await this.$resetpost('api/af-revenue/logic/getAuditPerson',{orgId: this.$login.f.orgid})
|
|
311
|
+
this.auditor = auditor.data
|
|
312
312
|
},
|
|
313
313
|
getPricenames () {
|
|
314
314
|
console.log('气价。,。。', this.newinfo.pricetype)
|
package/src/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import Vue from 'vue'
|
|
|
2
2
|
import all from 'vue-client/src/all'
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
|
-
import FilialeSale from './filiale/
|
|
5
|
+
import FilialeSale from './filiale/liaoyuan/sale'
|
|
6
6
|
import sale from './sale'
|
|
7
7
|
import address from 'address-client/src/address'
|
|
8
8
|
import ldap from 'ldap-clients/src/ldap'
|
|
@@ -24,7 +24,7 @@ system(false)
|
|
|
24
24
|
sale()
|
|
25
25
|
address()
|
|
26
26
|
ldap()
|
|
27
|
-
|
|
27
|
+
FilialeSale()
|
|
28
28
|
require('system-clients/src/styles/less/bootstrap.less')
|
|
29
29
|
|
|
30
30
|
new Vue({
|
|
@@ -157,6 +157,7 @@ let CardService = {
|
|
|
157
157
|
f_serial_id: model.f_serial_id,
|
|
158
158
|
f_userinfo_id: row.f_userinfo_id,
|
|
159
159
|
f_user_id: row.f_user_id,
|
|
160
|
+
f_deduction_gas:model.f_deduction_gas?model.f_deduction_gas:0,
|
|
160
161
|
// 补气量
|
|
161
162
|
f_fill_gas: model.f_fill_gas,
|
|
162
163
|
f_fill_money: model.f_fill_money,
|