wagesdetails2.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <template>
  2. <div>
  3. <!-- <div class="top" @click="ret()">
  4. <div style="width: 10%;height: 5px;"></div>
  5. <div style="margin-left: 10px;">
  6. <span style="float: left;width: 20px;height: 20px;">
  7. <image src="../../static/icon/fanhui3.png" style="width: 18px;height: 18px;"></image>
  8. </span>
  9. <div style="margin-top: 5px;">
  10. <span style="color: #FFFFFF;">返回</span>
  11. </div>
  12. </div>
  13. <div style="text-align: center;margin-top: -22px;">
  14. <span style="color: #FFFFFF;">薪资查询</span>
  15. </div>
  16. </div> -->
  17. <cu-custom bgColor="bg-gradual-pink" :isBack="true">
  18. <block slot="backText">返回</block>
  19. <block slot="content">薪资查询</block>
  20. </cu-custom>
  21. <div v-for='(item,index) in data'>
  22. <div style="margin-top: 10px;margin-left: 20px;">
  23. <strong style="font-size: 16px;" >{{wagesDate}}</strong>
  24. <br>
  25. <br>
  26. <span style="color: #A3A7B1;">应发:&nbsp{{item.yingfa}}</span>
  27. <span class="items">实发:&nbsp{{item.shifa}}</span>
  28. </div>
  29. <br>
  30. <div style="background-color: #FFFFFF;">
  31. <div>
  32. <br>
  33. <strong style="margin-left: 20px;">收入明细</strong>
  34. <br>
  35. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  36. </div>
  37. <div>
  38. <ul>
  39. <li class="s">
  40. <div style="width: 10;height: 10px;"></div>
  41. <span class="fontColr">当月基本工资</span>
  42. <span style="width: 10px;height: 10px;" class="money"></span>
  43. <span class="money">{{item.srWages}}</span>
  44. <br>
  45. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  46. <div style="width: 10;height: 10px;"></div>
  47. </li>
  48. <li class="s">
  49. <span class="fontColr">绩效工资</span>
  50. <span style="width: 10px;height: 10px;" class="money"></span>
  51. <span class="money">{{item.srJxWages}}</span>
  52. <br>
  53. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  54. <div style="width: 10;height: 10px;"></div>
  55. </li>
  56. <li class="s">
  57. <span class="fontColr">奖金提成</span>
  58. <span style="width: 10px;height: 10px;" class="money"></span>
  59. <span class="money">{{item.srBonus}}</span>
  60. <br>
  61. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  62. <div style="width: 10;height: 10px;"></div>
  63. </li>
  64. <li class="s">
  65. <span class="fontColr">补贴</span>
  66. <span style="width: 10px;height: 10px;" class="money"></span>
  67. <span class="money">{{item.srSubsidy}}</span>
  68. <br>
  69. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  70. <div style="width: 10;height: 10px;"></div>
  71. </li>
  72. <li class="s">
  73. <span class="fontColr">加班费</span>
  74. <span style="width: 10px;height: 10px;" class="money"></span>
  75. <span class="money">{{item.srJbWages}}</span>
  76. <br>
  77. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  78. <div style="width: 10;height: 10px;"></div>
  79. </li>
  80. <li class="s">
  81. <span class="fontColr">离职补偿金</span>
  82. <span style="width: 10px;height: 10px;" class="money"></span>
  83. <span class="money">{{item.srQuit}}</span>
  84. <br>
  85. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  86. <div style="width: 10;height: 10px;"></div>
  87. </li>
  88. <li class="s">
  89. <span class="fontColr">固定奖金</span>
  90. <span style="width: 10px;height: 10px;" class="money"></span>
  91. <span class="money">{{item.srGdBonus}}</span>
  92. <br>
  93. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  94. <div style="width: 10;height: 10px;"></div>
  95. </li>
  96. <li class="s">
  97. <span class="fontColr">年终奖</span>
  98. <span style="width: 10px;height: 10px;" class="money"></span>
  99. <span class="money">{{item.srYearBonus}}</span>
  100. <br>
  101. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  102. <div style="width: 10;height: 10px;"></div>
  103. </li>
  104. <li class="s">
  105. <span class="fontColr">其他</span>
  106. <span style="width: 10px;height: 10px;" class="money"></span>
  107. <span class="money">{{item.srOther}}</span>
  108. <br>
  109. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  110. <br>
  111. </li>
  112. </ul>
  113. </div>
  114. </div>
  115. <br>
  116. <div style="background-color: #FFFFFF;">
  117. <div>
  118. <br>
  119. <strong style="margin-left: 20px;">扣款明细</strong>
  120. <br>
  121. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  122. </div>
  123. <div>
  124. <ul>
  125. <li class="s">
  126. <div style="width: 10;height: 10px;"></div>
  127. <span class="fontColr">缺勤扣款</span>
  128. <span style="width: 10px;height: 10px;" class="money"></span>
  129. <span style="float: right;">{{item.kkLack}}</span>
  130. <br>
  131. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  132. <div style="width: 10;height: 10px;"></div>
  133. </li>
  134. <li class="s">
  135. <span class="fontColr">其他扣款</span>
  136. <span style="width: 10px;height: 10px;" class="money"></span>
  137. <span style="float: right;">{{item.kkOther}}</span>
  138. <br>
  139. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  140. <br>
  141. </li>
  142. </ul>
  143. </div>
  144. </div>
  145. <br>
  146. <div style="background-color: #FFFFFF;">
  147. <div>
  148. <br>
  149. <strong style="margin-left: 20px;">当月五险一金&nbsp;(个人缴纳部分)</strong>
  150. <br>
  151. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  152. </div>
  153. <div>
  154. <ul>
  155. <li class="s">
  156. <div style="width: 10;height: 10px;"></div>
  157. <span class="fontColr">养老个人缴纳部分</span>
  158. <span style="width: 10px;height: 10px;" class="money"></span>
  159. <span style="float: right;">{{item.grPension}}</span>
  160. <br>
  161. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  162. <div style="width: 10;height: 10px;"></div>
  163. </li>
  164. <li class="s">
  165. <span class="fontColr">失业个人缴纳部分</span>
  166. <span style="width: 10px;height: 10px;" class="money"></span>
  167. <span style="float: right;">{{item.grCause}}</span>
  168. <br>
  169. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  170. <div style="width: 10;height: 10px;"></div>
  171. </li>
  172. <li class="s">
  173. <span class="fontColr">医疗个人缴纳部分</span>
  174. <span style="width: 10px;height: 10px;" class="money"></span>
  175. <span style="float: right;">{{item.grMedical}}</span>
  176. <br>
  177. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  178. <div style="width: 10;height: 10px;"></div>
  179. </li>
  180. <li class="s">
  181. <span class="fontColr">公积金个人缴纳部分</span>
  182. <span style="width: 10px;height: 10px;" class="money"></span>
  183. <span style="float: right;">{{item.grFund}}</span>
  184. <br>
  185. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  186. <br>
  187. </li>
  188. </ul>
  189. </div>
  190. </div>
  191. <br>
  192. <div style="background-color: #FFFFFF;">
  193. <div>
  194. <br>
  195. <strong style="margin-left: 20px;">当月五险一金&nbsp;(公司缴纳部分)</strong>
  196. <br>
  197. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  198. </div>
  199. <div>
  200. <ul>
  201. <li class="s">
  202. <div style="width: 10;height: 10px;"></div>
  203. <span class="fontColr">养老金公司缴纳部分</span>
  204. <span style="width: 10px;height: 10px;" class="money"></span>
  205. <span style="float: right;">{{item.gsPension}}</span>
  206. <br>
  207. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  208. <div style="width: 10;height: 10px;"></div>
  209. </li>
  210. <li class="s">
  211. <span class="fontColr">失业公司缴纳部分</span>
  212. <span style="width: 10px;height: 10px;" class="money"></span>
  213. <span style="float: right;">{{item.gsCause}}</span>
  214. <br>
  215. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  216. <div style="width: 10;height: 10px;"></div>
  217. </li>
  218. <li class="s">
  219. <span class="fontColr">医疗公司缴纳部分</span>
  220. <span style="width: 10px;height: 10px;" class="money"></span>
  221. <span style="float: right;">{{item.gsMedical}}</span>
  222. <br>
  223. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  224. <div style="width: 10;height: 10px;"></div>
  225. </li>
  226. <li class="s">
  227. <span class="fontColr">公积金公司缴纳部分</span>
  228. <span style="width: 10px;height: 10px;" class="money"></span>
  229. <span style="float: right;">{{item.gsFund}}</span>
  230. <br>
  231. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  232. <div style="width: 10;height: 10px;"></div>
  233. </li>
  234. <li class="s">
  235. <span class="fontColr">工伤险公司缴纳部分</span>
  236. <span style="width: 10px;height: 10px;" class="money"></span>
  237. <span style="float: right;">{{item.gsInjury}}</span>
  238. <br>
  239. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  240. <div style="width: 10;height: 10px;"></div>
  241. </li>
  242. <li class="s">
  243. <span class="fontColr">生育险公司缴纳部分</span>
  244. <span style="width: 10px;height: 10px;" class="money"></span>
  245. <span style="float: right;">{{item.gsBirth}}</span>
  246. <br>
  247. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  248. <br>
  249. </li>
  250. </ul>
  251. </div>
  252. </div>
  253. <br>
  254. <div style="background-color: #FFFFFF;">
  255. <div>
  256. <br>
  257. <strong style="margin-left: 20px;">税单</strong>
  258. <br>
  259. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  260. </div>
  261. <div>
  262. <ul>
  263. <li class="s">
  264. <div style="width: 10;height: 10px;"></div>
  265. <span class="fontColr">个税</span>
  266. <span style="width: 10px;height: 10px;" class="money"></span>
  267. <span style="float: right;">{{item.sdPersonal}}</span>
  268. <br>
  269. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  270. <div style="width: 10;height: 10px;"></div>
  271. </li>
  272. <li class="s">
  273. <span class="fontColr">奖金税</span>
  274. <span style="width: 10px;height: 10px;" class="money"></span>
  275. <span style="float: right;">{{item.sdBonus}}</span>
  276. <br>
  277. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  278. <div style="width: 10;height: 10px;"></div>
  279. </li>
  280. <li class="s">
  281. <span class="fontColr">其他</span>
  282. <span style="width: 10px;height: 10px;" class="money"></span>
  283. <span style="float: right;">{{item.sdOther}}</span>
  284. <br>
  285. <div style="width: 100%; height: 1px; border-top: solid #ACC0D8 1px;margin-top: 10px;"></div>
  286. <div style="width: 10;height: 10px;"></div>
  287. </li>
  288. </ul>
  289. </div>
  290. </div>
  291. <br>
  292. <div style="background-color: #FFFFFF;">
  293. <div>
  294. <ul>
  295. <li class="s">
  296. <br>
  297. <strong >实发工资</strong>
  298. <span style="width: 10px;height: 10px;" class="money"></span>
  299. <span class="money">{{item.shifa}}</span>
  300. <br>
  301. <br>
  302. </li>
  303. </ul>
  304. </div>
  305. </div>
  306. </div>
  307. </div>
  308. </template>
  309. <script>
  310. export default {
  311. data() {
  312. return {
  313. wagesDate:"",
  314. data:[],
  315. userUrl:'/salary/salaryCard/querySalary'
  316. }
  317. },
  318. created(){
  319. this.querywages()
  320. },
  321. methods:{
  322. querywages(){
  323. this.$http.get(this.userUrl,{params:{userId:this.$store.getters.wagesId,date:this.$store.getters.wagesDate}}).then(res=>{
  324. console.log("res",res)
  325. this.data=res.data.data;
  326. this.wagesDate=this.formatt(this.data[0].wagesDate);
  327. }).catch(err => {
  328. console.log(err);
  329. });
  330. },
  331. formatt:function(e){
  332. var date = new Date(e);
  333. var n="年";
  334. var year=date.getFullYear();
  335. var seperator1 = "月";
  336. var month = date.getMonth() + 1;
  337. var currentdate = year +n+ month + seperator1;
  338. return currentdate;
  339. },
  340. ret(){
  341. this.$Router.push({name:'wagesdetail2'})
  342. }
  343. }
  344. }
  345. </script>
  346. <style>
  347. .items{
  348. margin-left: 20px;
  349. color: #A3A7B1;
  350. }
  351. .s{
  352. list-style-type:none;
  353. margin-left: -20px;
  354. }
  355. .fontColr{
  356. color: #A3A7B1;
  357. }
  358. .money{
  359. float: right;
  360. color: #0081FF;
  361. }
  362. .top{
  363. background-color: #5677AC;
  364. width: 100%;
  365. height: 40px;
  366. }
  367. </style>