|
@@ -631,38 +631,38 @@
|
|
|
})
|
|
|
},
|
|
|
submit() {
|
|
|
- for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
- if (this.freightspace[i].temporaryDriverFlag != 0) {
|
|
|
- if (!this.freightspace[i].driver) {
|
|
|
- this.$message({
|
|
|
- message: '司机姓名不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.freightspace[i].driverPhone) {
|
|
|
- this.$message({
|
|
|
- message: '司机电话不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.freightspace[i].carNo) {
|
|
|
- this.$message({
|
|
|
- message: '车牌号不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.freightspace[i].loadNetWeight) {
|
|
|
- this.$message({
|
|
|
- message: '装载净重不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
+ // if (this.freightspace[i].temporaryDriverFlag != 0) {
|
|
|
+ // if (!this.freightspace[i].driver) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '司机姓名不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.freightspace[i].driverPhone) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '司机电话不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.freightspace[i].carNo) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '车牌号不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.freightspace[i].loadNetWeight) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '装载净重不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
if (sessionStorage.getItem('qy-msg')) {
|
|
|
this.validateFunc()
|
|
|
} else {
|