sale-client 3.6.83 → 3.6.84
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,5 +1,5 @@
|
|
|
1
1
|
var path = require('path')
|
|
2
|
-
const [serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://
|
|
2
|
+
const [serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4:8400/']
|
|
3
3
|
var merge = require('webpack-merge')
|
|
4
4
|
var baseConfig = require('./webpack.dev.conf')
|
|
5
5
|
var devConfig = {
|
package/package.json
CHANGED
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
import { HttpResetClass } from 'vue-client'
|
|
299
299
|
let getPrice = async function (self) {
|
|
300
300
|
await self.$LoadParams.loadParam(self.$login.f.orgid)
|
|
301
|
-
await self.$getConfig(self, '
|
|
301
|
+
await self.$getConfig(self, 'ChangeMeter')
|
|
302
302
|
|
|
303
303
|
self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
|
|
304
304
|
self.model.f_payment = self.config.payment
|
|
@@ -416,7 +416,7 @@ export default {
|
|
|
416
416
|
payment: '现金缴费',
|
|
417
417
|
open_way: '指令开户',
|
|
418
418
|
hasArrearsChange: false, // 是否可以有欠费换表
|
|
419
|
-
|
|
419
|
+
castInt: true,
|
|
420
420
|
dispatch: false, // 是否派工
|
|
421
421
|
showupload: true, //
|
|
422
422
|
approve: false // 是否开启审核
|
|
@@ -631,8 +631,9 @@ export default {
|
|
|
631
631
|
async confirm () {
|
|
632
632
|
let msg = ''
|
|
633
633
|
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
634
|
-
let
|
|
635
|
-
|
|
634
|
+
let a = this.config.castInt ? parseInt(this.model.f_using_base_old) : this.model.f_using_base_old
|
|
635
|
+
let b = this.config.castInt ? parseInt(this.row.f_meter_base) : this.row.f_meter_base
|
|
636
|
+
if (a > b) {
|
|
636
637
|
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
637
638
|
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
638
639
|
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|
|
@@ -810,8 +811,9 @@ export default {
|
|
|
810
811
|
}
|
|
811
812
|
let msg = ''
|
|
812
813
|
if (this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) {
|
|
813
|
-
let
|
|
814
|
-
|
|
814
|
+
let a = this.config.castInt ? parseInt(this.model.f_using_base_old) : this.model.f_using_base_old
|
|
815
|
+
let b = this.config.castInt ? parseInt(this.row.f_meter_base) : this.row.f_meter_base
|
|
816
|
+
if (a > b) {
|
|
815
817
|
msg = (this.row.f_meter_type === '机表' ? '该用户表底数大于上次抄表底数,请确定是否继续生成欠费记录' : '该用户表底数大于上次抄表底数,请确定是否进行结算')
|
|
816
818
|
} else if (this.row.f_capacity && this.row.f_capacity > 0 && (parseInt(this.model.f_using_base_old) < parseInt(this.row.f_meter_base))) {
|
|
817
819
|
msg = '该用户表底数大于上次抄表底数,且已超越最大量程,请确定是否继续生成欠费记录'
|