阜外心血管项目前端

finance.js 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. mui.init({})
  2. var openid = helper.cookies.get("openid");
  3. Ajax();
  4. function Ajax() {
  5. // $(".openid").text("openid")
  6. //$(".order").remove();
  7. $.ajax({
  8. url: huayi.config.callcenter_url + 'WxLogin/GetFinc',
  9. data: {
  10. openid: openid, //微信openid,
  11. //openid: 'oXF5e1mWpX5DajW5_yjNLPKb8ThE',
  12. },
  13. async: true,
  14. dataType: 'json',
  15. type: 'get', //HTTP请求类型
  16. success: function(data) {
  17. var result=data.data;
  18. var path;
  19. if (result.F_CompanyLogo=="") {
  20. part="../img/headPhoto.png";
  21. } else{
  22. part=result.F_CompanyLogo;
  23. }
  24. $("#companyLogo").text(part); //客户头像
  25. $("#companyName").text(result.F_CompanyName); //客户名称
  26. $("#customerCode").text(result.F_CustomerCode); //公司编号
  27. if (result.F_MonthState=="") {
  28. $("#monthState").text("暂无"); //本月财务情况
  29. }else{
  30. $("#monthState").text(result.F_MonthState); //本月财务情况
  31. }
  32. if (result.F_AnnualIncome=="") {
  33. $("#annualIncome").text("暂无"); //本年收入
  34. }else{
  35. $("#annualIncome").text(result.F_AnnualIncome); //本年收入
  36. }
  37. if (result.F_AnnualProfit=="") {
  38. $("#asnnualProfit").text("暂无"); //本年利润
  39. }else{
  40. $("#asnnualProfit").text(result.F_AnnualProfit); //本年利润
  41. }
  42. if (result.F_AnnualCost=="") {
  43. $("#annualCost").text("暂无"); //本年费用
  44. }else{
  45. $("#annualCost").text(result.F_AnnualCost); //本年费用
  46. }
  47. if (result.F_QuarterlyCost=="") {
  48. $("#quarterlyCost").text("暂无"); //本季费用
  49. }else{
  50. $("#quarterlyCost").text(result.F_QuarterlyCost); //本季费用
  51. }
  52. if (result.F_QuarterlyCost=="") {
  53. $("#annualWages").text("暂无"); //本年人数/工资
  54. }else{
  55. $("#annualWages").text(result.F_AnnualPersonCount+"/"+result.F_AnnualWages); //本年人数/工资
  56. }
  57. if (result.F_QuarterlyPersonCount=="") {
  58. $("#quarterlyWages").text("暂无"); //本季人数/工资
  59. }else{
  60. $("#quarterlyWages").text(result.F_QuarterlyPersonCount+"/"+result.F_QuarterlyWages); //本季人数/工资
  61. }
  62. if (result.F_QuarterlyIncome=="") {
  63. $("#quarterlyIncome").text("暂无"); //本季收入
  64. }else{
  65. $("#quarterlyIncome").text(result.F_QuarterlyIncome); //本季收入
  66. }
  67. if (result.F_QPVAT=="") {
  68. $("#qpvat").text("暂无"); //增值税
  69. }else{
  70. $("#qpvat").text(result.F_QPVAT); //增值税
  71. }
  72. if (result.F_QPSurtax=="") {
  73. $("#qpsurtax").text("暂无"); //附加税
  74. }else{
  75. $("#qpsurtax").text(result.F_QPSurtax); //附加税
  76. }
  77. if (result.F_QPTaxes=="") {
  78. $("#qptaxes").text("暂无"); //企业所得税
  79. }else{
  80. $("#qptaxes").text(result.F_QPTaxes); //企业所得税
  81. }
  82. if (result.F_QPConTax=="") {
  83. $("#qpconTax").text("暂无"); //文化事业建设税
  84. }else{
  85. $("#qpconTax").text(result.F_QPConTax); //文化事业建设税
  86. }
  87. if (result.F_QPPerinTax=="") {
  88. $("#qpperinTax").text("暂无"); //个税
  89. }else{
  90. $("#qpperinTax").text(result.F_QPPerinTax); //个税
  91. }
  92. if (result.F_QPStampTax=="") {
  93. $("#qpstampTax").text("暂无"); //印花税
  94. }else{
  95. $("#qpstampTax").text(result.F_QPStampTax); //印花税
  96. }
  97. if (result.F_QPOtherTax=="") {
  98. $("#qpotherTax").text("暂无"); //其他税额
  99. }else{
  100. $("#qpotherTax").text(result.F_QPOtherTax); //其他税额
  101. }
  102. },
  103. error: function(xhr, type, errorThrown) {
  104. //异常处理;
  105. }
  106. })
  107. }