|
@@ -282,6 +282,7 @@
|
|
|
console.log(this.dataDetails)
|
|
|
if (this.dataDetails.hyCarrierInfo) {
|
|
|
this.dataDetails.weight = this.dataDetails.hyCarrierInfo.loadingWeight
|
|
|
+ this.dataDetails.grossWeight = this.dataDetails.hyCarrierInfo.loadingGrossWeight
|
|
|
}
|
|
|
if (this.dataDetails.freightAdvance == 1) {
|
|
|
this.proportion = this.dataDetails.driverAdvancePayment >= this.dataDetails.ownerAdvancePayment ? this
|
|
@@ -455,6 +456,13 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (uni.$u.test.isEmpty(that.dataDetails.grossWeight)) {
|
|
|
+ that.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "装车毛重不能为空!",
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(that.dataDetails.weight)) {
|
|
|
that.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -462,6 +470,13 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if(Number(that.dataDetails.weight) > Number(that.dataDetails.grossWeight)){
|
|
|
+ that.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "装车净重大于装车毛重!",
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(that.dataDetails.freight)) {
|
|
|
that.$refs.uToast.show({
|
|
|
type: 'error',
|