提交 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,7 +64,7 @@ Page({ | ||
64 | app.globalData.tenant_id = tenant.id; | 64 | app.globalData.tenant_id = tenant.id; |
65 | app.globalData.userInfo = user; | 65 | app.globalData.userInfo = user; |
66 | app.globalData.wx_open_id = user.wx_open_id; | 66 | app.globalData.wx_open_id = user.wx_open_id; |
67 | - | 67 | + app.globalData.real_auth_status = res.data.user.real_auth_status; |
68 | app.configOssUrl() | 68 | app.configOssUrl() |
69 | wx.reLaunch({ | 69 | wx.reLaunch({ |
70 | url: '../main/guide/guide' | 70 | url: '../main/guide/guide' |
@@ -125,6 +125,7 @@ Page({ | @@ -125,6 +125,7 @@ Page({ | ||
125 | var tenant = res.data.tenant; | 125 | var tenant = res.data.tenant; |
126 | app.globalData.tenant_id = tenant.id; | 126 | app.globalData.tenant_id = tenant.id; |
127 | app.globalData.userInfo = user; | 127 | app.globalData.userInfo = user; |
128 | + app.globalData.real_auth_status = res.data.user.real_auth_status; | ||
128 | app.globalData.wx_open_id = user.wx_open_id; | 129 | app.globalData.wx_open_id = user.wx_open_id; |
129 | app.configOssUrl() | 130 | app.configOssUrl() |
130 | wx.reLaunch({ | 131 | wx.reLaunch({ |
@@ -111,6 +111,6 @@ | @@ -111,6 +111,6 @@ | ||
111 | 111 | ||
112 | </view> | 112 | </view> |
113 | <view wx:if="{{hascompleted&&additionlist.length<1}}" style='background:#fff;'> | 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 | </view> | 115 | </view> |
116 | </view> | 116 | </view> |
@@ -114,8 +114,10 @@ Page({ | @@ -114,8 +114,10 @@ Page({ | ||
114 | handleSalaryData: function (items) { | 114 | handleSalaryData: function (items) { |
115 | for (var i = 0; i < items.length; ++i) { | 115 | for (var i = 0; i < items.length; ++i) { |
116 | var item = items[i] | 116 | var item = items[i] |
117 | + console.log("item---", item) | ||
117 | item.payroll_date = format.formatTime_date(item.payroll_date) | 118 | item.payroll_date = format.formatTime_date(item.payroll_date) |
118 | item.count_date = format.formatDate_min(item.start_time) + '-' + format.formatDate_min(item.end_time) | 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 | item.detals = this.handleDetailsData(item) | 121 | item.detals = this.handleDetailsData(item) |
120 | item.isshow = false | 122 | item.isshow = false |
121 | } | 123 | } |
@@ -198,7 +200,8 @@ Page({ | @@ -198,7 +200,8 @@ Page({ | ||
198 | 200 | ||
199 | let titles = JSON.parse(data['slip_titles']) | 201 | let titles = JSON.parse(data['slip_titles']) |
200 | let detail = JSON.parse(data['detail']) | 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 | var details = [] | 205 | var details = [] |
203 | for (var i = 0; i < titles.length; ++i) { | 206 | for (var i = 0; i < titles.length; ++i) { |
204 | var titleData = titles[i] | 207 | var titleData = titles[i] |
@@ -207,14 +210,15 @@ Page({ | @@ -207,14 +210,15 @@ Page({ | ||
207 | if (!title) { | 210 | if (!title) { |
208 | title = titleData['original_column'] | 211 | title = titleData['original_column'] |
209 | } | 212 | } |
210 | - if (!value) { | 213 | + if (value != 0 && !value) { |
211 | value = data[titleData['key']] | 214 | value = data[titleData['key']] |
212 | if (value != undefined) { | 215 | if (value != undefined) { |
213 | value += 'tax_rate' == titleData['key'] ? '%' : '' | 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 | details.push({ | 222 | details.push({ |
219 | title: title, | 223 | title: title, |
220 | value: value | 224 | value: value |
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | <view class='divide_line_f5f5f5' style='margin:30rpx 0'></view> | 57 | <view class='divide_line_f5f5f5' style='margin:30rpx 0'></view> |
58 | </view> | 58 | </view> |
59 | <view wx:if="{{item.isshow}}" wx:for="{{item.detals}}" wx:for-item='detal'> | 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 | <text class='text_999_28'>{{detal.title}}</text> | 61 | <text class='text_999_28'>{{detal.title}}</text> |
62 | <text class='text_999_28' style='color:#333;text-align:right;float: right'>{{detal.value}}</text> | 62 | <text class='text_999_28' style='color:#333;text-align:right;float: right'>{{detal.value}}</text> |
63 | </view> | 63 | </view> |
@@ -35,12 +35,11 @@ Page({ | @@ -35,12 +35,11 @@ Page({ | ||
35 | this.setData({ | 35 | this.setData({ |
36 | onresume:true | 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 | var that = this; | 43 | var that = this; |
45 | Authorization = getApp().globalData.Authorization; | 44 | Authorization = getApp().globalData.Authorization; |
46 | var real_auth_status = getApp().globalData.real_auth_status | 45 | var real_auth_status = getApp().globalData.real_auth_status |
@@ -55,47 +54,16 @@ Page({ | @@ -55,47 +54,16 @@ Page({ | ||
55 | has_verify: true, | 54 | has_verify: true, |
56 | onresume: false, | 55 | onresume: false, |
57 | }) | 56 | }) |
58 | - that.taxconfirm(); | 57 | + that.taxconfirm(skip_type); |
59 | } else { | 58 | } else { |
60 | that.setData({ | 59 | that.setData({ |
61 | has_verify: false | 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 | var that = this; | 67 | var that = this; |
100 | Authorization = getApp().globalData.Authorization; | 68 | Authorization = getApp().globalData.Authorization; |
101 | 69 | ||
@@ -113,6 +81,23 @@ Page({ | @@ -113,6 +81,23 @@ Page({ | ||
113 | that.setData({ | 81 | that.setData({ |
114 | isshow: false | 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,7 +120,9 @@ Page({ | ||
135 | that.setData({ | 120 | that.setData({ |
136 | isshow: false | 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,36 +132,28 @@ Page({ | ||
145 | * 自然人信息采集 | 132 | * 自然人信息采集 |
146 | */ | 133 | */ |
147 | gotaxPerson: function() { | 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 | goAdditionalDiduction: function() { | 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 | goAdvancePayment: function() { | 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 | goFinalPayment: function() { | 155 | goFinalPayment: function() { |
175 | - wx.navigateTo({ | ||
176 | - url: '../finalpayment/home', | ||
177 | - }) | 156 | + this.checkUserInfo("4") |
178 | }, | 157 | }, |
179 | 158 | ||
180 | gochat: function() { | 159 | gochat: function() { |
@@ -226,6 +205,12 @@ Page({ | @@ -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 | <!--pages/main/guide/guide.wxml--> | 1 | <!--pages/main/guide/guide.wxml--> |
4 | 2 | ||
5 | <view class=''> | 3 | <view class=''> |
@@ -73,11 +71,12 @@ | @@ -73,11 +71,12 @@ | ||
73 | </image> | 71 | </image> |
74 | <view style='position:absolute;top:660rpx;right:0;left:0;display:flex;flex-direction:column'> | 72 | <view style='position:absolute;top:660rpx;right:0;left:0;display:flex;flex-direction:column'> |
75 | <view class='btn_blue_radius' bindtap="go_verify_idcard"> | 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 | </view> | 75 | </view> |
78 | <text style='font-size:26rpx;color: #357aeb;margin-top:22rpx' bindtap='go_verify'>外籍人员信息认证</text> | 76 | <text style='font-size:26rpx;color: #357aeb;margin-top:22rpx' bindtap='go_verify'>外籍人员信息认证</text> |
79 | </view> | 77 | </view> |
80 | </view> | 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> |
@@ -54,6 +54,7 @@ Page({ | @@ -54,6 +54,7 @@ Page({ | ||
54 | bindtype: 'forigner', | 54 | bindtype: 'forigner', |
55 | placeholder: '是否境外人员', | 55 | placeholder: '是否境外人员', |
56 | disabled: true, | 56 | disabled: true, |
57 | + selected:"否", | ||
57 | values: ["否", "是"], | 58 | values: ["否", "是"], |
58 | onChange: 'onPickerSelect' | 59 | onChange: 'onPickerSelect' |
59 | }, | 60 | }, |
@@ -104,6 +104,7 @@ Page({ | @@ -104,6 +104,7 @@ Page({ | ||
104 | label: '纳税人类型', | 104 | label: '纳税人类型', |
105 | bindtype: 'taxpayerType', | 105 | bindtype: 'taxpayerType', |
106 | placeholder: '请选择纳税人类型', | 106 | placeholder: '请选择纳税人类型', |
107 | + selected:"居民", | ||
107 | values: ["居民", "非居民"], | 108 | values: ["居民", "非居民"], |
108 | onChange: 'onPickerSelect' | 109 | onChange: 'onPickerSelect' |
109 | }, | 110 | }, |
@@ -113,6 +114,7 @@ Page({ | @@ -113,6 +114,7 @@ Page({ | ||
113 | bindtype: 'forigner', | 114 | bindtype: 'forigner', |
114 | placeholder: '请选择', | 115 | placeholder: '请选择', |
115 | disabled: true, | 116 | disabled: true, |
117 | + selected:"否", | ||
116 | values: ["否", "是"], | 118 | values: ["否", "是"], |
117 | onChange: 'onPickerSelect' | 119 | onChange: 'onPickerSelect' |
118 | }, | 120 | }, |
@@ -752,7 +754,7 @@ Page({ | @@ -752,7 +754,7 @@ Page({ | ||
752 | this.data.hasOtherCard = true | 754 | this.data.hasOtherCard = true |
753 | this.data.overseas = '是' | 755 | this.data.overseas = '是' |
754 | this.data.taxpayerTypeData.disabled = false | 756 | this.data.taxpayerTypeData.disabled = false |
755 | - this.data.taxpayerTypeData.selected = '' | 757 | + this.data.taxpayerTypeData.selected = '非居民' |
756 | if ('居民身份证' == new_type || '中国护照' == new_type) { | 758 | if ('居民身份证' == new_type || '中国护照' == new_type) { |
757 | this.data.overseas = '否' | 759 | this.data.overseas = '否' |
758 | this.data.countryData.selected = '中国' | 760 | this.data.countryData.selected = '中国' |
@@ -1420,7 +1422,7 @@ Page({ | @@ -1420,7 +1422,7 @@ Page({ | ||
1420 | "other_name": that.data.hasOtherCard ? that.data.other_name : '', | 1422 | "other_name": that.data.hasOtherCard ? that.data.other_name : '', |
1421 | "family_ties": '本人',//that.data.relativeData.selected, | 1423 | "family_ties": '本人',//that.data.relativeData.selected, |
1422 | "native": that.data.countryData.selected, | 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 | "is_overseas_personnel": that.data.overseas, | 1426 | "is_overseas_personnel": that.data.overseas, |
1425 | 'birth_native': that.data.hasOtherCard ? that.data.birthCountryData.selected : '', | 1427 | 'birth_native': that.data.hasOtherCard ? that.data.birthCountryData.selected : '', |
1426 | "id_card_type": that.data.cardtypeData.selected, //selected_code, | 1428 | "id_card_type": that.data.cardtypeData.selected, //selected_code, |
请
注册
或
登录
后发表评论