| | |
| | | <view class="chuany-flex chuany-justify-between"> |
| | | <text class="chuany-width7">{{index+1}}</text> |
| | | <view class="chuany-width15"> |
| | | {{$util.formatDate(item.createTime,'riqi')}} |
| | | {{$util.formatDate(item.deliverTime,'riqi')}} |
| | | </view> |
| | | <view class="chuany-width73"> |
| | | <u-text size='14' :text="item.remark" lines="1"> |
| | |
| | | <up-input v-model="driverName" disabled border="none" disabledColor="#ffffff" |
| | | placeholder="请选择司机"></up-input> |
| | | </up-form-item> |
| | | <up-form-item label="收货单位" prop="companyName" required :borderBottom='false' ref="item1"> |
| | | <up-form-item label="收货单位" prop="companyName" labelPosition='top' required :borderBottom='false' ref="item1"> |
| | | <up-input v-model="arrangeInfo.companyName" placeholder="请选择收货单位" border="none"> |
| | | <template #suffix> |
| | | <up-button @tap="clickAction" text="点击选择" type="primary" size="mini"></up-button> |
| | |
| | | <up-form-item label="联系电话" prop="dianhua" required :borderBottom='false' ref="item1"> |
| | | <up-input v-model="arrangeInfo.dianhua" border="none" placeholder="请输入联系电话"></up-input> |
| | | </up-form-item> |
| | | <up-form-item label="送货地址" prop="dizhi" required :borderBottom='false' ref="item1"> |
| | | <up-form-item label="送货地址" prop="dizhi" labelPosition='top' required :borderBottom='false' ref="item1"> |
| | | <up-input v-model="arrangeInfo.dizhi" border="none" placeholder="请输入送货地址"></up-input> |
| | | </up-form-item> |
| | | <up-form-item label="送货事由" prop="remark" required :borderBottom='false' ref="item1"> |
| | | <up-textarea v-model="arrangeInfo.remark" border="none" placeholder="请输入送货事由"></up-textarea> |
| | | <up-form-item label="送货事由" prop="remark" labelPosition='top' required :borderBottom='false' ref="item1"> |
| | | <up-input v-model="arrangeInfo.remark" border="none" placeholder="请输入送货事由"></up-input> |
| | | </up-form-item> |
| | | </up-form> |
| | | </up-modal> |
| | |
| | | return { |
| | | datePickerShow: false, |
| | | shougHuoshow: false, |
| | | workTime: '', |
| | | workTime: this.$util.formatDate(new Date()), |
| | | orderList: [], |
| | | loadStatus: 'loadmore', |
| | | pageIndex: 1, |
| | | pageSize: 20, |
| | | pageSize: 30, |
| | | customerList: [], |
| | | isEdit: false, |
| | | editItem: {}, |
| | |
| | | switchVal: false, |
| | | driverList: [], |
| | | buyerName: '', |
| | | timeStart: '', |
| | | timeEnd: '', |
| | | timeStart: new Date(), |
| | | timeEnd: new Date(), |
| | | sevenDaysDriver: [], |
| | | deliverKeyID: '', |
| | | deliverKeyName: '' |
| | |
| | | companyName: item.companyName |
| | | } |
| | | this.show7 = true |
| | | this.driverName = item.driver.name |
| | | this.driverName = item.driver && item.driver.name |
| | | // let obj = this.customerList.find(ite => { |
| | | // return ite.keyid == item.buyerId |
| | | // }) |
| | |
| | | }, |
| | | init() { |
| | | this.pageIndex = 1 |
| | | this.pageSize = 20 |
| | | this.pageSize = 30 |
| | | this.loadStatus = 'loadmore' |
| | | this.orderList = [] |
| | | console.log(this.orderList); |
| | | this.getList() |
| | | }, |
| | | confirmSave() { |
| | | console.log(this.arrangeInfo.driverId); |
| | | if (!this.arrangeInfo.driverId) { |
| | | this.$refs.modalArrange.loading = false |
| | | return this.$util.showToast({ |
| | | title: '请选择司机!' |
| | | }) |
| | | } |
| | | console.log(); |
| | | this.$refs.formRef.validate().then(res => { |
| | | if (this.isEdit) { |
| | | this.$api.UpDataDeliverPlans(this.arrangeInfo).then(res => { |