|
@@ -592,6 +592,13 @@
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
+ if (uni.$u.test.isEmpty(this.dataObj.goodsType)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "货物类别不能为空!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
if (uni.$u.test.isEmpty(this.dataObj.goodsName)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
@@ -1107,7 +1114,8 @@
|
|
|
submit() {
|
|
|
if (this.validate()) return
|
|
|
if (this.dataObj.cargoOwner == '个人货主') {
|
|
|
- this.dataObj.compId == ""
|
|
|
+ this.dataObj.compId = ""
|
|
|
+ this.dataObj.freightAdvance = 0
|
|
|
} else {
|
|
|
for (let i = 0; i < this.qyList.length; i++) {
|
|
|
if (this.dataObj.cargoOwner == this.qyList[i].companyName) {
|