work_bill.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div v-if="bill">
  3. <el-card class="box-card">
  4. <div slot="header" class="header clearfix">
  5. <span>工资账单明细</span>
  6. </div>
  7. <el-row :gutter="20">
  8. <el-col :span="12">
  9. <div class="module-title">企业方 {{bill.enterprise.nickname}}({{bill.enterprise.uid}})</div>
  10. <div class="module-content">
  11. <div>实际费用:¥{{(bill.order.real_amount/100).toFixed(2)}}</div>
  12. <div>开发款项:¥{{bill.hire.price}}</div>
  13. <div>平台服务费:¥{{bill.hire.service_fee}}</div>
  14. <div>应缴税费:¥{{bill.hire.tax_fee}}</div>
  15. <div>直通车抵扣:¥{{bill.hire.fast_hire_fee}}</div>
  16. <div>托管金额:¥{{(bill.order.real_amount/100).toFixed(2)}}</div>
  17. <!-- <div>差价:¥1070.00(含税¥70.00)</div>-->
  18. <!-- <div>退款:¥0(含税¥70.00)</div>-->
  19. </div>
  20. </el-col>
  21. <el-col :span="12">
  22. <div class="module-title">{{bill.developer.nickname}}({{bill.developer.uid}})</div>
  23. <div class="module-content">
  24. <div>实际费用:{{bill.hire.price}}</div>
  25. <div>开发款项:¥{{bill.hire.price}}</div>
  26. <div>平台服务费:¥0</div>
  27. <div>应交税费:¥0</div>
  28. </div>
  29. </el-col>
  30. </el-row>
  31. <el-row :gutter="20">
  32. <el-col :span="24">
  33. <div class="module-title">工资明细</div>
  34. <div class="module-content">
  35. <div>工作日薪:¥{{bill.hire.daily_price}}/天</div>
  36. <div>工作周期:{{bill.hire.start_date}} 至 {{bill.hire.end_date}}(10小时)</div>
  37. <div>正式工资:¥{{bill.hire.daily_price}}(10小时)</div>
  38. </div>
  39. </el-col>
  40. </el-row>
  41. <el-row :gutter="20">
  42. <el-col :span="24">
  43. <div class="module-title">账单信息</div>
  44. <div class="module-content">
  45. <div>创建时间:{{bill.hire.create_time}}</div>
  46. <div>托管时间:{{bill.hire.pay_time}}</div>
  47. <!-- <div>结薪时间:2019/09/24 15:05:20</div>-->
  48. <!-- <div>关联订单:雇佣款_1231 雇佣补差价_1231</div>-->
  49. <div>费率明细:企业方:实际服务费率{{Math.round(Number(100*(bill.hire.service_fee/bill.hire.price)))}}%;</div>
  50. </div>
  51. </el-col>
  52. </el-row>
  53. </el-card>
  54. </div>
  55. </template>
  56. <script>
  57. export default {
  58. data(){
  59. return {
  60. bill:null
  61. }
  62. },
  63. mounted(){
  64. this.getBill();
  65. },
  66. methods:{
  67. async getBill(){
  68. const data=await this.$post("/api/admin/hire/detail", { id: this.$route.query.id })
  69. this.bill=data.data;
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .box-card {
  76. margin-bottom: 10px;
  77. width: 100%;
  78. }
  79. .header {
  80. font-size: 24px;
  81. color: #222222;
  82. font-weight: 600;
  83. }
  84. .clearfix:before,
  85. .clearfix:after {
  86. display: table;
  87. content: "";
  88. }
  89. .clearfix:after {
  90. clear: both;
  91. }
  92. .el-col {
  93. padding-top: 20px;
  94. padding-bottom: 20px;
  95. }
  96. .module-title {
  97. font-weight: bold;
  98. }
  99. .module-content {
  100. margin-top: 17px;
  101. margin-left: 14px;
  102. }
  103. </style>