正在显示
12 个修改的文件
包含
370 行增加
和
141 行删除
| 1 | - | |
| 1 | +var app = getApp(); | |
| 2 | +var baseUrl = app.globalData.baseUrl; | |
| 2 | 3 | Page({ |
| 3 | 4 | |
| 4 | 5 | /** |
| 5 | 6 | * Page initial data |
| 6 | 7 | */ |
| 7 | 8 | data: { |
| 9 | + year: "2019", | |
| 8 | 10 | infoList: [{}], |
| 9 | 11 | project: ["正常工资薪金", "劳务报酬", "稿酬", "特许经营权使用费"], |
| 10 | 12 | deductcontent: ["高级专家延长离退休期间工薪免征个人所得税", "解除劳动合同当地工资3倍以内免税", "符合条件的津补贴免征个人所得税", "生育津贴和生育医疗费免税", "工伤保险免税", "符合条件的外交人员免征个人所得税", "外籍个人出差补贴免税", "外籍个人探亲费、语言训练费、子女教育费免税", "外籍个人生活费用免税", "符合条件的外籍来华专家工资薪金所得免征个人所得税", "薪金所得免征个人所得数", "横琴、香港、澳门居民免税", "平潭台湾居民免税", "安家费、退职费、退休工资、离休工资、离休生活补助费免税"], |
| ... | ... | @@ -15,7 +17,7 @@ Page({ |
| 15 | 17 | * Lifecycle function--Called when page load |
| 16 | 18 | */ |
| 17 | 19 | onLoad: function (options) { |
| 18 | - | |
| 20 | + this.getInfoList() | |
| 19 | 21 | }, |
| 20 | 22 | |
| 21 | 23 | /** |
| ... | ... | @@ -25,6 +27,28 @@ Page({ |
| 25 | 27 | |
| 26 | 28 | }, |
| 27 | 29 | |
| 30 | + getInfoList: function () { | |
| 31 | + var that = this | |
| 32 | + this.Authorization = getApp().globalData.Authorization; | |
| 33 | + wx.request({ | |
| 34 | + url: baseUrl + "payroll/v1/settlement-tax/reduction-tax", | |
| 35 | + header: { | |
| 36 | + 'Authorization': this.Authorization | |
| 37 | + }, | |
| 38 | + data: { | |
| 39 | + "years": that.data.year, | |
| 40 | + }, | |
| 41 | + success: function (result) { | |
| 42 | + console.log("infoList", result) | |
| 43 | + if (result.statusCode == 200) { | |
| 44 | + that.setData({ | |
| 45 | + infoList: result.data.items | |
| 46 | + }) | |
| 47 | + } | |
| 48 | + }, | |
| 49 | + }) | |
| 50 | + }, | |
| 51 | + | |
| 28 | 52 | /** |
| 29 | 53 | * Lifecycle function--Called when page show |
| 30 | 54 | */ | ... | ... |
| 1 | 1 | // pages/main/finalpay/donationDetail/donationDetail.js |
| 2 | +var app = getApp(); | |
| 3 | +var baseUrl = app.globalData.baseUrl; | |
| 2 | 4 | Page({ |
| 3 | 5 | |
| 4 | 6 | /** |
| 5 | 7 | * Page initial data |
| 6 | 8 | */ |
| 7 | 9 | data: { |
| 10 | + year: "2019", | |
| 8 | 11 | infoList:[{}], |
| 9 | 12 | deductPick:["30%","100%"], |
| 10 | 13 | }, |
| ... | ... | @@ -13,7 +16,7 @@ Page({ |
| 13 | 16 | * Lifecycle function--Called when page load |
| 14 | 17 | */ |
| 15 | 18 | onLoad: function (options) { |
| 16 | - | |
| 19 | + this.getInfoList() | |
| 17 | 20 | }, |
| 18 | 21 | |
| 19 | 22 | /** |
| ... | ... | @@ -23,6 +26,29 @@ Page({ |
| 23 | 26 | |
| 24 | 27 | }, |
| 25 | 28 | |
| 29 | + getInfoList: function () { | |
| 30 | + var that = this | |
| 31 | + this.Authorization = getApp().globalData.Authorization; | |
| 32 | + wx.request({ | |
| 33 | + url: baseUrl + "payroll/v1/settlement-tax/donation-deduction", | |
| 34 | + header: { | |
| 35 | + 'Authorization': this.Authorization | |
| 36 | + }, | |
| 37 | + data: { | |
| 38 | + "years": that.data.year, | |
| 39 | + }, | |
| 40 | + success: function (result) { | |
| 41 | + console.log("infoList", result) | |
| 42 | + if (result.statusCode == 200) { | |
| 43 | + that.setData({ | |
| 44 | + infoList: result.data.items | |
| 45 | + }) | |
| 46 | + } | |
| 47 | + }, | |
| 48 | + }) | |
| 49 | + }, | |
| 50 | + | |
| 51 | + | |
| 26 | 52 | /** |
| 27 | 53 | * Lifecycle function--Called when page show |
| 28 | 54 | */ | ... | ... |
| 1 | - | |
| 2 | -<view > | |
| 1 | +<view> | |
| 3 | 2 | <view style="background:#fff;padding:0 30rpx;"> |
| 4 | 3 | <text class="text_gray7_34">准予扣除的捐赠额合计</text> |
| 5 | 4 | <text class="text_black3_34 float_right">{{300090}}</text> |
| 6 | 5 | </view> |
| 7 | 6 | |
| 8 | 7 | <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx"> |
| 9 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx;display: flex;"> | |
| 8 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx;display: flex;"> | |
| 10 | 9 | <view style="font-size: 32rpx;color: #777777;text-align: center;width:320rpx;display:flex;align-items: center;">受赠单位纳税人识别号(统一社会信用代码)</view> |
| 11 | 10 | <input style='text-align:right;color:#000;font-size: 30rpx;height:104rpx;width:366rpx' placeholder='请输入' name='name' maxlength="20" bindblur="" value="{{}}"></input> |
| 12 | 11 | </view> |
| 13 | 12 | <view class="divide_line_30"></view> |
| 14 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 13 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 14 | + <text class='red_star_right_10'>*</text> | |
| 15 | 15 | <text class="text_gray7_34">受赠单位名称</text> |
| 16 | 16 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="" value="{{}}"></input> |
| 17 | 17 | </view> |
| 18 | 18 | <view class="divide_line_30"></view> |
| 19 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 19 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 20 | 20 | <text class="text_gray7_34">报捐赠凭证号</text> |
| 21 | 21 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="" value="{{}}"></input> |
| 22 | 22 | </view> |
| 23 | 23 | <view class="divide_line_30"></view> |
| 24 | 24 | <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> |
| 25 | + <text class='red_star_right_10'>*</text> | |
| 25 | 26 | <text class="text_gray7_34">捐赠年度</text> |
| 26 | 27 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="" value="{{}}"></input> |
| 27 | 28 | </view> |
| 28 | 29 | <view class="divide_line_30"></view> |
| 29 | 30 | <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> |
| 31 | + <text class='red_star_right_10'>*</text> | |
| 30 | 32 | <text class="text_gray7_34">捐赠金额</text> |
| 31 | 33 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> |
| 32 | 34 | </view> |
| 33 | 35 | <view class="divide_line_30"></view> |
| 34 | 36 | <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="" range="{{deductPick}}"> |
| 37 | + <text class='red_star_right_10'>*</text> | |
| 35 | 38 | <text class="text_gray7_34">扣除比例</text> |
| 36 | 39 | <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> |
| 37 | 40 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请选择' name='' value="{{}}"></input> | ... | ... |
| 1 | - | |
| 1 | +var app = getApp(); | |
| 2 | +var baseUrl = app.globalData.baseUrl; | |
| 2 | 3 | Page({ |
| 3 | 4 | |
| 4 | 5 | /** |
| 5 | 6 | * Page initial data |
| 6 | 7 | */ |
| 7 | 8 | data: { |
| 8 | - infoList:[{}], | |
| 9 | + year: "2019", | |
| 10 | + show_addview: true, | |
| 11 | + infoList: [{}], | |
| 9 | 12 | project: ["正常工资薪金", "劳务报酬", "稿酬", "特许经营权使用费"], |
| 10 | - deductcontent: ["高级专家延长离退休期间工薪免征个人所得税", "解除劳动合同当地工资3倍以内免税", "符合条件的津补贴免征个人所得税", "生育津贴和生育医疗费免税", "工伤保险免税", "符合条件的外交人员免征个人所得税", "外籍个人出差补贴免税", "外籍个人探亲费、语言训练费、子女教育费免税", "外籍个人生活费用免税", "符合条件的外籍来华专家工资薪金所得免征个人所得税","薪金所得免征个人所得数", "横琴、香港、澳门居民免税", "平潭台湾居民免税","安家费、退职费、退休工资、离休工资、离休生活补助费免税"], | |
| 13 | + deductcontent: ["高级专家延长离退休期间工薪免征个人所得税", "解除劳动合同当地工资3倍以内免税", "符合条件的津补贴免征个人所得税", "生育津贴和生育医疗费免税", "工伤保险免税", "符合条件的外交人员免征个人所得税", "外籍个人出差补贴免税", "外籍个人探亲费、语言训练费、子女教育费免税", "外籍个人生活费用免税", "符合条件的外籍来华专家工资薪金所得免征个人所得税", "薪金所得免征个人所得数", "横琴、香港、澳门居民免税", "平潭台湾居民免税", "安家费、退职费、退休工资、离休工资、离休生活补助费免税"], | |
| 11 | 14 | deductproperty: ["其他"], |
| 15 | + income_item: "", | |
| 16 | + reduction_item: "", | |
| 17 | + reduction_nature: "", | |
| 18 | + exempt_income: "", | |
| 12 | 19 | }, |
| 13 | 20 | |
| 14 | 21 | /** |
| 15 | 22 | * Lifecycle function--Called when page load |
| 16 | 23 | */ |
| 17 | - onLoad: function (options) { | |
| 18 | - | |
| 24 | + onLoad: function(options) { | |
| 25 | + this.getInfoList() | |
| 19 | 26 | }, |
| 20 | 27 | |
| 21 | 28 | /** |
| 22 | 29 | * Lifecycle function--Called when page is initially rendered |
| 23 | 30 | */ |
| 24 | - onReady: function () { | |
| 31 | + onReady: function() { | |
| 32 | + | |
| 33 | + }, | |
| 25 | 34 | |
| 35 | + getInfoList: function() { | |
| 36 | + var that = this | |
| 37 | + this.Authorization = getApp().globalData.Authorization; | |
| 38 | + wx.request({ | |
| 39 | + url: baseUrl + "payroll/v1/settlement-tax/exempt-income", | |
| 40 | + header: { | |
| 41 | + 'Authorization': this.Authorization | |
| 42 | + }, | |
| 43 | + data: { | |
| 44 | + "years": that.data.year, | |
| 45 | + }, | |
| 46 | + success: function(result) { | |
| 47 | + console.log("infoList", result) | |
| 48 | + if (result.statusCode == 200) { | |
| 49 | + that.setData({ | |
| 50 | + show_addview: true, | |
| 51 | + infoList: result.data.items | |
| 52 | + }) | |
| 53 | + } | |
| 54 | + }, | |
| 55 | + }) | |
| 26 | 56 | }, |
| 27 | 57 | |
| 28 | 58 | /** |
| 29 | 59 | * Lifecycle function--Called when page show |
| 30 | 60 | */ |
| 31 | - onShow: function () { | |
| 61 | + onShow: function() { | |
| 32 | 62 | |
| 33 | 63 | }, |
| 34 | 64 | |
| 35 | -// 所得项目 | |
| 36 | - bindProjectChange:function(e){}, | |
| 37 | - | |
| 38 | -// 减免事项名称 | |
| 39 | - bindDeductContent: function (e) { }, | |
| 65 | + // 所得项目 | |
| 66 | + bindProjectChange: function(e) { | |
| 67 | + console.log('picker,携带值为', e.detail.value) | |
| 68 | + var list = this.data.infoList | |
| 69 | + list[list.length - 1].income_item = this.data.project[e.detail.value] | |
| 70 | + this.setData({ | |
| 71 | + infoList: list, | |
| 72 | + income_item: this.data.project[e.detail.value] | |
| 73 | + }) | |
| 74 | + }, | |
| 40 | 75 | |
| 41 | -// 减免性质名称 | |
| 42 | - bindDeductProperty: function (e) { }, | |
| 76 | + // 减免事项名称 | |
| 77 | + bindDeductContent: function(e) { | |
| 78 | + console.log('picker,携带值为', e.detail.value) | |
| 79 | + var list = this.data.infoList | |
| 80 | + list[this.data.infoList.length - 1].reduction_item = this.data.deductcontent[e.detail.value] | |
| 81 | + this.setData({ | |
| 82 | + infoList: list, | |
| 83 | + reduction_item: this.data.deductcontent[e.detail.value] | |
| 84 | + }) | |
| 85 | + }, | |
| 43 | 86 | |
| 44 | -// 免税收入金额 | |
| 45 | - bindIncome: function (e) { | |
| 87 | + // 减免性质名称 | |
| 88 | + bindDeductProperty: function(e) { | |
| 89 | + console.log('picker,携带值为', e.detail.value) | |
| 90 | + var list = this.data.infoList | |
| 91 | + list[list.length - 1].reduction_nature = this.data.deductproperty[e.detail.value] | |
| 92 | + this.setData({ | |
| 93 | + infoList: list, | |
| 94 | + reduction_nature: this.data.deductproperty[e.detail.value] | |
| 95 | + }) | |
| 96 | + }, | |
| 46 | 97 | |
| 98 | + // 免税收入金额 | |
| 99 | + bindIncome: function(e) { | |
| 100 | + console.log('输入框', e.detail.value) | |
| 101 | + var list = this.data.infoList | |
| 102 | + list[list.length - 1].exempt_income = e.detail.value | |
| 103 | + this.setData({ | |
| 104 | + infoList: list, | |
| 105 | + exempt_income: e.detail.value | |
| 106 | + }) | |
| 47 | 107 | }, |
| 48 | 108 | |
| 49 | - addItem:function(){//继续添加 | |
| 109 | + addItem: function() { //继续添加 | |
| 50 | 110 | var info = this.data.infoList; |
| 51 | 111 | console.log(info); |
| 52 | - info.push(this.data.infoList.length); | |
| 112 | + var info_item = { | |
| 113 | + "income_item": "", | |
| 114 | + "reduction_item": "", | |
| 115 | + "reduction_nature": "", | |
| 116 | + "exempt_income": "" | |
| 117 | + } | |
| 118 | + info.push(info_item); | |
| 53 | 119 | this.setData({ |
| 120 | + show_addview: false, | |
| 54 | 121 | infoList: info |
| 55 | 122 | }); |
| 56 | 123 | }, |
| 57 | 124 | |
| 58 | - goSubmit: function (e) { | |
| 59 | - console.log('form发生了submit事件,携带数据为:', e.detail.value) | |
| 125 | + goSubmit: function(e) { | |
| 126 | + var that = this | |
| 127 | + this.Authorization = getApp().globalData.Authorization; | |
| 128 | + wx.request({ | |
| 129 | + url: baseUrl + "payroll/v1/settlement-tax/exempt-income", | |
| 130 | + header: { | |
| 131 | + 'Authorization': this.Authorization | |
| 132 | + }, | |
| 133 | + method: "POST", | |
| 134 | + data: { | |
| 135 | + "years": that.data.year, | |
| 136 | + "income_item": that.data.income_item, | |
| 137 | + "reduction_item": that.data.reduction_item, | |
| 138 | + "reduction_nature": that.data.reduction_nature, | |
| 139 | + "exempt_income": parseFloat(that.data.exempt_income), | |
| 140 | + }, | |
| 141 | + success: function(result) { | |
| 142 | + console.log("infoList", result) | |
| 143 | + if (result.statusCode == 200) { | |
| 144 | + that.setData({ | |
| 145 | + show_addview: true, | |
| 146 | + infoList: result.data.items | |
| 147 | + }) | |
| 148 | + } | |
| 149 | + }, | |
| 150 | + }) | |
| 60 | 151 | }, |
| 61 | 152 | |
| 62 | 153 | /** |
| 63 | 154 | * Lifecycle function--Called when page hide |
| 64 | 155 | */ |
| 65 | - onHide: function () { | |
| 156 | + onHide: function() { | |
| 66 | 157 | |
| 67 | 158 | }, |
| 68 | 159 | |
| 69 | 160 | /** |
| 70 | 161 | * Lifecycle function--Called when page unload |
| 71 | 162 | */ |
| 72 | - onUnload: function () { | |
| 163 | + onUnload: function() { | |
| 73 | 164 | |
| 74 | 165 | }, |
| 75 | 166 | |
| 76 | 167 | /** |
| 77 | 168 | * Page event handler function--Called when user drop down |
| 78 | 169 | */ |
| 79 | - onPullDownRefresh: function () { | |
| 170 | + onPullDownRefresh: function() { | |
| 80 | 171 | |
| 81 | 172 | }, |
| 82 | 173 | |
| 83 | 174 | /** |
| 84 | 175 | * Called when page reach bottom |
| 85 | 176 | */ |
| 86 | - onReachBottom: function () { | |
| 177 | + onReachBottom: function() { | |
| 87 | 178 | |
| 88 | 179 | }, |
| 89 | 180 | |
| 90 | 181 | /** |
| 91 | 182 | * Called when user click on the top right corner to share |
| 92 | 183 | */ |
| 93 | - onShareAppMessage: function () { | |
| 184 | + onShareAppMessage: function() { | |
| 94 | 185 | |
| 95 | 186 | } |
| 96 | 187 | }) |
| \ No newline at end of file | ... | ... |
| 1 | -<view > | |
| 1 | +<view> | |
| 2 | 2 | <view style="background:#fff;padding:0 30rpx;"> |
| 3 | 3 | <text class="text_gray7_34">免税收入合计</text> |
| 4 | 4 | <text class="text_black3_34 float_right">{{3000}}</text> |
| 5 | 5 | </view> |
| 6 | 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> | |
| 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='请输入' value="{{item.income_item}}"></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='reduction_item' value="{{item.reduction_item}}"></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='reduction_nature' value="{{item.reduction_nature}}"></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="{{item.exempt_income}}"></input> | |
| 30 | 29 | </view> |
| 30 | + </view> | |
| 31 | 31 | |
| 32 | - <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem"> | |
| 32 | + <view wx:if="{{show_addview}}" style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem"> | |
| 33 | 33 | <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> |
| 34 | 34 | <text style="font-size:28rpx;color:#4986fe">继续添加</text> |
| 35 | 35 | </view> |
| 36 | 36 | <view class="btn_bottom" bindtap="goSubmit"> |
| 37 | - <button class="btn_bottom" >保存</button> | |
| 37 | + <button class="btn_bottom">保存</button> | |
| 38 | 38 | </view> |
| 39 | 39 | </view> |
| \ No newline at end of file | ... | ... |
| 1 | 1 | // pages/main/finalpay/otherDeductDetail/endowmentInsurDetail.js |
| 2 | +var app = getApp(); | |
| 3 | +var baseUrl = app.globalData.baseUrl; | |
| 2 | 4 | Page({ |
| 3 | 5 | |
| 4 | 6 | /** |
| 5 | 7 | * Page initial data |
| 6 | 8 | */ |
| 7 | 9 | data: { |
| 10 | + year: "2019", | |
| 8 | 11 | infoList: [{}], |
| 9 | 12 | }, |
| 10 | 13 | |
| ... | ... | @@ -12,7 +15,7 @@ Page({ |
| 12 | 15 | * Lifecycle function--Called when page load |
| 13 | 16 | */ |
| 14 | 17 | onLoad: function (options) { |
| 15 | - | |
| 18 | + this.getInfoList() | |
| 16 | 19 | }, |
| 17 | 20 | |
| 18 | 21 | /** |
| ... | ... | @@ -22,6 +25,28 @@ Page({ |
| 22 | 25 | |
| 23 | 26 | }, |
| 24 | 27 | |
| 28 | + getInfoList: function () { | |
| 29 | + var that = this | |
| 30 | + this.Authorization = getApp().globalData.Authorization; | |
| 31 | + wx.request({ | |
| 32 | + url: baseUrl + "payroll/v1/settlement-tax/tax-extension", | |
| 33 | + header: { | |
| 34 | + 'Authorization': this.Authorization | |
| 35 | + }, | |
| 36 | + data: { | |
| 37 | + "years": that.data.year, | |
| 38 | + }, | |
| 39 | + success: function (result) { | |
| 40 | + console.log("infoList", result) | |
| 41 | + if (result.statusCode == 200) { | |
| 42 | + that.setData({ | |
| 43 | + infoList: result.data.items | |
| 44 | + }) | |
| 45 | + } | |
| 46 | + }, | |
| 47 | + }) | |
| 48 | + }, | |
| 49 | + | |
| 25 | 50 | /** |
| 26 | 51 | * Lifecycle function--Called when page show |
| 27 | 52 | */ | ... | ... |
| 1 | 1 | <!--pages/main/finalpay/otherDeductDetail/endowmentInsurDetail.wxml--> |
| 2 | -<view > | |
| 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">{{3000}}</text> |
| 6 | 6 | </view> |
| 7 | 7 | |
| 8 | - <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx"> | |
| 9 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 10 | - <text class="text_gray7_34">税延养老账号编号</text> | |
| 11 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="bindIncome" value="{{}}"></input> | |
| 12 | - </view> | |
| 13 | - <view class="divide_line_30"></view> | |
| 14 | - <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="date" bindchange="bindDeductContent" > | |
| 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="date" bindchange="bindDeductContent" > | |
| 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' bindblur="bindIncome" value="{{}}"></input> | |
| 29 | - </view> | |
| 30 | - <view class="divide_line_30"></view> | |
| 31 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 32 | - <text class="text_gray7_34">年度保费</text> | |
| 33 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 34 | - </view> | |
| 35 | - <view class="divide_line_30"></view> | |
| 36 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 37 | - <text class="text_gray7_34">月度保费</text> | |
| 38 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 39 | - </view> | |
| 40 | - <view class="divide_line_30"></view> | |
| 41 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 42 | - <text class="text_gray7_34">本年扣除金额</text> | |
| 43 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 44 | - </view> | |
| 8 | + <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx"> | |
| 9 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 10 | + <text class='red_star_right_10'>*</text> | |
| 11 | + <text class="text_gray7_34">税延养老账号编号</text> | |
| 12 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="bindIncome" value="{{}}"></input> | |
| 45 | 13 | </view> |
| 14 | + <view class="divide_line_30"></view> | |
| 15 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="date" bindchange="bindDeductContent"> | |
| 16 | + <text class='red_star_right_10'>*</text> | |
| 17 | + <text class="text_gray7_34">申报扣除期起</text> | |
| 18 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 19 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请选择' name='' value="{{}}"></input> | |
| 20 | + </picker> | |
| 21 | + <view class="divide_line_30"></view> | |
| 22 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="date" bindchange="bindDeductContent"> | |
| 23 | + <text class='red_star_right_10'>*</text> | |
| 24 | + <text class="text_gray7_34">申报扣除期止</text> | |
| 25 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 26 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请选择' name='' value="{{}}"></input> | |
| 27 | + </picker> | |
| 28 | + <view class="divide_line_30"></view> | |
| 29 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 30 | + <text class='red_star_right_10'>*</text> | |
| 31 | + <text class="text_gray7_34">报税校验码</text> | |
| 32 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="bindIncome" value="{{}}"></input> | |
| 33 | + </view> | |
| 34 | + <view class="divide_line_30"></view> | |
| 35 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 36 | + <text class="text_gray7_34">年度保费</text> | |
| 37 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 38 | + </view> | |
| 39 | + <view class="divide_line_30"></view> | |
| 40 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 41 | + <text class="text_gray7_34">月度保费</text> | |
| 42 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 43 | + </view> | |
| 44 | + <view class="divide_line_30"></view> | |
| 45 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 46 | + <text class='red_star_right_10'>*</text> | |
| 47 | + <text class="text_gray7_34">本年扣除金额</text> | |
| 48 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 49 | + </view> | |
| 50 | + </view> | |
| 46 | 51 | |
| 47 | 52 | <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem"> |
| 48 | 53 | <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> |
| 49 | 54 | <text style="font-size:28rpx;color:#4986fe">继续添加</text> |
| 50 | 55 | </view> |
| 51 | 56 | <view class="btn_bottom" bindtap="goSubmit"> |
| 52 | - <button class="btn_bottom" >保存</button> | |
| 57 | + <button class="btn_bottom">保存</button> | |
| 53 | 58 | </view> |
| 54 | 59 | </view> |
| \ No newline at end of file | ... | ... |
| 1 | 1 | /* pages/main/finalpay/otherDeductDetail/endowmentInsurDetail.wxss */ |
| 2 | + | |
| 2 | 3 | page { |
| 3 | 4 | background-color: #f5f5f5; |
| 4 | 5 | } |
| 5 | 6 | |
| 6 | 7 | .text_gray7_34 { |
| 7 | - font-family:PingFangSC-Regular,PingFang SC; | |
| 8 | + font-family: PingFangSC-Regular, PingFang SC; | |
| 8 | 9 | font-size: 34rpx; |
| 9 | - color: #777777; | |
| 10 | + color: #777; | |
| 10 | 11 | text-align: center; |
| 11 | 12 | line-height: 104rpx; |
| 12 | 13 | } |
| 13 | 14 | |
| 14 | 15 | .text_black3_34 { |
| 15 | - font-family:PingFangSC-Regular,PingFang SC; | |
| 16 | + font-family: PingFangSC-Regular, PingFang SC; | |
| 16 | 17 | font-size: 34rpx; |
| 17 | - color: #333333; | |
| 18 | + color: #333; | |
| 18 | 19 | text-align: center; |
| 19 | 20 | line-height: 104rpx; |
| 20 | 21 | } |
| ... | ... | @@ -32,5 +33,13 @@ page { |
| 32 | 33 | .arrow_wrap { |
| 33 | 34 | width: 60rpx; |
| 34 | 35 | height: 60rpx; |
| 35 | - margin-top: 20rpx | |
| 36 | -} | |
| \ No newline at end of file | ||
| 36 | + margin-top: 20rpx; | |
| 37 | +} | |
| 38 | + | |
| 39 | +.red_star_right_10 { | |
| 40 | + color: red; | |
| 41 | + font-size: 30rpx; | |
| 42 | + line-height: 104rpx; | |
| 43 | + float: left; | |
| 44 | + margin-right: 10rpx; | |
| 45 | +} | ... | ... |
| 1 | 1 | // pages/main/finalpay/otherDeductDetail/healthInsurDetail.js |
| 2 | +var app = getApp(); | |
| 3 | +var baseUrl = app.globalData.baseUrl; | |
| 2 | 4 | Page({ |
| 3 | 5 | |
| 4 | 6 | /** |
| 5 | 7 | * Page initial data |
| 6 | 8 | */ |
| 7 | 9 | data: { |
| 10 | + year: "2019", | |
| 8 | 11 | infoList: [{}], |
| 9 | 12 | }, |
| 10 | 13 | |
| ... | ... | @@ -12,7 +15,7 @@ Page({ |
| 12 | 15 | * Lifecycle function--Called when page load |
| 13 | 16 | */ |
| 14 | 17 | onLoad: function (options) { |
| 15 | - | |
| 18 | + this.getInfoList() | |
| 16 | 19 | }, |
| 17 | 20 | |
| 18 | 21 | /** |
| ... | ... | @@ -22,6 +25,29 @@ Page({ |
| 22 | 25 | |
| 23 | 26 | }, |
| 24 | 27 | |
| 28 | + getInfoList: function () { | |
| 29 | + var that = this | |
| 30 | + this.Authorization = getApp().globalData.Authorization; | |
| 31 | + wx.request({ | |
| 32 | + url: baseUrl + "payroll/v1/settlement-tax/commercial-insurance-tax", | |
| 33 | + header: { | |
| 34 | + 'Authorization': this.Authorization | |
| 35 | + }, | |
| 36 | + data: { | |
| 37 | + "years": that.data.year, | |
| 38 | + }, | |
| 39 | + success: function (result) { | |
| 40 | + console.log("infoList", result) | |
| 41 | + if (result.statusCode == 200) { | |
| 42 | + that.setData({ | |
| 43 | + infoList: result.data.items | |
| 44 | + }) | |
| 45 | + } | |
| 46 | + }, | |
| 47 | + }) | |
| 48 | + }, | |
| 49 | + | |
| 50 | + | |
| 25 | 51 | /** |
| 26 | 52 | * Lifecycle function--Called when page show |
| 27 | 53 | */ | ... | ... |
| 1 | -<view > | |
| 1 | +<view> | |
| 2 | 2 | <view style="background:#fff;padding:0 30rpx;"> |
| 3 | 3 | <text class="text_gray7_34">商业健康保险合计</text> |
| 4 | 4 | <text class="text_black3_34 float_right">{{3000}}</text> |
| 5 | 5 | </view> |
| 6 | 6 | |
| 7 | - <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx"> | |
| 8 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 9 | - <text class="text_gray7_34">税优识别码</text> | |
| 10 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="bindIncome" value="{{}}"></input> | |
| 11 | - </view> | |
| 12 | - <view class="divide_line_30"></view> | |
| 13 | - <view class="divide_line_30"></view> | |
| 14 | - <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="date" bindchange="bindDeductContent" > | |
| 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 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 21 | - <text class="text_gray7_34">年度保费</text> | |
| 22 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 23 | - </view> | |
| 24 | - <view class="divide_line_30"></view> | |
| 25 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 26 | - <text class="text_gray7_34">月度保费</text> | |
| 27 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 28 | - </view> | |
| 29 | - <view class="divide_line_30"></view> | |
| 30 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 31 | - <text class="text_gray7_34">本年扣除金额</text> | |
| 32 | - <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 33 | - </view> | |
| 7 | + <view wx:for="{{infoList}}" style="background:#fff;margin-top:20rpx"> | |
| 8 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 9 | + <text class='red_star_right_10'>*</text> | |
| 10 | + <text class="text_gray7_34">税优识别码</text> | |
| 11 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' bindblur="bindIncome" value="{{}}"></input> | |
| 34 | 12 | </view> |
| 13 | + <view class="divide_line_30"></view> | |
| 14 | + <view class="divide_line_30"></view> | |
| 15 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="date" bindchange="bindDeductContent"> | |
| 16 | + <text class='red_star_right_10'>*</text> | |
| 17 | + <text class="text_gray7_34">保单生效日期</text> | |
| 18 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 19 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请选择' name='' value="{{}}"></input> | |
| 20 | + </picker> | |
| 21 | + <view class="divide_line_30"></view> | |
| 22 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 23 | + <text class="text_gray7_34">年度保费</text> | |
| 24 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 25 | + </view> | |
| 26 | + <view class="divide_line_30"></view> | |
| 27 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 28 | + <text class="text_gray7_34">月度保费</text> | |
| 29 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 30 | + </view> | |
| 31 | + <view class="divide_line_30"></view> | |
| 32 | + <view style="height:104rpx;padding:0 30rpx;background-color:#fff;margin-bottom:1rpx"> | |
| 33 | + <text class='red_star_right_10'>*</text> | |
| 34 | + <text class="text_gray7_34">本年扣除金额</text> | |
| 35 | + <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='name' type="digit" bindblur="bindIncome" value="{{}}"></input> | |
| 36 | + </view> | |
| 37 | + </view> | |
| 35 | 38 | |
| 36 | 39 | <view style="background:#fff;margin-top:20rpx;height:104rpx;display:flex;align-items:center;justify-content:center;margin-bottom:84rpx" bindtap="addItem"> |
| 37 | 40 | <image style="width:28rpx;height:28rpx;margin-right:16rpx" src="/images/add_extra.png"></image> |
| 38 | 41 | <text style="font-size:28rpx;color:#4986fe">继续添加</text> |
| 39 | 42 | </view> |
| 40 | 43 | <view class="btn_bottom" bindtap="goSubmit"> |
| 41 | - <button class="btn_bottom" >保存</button> | |
| 44 | + <button class="btn_bottom">保存</button> | |
| 42 | 45 | </view> |
| 43 | 46 | </view> |
| \ No newline at end of file | ... | ... |
| 1 | 1 | /* pages/main/finalpay/otherDeductDetail/healthInsurDetail.wxss */ |
| 2 | + | |
| 2 | 3 | page { |
| 3 | 4 | background-color: #f5f5f5; |
| 4 | 5 | } |
| 5 | 6 | |
| 6 | 7 | .text_gray7_34 { |
| 7 | - font-family:PingFangSC-Regular,PingFang SC; | |
| 8 | + font-family: PingFangSC-Regular, PingFang SC; | |
| 8 | 9 | font-size: 34rpx; |
| 9 | - color: #777777; | |
| 10 | + color: #777; | |
| 10 | 11 | text-align: center; |
| 11 | 12 | line-height: 104rpx; |
| 12 | 13 | } |
| 13 | 14 | |
| 14 | 15 | .text_black3_34 { |
| 15 | - font-family:PingFangSC-Regular,PingFang SC; | |
| 16 | + font-family: PingFangSC-Regular, PingFang SC; | |
| 16 | 17 | font-size: 34rpx; |
| 17 | - color: #333333; | |
| 18 | + color: #333; | |
| 18 | 19 | text-align: center; |
| 19 | 20 | line-height: 104rpx; |
| 20 | 21 | } |
| ... | ... | @@ -32,5 +33,13 @@ page { |
| 32 | 33 | .arrow_wrap { |
| 33 | 34 | width: 60rpx; |
| 34 | 35 | height: 60rpx; |
| 35 | - margin-top: 20rpx | |
| 36 | -} | |
| \ No newline at end of file | ||
| 36 | + margin-top: 20rpx; | |
| 37 | +} | |
| 38 | + | |
| 39 | +.red_star_right_10 { | |
| 40 | + color: red; | |
| 41 | + font-size: 30rpx; | |
| 42 | + line-height: 104rpx; | |
| 43 | + float: left; | |
| 44 | + margin-right: 10rpx; | |
| 45 | +} | ... | ... |
请
注册
或
登录
后发表评论