donationDetail.wxml
6.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<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" maxlength="20" 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" maxlength="20" 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' disabled="true" 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:168rpx" 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>