accountsReceivable.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div>
  3. <borderTemplate borderBox="width: 31.250vw;height: 15.104vw;" title="逾期账款" detailTitle="查看详情" @dialog="$emit('dialog')" systemappid="286" push_path="/accountsReceivable">
  4. <template slot="operation">
  5. <div style="padding-left: 0.521vw">
  6. <el-radio v-model="param.content.querytype" label="2" @input="listData">{{$t(`按业务员`)}}</el-radio>
  7. <el-radio v-model="param.content.querytype" label="1" @input="listData">{{$t(`按客户`)}}</el-radio>
  8. </div>
  9. </template>
  10. <template slot="content">
  11. <div class="justify-style">
  12. <boxTemplate title="总应收" :data="list.sumallaoverduemount"></boxTemplate>
  13. <boxTemplate title="逾期1月以内" :data="list.sumonemonthamount"></boxTemplate>
  14. </div>
  15. <div class="justify-style">
  16. <boxTemplate title="逾期1~3月" :data="list.sumthreemonthamount"></boxTemplate>
  17. <boxTemplate title="逾期3月以上" :data="list.sumupthreemonthamount"></boxTemplate>
  18. </div>
  19. </template>
  20. </borderTemplate>
  21. </div>
  22. </template>
  23. <script>
  24. import borderTemplate from '../components/borderTemplate'
  25. import boxTemplate from "../components/boxTemplate";
  26. export default {
  27. name: "accountsReceivable",
  28. components:{borderTemplate,boxTemplate},
  29. data(){
  30. return {
  31. param:{
  32. "id": 20241009101204,
  33. "content": {
  34. "type": '',
  35. "dataid": '',
  36. "querytype": '2',
  37. "where": {
  38. "isleave": ""
  39. }
  40. }
  41. },
  42. list:''
  43. }
  44. },
  45. methods:{
  46. async listData(){
  47. const res = await this.$api.requested(this.param)
  48. this.list = res.data
  49. console.log(this.list,'应收账款')
  50. }
  51. }
  52. }
  53. </script>
  54. <style scoped>
  55. .justify-style{
  56. display: flex;
  57. justify-content: space-between;
  58. margin-top: 1.042vw;
  59. }
  60. /deep/ .el-radio__inner {
  61. width: 1.250vw;
  62. height: 1.250vw;
  63. position: relative;
  64. cursor: pointer;
  65. display: inline-block;
  66. box-sizing: border-box;
  67. background: linear-gradient(356deg, #00244D 0%, #001E41 100%);
  68. box-shadow: 0.000vw 0.104vw 0.208vw 0.052vw rgba(0,0,0,0.15);
  69. border-radius: 0.833vw;
  70. border: 0.104vw solid #3D73BA;
  71. opacity: 0.8;
  72. }
  73. /deep/ .el-radio__label {
  74. font-family: Microsoft YaHei, Microsoft YaHei;
  75. font-weight: 400;
  76. font-size: 0.729vw;
  77. color: #E6F4FF;
  78. line-height: 0.000vw;
  79. text-align: left;
  80. font-style: normal;
  81. text-transform: none;
  82. padding-left: 0.521vw;
  83. }
  84. /deep/ .el-radio__input.is-checked+.el-radio__label {
  85. color: #E6F4FF;
  86. }
  87. /deep/ .el-radio__inner::after {
  88. width: 0.625vw;
  89. height: 0.625vw;
  90. border-radius: 100%;
  91. background-color: #3685FC;
  92. content: "";
  93. position: absolute;
  94. left: 50%;
  95. top: 50%;
  96. transform: translate(-50%, -50%) scale(0);
  97. transition: transform .15s ease-in;
  98. }
  99. /deep/ .el-radio__input.is-checked .el-radio__inner {
  100. border-color: #3685FC;
  101. background: none;
  102. }
  103. </style>