| | |
| | | </up-sticky> |
| | | <view class="c-p-b-100"> |
| | | <view class="c-p-l-20 c-p-r-20" v-if="orderList&&orderList.length>0"> |
| | | <view class="listrecord c-p-t-20" v-for="(item,index) in orderList" :key="item.keyid"> |
| | | <view class="listrecord c-p-t-20" v-for="(item,index) in orderList" :key="item.keyid" |
| | | @click='goDetail(item)'> |
| | | <view class="coreshop-ff chuany-bradius20"> |
| | | <view class="chuany-font26"> |
| | | <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-width67"> |
| | | <u-text size='14' :text="item.remark" lines="1"> |
| | |
| | | </view> |
| | | <view class="chuany-width11 chuany-flex chuany-justify-between"> |
| | | <up-icon v-if="item.deliveredstatus=='Undeliver'" name="play-right" |
| | | @click='startOrder(item)'></up-icon> |
| | | <up-icon name="checkbox-mark" @click="editOrder(item)"></up-icon> |
| | | @tap.stop='startOrder(item)'></up-icon> |
| | | <up-icon v-else-if="item.deliveredstatus=='Deliver'" name="checkbox-mark" |
| | | @tap.stop="editOrder(item)"></up-icon> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </up-form-item> --> |
| | | |
| | | <up-form-item label="收货单位" prop="buyerId" :borderBottom='false' ref="item1"> |
| | | <up-input v-model="buyerName" placeholder="请选择收货单位" border="none" readonly> |
| | | <up-input v-model="arrangeInfo.companyName" placeholder="请选择收货单位" border="none" readonly> |
| | | <!-- <template #suffix> |
| | | <up-button @tap="clickAction" text="点击选择" type="primary" size="mini"></up-button> |
| | | </template> --> |
| | |
| | | <up-textarea v-model="arrangeInfo.wentifankui" border="none" placeholder="请输入意见反馈"></up-textarea> |
| | | </up-form-item> |
| | | |
| | | <up-form-item label="上传送货单" prop="idCardFace"> |
| | | <up-form-item label="送货单" prop="idCardFace"> |
| | | <tem-upload-file immediate :url="`https://appimchat.oss-cn-chengdu.aliyuncs.com`" ref="uploadB" |
| | | fileType="all" @success="success('File',$event)" @error="errorInvoice" |
| | | :isSource='true' fileType="all" @success="success('File',$event)" @error="errorInvoice" |
| | | @complete="completeInvoice('',$event)"> |
| | | </tem-upload-file> |
| | | <!-- <template #right> |
| | |
| | | orderList: [], |
| | | loadStatus: 'loadmore', |
| | | pageIndex: 1, |
| | | pageSize: 25, |
| | | pageSize: 30, |
| | | contentVal: '', |
| | | customerList: [], |
| | | isEdit: false, |
| | |
| | | driverName: '', |
| | | actions: [{ |
| | | name: '未完成', |
| | | id: '拒收' |
| | | id: 'Reject' |
| | | }, { |
| | | name: '已完成', |
| | | id: '完成' |
| | | id: 'Delivered' |
| | | }], |
| | | selectAc: '已完成', |
| | | minDate: this.$util.formatDate(new Date(), null, -7), |
| | | maxDate: this.$util.formatDate(new Date(), null, 7), |
| | | deliverTime: Number(new Date(this.$util.formatDate(new Date(), null, 1))), |
| | | arrangeInfo: { |
| | | deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | driverId: '', |
| | | buyerId: '', |
| | | dianhua: '', |
| | | keyid: '', |
| | | // deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | // driverId: '', |
| | | // buyerId: '', |
| | | // dianhua: '', |
| | | wentifankui: '', |
| | | lianxiren: '', |
| | | Deliveredstatus: '完成', |
| | | attachments: {} |
| | | // lianxiren: '', |
| | | Deliveredstatus: 'Delivered ', |
| | | attachments: [], |
| | | companyName:'' |
| | | }, |
| | | rules: { |
| | | 'deliverTime': { |
| | |
| | | timeEnd: '', |
| | | sevenDaysDriver: [], |
| | | deliverKeyID: '', |
| | | deliverKeyName: '' |
| | | deliverKeyName: '', |
| | | companyName:'' |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | } |
| | | }, |
| | | onPullDownRefresh() { |
| | | this.startDate = '' |
| | | this.endDate = '' |
| | | this.timeStart = '' |
| | | this.timeEnd = '' |
| | | this.workTime = '' |
| | | this.deliverKeyName = '' |
| | | this.init() |
| | |
| | | let obj = {} |
| | | let res = e.res |
| | | if (res.statusCode == 200) { |
| | | obj.attachmentName = res.data |
| | | obj.PlanAttachment = res.data |
| | | } else { |
| | | uni.$u.toast(res.error) |
| | | |
| | | this.$refs.uploadB.deleteImage() |
| | | } |
| | | this.arrangeInfo.attachments.push(obj) |
| | |
| | | this.timeStart = new Date(val.startDate.result) //工作开始时间 |
| | | this.timeEnd = new Date(val.endDate.result) |
| | | this.datePickerShow = !this.datePickerShow |
| | | this.getList() |
| | | this.init() |
| | | }, |
| | | confirmDate(val) { |
| | | console.log(val); |
| | |
| | | }, |
| | | editOrder(item) { |
| | | this.isEdit = true |
| | | this.$refs.uploadB.urls = [] |
| | | this.$refs.uploadB.status = [] |
| | | this.arrangeInfo = { |
| | | deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | driverId: item.driverId, |
| | | buyerId: item.buyerId, |
| | | dianhua: item.dianhua, |
| | | wentifankui: item.wentifankui, |
| | | lianxiren: item.lianxiren, |
| | | dizhi: item.dizhi, |
| | | keyid: item.keyid |
| | | // deliverTime: this.$util.formatDate(new Date(), null, 1), |
| | | // driverId: item.driverId, |
| | | // buyerId: item.buyerId, |
| | | // dianhua: item.dianhua, |
| | | // wentifankui: item.wentifankui, |
| | | // lianxiren: item.lianxiren, |
| | | // dizhi: item.dizhi, |
| | | Deliveredstatus: 'Delivered', |
| | | attachments: item.attachments || [], |
| | | keyid: item.keyid, |
| | | companyName: item.companyName |
| | | } |
| | | this.show7 = true |
| | | let obj = this.customerList.find(ite => { |
| | | return ite.keyid == item.buyerId |
| | | }) |
| | | this.buyerName = obj.companyName |
| | | // let obj = this.customerList.find(ite => { |
| | | // return ite.keyid == item.buyerId |
| | | // }) |
| | | // this.buyerName = obj.companyName |
| | | }, |
| | | startOrder(item) { |
| | | let that = this |
| | |
| | | }, |
| | | init() { |
| | | this.pageIndex = 1 |
| | | this.pageSize = 20 |
| | | this.pageSize = 30 |
| | | this.loadStatus = 'loadmore' |
| | | this.orderList = [] |
| | | this.contentVal = '' |
| | | this.getList() |
| | | }, |
| | | //选择图片或上传完成时触发 |
| | | completeInvoice(val, e) { |
| | | if (e.action == 'delete') { |
| | | // 删除处理 |
| | | console.log(e, '0-0-0-'); |
| | | // state.publicJob.workPlanAttachments = state.publicJob.workPlanAttachments.filter(item => { |
| | | // return item.attachmentType == (val == "Invoice" ? 2 : 1) |
| | | // }) |
| | | // e.urls.forEach(item => { |
| | | // let obj = {} |
| | | // obj.attachmentType = val == "Invoice" ? 1 : 2 |
| | | // obj.planAttachment = item //发票 |
| | | // state.publicJob.workPlanAttachments.push(obj) |
| | | // }) |
| | | return |
| | | } |
| | | // $util.pathToBase64(e.urls[0]).then(res => { |
| | | // idCardFaceBase64.value = res |
| | | // console.log(idCardFaceBase64, idCardFaceBase64.value); |
| | | // }) |
| | | }, |
| | | errorInvoice(e) { |
| | | console.log(e, '--------------'); |
| | | }, |
| | | confirmSave() { |
| | | console.log(this.arrangeInfo); |
| | | this.$api.FinishDeliverPlan(this.arrangeInfo).then(res => { |
| | | if (res.code == 1) { |
| | | this.arrangeInfo = { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | cancelModal() { |
| | | this.arrangeInfo = { |
| | |
| | | if (e.index == 0) { |
| | | this.contentVal = item.wentifankui |
| | | } |
| | | }, |
| | | goDetail(item) { |
| | | uni.navigateTo({ |
| | | url: `/pages/delivergoods/feedbackdetail?KeyId=${item.keyid}` |
| | | }); |
| | | } |
| | | } |
| | | } |