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

229 lines
12 KiB
Plaintext

<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>
<block wx:if="{{has_amount_view}}">
<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>
<view class="li_text">
<block wx:if="{{info}}">
<view class="protext">{{'合同金额:¥'+(info.money?info.money:'')+''}}</view>
</block>
</view>
<block wx:if="{{info}}">
<view class="content">{{'待回款:¥ '+(info.receivables?info.receivables.be_money:'')+''}}</view>
</block>
</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',[['toAddBills',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
<view class="scroll_top" style="font-size: 32rpx;">{{info.total_bill}}</view>
<view class="scroll_foot">发票</view>
</view>
<view data-event-opts="{{[['tap',[['toAddCost',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e">
<view class="scroll_top" style="font-size: 32rpx;">{{info.total_consume}}</view>
<view class="scroll_foot">报销</view>
</view>
<view data-event-opts="{{[['tap',[['toAddPayment',['$0'],['info.id']]]]]}}" class="scrollView_item" bindtap="__e" wx:if="{{has_amount_view}}">
<view class="scroll_top" style="font-size: 32rpx;">{{info.receivables?info.receivables.repayment_money:''}}</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}}">
<block wx:for="{{billList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<view class="cost data-v-2a5dec54">
<view class="cost_info data-v-2a5dec54">
<view class="cost_left data-v-2a5dec54">
<view class="cost_text data-v-2a5dec54">{{"关联合同:"+item.contract.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"关联公司:"+item.corporation.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"发票金额:"+item.money}}</view>
<view class="cost_text data-v-2a5dec54">{{"消费日期:"+item.createtime}}</view>
<view class="cost_text data-v-2a5dec54">{{"创建人:"+item.staff.name}}</view>
</view>
</view>
</view>
</block>
</block>
<!-- 费用 -->
<block wx:if="{{current==2}}">
<view class="cost data-v-2a5dec54" wx:for="{{consumeList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<block wx:if="{{item.check_status==0}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">待审核</label></view>
</block>
<block wx:if="{{item.check_status==1}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核中</label></view>
</block>
<block wx:if="{{item.check_status==2}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核通过</label></view>
</block>
<block wx:if="{{item.check_status==3}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">审核未通过</label></view>
</block>
<block wx:if="{{item.check_status==4}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-2a5dec54">撤销</label></view>
</block>
<view class="cost_type data-v-2a5dec54">{{item.consume_type}}</view>
<view class="cost_info data-v-2a5dec54">
<view class="cost_left data-v-2a5dec54">
<view class="cost_text data-v-2a5dec54">{{"关联合同:"+item.contract.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"费用金额:"+item.money}}</view>
<view class="cost_text data-v-2a5dec54">{{"报销主题:"+item.theme}}</view>
<view class="cost_text data-v-2a5dec54">{{"备注:"+item.remark}}</view>
<view class="cost_text data-v-2a5dec54">{{"创建人:"+item.staff.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"下单联系人:"+item.place_order_contact}}</view>
</view>
<view class="cost_right data-v-2a5dec54">
<image class="staffimg data-v-2a5dec54" src="{{item.staff.img}}" mode></image>
<view class="staffname data-v-2a5dec54">{{item.staff.name}}</view>
</view>
</view>
</view>
</block>
<!-- 回款记录 -->
<block wx:if="{{current==3}}">
<block wx:for="{{collectionList}}" wx:for-item="item" wx:for-index="index" wx:key="index" wx:if="{{has_amount_view}}">
<view class="cost data-v-2a5dec54" bindtap="__e">
<block wx:if="{{item.check_status==0}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-23dddfa8">待审核</label></view>
</block>
<block wx:if="{{item.check_status==1}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-23dddfa8">审核中</label></view>
</block>
<block wx:if="{{item.check_status==2}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-23dddfa8">审核通过</label></view>
</block>
<block wx:if="{{item.check_status==3}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-23dddfa8">审核未通过</label></view>
</block>
<block wx:if="{{item.check_status==4}}">
<view class="cost_status data-v-2a5dec54"><label class="_span data-v-23dddfa8">已撤回</label></view>
</block>
<view class="cost_info data-v-2a5dec54">
<view class="cost_left data-v-2a5dec54">
<view class="cost_text data-v-2a5dec54">{{"回款编号:"+item.number}}</view>
<view class="cost_text data-v-2a5dec54">{{"关联合同:"+item.contract.name}}</view>
<view class="cost_text data-v-2a5dec54">{{"回款方式:"+item.return_type}}</view>
<view class="cost_text data-v-2a5dec54">{{"回款金额:"+item.money}}</view>
<view class="cost_text data-v-2a5dec54">{{"回款日期:"+item.return_time}}</view>
<view class="cost_text data-v-2a5dec54">{{"创建人:"+item.staff.name}}</view>
</view>
<view class="cost_right data-v-2a5dec54">
</view>
</view>
</view>
</block>
<view style="margin-top: 20rpx;" wx:if="{{!has_amount_view}}">
<u-empty vue-id="ab320058-1" text="暂无权限" bind:__l="__l"></u-empty>
</view>
</block>
<block wx:if="{{current==4}}">
<view class="processing_title" wx:if="{{has_amount_view}}">
<block wx:if="{{info}}">
<base-info vue-id="a970ea7e-3" info="{{info}}" payment_approval="{{payment_approval}}" bind:__l="__l"></base-info>
</block>
</view>
<view style="margin-top:20rpx;" wx:if="{{!has_amount_view}}">
<u-empty vue-id="ab320058-1" text="暂无权限" bind:__l="__l"></u-empty>
</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">
<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>
<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>