提交 e38302ae386ccd49ba1caa77e11790a494084736
Merge branch '机器人dev' into 天津中天
# Conflicts: # app.js # pages/main/advancepayment/adPayHome.js # pages/main/guide/guide.js # pages/main/guide/guide.wxml
正在显示
10 个修改的文件
包含
54 行增加
和
62 行删除
images/close02.png
0 → 100644
2.1 KB
... | ... | @@ -64,7 +64,7 @@ Page({ |
64 | 64 | app.globalData.tenant_id = tenant.id; |
65 | 65 | app.globalData.userInfo = user; |
66 | 66 | app.globalData.wx_open_id = user.wx_open_id; |
67 | - | |
67 | + app.globalData.real_auth_status = res.data.user.real_auth_status; | |
68 | 68 | app.configOssUrl() |
69 | 69 | wx.reLaunch({ |
70 | 70 | url: '../main/guide/guide' | ... | ... |
... | ... | @@ -125,6 +125,7 @@ Page({ |
125 | 125 | var tenant = res.data.tenant; |
126 | 126 | app.globalData.tenant_id = tenant.id; |
127 | 127 | app.globalData.userInfo = user; |
128 | + app.globalData.real_auth_status = res.data.user.real_auth_status; | |
128 | 129 | app.globalData.wx_open_id = user.wx_open_id; |
129 | 130 | app.configOssUrl() |
130 | 131 | wx.reLaunch({ | ... | ... |
... | ... | @@ -111,6 +111,6 @@ |
111 | 111 | |
112 | 112 | </view> |
113 | 113 | <view wx:if="{{hascompleted&&additionlist.length<1}}" style='background:#fff;'> |
114 | - <image style='width:55%;height:254rpx;margin:400rpx 166rpx 0 166rpx;' src='/images/nodeclare_img.png'></image> | |
114 | + <image style='width:55%;height:254rpx;margin:400rpx 166rpx 0 166rpx;' src='/images/noreduce_img.png'></image> | |
115 | 115 | </view> |
116 | 116 | </view> |
\ No newline at end of file | ... | ... |
... | ... | @@ -114,8 +114,10 @@ Page({ |
114 | 114 | handleSalaryData: function (items) { |
115 | 115 | for (var i = 0; i < items.length; ++i) { |
116 | 116 | var item = items[i] |
117 | + console.log("item---", item) | |
117 | 118 | item.payroll_date = format.formatTime_date(item.payroll_date) |
118 | 119 | item.count_date = format.formatDate_min(item.start_time) + '-' + format.formatDate_min(item.end_time) |
120 | + item.zeroShow = item.zero_display=='yes'?true:false//是否展示非0字段 | |
119 | 121 | item.detals = this.handleDetailsData(item) |
120 | 122 | item.isshow = false |
121 | 123 | } |
... | ... | @@ -198,7 +200,8 @@ Page({ |
198 | 200 | |
199 | 201 | let titles = JSON.parse(data['slip_titles']) |
200 | 202 | let detail = JSON.parse(data['detail']) |
201 | - let mapping_keys = data["mapping_keys"] ? data["mapping_keys"] : [] | |
203 | + let mapping_keys = data["mapping_keys"] ? data["mapping_keys"]:[] | |
204 | + console.log(titles,detail,mapping_keys) | |
202 | 205 | var details = [] |
203 | 206 | for (var i = 0; i < titles.length; ++i) { |
204 | 207 | var titleData = titles[i] |
... | ... | @@ -207,14 +210,15 @@ Page({ |
207 | 210 | if (!title) { |
208 | 211 | title = titleData['original_column'] |
209 | 212 | } |
210 | - if (!value) { | |
213 | + if (value != 0 && !value) { | |
211 | 214 | value = data[titleData['key']] |
212 | 215 | if (value != undefined) { |
213 | 216 | value += 'tax_rate' == titleData['key'] ? '%' : '' |
214 | 217 | } |
215 | 218 | } |
216 | - if (!title || !value) continue; | |
217 | - if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue; | |
219 | + if (!title) continue; | |
220 | + if (!title || (value != 0 && !value)) continue; | |
221 | + // if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue; | |
218 | 222 | details.push({ |
219 | 223 | title: title, |
220 | 224 | value: value | ... | ... |
... | ... | @@ -57,7 +57,7 @@ |
57 | 57 | <view class='divide_line_f5f5f5' style='margin:30rpx 0'></view> |
58 | 58 | </view> |
59 | 59 | <view wx:if="{{item.isshow}}" wx:for="{{item.detals}}" wx:for-item='detal'> |
60 | - <view> | |
60 | + <view hidden="{{!item.zeroShow&&(detal.value=='0'||detal.value==0)}}" > | |
61 | 61 | <text class='text_999_28'>{{detal.title}}</text> |
62 | 62 | <text class='text_999_28' style='color:#333;text-align:right;float: right'>{{detal.value}}</text> |
63 | 63 | </view> | ... | ... |
... | ... | @@ -35,12 +35,11 @@ Page({ |
35 | 35 | this.setData({ |
36 | 36 | onresume:true |
37 | 37 | }) |
38 | - this.checkUserInfo() | |
39 | - | |
38 | + this.checkUserInfo("") | |
40 | 39 | }, |
41 | 40 | |
42 | 41 | //判断该雇员是否有姓名和身份证号 |
43 | - checkUserInfo: function() { | |
42 | + checkUserInfo: function (skip_type) { | |
44 | 43 | var that = this; |
45 | 44 | Authorization = getApp().globalData.Authorization; |
46 | 45 | var real_auth_status = getApp().globalData.real_auth_status |
... | ... | @@ -55,47 +54,16 @@ Page({ |
55 | 54 | has_verify: true, |
56 | 55 | onresume: false, |
57 | 56 | }) |
58 | - that.taxconfirm(); | |
57 | + that.taxconfirm(skip_type); | |
59 | 58 | } else { |
60 | 59 | that.setData({ |
61 | 60 | has_verify: false |
62 | 61 | }) |
63 | 62 | } |
64 | - // wx.request({ | |
65 | - // url: baseUrl + 'socialwork/v1/employees/verify', | |
66 | - // data: {}, | |
67 | - // header: { | |
68 | - // 'content-type': 'application/json', | |
69 | - // "Authorization": Authorization | |
70 | - // }, | |
71 | - // success: function(res) { | |
72 | - // if (res.statusCode && res.statusCode >= 300) { | |
73 | - // wx.showToast({ | |
74 | - // title: res.data.message, | |
75 | - // icon: 'none', | |
76 | - // duration: 1000 | |
77 | - // }) | |
78 | - // } else { | |
79 | - // // that.setData({ | |
80 | - // // has_verify: false | |
81 | - // // }) | |
82 | - // if (!res.data.need_verify) { //不需要再实名认证 | |
83 | - // that.setData({ | |
84 | - // has_verify: true | |
85 | - // }) | |
86 | - // that.taxconfirm(); | |
87 | - // } else { | |
88 | - // that.setData({ | |
89 | - // has_verify: false | |
90 | - // }) | |
91 | - // } | |
92 | - // } | |
93 | - // } | |
94 | - // }) | |
95 | 63 | } |
96 | 64 | }, |
97 | 65 | |
98 | - taxconfirm: function() { | |
66 | + taxconfirm: function(skip_type) { | |
99 | 67 | var that = this; |
100 | 68 | Authorization = getApp().globalData.Authorization; |
101 | 69 | |
... | ... | @@ -113,6 +81,23 @@ Page({ |
113 | 81 | that.setData({ |
114 | 82 | isshow: false |
115 | 83 | }) |
84 | + if(skip_type=="1"){ | |
85 | + wx.navigateTo({ | |
86 | + url: '../taxperson/home', | |
87 | + }) | |
88 | + } else if (skip_type == "2") { | |
89 | + wx.navigateTo({ | |
90 | + url: '../addtionalreduce/home', | |
91 | + }) | |
92 | + } else if (skip_type == "3") { | |
93 | + wx.navigateTo({ | |
94 | + url: '../advancepayment/adPayHome', | |
95 | + }) | |
96 | + } else if (skip_type == "4") { | |
97 | + wx.navigateTo({ | |
98 | + url: '../finalpayment/home', | |
99 | + }) | |
100 | + } | |
116 | 101 | } |
117 | 102 | } |
118 | 103 | }) |
... | ... | @@ -135,7 +120,9 @@ Page({ |
135 | 120 | that.setData({ |
136 | 121 | isshow: false |
137 | 122 | }) |
138 | - that.gotaxPerson() | |
123 | + wx.navigateTo({ | |
124 | + url: '../taxperson/home', | |
125 | + }) | |
139 | 126 | } |
140 | 127 | } |
141 | 128 | }) |
... | ... | @@ -145,36 +132,28 @@ Page({ |
145 | 132 | * 自然人信息采集 |
146 | 133 | */ |
147 | 134 | gotaxPerson: function() { |
148 | - wx.navigateTo({ | |
149 | - url: '../taxperson/home', | |
150 | - }) | |
135 | + this.checkUserInfo("1") | |
151 | 136 | }, |
152 | 137 | |
153 | 138 | /** |
154 | 139 | * 专项附加扣除 |
155 | 140 | */ |
156 | 141 | goAdditionalDiduction: function() { |
157 | - wx.navigateTo({ | |
158 | - url: '../addtionalreduce/home', | |
159 | - }) | |
142 | + this.checkUserInfo("2") | |
160 | 143 | }, |
161 | 144 | |
162 | 145 | /** |
163 | 146 | * 预扣预缴 |
164 | 147 | */ |
165 | 148 | goAdvancePayment: function() { |
166 | - wx.navigateTo({ | |
167 | - url: '../advancepayment/adPayHome', | |
168 | - }) | |
149 | + this.checkUserInfo("3") | |
169 | 150 | }, |
170 | 151 | |
171 | 152 | /** |
172 | 153 | * 汇算清缴 |
173 | 154 | */ |
174 | 155 | goFinalPayment: function() { |
175 | - wx.navigateTo({ | |
176 | - url: '../finalpayment/home', | |
177 | - }) | |
156 | + this.checkUserInfo("4") | |
178 | 157 | }, |
179 | 158 | |
180 | 159 | gochat: function() { |
... | ... | @@ -226,6 +205,12 @@ Page({ |
226 | 205 | }) |
227 | 206 | }, |
228 | 207 | |
208 | + close02:function(){ | |
209 | + this.setData({ | |
210 | + has_verify: true | |
211 | + }) | |
212 | + }, | |
213 | + | |
229 | 214 | /** |
230 | 215 | * 生命周期函数--监听页面卸载 |
231 | 216 | */ | ... | ... |
1 | - | |
2 | - | |
3 | 1 | <!--pages/main/guide/guide.wxml--> |
4 | 2 | |
5 | 3 | <view class=''> |
... | ... | @@ -73,11 +71,12 @@ |
73 | 71 | </image> |
74 | 72 | <view style='position:absolute;top:660rpx;right:0;left:0;display:flex;flex-direction:column'> |
75 | 73 | <view class='btn_blue_radius' bindtap="go_verify_idcard"> |
76 | - <text style='font-size: 32rpx;color:#fff;text-align: center;line-height: 42px;' >立即认证</text> | |
74 | + <text style='font-size: 32rpx;color:#fff;text-align: center;line-height: 42px;'>立即认证</text> | |
77 | 75 | </view> |
78 | 76 | <text style='font-size:26rpx;color: #357aeb;margin-top:22rpx' bindtap='go_verify'>外籍人员信息认证</text> |
79 | 77 | </view> |
80 | 78 | </view> |
81 | 79 | |
82 | -</view> | |
83 | 80 | |
81 | + <image wx:if="{{!has_verify&&onresume}}" style='width:44rpx;height:44rpx;right:0;left:0;margin:auto;margin-top:60rpx;position:absolute;z-index:10;' src="/images/close02.png" bindtap='close02'></image> | |
82 | +</view> | |
\ No newline at end of file | ... | ... |
... | ... | @@ -104,6 +104,7 @@ Page({ |
104 | 104 | label: '纳税人类型', |
105 | 105 | bindtype: 'taxpayerType', |
106 | 106 | placeholder: '请选择纳税人类型', |
107 | + selected:"居民", | |
107 | 108 | values: ["居民", "非居民"], |
108 | 109 | onChange: 'onPickerSelect' |
109 | 110 | }, |
... | ... | @@ -113,6 +114,7 @@ Page({ |
113 | 114 | bindtype: 'forigner', |
114 | 115 | placeholder: '请选择', |
115 | 116 | disabled: true, |
117 | + selected:"否", | |
116 | 118 | values: ["否", "是"], |
117 | 119 | onChange: 'onPickerSelect' |
118 | 120 | }, |
... | ... | @@ -752,7 +754,7 @@ Page({ |
752 | 754 | this.data.hasOtherCard = true |
753 | 755 | this.data.overseas = '是' |
754 | 756 | this.data.taxpayerTypeData.disabled = false |
755 | - this.data.taxpayerTypeData.selected = '' | |
757 | + this.data.taxpayerTypeData.selected = '非居民' | |
756 | 758 | if ('居民身份证' == new_type || '中国护照' == new_type) { |
757 | 759 | this.data.overseas = '否' |
758 | 760 | this.data.countryData.selected = '中国' |
... | ... | @@ -1420,7 +1422,7 @@ Page({ |
1420 | 1422 | "other_name": that.data.hasOtherCard ? that.data.other_name : '', |
1421 | 1423 | "family_ties": '本人',//that.data.relativeData.selected, |
1422 | 1424 | "native": that.data.countryData.selected, |
1423 | - "taxpayer_type": that.data.taxpayerTypeData.selected == '居民' ? 'resident' :'non-resident', | |
1425 | + "taxpayer_type": that.data.taxpayerTypeData.selected == '非居民' ? 'non-resident' :'resident', | |
1424 | 1426 | "is_overseas_personnel": that.data.overseas, |
1425 | 1427 | 'birth_native': that.data.hasOtherCard ? that.data.birthCountryData.selected : '', |
1426 | 1428 | "id_card_type": that.data.cardtypeData.selected, //selected_code, | ... | ... |
请
注册
或
登录
后发表评论