zhongtianhaoyuan 2 vuotta sitten
vanhempi
commit
2596b90ddd
1 muutettua tiedostoa jossa 9 lisäystä ja 1 poistoa
  1. 9 1
      pages/release/release.vue

+ 9 - 1
pages/release/release.vue

@@ -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) {