donationDetail.wxml 6.5 KB
<view>
  <view style="background:#fff;padding:0 30rpx;">
    <text class="text_gray7_34">准予扣除的捐赠额合计</text>
    <text class="text_black3_34 float_right">{{total_account}}</text>
  </view>

  <!-- 列表数据,不可修改 -->
  <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx">
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx;display: flex;">
      <view style="font-size: 32rpx;color: #777777;text-align: center;width:320rpx;display:flex;align-items: center;">受赠单位纳税人识别号(统一社会信用代码)</view>
      <input style='text-align:right;color:#000;font-size: 30rpx;height:104rpx;width:366rpx' disabled="true" value="{{item.donated_unit_code}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">受赠单位名称</text>
      <input class='input_wrap' style='text-align: right;color:#000;' disabled="true" value="{{item.donated_unit_name}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class="text_gray7_34">报捐赠凭证号</text>
      <input class='input_wrap' style='text-align: right;color:#000;' disabled="true" value="{{item.donation_code}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">捐赠年度</text>
      <input class='input_wrap' style='text-align: right;color:#000;' disabled="true" value="{{item.donation_year}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">捐赠金额</text>
      <input class='input_wrap' style='text-align: right;color:#000;' disabled="true" value="{{item.donation_account}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="" range="{{deductPick}}">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">扣除比例</text>
      <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image>
      <input class='input_wrap' style='text-align: right;color:#000;' disabled="true" value="{{item.deduction_ratio}}%"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class="text_gray7_34">备注</text>
      <input class='input_wrap' style='text-align: right;color:#000;' disabled="true" value="{{item.comment}}"></input>
    </view>
  </view>

  <!-- 添加项,可编辑 -->
  <view wx:if="{{showAddView}}" style="background:#fff;margin-top:20rpx">
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx;display: flex;">
      <view style="font-size: 32rpx;color: #777777;text-align: center;width:320rpx;display:flex;align-items: center;">受赠单位纳税人识别号(统一社会信用代码)</view>
      <input style='text-align:right;color:#000;font-size: 30rpx;height:104rpx;width:366rpx' placeholder='请输入' id="donated_unit_code" maxlength="20" bindblur="getInputInfo" value="{{donated_unit_code}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">受赠单位名称</text>
      <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' id="donated_unit_name" bindblur="getInputInfo" value="{{donated_unit_name}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class="text_gray7_34">报捐赠凭证号</text>
      <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' id="donation_code" bindblur="getInputInfo" value="{{donation_code}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">捐赠年度</text>
      <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' id="donation_year" type="number" bindblur="getInputInfo" maxlength="4" value="{{donation_year}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">捐赠金额</text>
      <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' type="digit" id="donation_account" bindblur="getInputInfo" value="{{donation_account}}"></input>
    </view>
    <view class="divide_line_30"></view>
    <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="deductRatioPicker" range="{{deductPick}}">
      <text class='red_star_right_10'>*</text>
      <text class="text_gray7_34">扣除比例</text>
      <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image>
      <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请选择' name='' value="{{deduction_ratio}}%"></input>
    </picker>
    <view class="divide_line_30"></view>
    <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx">
      <text class="text_gray7_34">备注</text>
      <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' id="comment" bindblur="getInputInfo" value="{{comment}}"></input>
    </view>
  </view>

  <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem">
    <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image>
    <text style="font-size:28rpx;color:#4986fe">继续添加</text>
  </view>
  <view class="btn_bottom" bindtap="goSubmit">
    <button class="btn_bottom">保存</button>
  </view>
</view>