crm_second_opening_mini/pages/index/groupCompany/contract/contractDetail.wxml

140 lines
7.8 KiB
Plaintext
Raw Normal View History

2023-03-14 06:28:27 +00:00
<view class="group_company">
<view class="contractinfo">
<view class="constatus">
<block wx:if="{{info&&info.check_status==0}}">
<view class="con_status">待审核</view>
</block>
<block wx:if="{{info&&info.check_status==1}}">
<view class="con_status">审核中</view>
</block>
<block wx:if="{{info&&info.check_status==2}}">
<view class="con_status">审核通过</view>
</block>
<block wx:if="{{info&&info.check_status==3}}">
<view class="con_status warnstatus">审核未通过</view>
</block>
<block wx:if="{{info&&info.check_status==4}}">
<view class="con_status warnstatus">已撤回</view>
</block>
</view>
<view class="nameli">
<view class="name">{{info&&info.name}}</view>
</view>
<block wx:if="{{info}}">
<view class="content">{{'合同编号:'+(info.num?info.num:'')+''}}</view>
</block>
<view class="li_text">
<view class="protext">回款进度</view>
<view class="pro_out">
<block wx:if="{{info}}">
<view class="pro_in" style="{{'width:'+((info.receivables.ratio>=100?100:info.receivables.ratio)+'%')+';'}}"></view>
</block>
</view>
<block wx:if="{{info}}">
<view class="protext">{{''+(info.receivables.ratio>=100?100:info.receivables.ratio)+'%'}}</view>
</block>
</view>
2023-03-15 04:59:31 +00:00
<view class="li_text" wx:if="{{has_amount_view}}">
2023-03-14 06:28:27 +00:00
<block wx:if="{{info}}">
<view class="protext">{{'合同金额:¥'+(info.money?info.money:'')+''}}</view>
</block>
</view>
<block wx:if="{{info}}">
2023-03-15 04:59:31 +00:00
<view class="content" wx:if="{{has_amount_view}}">{{'已回款:¥'+(info.receivables?info.receivables.repayment_money:'')+''}}</view>
2023-03-14 06:28:27 +00:00
</block>
<block wx:if="{{info}}">
2023-03-15 04:59:31 +00:00
<view class="content" wx:if="{{has_amount_view}}">{{'待回款:¥ '+(info.receivables?info.receivables.be_money:'')+''}}</view>
2023-03-14 06:28:27 +00:00
</block>
<block wx:if="{{info}}">
<view class="content">{{'签约时间:'+(info.order_date?info.order_date:'')+''}}</view>
</block>
<view class="roll">
<scroll-view class="scrollView" scroll-x="true" lower-threshold="50" enable-flex="{{true}}">
<view class="scrollbox">
<view data-event-opts="{{[['tap',[['payment',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
<view class="scroll_top">{{''+$root.g0+''}}</view>
<view class="scroll_foot">回款记录</view>
</view>
<view data-event-opts="{{[['tap',[['plan',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
<view class="scroll_top">{{''+$root.g1+''}}</view>
<view class="scroll_foot">回款计划</view>
</view>
<view data-event-opts="{{[['tap',[['accessory',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
<view class="scroll_top">{{''+$root.g2+''}}</view>
<view class="scroll_foot">附件</view>
</view>
<view data-event-opts="{{[['tap',[['opera',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
<view class="scroll_top">{{''+$root.g3+''}}</view>
<view class="scroll_foot">操作记录</view>
</view>
</view>
</scroll-view>
</view>
</view>
<block wx:if="{{payment_approval.is_check==1}}">
<view class="btnlist">
<view data-event-opts="{{[['tap',[['toPass',['$event']]]]]}}" class="btn pass" bindtap="__e">通过</view>
<view data-event-opts="{{[['tap',[['toRefuse',['$event']]]]]}}" class="btn refuse" bindtap="__e">拒绝</view>
</view>
</block>
<view class="group_tab">
<u-tabs vue-id="a970ea7e-1" name="cate_name" list="{{lists}}" is-scroll="{{false}}" active-color="#03AA96" current="{{current}}" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l"></u-tabs>
<block wx:if="{{current==0}}">
<view class="processing_title">
<block wx:if="{{info}}">
<customer-dynamic vue-id="a970ea7e-2" kehuid="{{info.id}}" type="{{3}}" bind:__l="__l"></customer-dynamic>
</block>
</view>
</block>
<block wx:if="{{current==1}}">
<view class="processing_title">
<block wx:if="{{info}}">
<base-info vue-id="a970ea7e-3" info="{{info}}" payment_approval="{{payment_approval}}" bind:__l="__l"></base-info>
</block>
</view>
</block>
</view>
<view style="height:100rpx;"></view>
<view class="bottom_nav">
<view data-event-opts="{{[['tap',[['moreClick',['$event']]]]]}}" class="bottom_item" style="width:300rpx;margin:0 auto;" bindtap="__e">
<image style="width:48rpx;height:48rpx;float:left;" src="{{BASE_IMG_URL+'morebtn.png'}}" mode="scaleToFill"></image>
<view style="font-size:34rpx;">更多操作</view>
</view>
<u-popup bind:input="__e" vue-id="a970ea7e-4" mode="bottom" border-radius="20" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}">
<view class="pull_head">更多操作</view>
<view class="pull_con">
2023-03-15 04:59:31 +00:00
<view data-event-opts="{{[['tap',[['toAddBills',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">发票</view>
</view>
<view data-event-opts="{{[['tap',[['toAddCost',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">费用</view>
</view>
2023-03-14 06:28:27 +00:00
<view data-event-opts="{{[['tap',[['followClick',['$0',3],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">写新跟进</view>
</view>
<view data-event-opts="{{[['tap',[['toAddPlan',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">回款计划</view>
</view>
2023-03-15 04:59:31 +00:00
2023-03-14 06:28:27 +00:00
<block wx:if="{{info&&info.check_status==2}}">
<view data-event-opts="{{[['tap',[['toAddPayment',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">回款</view>
</view>
</block>
<block wx:if="{{info&&(info.check_status==0||info.check_status==1)}}">
<view data-event-opts="{{[['tap',[['removeExamine',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">撤回审批</view>
</view>
</block>
<block wx:if="{{info&&(info.check_status==4||info.check_status==3)}}">
<view data-event-opts="{{[['tap',[['toEditcontract',['$0'],['info.id']]]]]}}" class="bottom_item" bindtap="__e">
<view style="padding:5rpx 12rpx;border:1px solid #ededed;">编辑合同</view>
</view>
</block>
</view>
</u-popup>
</view>
</view>