|
|
@@ -38,63 +38,12 @@
|
|
|
</Nav>
|
|
|
<view class="sys-list-background-color task-tabs-width "
|
|
|
:style="{top:`${$tools.topHeight()+fixedHeight}px`}">
|
|
|
- <view class="m-t20 swiper-box">
|
|
|
- <z-swiper ref="zSwiper" v-model="basicType" :options="options" v-if="current === 1" @slideChange="onSwiper">
|
|
|
- <z-swiper-item v-for="itemType in basicType">
|
|
|
- <view class="swiper-item-box page-env-160" v-if="itemType==='1'">
|
|
|
- <Identity ref="identity" class="identity swiper-item" :height="`${maxHeight-60}px`" :business="business"
|
|
|
- :linkman="linkman" :client-key="clientKey" @onShowImg="onShowImg" :linkman-key="linkmanKey">
|
|
|
- </Identity>
|
|
|
- </view>
|
|
|
- <view class="swiper-item-box page-env-160" v-else-if="itemType==='3'">
|
|
|
- <Apply class="apply swiper-item" :height="`${maxHeight-60}px`" :apply-for="applyFor"
|
|
|
- :applies-key="appliesKey" @onShowImg="onShowImg">
|
|
|
- </Apply>
|
|
|
- </view>
|
|
|
- <view class="swiper-item-box page-env-160" v-else-if="itemType==='4'">
|
|
|
- <ThirdParty class="third_party swiper-item" :height="`${maxHeight-60}px`" :tripartite="tripartite"
|
|
|
- :tripartite-key="tripartiteKey" @onShowImg="onShowImg">
|
|
|
- </ThirdParty>
|
|
|
- </view>
|
|
|
- </z-swiper-item>
|
|
|
-
|
|
|
- </z-swiper>
|
|
|
- <view class="" v-if="current === 2">
|
|
|
- <z-swiper v-model="restType" :options="options" @slideChange="onCreditSwiper">
|
|
|
- <z-swiper-item v-for="itemType in restType">
|
|
|
- <view class="swiper-item-box page-env-160" v-if="itemType==='2'">
|
|
|
- <Property class="property swiper-item" :height="`${creditHeight-60}px`" :property-list="propertyList"
|
|
|
- :property-key="propertyKey" @onShowImg="onShowImg">
|
|
|
- </Property>
|
|
|
- </view>
|
|
|
- <view class="swiper-item-box page-env-160" v-else-if="itemType==='6'">
|
|
|
- <credit-list class="credit_list swiper-item" :height="`${creditHeight-60}px`" :credit-data="credit"
|
|
|
- :credit-key="creditKey" @onShowImg="onShowImg"></credit-list>
|
|
|
- </view>
|
|
|
- </z-swiper-item>
|
|
|
- </z-swiper>
|
|
|
- </view>
|
|
|
+ <view v-if="current === 1"></view>
|
|
|
+ <view >
|
|
|
+<!-- <graph></graph>-->
|
|
|
</view>
|
|
|
- <Record v-show="current === 3" ref="recordObj" :business-id="businessId" @onShowImg="onShowImg"></Record>
|
|
|
- <Steps ref="stepsObj" v-show="current === 4" :business-id="businessId"></Steps>
|
|
|
</view>
|
|
|
- <view v-if="isExecute>0 && business.status<4">
|
|
|
- <EnButton v-if="isExecute===3" :text="'领取'" @onSubmit="takeTask"></EnButton>
|
|
|
- <EnButton v-else-if="isExecute===2" :is_both="1" :leftText="'作废'" :rightText="'反馈'"
|
|
|
- @onLeftSubmit="cancellation" @onSubmit="setTaskOperate(3)"></EnButton>
|
|
|
- <EnButton v-else-if="isExecute===4" :is_both="2" :leftText="'作废'" :rightText="'反馈'" centre-text="交接"
|
|
|
- @onLeftSubmit="cancellation" @onCentreSubmit="openExecute" @onSubmit="setTaskOperate(3)"></EnButton>
|
|
|
- <EnButton v-else-if="isExecute===5" :text="'完成'" @onSubmit="endTask"></EnButton>
|
|
|
- <EnButton v-else-if="isExecute===6" :is_both="1" :leftText="'拒绝'" :rightText="'同意'"
|
|
|
- @onLeftSubmit="auditTask(2)" @onSubmit="auditTask(1)"></EnButton>
|
|
|
- <EnButton v-else-if="isExecute===7" text="编辑" @onSubmit="editTask()"></EnButton>
|
|
|
- <EnButton v-else-if="isExecute===8" text="完善贷后" @onSubmit="setPostLoan()"></EnButton>
|
|
|
- <EnButton :is_both="1" :leftText="'交接'" :rightText="'操作'" v-else @onLeftSubmit="openExecute"
|
|
|
- @onSubmit="setTaskOperate(1)"></EnButton>
|
|
|
|
|
|
- </view>
|
|
|
- <!-- <EnButton :text="'冲销'" v-if="current === 1"></EnButton>-->
|
|
|
- <!-- <EnButton is_both :leftText="'交接'" :rightText="'操作'" @onSubmit="setTaskOperate(1)" @onLeftSubmit="openExecute"></EnButton>-->
|
|
|
|
|
|
<uni-popup ref="executePopup" type="bottom">
|
|
|
<EnSelect title="请选择任务接收人" :local-data="executeData" ref="system" v-model="executeId"
|
|
|
@@ -119,18 +68,9 @@ import Steps from "./module/steps.vue"
|
|
|
// 跟进记录
|
|
|
import Record from "./module/record.vue"
|
|
|
import tools from "@/service/tools";
|
|
|
-import {
|
|
|
- cancellation,
|
|
|
- endTask,
|
|
|
- getExecuteList,
|
|
|
- getStageList,
|
|
|
- getTaskDetail,
|
|
|
- setExecute,
|
|
|
- takeTask
|
|
|
-} from "@/api/task";
|
|
|
+
|
|
|
import EnSelect from "@/components/en-utils/en-select/en-select.vue";
|
|
|
import CreditList from "@/page_task/credit/credit.vue";
|
|
|
-import {type} from "@/uni_modules/uni-forms/components/uni-forms/utils";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -214,9 +154,9 @@ export default {
|
|
|
creditListHeight: 0,
|
|
|
maxHeight: '100%',
|
|
|
creditHeight: '100%',
|
|
|
- basicType: ['1'],
|
|
|
- restType: ['2'],
|
|
|
- isReturn: 0
|
|
|
+ basicType:['1'],
|
|
|
+ restType:['2'],
|
|
|
+ isReturn:0
|
|
|
}
|
|
|
},
|
|
|
onLoad(data) {
|
|
|
@@ -227,15 +167,15 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- makingCall(phone) {
|
|
|
+ makingCall(phone){
|
|
|
tools.makingCall(phone)
|
|
|
},
|
|
|
onShowImg(item) {
|
|
|
console.log(this.businessFile.imgList)
|
|
|
- let imgIndex = this.businessFile.imgList.indexOf(item)
|
|
|
+ let imgIndex=this.businessFile.imgList.indexOf(item)
|
|
|
if (imgIndex < 0) {
|
|
|
this.businessFile.imgList.push(item)
|
|
|
- imgIndex = this.businessFile.imgList.length - 1
|
|
|
+ imgIndex=this.businessFile.imgList.length-1
|
|
|
}
|
|
|
console.log(this.businessFile.imgList)
|
|
|
|
|
|
@@ -263,30 +203,11 @@ export default {
|
|
|
takeTask() {
|
|
|
|
|
|
},
|
|
|
- closeExecutePopup() {
|
|
|
+ closeExecutePopup(){
|
|
|
|
|
|
},
|
|
|
setNewExecute(type) {
|
|
|
- if (type) {
|
|
|
- //设置新执行人
|
|
|
- if (this.executeId <= 0) {
|
|
|
- tools.error('请选择执行人')
|
|
|
- return
|
|
|
- }
|
|
|
- setExecute({
|
|
|
- 'business_id': this.businessId,
|
|
|
- 'user_id': this.executeId
|
|
|
- }).then((res) => {
|
|
|
- if (res.code === 1) {
|
|
|
- tools.success(res.msg)
|
|
|
- uni.$emit('newReceiving')
|
|
|
- this.getTaskDetail()
|
|
|
-
|
|
|
- } else {
|
|
|
- tools.error(res.msg)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
this.$refs.executePopup.close('bottom')
|
|
|
|
|
|
},
|
|
|
@@ -383,18 +304,15 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
-.swiper-box {
|
|
|
+.swiper-box{
|
|
|
overflow: hidden;
|
|
|
-
|
|
|
- .swiper-item {
|
|
|
+ .swiper-item{
|
|
|
transition: .5s ease;
|
|
|
}
|
|
|
-
|
|
|
- .swiper-item-box {
|
|
|
+ .swiper-item-box{
|
|
|
min-height: calc(100vh - 630rpx - 160rpx - env(safe-area-inset-bottom));
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
.details_body {
|
|
|
width: 100%;
|
|
|
position: absolute;
|
|
|
@@ -440,7 +358,6 @@ export default {
|
|
|
.swiper-wrapper {
|
|
|
z-index: 0 !important;
|
|
|
}
|
|
|
-
|
|
|
.video-box {
|
|
|
height: 70vh;
|
|
|
width: 100vw;
|