| | |
| | | show7: false, |
| | | arrangeInfo: { |
| | | deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | driverId: '', |
| | | // driverId: '', |
| | | buyerId: null, |
| | | dianhua: '', |
| | | remark: '', |
| | |
| | | this.init() |
| | | }, |
| | | onLoad() { |
| | | this.Getdrivers() |
| | | this.GetCarList() |
| | | this.getCustomer() |
| | | }, |
| | | onReady() { |
| | |
| | | this.arrangeInfo.companyName = item |
| | | } |
| | | }, |
| | | Getdrivers() { |
| | | this.$api.Getdrivers().then(res => { |
| | | GetCarList() { |
| | | this.$api.GetCarList().then(res => { |
| | | if (res.code == 1) { |
| | | this.driverList = res.data |
| | | this.driverList.forEach(item => { |
| | | item.driverName = item.name |
| | | item.name = item.carNumber |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | cancelModal() { |
| | | this.arrangeInfo = { |
| | | deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | driverId: '', |
| | | // driverId: '', |
| | | buyerId: null, |
| | | dianhua: '', |
| | | remark: '', |
| | |
| | | }, |
| | | selectItem(item) { |
| | | if (this.selectAc == 'driver') { |
| | | this.arrangeInfo.driverName = item.name |
| | | this.arrangeInfo.driverId = item.keyid |
| | | // this.arrangeInfo.driverName = item.driverName |
| | | this.arrangeInfo.driverName = item.carNumber |
| | | // this.arrangeInfo.driverId = item.keyid |
| | | this.arrangeInfo.carId = item.keyid |
| | | } else if (this.selectAc == 'driver7') { |
| | | this.deliverKeyID = item.keyid |
| | | this.deliverKeyName = item.name |
| | |
| | | this.isEdit = false |
| | | this.arrangeInfo = { |
| | | deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | driverId: '', |
| | | // driverId: '', |
| | | buyerId: null, |
| | | dianhua: '', |
| | | remark: '', |
| | |
| | | if (res.code == 1) { |
| | | this.arrangeInfo = { |
| | | deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | driverId: '', |
| | | // driverId: '', |
| | | buyerId: null, |
| | | dianhua: '', |
| | | remark: '', |