正在显示
6 个修改的文件
包含
107 行增加
和
8 行删除
| 1 | -// pages/main/finalpay/deductOrPayedDetail/deductOrPayedDetail.js | |
| 1 | + | |
| 2 | 2 | Page({ |
| 3 | 3 | |
| 4 | 4 | /** |
| 5 | 5 | * Page initial data |
| 6 | 6 | */ |
| 7 | 7 | data: { |
| 8 | - | |
| 8 | + infoList: [{}], | |
| 9 | + project: ["正常工资薪金", "劳务报酬", "稿酬", "特许经营权使用费"], | |
| 10 | + deductcontent: ["高级专家延长离退休期间工薪免征个人所得税", "解除劳动合同当地工资3倍以内免税", "符合条件的津补贴免征个人所得税", "生育津贴和生育医疗费免税", "工伤保险免税", "符合条件的外交人员免征个人所得税", "外籍个人出差补贴免税", "外籍个人探亲费、语言训练费、子女教育费免税", "外籍个人生活费用免税", "符合条件的外籍来华专家工资薪金所得免征个人所得税", "薪金所得免征个人所得数", "横琴、香港、澳门居民免税", "平潭台湾居民免税", "安家费、退职费、退休工资、离休工资、离休生活补助费免税"], | |
| 11 | + deductproperty: ["其他"], | |
| 9 | 12 | }, |
| 10 | 13 | |
| 11 | 14 | /** |
| ... | ... | @@ -29,6 +32,33 @@ Page({ |
| 29 | 32 | |
| 30 | 33 | }, |
| 31 | 34 | |
| 35 | + // 所得项目 | |
| 36 | + bindProjectChange: function (e) { }, | |
| 37 | + | |
| 38 | + // 减免事项名称 | |
| 39 | + bindDeductContent: function (e) { }, | |
| 40 | + | |
| 41 | + // 减免性质名称 | |
| 42 | + bindDeductProperty: function (e) { }, | |
| 43 | + | |
| 44 | + // 减免金额 | |
| 45 | + bindIncome: function (e) { | |
| 46 | + | |
| 47 | + }, | |
| 48 | + | |
| 49 | + addItem: function () {//继续添加 | |
| 50 | + var info = this.data.infoList; | |
| 51 | + console.log(info); | |
| 52 | + info.push(this.data.infoList.length); | |
| 53 | + this.setData({ | |
| 54 | + infoList: info | |
| 55 | + }); | |
| 56 | + }, | |
| 57 | + | |
| 58 | + goSubmit: function (e) { | |
| 59 | + console.log('form发生了submit事件,携带数据为:', e.detail.value) | |
| 60 | + }, | |
| 61 | + | |
| 32 | 62 | /** |
| 33 | 63 | * Lifecycle function--Called when page hide |
| 34 | 64 | */ | ... | ... |
| 1 | -<!--pages/main/finalpay/deductOrPayedDetail/deductOrPayedDetail.wxml--> | |
| 2 | -<text>pages/main/finalpay/deductOrPayedDetail/deductOrPayedDetail.wxml</text> | |
| 1 | +<view > | |
| 2 | + <view style="background:#fff;padding:0 30rpx;"> | |
| 3 | + <text class="text_gray7_34">减免税额合计</text> | |
| 4 | + <text class="text_black3_34 float_right">{{3000}}</text> | |
| 5 | + </view> | |
| 6 | + | |
| 7 | + <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx"> | |
| 8 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="bindProjectChange" range="{{project}}"> | |
| 9 | + <text class="text_gray7_34">所得项目</text> | |
| 10 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 11 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='' value="{{}}"></input> | |
| 12 | + </picker> | |
| 13 | + <view class="divide_line_30"></view> | |
| 14 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="bindDeductContent" range="{{deductcontent}}"> | |
| 15 | + <text class="text_gray7_34">减免事项名称</text> | |
| 16 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 17 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='' value="{{}}"></input> | |
| 18 | + </picker> | |
| 19 | + <view class="divide_line_30"></view> | |
| 20 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="bindDeductProperty" range="{{deductproperty}}"> | |
| 21 | + <text class="text_gray7_34">减免性质名称</text> | |
| 22 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 23 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请选择' name='' value="{{}}"></input> | |
| 24 | + </picker> | |
| 25 | + <view class="divide_line_30"></view> | |
| 26 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 27 | + <text class="text_gray7_34">减免税额</text> | |
| 28 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 29 | + </view> | |
| 30 | + </view> | |
| 31 | + | |
| 32 | + <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem"> | |
| 33 | + <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> | |
| 34 | + <text style="font-size:28rpx;color:#4986fe">继续添加</text> | |
| 35 | + </view> | |
| 36 | + <view class="btn_bottom" bindtap="goSubmit"> | |
| 37 | + <button class="btn_bottom" >保存</button> | |
| 38 | + </view> | |
| 39 | +</view> | |
| \ No newline at end of file | ... | ... |
| 1 | 1 | /* pages/main/finalpay/deductOrPayedDetail/deductOrPayedDetail.wxss */ |
| 2 | 2 | page { |
| 3 | 3 | background-color: #f5f5f5; |
| 4 | +} | |
| 5 | + | |
| 6 | +.text_gray7_34 { | |
| 7 | + font-family:PingFangSC-Regular,PingFang SC; | |
| 8 | + font-size: 34rpx; | |
| 9 | + color: #777777; | |
| 10 | + text-align: center; | |
| 11 | + line-height: 104rpx; | |
| 12 | +} | |
| 13 | + | |
| 14 | +.text_black3_34 { | |
| 15 | + font-family:PingFangSC-Regular,PingFang SC; | |
| 16 | + font-size: 34rpx; | |
| 17 | + color: #333333; | |
| 18 | + text-align: center; | |
| 19 | + line-height: 104rpx; | |
| 20 | +} | |
| 21 | + | |
| 22 | +.input_wrap { | |
| 23 | + max-width: 600rpx; | |
| 24 | + height: 104rpx; | |
| 25 | + font-size: 32rpx; | |
| 26 | + color: #fff; | |
| 27 | + text-align: right; | |
| 28 | + overflow: hidden; | |
| 29 | + float: right; | |
| 30 | +} | |
| 31 | + | |
| 32 | +.arrow_wrap { | |
| 33 | + width: 60rpx; | |
| 34 | + height: 60rpx; | |
| 35 | + margin-top: 20rpx | |
| 4 | 36 | } |
| \ No newline at end of file | ... | ... |
| 1 | 1 | |
| 2 | -<view class="page"> | |
| 2 | +<view > | |
| 3 | 3 | <view style="background:#fff;padding:0 30rpx;"> |
| 4 | 4 | <text class="text_gray7_34">准予扣除的捐赠额合计</text> |
| 5 | 5 | <text class="text_black3_34 float_right">{{300090}}</text> |
| ... | ... | @@ -43,7 +43,7 @@ |
| 43 | 43 | </view> |
| 44 | 44 | </view> |
| 45 | 45 | |
| 46 | - <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;padding-bottom:84rpx" bindtap="addItem"> | |
| 46 | + <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem"> | |
| 47 | 47 | <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> |
| 48 | 48 | <text style="font-size:28rpx;color:#4986fe">继续添加</text> |
| 49 | 49 | </view> | ... | ... |
| ... | ... | @@ -7,7 +7,7 @@ Page({ |
| 7 | 7 | data: { |
| 8 | 8 | infoList:[{}], |
| 9 | 9 | project: ["正常工资薪金", "劳务报酬", "稿酬", "特许经营权使用费"], |
| 10 | - deductcontent:["1","2"], | |
| 10 | + deductcontent: ["高级专家延长离退休期间工薪免征个人所得税", "解除劳动合同当地工资3倍以内免税", "符合条件的津补贴免征个人所得税", "生育津贴和生育医疗费免税", "工伤保险免税", "符合条件的外交人员免征个人所得税", "外籍个人出差补贴免税", "外籍个人探亲费、语言训练费、子女教育费免税", "外籍个人生活费用免税", "符合条件的外籍来华专家工资薪金所得免征个人所得税","薪金所得免征个人所得数", "横琴、香港、澳门居民免税", "平潭台湾居民免税","安家费、退职费、退休工资、离休工资、离休生活补助费免税"], | |
| 11 | 11 | deductproperty: ["其他"], |
| 12 | 12 | }, |
| 13 | 13 | ... | ... |
请
注册
或
登录
后发表评论