| | |
| | | <template> |
| | | <!-- 添加货代或司机 --> |
| | | <!-- 添加承运商或司机 --> |
| | | <view class="addTo-freightForwarder-drvier"> |
| | | <view class="addForm"> |
| | | <u--form labelPosition="top" |
| | | ref="form1"> |
| | | <u-form-item labelWidth="20%" |
| | | label="姓名" |
| | | :label="role == 1 ?'承运商' : '姓名'" |
| | | ref="item1"><u--input v-model="name" |
| | | :customStyle="{ border: '1px solid #dddddd' }"></u--input></u-form-item> |
| | | <u-form-item labelWidth="25%" |
| | |
| | | import { customerId } from '@/utils/status.js'; |
| | | export default { |
| | | onLoad(params) { |
| | | console.log(params,'params') |
| | | this.role = params.role; |
| | | if (params.fleetId) { |
| | | this.fleetId = params.fleetId; |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | role: null, // 决定添加货代司机,还是车队司机 |
| | | role: null, // 决定添加承运商司机,还是车队司机 |
| | | fleetId: null, |
| | | name: '', |
| | | phone: '', |
| | |
| | | break; |
| | | } |
| | | }, |
| | | // 邀请货代 |
| | | // 邀请承运商 |
| | | bindHuoDai() { |
| | | this.loading = true |
| | | this.$reqPost('bindHuoDai', { name: this.name, phone: this.phone }, 'params').then(res => { |