|
|
@ -1,56 +1,8 @@ |
|
|
|
<template> |
|
|
|
<view class="u-page"> |
|
|
|
<view class="se-px-20 se-pt-40 se-flex-v-c"> |
|
|
|
<template v-if="stepsIndex==0"> |
|
|
|
<view class="se-flex se-flex-h-c"> |
|
|
|
<image class="se-a-50" src="@/static/image/46524.png" mode=""></image> |
|
|
|
<text class="se-c-orange se-fs-30 se-ml-10">招聘发布-师傅接单-等待企业确认</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==1"> |
|
|
|
<view class="se-flex se-flex-h-c"> |
|
|
|
<image class="se-a-50" src="@/static/image/46524.png" mode=""></image> |
|
|
|
<text class="se-c-orange se-fs-30 se-ml-10">订单进行中</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==2"> |
|
|
|
<view class="se-flex se-flex-h-c"> |
|
|
|
<image class="se-a-50" src="@/static/image/46525.png" mode=""></image> |
|
|
|
<text class="se-c-orange se-fs-30 se-ml-10">试工完成</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==3"> |
|
|
|
<view class="se-flex se-flex-h-c"> |
|
|
|
<image class="se-a-50" src="@/static/image/46525.png" mode=""></image> |
|
|
|
<text class="se-c-orange se-fs-30 se-ml-10">企业待支付</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==4"> |
|
|
|
<view class="se-flex se-flex-h-c"> |
|
|
|
<image class="se-a-50" src="@/static/image/46525.png" mode=""></image> |
|
|
|
<text class="se-c-orange se-fs-30 se-ml-10">订单待完成</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==5"> |
|
|
|
<view class="se-flex se-flex-h-c"> |
|
|
|
<image class="se-a-50" src="@/static/image/46525.png" mode=""></image> |
|
|
|
<text class="se-c-orange se-fs-30 se-ml-10">订单已完成</text> |
|
|
|
</view> |
|
|
|
<!-- <text class="se-c-orange se-mt-20 se-fs-24">12:45:30有效</text> --> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==6"> |
|
|
|
<view class="se-flex se-flex-h-c"> |
|
|
|
<image class="se-a-50" src="@/static/image/46525.png" mode=""></image> |
|
|
|
<text class="se-c-orange se-fs-30 se-ml-10">订单已取消</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</view> |
|
|
|
<view class="se-px-20 se-py-40" v-if="stepsIndex != 6"> |
|
|
|
<u-steps activeColor="#FF7A31" :current="stepsIndex" dot> |
|
|
|
<u-steps-item class="se-fs-22" v-for="(items,indexs) in stepsList" :key="indexs" :title="items.title"> |
|
|
|
<!-- <text class="se-fs-22" slot="title">{{items.title}}</text> --> |
|
|
|
</u-steps-item> |
|
|
|
</u-steps> |
|
|
|
<!-- 使用状态组件 --> |
|
|
|
<view class="se-px-20 se-pt-40"> |
|
|
|
<order-status :order-data="obj" page-type="order"></order-status> |
|
|
|
</view> |
|
|
|
<view class="se-px-20"> |
|
|
|
|
|
|
@ -64,7 +16,7 @@ |
|
|
|
<text>联系客服</text> |
|
|
|
</button> |
|
|
|
|
|
|
|
<template v-if="stepsIndex==0"> |
|
|
|
<template v-if="obj.status==0"> |
|
|
|
<view @click="confirmOrder()" |
|
|
|
class="se-mx-10 se-w-200 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-white se-bgc-orange"> |
|
|
|
<text>接收该员工</text> |
|
|
@ -75,13 +27,13 @@ |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-if="stepsIndex == 2"> |
|
|
|
<template v-if="obj.status == 2"> |
|
|
|
<view @click="confirmOrderTryCompany()" |
|
|
|
class="se-mx-10 se-w-200 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-white se-bgc-orange"> |
|
|
|
<text>企业确认</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==3"> |
|
|
|
<template v-if="obj.status==3"> |
|
|
|
<view @click="onPay()" |
|
|
|
class="se-mx-10 se-w-200 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-white se-bgc-orange"> |
|
|
|
<text>去支付</text> |
|
|
@ -100,20 +52,20 @@ |
|
|
|
<text>联系客服</text> |
|
|
|
</button> |
|
|
|
|
|
|
|
<template v-if="stepsIndex==0"> |
|
|
|
<template v-if="obj.status==0"> |
|
|
|
<view @click="onCancel()" |
|
|
|
class="se-mx-10 se-w-200 se-b se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-66 se-bgc-f5"> |
|
|
|
<text>取消</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-if="stepsIndex==1"> |
|
|
|
<template v-if="obj.status==1"> |
|
|
|
<view @click="confirmOrderTry()" |
|
|
|
class="se-mx-10 se-w-200 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-white se-bgc-orange"> |
|
|
|
<text>确认试工完成</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==4"> |
|
|
|
<template v-if="obj.status==4"> |
|
|
|
<view @click="confirmOrderTryCompanyOk()" |
|
|
|
class="se-mx-10 se-w-200 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-white se-bgc-orange"> |
|
|
|
<text>确认到账</text> |
|
|
@ -131,13 +83,13 @@ |
|
|
|
<text>联系客服</text> |
|
|
|
</button> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex == 2"> |
|
|
|
<template v-if="obj.status == 2"> |
|
|
|
<view @click="confirmOrderTryCompany()" |
|
|
|
class="se-mx-10 se-w-200 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-white se-bgc-orange"> |
|
|
|
<text>企业确认</text> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
<template v-if="stepsIndex==3"> |
|
|
|
<template v-if="obj.status==3"> |
|
|
|
<view @click="onPay()" |
|
|
|
class="se-mx-10 se-w-200 se-br-40 se-flex-h-c se-h-50 se-lh-50 se-ta-c se-fs-24 se-c-white se-bgc-orange"> |
|
|
|
<text>去支付</text> |
|
|
@ -249,7 +201,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view @click.capture="onCustomerService(items.employAuthenticationPerson.phone)" |
|
|
|
v-if="stepsIndex != 6" |
|
|
|
v-if="obj.status != 6" |
|
|
|
class="se-flex se-flex-h-c se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-fw-6"> |
|
|
|
<u-icon color="#FF7A31" name="phone-fill"></u-icon> |
|
|
|
<text class="se-ml-5">联系他</text> |
|
|
@ -290,7 +242,7 @@ |
|
|
|
{{items.employResume.brief}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-if="stepsIndex == 0" class="se-mt-20"> |
|
|
|
<view v-if="obj.status == 0" class="se-mt-20"> |
|
|
|
<text class="se-c-text-third se-fs-22">接单时间:{{items.createTime}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -306,35 +258,13 @@ |
|
|
|
confirmOrder, |
|
|
|
confirmOrderTryCompany, |
|
|
|
} from "@/common/api.js" |
|
|
|
import OrderStatus from "@/components/order-status/index.vue" |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
OrderStatus |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
stepsIndex: 1, |
|
|
|
stepsList: [{ |
|
|
|
title: "接单", |
|
|
|
date: "10:21" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "进行", |
|
|
|
date: "10:22" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "试工完成", |
|
|
|
date: "10:23" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "企业确认", |
|
|
|
date: "10:24" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "企业支付", |
|
|
|
date: "10:25" |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "企业完成", |
|
|
|
date: "10:26" |
|
|
|
} |
|
|
|
], |
|
|
|
detail: `<p> |
|
|
|
1、全日制大专以上学历,艺术设计类相关专业;<br/> |
|
|
|
2、两年以上平面、品牌、视觉设计等相关工作经验,能独立完成项目的设计工作,有 3C数码/个护健 康 类产品服务经验优先,有乙方工作经验佳;<br/> |
|
|
@ -361,7 +291,6 @@ |
|
|
|
} |
|
|
|
orderDetail(params).then(response => { |
|
|
|
that.obj = response.result |
|
|
|
that.stepsIndex = response.result.status; |
|
|
|
}).catch(error => { |
|
|
|
|
|
|
|
}) |
|
|
|