| | |
| | | <view class="chuany-width12"> |
| | | {{$util.formatDate(item.createTime,'riqi')}} |
| | | </view> |
| | | <view class="chuany-width13"> |
| | | <view class="chuany-width16"> |
| | | <u-text size='14' :text="item.sentStaff.name" lines="1"> |
| | | </u-text> |
| | | </view> |
| | | <view class="chuany-width58"> |
| | | <view class="chuany-width55"> |
| | | <u-text size='14' :text="item.remark" lines="1"> |
| | | </u-text> |
| | | </view> |
| | |
| | | <up-input v-model="arrangeInfo.driverName" disabled border="none" disabledColor="#ffffff" |
| | | placeholder="请选择司机"></up-input> |
| | | </up-form-item> |
| | | <up-form-item label="收货单位" prop="companyName" required :borderBottom='false' ref="item1"> |
| | | <tem-selects-fan placeholder="请选择收货单位" :data="customerList" :clearable='true' |
| | | <up-form-item label="收货单位" prop="companyName" labelPosition='top' required :borderBottom='false' |
| | | ref="item1" v-if='show7'> |
| | | <tem-select ref="formSelect" placeholder="请选择收货单位" :selectedId="arrangeInfo.buyerId" :value='arrangeInfo.companyName' :search='true' |
| | | :localdata="customerList" @change="selectChange"></tem-select> |
| | | |
| | | <!-- <tem-selects-fan placeholder="请选择收货单位" :data="customerList" :clearable='true' |
| | | :value="arrangeInfo.companyName" :value-type="valueType" :filterable='true' :searchType='1' |
| | | @input='selectChange'></tem-selects-fan> |
| | | @input='selectChange'></tem-selects-fan> --> |
| | | <!-- <up-input v-model="arrangeInfo.companyName" placeholder="请选择收货单位" border="none"> |
| | | <template #suffix> |
| | | <up-button @tap="clickAction" text="点击选择" type="primary" size="mini"></up-button> |
| | |
| | | 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: '', |
| | | lianxiren: '', |
| | | dizhi: '', |
| | | driverName: '', |
| | | deliverTixingId: '', |
| | | sort: '1' |
| | | sort: 1, |
| | | driverName:'', |
| | | companyName: '', |
| | | } |
| | | this.show7 = false |
| | | this.driverName = '' |
| | |
| | | this.customerList = res.data |
| | | this.customerList.forEach(item => { |
| | | item.name = item.companyName |
| | | item.title = item.companyName |
| | | item.id = item.keyid |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | 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: '', |
| | | lianxiren: '', |
| | | dizhi: '', |
| | | deliverTixingId: '', |
| | | sort: '1' |
| | | sort: 1, |
| | | driverName:'', |
| | | companyName: '', |
| | | } |
| | | this.show7 = false |
| | | this.driverName = '' |
| | |
| | | if (res.code == 1) { |
| | | this.arrangeInfo = { |
| | | deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | driverId: '', |
| | | // driverId: '', |
| | | buyerId: null, |
| | | dianhua: '', |
| | | remark: '', |
| | | lianxiren: '', |
| | | dizhi: '', |
| | | deliverTixingId: '', |
| | | sort: 1, |
| | | driverName:'', |
| | | companyName: '', |
| | | } |
| | | this.show7 = false |
| | | this.driverName = '' |