|
@@ -937,35 +937,35 @@ export default {
|
|
this.deptBudgetList.addressUrl = arr.toString()
|
|
this.deptBudgetList.addressUrl = arr.toString()
|
|
this.deptBudgetList.driverCarInfoList = this.freightspace
|
|
this.deptBudgetList.driverCarInfoList = this.freightspace
|
|
this.deptBudgetList.driverPayeeInfoList = this.freightspace1
|
|
this.deptBudgetList.driverPayeeInfoList = this.freightspace1
|
|
- // addDriver(this.deptBudgetList)
|
|
|
|
- // .toPromise()
|
|
|
|
- // .then((response) => {
|
|
|
|
- // this.$message.success('添加成功')
|
|
|
|
- // this.deptBudgetList = {}
|
|
|
|
- // this.freightspace = [
|
|
|
|
- // {
|
|
|
|
- // carNumber: '',
|
|
|
|
- // carModel: '高栏',
|
|
|
|
- // carModelKey: '1',
|
|
|
|
- // carLength: '13',
|
|
|
|
- // carLengthKey: '1',
|
|
|
|
- // carLoad: '',
|
|
|
|
- // yearManufacture: '',
|
|
|
|
- // },
|
|
|
|
- // ]
|
|
|
|
- // this.freightspace1 = [
|
|
|
|
- // {
|
|
|
|
- // accountTypeFlag: '1',
|
|
|
|
- // payeeName: '',
|
|
|
|
- // payeeNumberCard: '',
|
|
|
|
- // compName: '',
|
|
|
|
- // bankDeposit: '',
|
|
|
|
- // addressUrlArray: [],
|
|
|
|
- // bankCard: '',
|
|
|
|
- // },
|
|
|
|
- // ]
|
|
|
|
- // this.$router.push({ path: 'tranManagementDriver' })
|
|
|
|
- // })
|
|
|
|
|
|
+ addDriver(this.deptBudgetList)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('添加成功')
|
|
|
|
+ this.deptBudgetList = {}
|
|
|
|
+ this.freightspace = [
|
|
|
|
+ {
|
|
|
|
+ carNumber: '',
|
|
|
|
+ carModel: '高栏',
|
|
|
|
+ carModelKey: '1',
|
|
|
|
+ carLength: '13',
|
|
|
|
+ carLengthKey: '1',
|
|
|
|
+ carLoad: '',
|
|
|
|
+ yearManufacture: '',
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ this.freightspace1 = [
|
|
|
|
+ {
|
|
|
|
+ accountTypeFlag: '1',
|
|
|
|
+ payeeName: '',
|
|
|
|
+ payeeNumberCard: '',
|
|
|
|
+ compName: '',
|
|
|
|
+ bankDeposit: '',
|
|
|
|
+ addressUrlArray: [],
|
|
|
|
+ bankCard: '',
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ this.$router.push({ path: 'tranManagementDriver' })
|
|
|
|
+ })
|
|
} else {
|
|
} else {
|
|
EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
return false
|
|
return false
|