...
|
...
|
@@ -69,6 +69,7 @@ Page({ |
69
|
69
|
declare_status: result.data.declare_status,
|
70
|
70
|
refund_status: result.data.refund_status,
|
71
|
71
|
pay_status: result.data.pay_status,
|
|
72
|
+ declaring_unit: result.data.declaring_unit,
|
72
|
73
|
declaring_unit_status: result.data.declaring_unit_status,
|
73
|
74
|
new_refund_tax: Math.abs(result.data.refund_tax),
|
74
|
75
|
declare_end_date: format.getDateString(result.data.declare_end_time) ,
|
...
|
...
|
@@ -328,36 +329,42 @@ Page({ |
328
|
329
|
var text = ""
|
329
|
330
|
var text_status = ""
|
330
|
331
|
var text_title = "应补退税额"
|
331
|
|
- if (data.declare_status=='1'){//申报中
|
|
332
|
+ if (data.declare_status=='2'){//申报中
|
332
|
333
|
text = "请等候申报结果"
|
333
|
334
|
} else {//申报成功
|
334
|
|
- if (data.refund_tax > 0 || data.refund_tax == 0) {
|
335
|
|
- text_title = "应补税额"
|
336
|
|
- } else {
|
|
335
|
+ if (data.declare_result=='0') {//申报结果0:退税,1:补税,2:无需补退税
|
337
|
336
|
text_title = "应退税额"
|
|
337
|
+ if (data.refund_status == "1") {
|
|
338
|
+ text = "请确认是否申请退款?"
|
|
339
|
+ } else if (data.refund_status == '2') {
|
|
340
|
+ text = "申请退税中"
|
|
341
|
+ text_status = "退税中"
|
|
342
|
+ } else if (data.refund_status == '4') {
|
|
343
|
+ text = "退税失败,请确认您的银行卡信息是否正确?"
|
|
344
|
+ text_status = "退税失败"
|
|
345
|
+ } else if (data.refund_status == '5') {
|
|
346
|
+ text = "您已放弃退税"
|
|
347
|
+ text_status = "已放弃"
|
|
348
|
+ }
|
|
349
|
+ } else if (data.declare_result == '1'){//补税
|
|
350
|
+ text_title = "应补税额"
|
|
351
|
+ if (data.exempt == 'yes') {
|
|
352
|
+ text = "您已享受豁免"
|
|
353
|
+ text_status = "豁免"
|
|
354
|
+ } else if (data.pay_status == '1') {
|
|
355
|
+ text = "请等待企业为您代缴税款"
|
|
356
|
+ text_status = "待缴款"
|
|
357
|
+ } else if (data.pay_status == '2') {
|
|
358
|
+ text = "单位已为您代缴税款"
|
|
359
|
+ text_status = "已缴款"
|
|
360
|
+ }
|
338
|
361
|
}
|
339
|
362
|
|
340
|
|
- if (data.refund_status == "1") {
|
341
|
|
- text = "请确认是否申请退款?"
|
342
|
|
- } else if (data.refund_status == '2') {
|
343
|
|
- text = "申请退税中"
|
344
|
|
- text_status = "退税中"
|
345
|
|
- } else if (data.refund_status == '4') {
|
346
|
|
- text = "退税失败,请确认您的银行卡信息是否正确?"
|
347
|
|
- text_status = "退税失败"
|
348
|
|
- } else if (data.refund_status == '5') {
|
349
|
|
- text = "您已放弃退税"
|
350
|
|
- text_status = "已放弃"
|
351
|
|
- } else if (data.exempt == 'yes') {
|
352
|
|
- text = "您已享受豁免"
|
353
|
|
- text_status = "豁免"
|
354
|
|
- } else if (data.pay_status == '1') {
|
355
|
|
- text = "请等待企业为您代缴税款"
|
356
|
|
- text_status = "待缴款"
|
357
|
|
- } else if (data.pay_status == '2') {
|
358
|
|
- text = "单位已为您代缴税款"
|
359
|
|
- text_status = "已缴款"
|
360
|
|
- }
|
|
363
|
+ // if (data.refund_tax > 0 || data.refund_tax == 0) {
|
|
364
|
+ // text_title = "应补税额"
|
|
365
|
+ // } else {
|
|
366
|
+ // text_title = "应退税额"
|
|
367
|
+ // }
|
361
|
368
|
}
|
362
|
369
|
this.setData({
|
363
|
370
|
declare_text_extra:text,
|
...
|
...
|
|