正在显示
4 个修改的文件
包含
76 行增加
和
5 行删除
| ... | ... | @@ -10,7 +10,7 @@ Page({ |
| 10 | 10 | declare_status: "", //申报状态"0" //待申报 "1" //申报成功 “2” 申报中 |
| 11 | 11 | refund_status: "", //退税状态 "0" 无需退税; "1" 待退税;"2" 退税中"3" 退税成功;"4"退税失败;"5"放弃退税; |
| 12 | 12 | pay_status: "", //补税状态 "0" 豁免; "1" 待补税;"2" 补税成功 |
| 13 | - declaring_unit_status: "", //1:本单位申报,2:本单位其他申报,3:其他单位申报,4:待确认申报//用户自行申报 | |
| 13 | + declaring_unit_status: "", //1:本单位申报,2:本单位其他申报,3:其他单位申报,4:待确认申报//5用户自行申报 | |
| 14 | 14 | payinfo: {}, |
| 15 | 15 | unitInfo: [], |
| 16 | 16 | showUnit: false, | ... | ... |
| ... | ... | @@ -10,11 +10,14 @@ Page({ |
| 10 | 10 | * Page initial data |
| 11 | 11 | */ |
| 12 | 12 | data: { |
| 13 | + year:"2019", | |
| 13 | 14 | province: [], |
| 15 | + bankList:[], | |
| 14 | 16 | name: '', |
| 15 | 17 | bank: '', |
| 16 | 18 | bank_card_no: '', |
| 17 | 19 | bank_province: '', |
| 20 | + refundInfo:{}, | |
| 18 | 21 | show_modal: false |
| 19 | 22 | }, |
| 20 | 23 | |
| ... | ... | @@ -25,12 +28,64 @@ Page({ |
| 25 | 28 | this.initOSS() |
| 26 | 29 | var userinfo = app.globalData.userInfo |
| 27 | 30 | console.log("userinfo", userinfo) |
| 31 | + this.getRefundDetail() | |
| 28 | 32 | this.loadProvince() |
| 29 | 33 | this.setData({ |
| 30 | 34 | name: userinfo ? userinfo.name : "" |
| 31 | 35 | }) |
| 32 | 36 | }, |
| 33 | 37 | |
| 38 | + getbanklist: function () { | |
| 39 | + var that = this | |
| 40 | + var Authorization = app.globalData.Authorization; | |
| 41 | + wx.request({ | |
| 42 | + url: baseUrl + 'persontax/v1/bank-list', | |
| 43 | + method: "GET", | |
| 44 | + header: { | |
| 45 | + 'content-type': 'application/json', // 默认值 | |
| 46 | + "Authorization": Authorization | |
| 47 | + }, | |
| 48 | + success: function (res) { | |
| 49 | + console.log(res) | |
| 50 | + that.setData({ | |
| 51 | + bankList: res.data.items, | |
| 52 | + }) | |
| 53 | + console.log("bankInfo", that.data.bankList) | |
| 54 | + }, | |
| 55 | + fail(res) { | |
| 56 | + console.log(res) | |
| 57 | + }, | |
| 58 | + complete() { | |
| 59 | + wx.hideLoading() | |
| 60 | + } | |
| 61 | + }) | |
| 62 | + }, | |
| 63 | + | |
| 64 | + getRefundDetail: function () { //退税明细 | |
| 65 | + var that = this | |
| 66 | + this.Authorization = getApp().globalData.Authorization; | |
| 67 | + wx.request({ | |
| 68 | + url: baseUrl + "payroll/v1/settlement-tax/refund-detail", | |
| 69 | + header: { | |
| 70 | + 'Authorization': this.Authorization | |
| 71 | + }, | |
| 72 | + data: { | |
| 73 | + years: that.data.year, | |
| 74 | + }, | |
| 75 | + success: function (result) { | |
| 76 | + console.log("refundinfo", result.data) | |
| 77 | + if (result.statusCode == 200) { | |
| 78 | + that.setData({ | |
| 79 | + bank: result.data.item.bank, | |
| 80 | + bank_card_no: result.data.item.bank_card_no, | |
| 81 | + refundInfo: result.data.item | |
| 82 | + }) | |
| 83 | + } | |
| 84 | + }, | |
| 85 | + }) | |
| 86 | + }, | |
| 87 | + | |
| 88 | + | |
| 34 | 89 | loadProvince: function() { |
| 35 | 90 | province.init(this) |
| 36 | 91 | var provincelist = this.data.province | ... | ... |
| ... | ... | @@ -12,23 +12,33 @@ |
| 12 | 12 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='bank_card_no' value="{{bank_card_no}}" maxlength='19' type='number'></input> |
| 13 | 13 | </view> |
| 14 | 14 | <view class='divide_line_30'></view> |
| 15 | - <view style="height:104rpx;padding:0 30rpx;background-color:#fff"> | |
| 15 | + <!-- <view style="height:104rpx;padding:0 30rpx;background-color:#fff"> | |
| 16 | 16 | <text class="text_gray7_34" style="line-height:104rpx">开户银行名称</text> |
| 17 | 17 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='bank' value="{{bank}}"></input> |
| 18 | - </view> | |
| 18 | + </view> --> | |
| 19 | + <picker style="height:104rpx;padding-left:30rpx;background-color:#fff" mode="selector" bindchange="bindRegionChange" range="{{bankList}}" > | |
| 20 | + <text class="text_gray7_34">开户银行名称</text> | |
| 21 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 22 | + <view wx:if="{{bank.length>0}}" class="input_wrap rigion_choosed"> | |
| 23 | + {{bank}} | |
| 24 | + </view> | |
| 25 | + <view wx:else class="input_wrap rigion_notchoosed}}"> | |
| 26 | + 请选择开户银行 </view> | |
| 27 | + </picker> | |
| 19 | 28 | <view class='divide_line_30'></view> |
| 20 | 29 | <!-- <view style="height:104rpx;padding:0 30rpx;background-color:#fff"> |
| 21 | 30 | <text class="text_gray7_34" style="line-height:104rpx">开户银行省份</text> |
| 22 | 31 | <input class='input_wrap' style='text-align: right;color:#000;' placeholder='请输入' name='bank_card_province' value="{{bank_card_province}}"></input> |
| 23 | 32 | </view> --> |
| 24 | 33 | |
| 25 | - <picker style="height:104rpx;padding:0 30rpx;background-color:#fff" mode="selector" bindchange="bindRegionChange" range="{{province}}" > | |
| 34 | + <picker style="height:104rpx;padding-left: 30rpx;background-color:#fff" mode="selector" bindchange="bindRegionChange" range="{{province}}" > | |
| 26 | 35 | <text class="text_gray7_34">开户银行省份</text> |
| 36 | + <image class='arrow_wrap float_right' src='/images/arrow_right.png'></image> | |
| 27 | 37 | <view wx:if="{{bank_province.length>0}}" class="input_wrap rigion_choosed"> |
| 28 | 38 | {{bank_province}} |
| 29 | 39 | </view> |
| 30 | 40 | <view wx:else class="input_wrap rigion_notchoosed}}"> |
| 31 | - 请选择 </view> | |
| 41 | + 请选择开户银行省份 </view> | |
| 32 | 42 | </picker> |
| 33 | 43 | |
| 34 | 44 | <view class="btn_bottom"> | ... | ... |
请
注册
或
登录
后发表评论