| | |
| | | <view class="order-head-info" v-if="isAcceptor && info.isUpdate ==1" style="color: red;"> |
| | | 订单信息已修改,请及时确认,{{timeInfo}}后将自动同意 |
| | | </view> |
| | | <view class="order-head-info" v-if="isPushlishor && info.type ==2 && info.status ==0" style="color: red;"> |
| | | 剩余支付时间,{{timeInfo1}}后将自动取消 |
| | | </view> |
| | | <view class="order-head-info" v-else >{{getStatusInfo()}}</view> |
| | | </view> |
| | | <view class="order-quxiao"> |
| | |
| | | <view class="order-info-title"> |
| | | <view class="x"></view> |
| | | <text v-if="info.type===0">用工单-{{(info.workType===0?'采摘工':(info.workType===1?'分拣工':'包装工')) }}</text> |
| | | <text v-if="info.type===1">运货单-{{info.categoryName || ''}}-{{info.carUnit || ''}}</text> |
| | | <text v-if="info.type===1">运货单-{{info.categoryName || ''}}</text> |
| | | <text v-if="info.type===2">订餐单</text> |
| | | |
| | | </view> |
| | | <view v-if="info.type===0" class="order-info-wz">{{info.categoryName || ''}}|{{info.priceNum1 || '' }}{{info.workType === 0?'斤':'人'}}</view> |
| | | <view v-if="info.type===1" class="order-info-wz">{{info.transportTypeName || ''}}{{' | '}}{{info.transportNum || '' }}{{info.transportUnit||''}}{{' | '}}需{{info.priceNum2 || '' }}辆</view> |
| | | <view v-if="info.type===1" class="order-info-wz">{{info.carUnit || ''}}{{' | '}}{{info.transportTypeName || ''}}{{' | '}}{{info.transportNum || '' }}{{info.transportUnit||''}}{{' | '}}需{{info.priceNum2 || '' }}辆</view> |
| | | <view class="order-info-address"> |
| | | <image src="/static/icon/order_ic_location@2x.png" mode="widthFix"></image> |
| | | <view class="order-info-address-info"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="order-info-price"> |
| | | <view class="price-row" v-if="feeFrom.priceParam1.name"> |
| | | <view class="price-row-label">{{feeFrom.priceParam1.name}}</view> |
| | | <view class="price-row-val" > {{(info.originPriceNum1||0) }}{{feeFrom.priceParam1.unit}} </view> |
| | | </view> |
| | | <view class="price-row" v-if="feeFrom.priceParam2.name"> |
| | | <view class="price-row-label">{{feeFrom.priceParam2.name}}</view> |
| | | <view class="price-row-val" > {{(info.originPriceNum2||0) }}{{feeFrom.priceParam2.unit}} </view> |
| | | </view> |
| | | <view class="price-row"> |
| | | <view class="price-row-label">费用标准</view> |
| | | <view class="price-row-val" v-if="info.type !==2">{{((info.price||0)/100).toFixed(2) }}{{info.priceUnit || '' }}</view> |
| | |
| | | <view class="price-row"> |
| | | <view class="price-row-label">预估总费用(元)</view> |
| | | <view class="price-row-val" :style="{color: userInfo.id !== info.acceptMemberId ? '#FF0000' : ''}"> |
| | | ¥{{((info.estimatedAccount||0)/100).toFixed(2) }} |
| | | ¥{{((info.originEstimatedAccount||0)/100).toFixed(2) }} |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="price-row" v-if="isAcceptor"> |
| | | <view class="price-row" v-if="isAcceptor&&(info.type==2 || (info.status!=5&& info.status!=4))"> |
| | | <view class="price-row-label">实际到账(元)</view> |
| | | <view class="price-row-val" style="color: #FF0000;"> |
| | | ¥{{((info.estimatedAccount * (1 - (info.platformRata || 0))) / 100).toFixed(2) }} |
| | | ¥{{((info.receiveAccount || 0) / 100).toFixed(2) }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <template v-if="info.type!=2&&(info.status==5|| info.status==4)"> |
| | | <view class="order-info-x"></view> |
| | | <view class="order-info-supplement" > |
| | | <view class="order-info-supplement-title">已确认费用</view> |
| | | </view> |
| | | <view class="order-info-price"> |
| | | <view class="price-row" v-if="feeFrom.priceParam1.name"> |
| | | <view class="price-row-label">实际{{feeFrom.priceParam1.name}}</view> |
| | | <view class="price-row-val" > {{(info.priceNum1||0) }}{{feeFrom.priceParam1.unit}} </view> |
| | | </view> |
| | | <view class="price-row" v-if="feeFrom.priceParam2.name"> |
| | | <view class="price-row-label">实际{{feeFrom.priceParam2.name}}</view> |
| | | <view class="price-row-val" > {{(info.priceNum2||0) }}{{feeFrom.priceParam2.unit}} </view> |
| | | </view> |
| | | <view class="price-row" > |
| | | <view class="price-row-label">其他费用</view> |
| | | <view class="price-row-val" >¥{{((info.confirmOtherFee||0)/100).toFixed(2) }} </view> |
| | | </view> |
| | | <view class="price-row"> |
| | | <view class="price-row-label">实际总费用(元)</view> |
| | | <view class="price-row-val" style="color: #FF0000"> |
| | | ¥{{((info.estimatedAccount||0)/100).toFixed(2) }} |
| | | </view> |
| | | </view> |
| | | <view class="price-row" > |
| | | <view class="price-row-label">备注</view> |
| | | <view class="price-row-val" > |
| | | {{ info.confirmFeeRemark ||'' }} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <template v-if="info.type==2 || info.status==4"> |
| | | <view class="order-info-x"></view> |
| | | <view class="order-info-supplement" > |
| | | <view class="order-info-supplement-title">实际费用</view> |
| | | </view> |
| | | <view class="order-info-price"> |
| | | <view class="price-row"> |
| | | <view class="price-row-label" v-if="isPushlishor">实际支付</view> |
| | | <view class="price-row-val" style="color: #FF0000;">¥{{((info.payAccount||0)/100).toFixed(2) }} </view> |
| | | </view> |
| | | <view class="price-row" v-if="isAcceptor && info.status==4" > |
| | | <view class="price-row-label">实际到账</view> |
| | | <view class="price-row-val" style="color: #FF0000;">¥{{((info.receiveAccount||0)/100).toFixed(2) }} </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </template> |
| | | </view> |
| | | <view class="order-info" v-if="info.commentStatus ===1"> |
| | | <view class="order-info-title"> |
| | |
| | | <text>开始时间:</text> |
| | | <text>{{info.workStartTime||'-'}}</text> |
| | | </view> |
| | | <view class="order-info-list-item" v-if="info.confirmFeeTime"> |
| | | <text>费用确认时间:</text> |
| | | <text>{{info.confirmFeeTime||'-'}}</text> |
| | | </view> |
| | | <view class="order-info-list-item" v-if="info.finishTime"> |
| | | <text>完成时间:</text> |
| | | <text>{{info.finishTime||'-'}}</text> |
| | |
| | | <view class="order-footer-btn-a" @click="show = true" v-if="1==2&& isAcceptor && info.status ===2">取消订单</view> |
| | | <view class="order-footer-btn-a" @click="show = true" v-if="isPushlishor && (info.status ===0 || info.status ===1|| info.status ===2)">取消订单</view> |
| | | <view class="order-footer-btn-b" @click="show2=true" v-if="isPushlishor && (info.status ===4 && info.commentStatus!=1)">去评价</view> |
| | | <view class="order-footer-btn-b" v-if="isPushlishor&&((info.status ===5 && info.type !==2)|| (info.status ===0 && info.type===2))" @click="show1 = true">{{info.type === 2 ? '继续支付' : '完成并支付'}}</view> |
| | | <view class="order-footer-btn-b" v-if="isPushlishor&&((info.status ===5 && info.type !==2)|| (info.status ===0 && info.type===2))" @click="show1 = true">{{info.type === 2 ? '继续支付' : '立即支付'}}</view> |
| | | <view class="order-footer-btn-b" @click="show7 = true" v-if=" info.type!==2 &&isAcceptor && info.status ===3">确认费用</view> |
| | | <view class="order-footer-btn-b" v-if="isPushlishor && ((info.status ===3 && info.type===2))" @click="payment1">完成作业</view> |
| | | <view class="order-footer-btn-b" v-if="info.type !=2 && info.isUpdate!=1&& isPushlishor && (info.status ===0 || info.status ===1|| info.status ===2)" @click="jumpEdit()">修改订单</view> |
| | |
| | | </view> |
| | | <view style="width: 100%; height: env(safe-area-inset-bottom);"></view> |
| | | </view> |
| | | |
| | | <u-modal |
| | | title="温馨提示" |
| | | :show="show" |
| | |
| | | <viem class="money">{{((info.price||0)/100).toFixed(2) }}{{info.priceUnit || '' }}</viem> |
| | | </view> |
| | | <view class="querenfee-c" > |
| | | <view class="querenfee-c-info1"><text style="color: red;">*</text>{{feeFrom.priceParam1.name}}</view> |
| | | <view class="querenfee-c-info1"><text style="color: red;">*</text>实际{{feeFrom.priceParam1.name}}</view> |
| | | <view class="querenfee-c-input"> |
| | | <input type="number" v-model="feeForm.priceNum1" placeholder="请输入" /> |
| | | <input type="number" placeholder-style="color: #999999; font-size: 56rpx; font-weight: 500;" @input="getTotal" v-model="feeFrom.priceNum1" placeholder="请输入" /> |
| | | </view> |
| | | <text class="querenfee-c-danw">{{feeFrom.priceParam1.unit}}</text> |
| | | </view> |
| | | <view class="querenfee-c" v-if="feeFrom.priceParam2.name !=null"> |
| | | <view class="querenfee-c-info1"><text style="color: red;">*</text>{{feeFrom.priceParam2.name}}:</view> |
| | | <view class="querenfee-c-info1"><text style="color: red;">*</text>实际{{feeFrom.priceParam2.name}}:</view> |
| | | <view class="querenfee-c-input"> |
| | | <input type="number" v-model="feeForm.priceNum2" placeholder="请输入" /> |
| | | <input type="number" v-model="feeFrom.priceNum2" placeholder-style="color: #999999; font-size: 56rpx; font-weight: 500;" @input="getTotal" placeholder="请输入" /> |
| | | </view> |
| | | <text class="querenfee-c-info1" >{{feeFrom.priceParam2.unit}}</text> |
| | | </view> |
| | | <view class="querenfee-c"> |
| | | <view class="querenfee-c-info1">其他费用:</view> |
| | | <view class="querenfee-c-input"> |
| | | <input type="number" v-model="feeForm.confirmOtherFee" placeholder="请输入" /> |
| | | <input type="digit" v-model="feeFrom.confirmOtherFee" placeholder-style="color: #999999; font-size: 56rpx; font-weight: 500;" placeholder="请输入" /> |
| | | </view> |
| | | <text class="querenfee-c-danw">元</text> |
| | | </view> |
| | | <view class="querenfee-c" style="flex-direction: column;"> |
| | | <view class="querenfee-c-info1">备注信息:</view> |
| | | <view class="querenfee-c-info1" style="margin-bottom: 30rpx;">备注信息:</view> |
| | | <view class="querenfee-c-input" style="width: 100%; height: 200rpx; padding: 30rpx; box-sizing: border-box;"> |
| | | <u--textarea placeholder="如需备注,请输入" border="none" v-model="feeForm.confirmFeeRemark" ></u--textarea> |
| | | <u--textarea placeholder="如需备注,请输入" border="none" v-model="feeFrom.confirmFeeRemark" ></u--textarea> |
| | | </view> |
| | | </view> |
| | | <view class="querenfee-c"> |
| | | <view class="querenfee-c-info1">实际总费用:</view> |
| | | <view class="querenfee-c-input"> |
| | | <view class="querenfee-c-price"> |
| | | ¥{{confirmPayFee}} |
| | | </view> |
| | | <!-- <view class="querenfee-c-input"> |
| | | <image src="/static/icon/ic_money@2x.png" mode="widthFix"></image> |
| | | <text class="querenfee-c-input money">{{confirmPayFee}}</text> |
| | | </view> |
| | | </view> --> |
| | | </view> |
| | | <view class="querenfee-c"> |
| | | <view class="querenfee-c" style="margin-top: 12rpx;"> |
| | | <view class="querenfee-tips">最终费用由发单方支付,接单方收到的金额将扣除平台手续费用</view> |
| | | </view> |
| | | <view class="querenfee-botton" @click="confirmFee">确认费用</view> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isPushlishor:false, |
| | | isAcceptor:false, |
| | | isPushlishor:false,//是否发单方 |
| | | isAcceptor:false,//是否接单方 |
| | | show: false, |
| | | show1: false, |
| | | show2: false, |
| | | count: 5, |
| | | show3:false, |
| | | timer:null, |
| | | timer1:null, |
| | | show4:false, |
| | | show5:false, |
| | | show6:false, |
| | | show7:false, |
| | | actionFlag:null, |
| | | timeInfo:'00:00:00', |
| | | timeInfo1:'00:00:00', |
| | | lessTime:null, |
| | | lessTime1:null, |
| | | value:0, |
| | | wayList:[], |
| | | bgImg: require('@/static/image/bg_green@2x.png'), |
| | |
| | | console.log(options) |
| | | var id = options.id |
| | | this.id = id |
| | | this.actionFla=options.flag |
| | | }, |
| | | onShow(options) { |
| | | this.getOrderData() |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getTotal() { |
| | | this.$u.api.getTotal({ |
| | | price: this.info.price, |
| | | priceUnit: this.feeFrom.priceParam1.unit, |
| | | priceNum1: this.feeFrom.priceNum1 || 0, |
| | | priceNum2: this.feeFrom.priceNum2 || 0, |
| | | type: this.info.type |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | this.confirmPayFee = (res.data / 100) || '0' |
| | | } |
| | | }) |
| | | }, |
| | | confirmFee(){ |
| | | console.log("confirmFee") |
| | | if (!this.feeFrom.priceNum1) { |
| | | return uni.showToast({ |
| | | title: '实际' + this.feeFrom.priceParam1.name + '不能为空', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | if (this.feeFrom.priceParam2.name && !this.feeFrom.priceNum2) { |
| | | return uni.showToast({ |
| | | title: '实际' + this.feeFrom.priceParam2.name + '不能为空', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['3rOz7DAnawrkKDM8b5_XW4FLivISWYov6d7QSC4ORsg'], |
| | | success(res) { |
| | | that.doConfirmFeeBiz() |
| | | }, |
| | | fail(err) { |
| | | that.doConfirmFeeBiz() |
| | | } |
| | | }) |
| | | }, |
| | | doConfirmFeeBiz(){ |
| | | var that = this |
| | | this.$u.api.confirmFee({ |
| | | confirmFeeRemark: this.feeFrom.confirmFeeRemark, |
| | | confirmOtherFee: (this.feeFrom.confirmOtherFee||0)*100, |
| | | orderId: this.info.id, |
| | | priceNum1: this.feeFrom.priceNum1, |
| | | priceNum2: this.feeFrom.priceNum2 |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | | that.show7 = false |
| | | uni.showToast({ title: '操作成功', icon: 'success', duration: 2000 }); |
| | | that.getOrderData() |
| | | } |
| | | }) |
| | | }, |
| | | payment() { |
| | | var that = this |
| | |
| | | return '' |
| | | } |
| | | return '您已接单,请按时完成订单任务' |
| | | }else if(this.info.status === 5){ |
| | | return '您已确认费用,等待发单方支付' |
| | | }else if(this.info.status === 3){ |
| | | return '订单进行中,请按时完成订单任务' |
| | | }else if(this.info.status === 4){ |
| | |
| | | return '请尽快完成支付,发布订单' |
| | | }else if(this.info.status === 1){ |
| | | return '您订单已经成功发起,请耐心等待接单' |
| | | }else if(this.info.status === 5){ |
| | | return '接单方已确认费用,请支付' |
| | | }else if(this.info.status === 2){ |
| | | if(this.info.isUpdate==1){ |
| | | return '订单已修改,请等待接单方确认' |
| | |
| | | return '订单已取消' |
| | | } |
| | | } |
| | | }, |
| | | updateTimeInfo1(){ |
| | | if(this.timer1){ |
| | | clearInterval(this.timer1) |
| | | } |
| | | var that =this |
| | | this.lessTime1 = Math.floor( Number(that.info.cancelCountdown || 0)/1000) ; |
| | | if(this.lessTime1>0){ |
| | | this.timer1 = setInterval(function(){ |
| | | let h = Math.floor(that.lessTime1/60/60) ; |
| | | let m = Math.floor((that.lessTime1 - h*60*60)/60); |
| | | let s= Math.floor(that.lessTime1- h*60*60 -m*60); |
| | | that.timeInfo1 =(h<10?'0':'')+ h+":"+(m<10?'0':'')+m+":"+(s<10?'0':'')+s; |
| | | that.lessTime1 =that.lessTime1-1; |
| | | if(that.lessTime1 <=0){ |
| | | that.timeInfo1 ="00:00:00" |
| | | clearInterval(that.timer1) |
| | | } |
| | | // console.log( that.timeInfo) |
| | | },1000) |
| | | } |
| | | |
| | | }, |
| | | updateTimeInfo(){ |
| | | if(this.timer){ |
| | |
| | | that.timeInfo =(h<10?'0':'')+ h+":"+(m<10?'0':'')+m+":"+(s<10?'0':'')+s; |
| | | that.lessTime =that.lessTime-1; |
| | | // console.log( that.timeInfo) |
| | | if(that.lessTime<=0){ |
| | | that.timeInfo ="00:00:00" |
| | | clearInterval(that.timer) |
| | | } |
| | | },1000) |
| | | } |
| | | |
| | |
| | | this.isPushlishor =false |
| | | this.isAcceptor =false |
| | | this.$u.api.getDetail(param).then(res =>{ |
| | | console.error("=============================",res.data.releaseMemberId,res.data.acceptMemberId,that.userInfo.id) |
| | | |
| | | if(res.code ===200){ |
| | | if(that.userInfo.id === res.data.releaseMemberId ){ |
| | | //如果是发单方 |
| | |
| | | if(res.data.isUpdate == 1){ |
| | | that.updateTimeInfo() |
| | | } |
| | | if(res.data.status == 0){ |
| | | that.updateTimeInfo1() |
| | | } |
| | | that.initPriceNumParam() |
| | | }else{ |
| | | uni.showToast({ title: '订单信息不存在', icon: 'error', duration: 2000 }); |
| | |
| | | this.feeFrom.priceParam2.unit =null |
| | | if(this.info.type==0 && this.info.workType==1){ |
| | | //分拣工 |
| | | this.feeFrom.priceParam1.name ='实际用工天数:' |
| | | this.feeFrom.priceParam1.name ='用工天数:' |
| | | this.feeFrom.priceParam1.unit ='天' |
| | | this.feeFrom.priceParam2.name ='实际用工人数:' |
| | | this.feeFrom.priceParam2.name ='用工人数:' |
| | | this.feeFrom.priceParam2.unit ='人' |
| | | }else if(this.info.type==0 && this.info.workType==0){ |
| | | //采摘工 |
| | | this.feeFrom.priceParam1.name ='实际采摘重量:' |
| | | this.feeFrom.priceParam1.name ='采摘重量:' |
| | | this.feeFrom.priceParam1.unit ='斤' |
| | | this.feeFrom.priceParam2.name =null |
| | | this.feeFrom.priceParam2.unit =null |
| | |
| | | //包装工 |
| | | if(this.info.carType==0){ |
| | | //按天 |
| | | this.feeFrom.priceParam1.name ='实际用工天数:' |
| | | this.feeFrom.priceParam1.name ='用工天数' |
| | | this.feeFrom.priceParam1.unit ='天' |
| | | this.feeFrom.priceParam2.name ='实际用工人数:' |
| | | this.feeFrom.priceParam2.name ='用工人数' |
| | | this.feeFrom.priceParam2.unit ='人' |
| | | }else if(this.info.carType==1){ |
| | | //按小时 |
| | | this.feeFrom.priceParam1.name ='实际用工时间:' |
| | | this.feeFrom.priceParam1.name ='工作时长' |
| | | this.feeFrom.priceParam1.unit ='时' |
| | | this.feeFrom.priceParam2.name ='实际用工人数:' |
| | | this.feeFrom.priceParam2.name ='用工人数' |
| | | this.feeFrom.priceParam2.unit ='人' |
| | | }else if(this.info.carType==1){ |
| | | //按小时 |
| | | this.feeFrom.priceParam1.name ='实际包装重量:' |
| | | this.feeFrom.priceParam1.name ='包装重量' |
| | | this.feeFrom.priceParam1.unit ='斤' |
| | | this.feeFrom.priceParam2.name =null |
| | | this.feeFrom.priceParam2.unit =null |
| | | } |
| | | }else if(this.info.type==1 && this.info.carType==0){ |
| | | //运货单 按天数 |
| | | this.feeFrom.priceParam1.name ='实际用车天数:' |
| | | this.feeFrom.priceParam1.name ='用车天数' |
| | | this.feeFrom.priceParam1.unit ='天' |
| | | }else if(this.info.type==1 && this.info.carType==1){ |
| | | //运货单 按次数 |
| | | this.feeFrom.priceParam1.name ='实际用车次数:' |
| | | this.feeFrom.priceParam1.name ='用车次数' |
| | | this.feeFrom.priceParam1.unit ='次' |
| | | } |
| | | } |
| | |
| | | color: #333333; |
| | | margin-left: 10rpx; |
| | | } |
| | | .querenfee-c-price { |
| | | font-weight: 600; |
| | | font-size: 44rpx; |
| | | color: #FF0000; |
| | | } |
| | | .querenfee-c-info1 { |
| | | width: 50%; |
| | | display: flex; |
| | |
| | | font-weight: 600; |
| | | font-size: 32rpx; |
| | | color: #222222; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | .querenfee-tips{ |
| | | width: 100%; |
| | |
| | | color: #FF0000 !important; |
| | | } |
| | | .querenfee-c-input { |
| | | // width: 100%; |
| | | // padding: 0 30rpx; |
| | | // box-sizing: border-box; |
| | | // height: 60rpx; |
| | | // background: #F7F7F7; |
| | | // border-radius: 10rpx; |
| | | // border: 1rpx solid #EEEEEE; |
| | | width: 260rpx; |
| | | height: 100rpx; |
| | | padding: 10rpx 30rpx; |
| | |
| | | font-size: 56rpx; |
| | | color: #222222; |
| | | text-align: right; |
| | | .querenfee-c-input-placeholder { |
| | | font-size: 32rpx !important; |
| | | } |
| | | } |
| | | } |
| | | } |