table.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!-- -->
  2. <template>
  3. <div>
  4. <el-table
  5. :data="tableData"
  6. style="width: 100%">
  7. <el-table-column
  8. prop="ruleno"
  9. label="收款条件编号"
  10. width="200">
  11. </el-table-column>
  12. <el-table-column
  13. prop="remarks"
  14. label="描述"
  15. >
  16. </el-table-column>
  17. <el-table-column label="应收款期计算依据">
  18. <el-table-column
  19. prop="name"
  20. label="订单">
  21. <el-table-column
  22. prop="point"
  23. label="订单审核"
  24. width="150">
  25. <template slot-scope="scope">
  26. <div v-if="scope.row.point == '订单审核'" style="color: red">是</div>
  27. <div v-else>--</div>
  28. </template>
  29. </el-table-column>
  30. <el-table-column
  31. prop="amountrate"
  32. label="立账额度"
  33. width="150">
  34. <template slot-scope="scope">
  35. <div v-if="scope.row.point == '订单审核'">{{scope.row.amountrate * 100}}%</div>
  36. <div v-else>--</div>
  37. </template>
  38. </el-table-column>
  39. <el-table-column
  40. prop="days"
  41. label="后置天数"
  42. width="150">
  43. <template slot-scope="scope">
  44. <div v-if="scope.row.point == '订单审核'">{{scope.row.days}}</div>
  45. <div v-else>--</div>
  46. </template>
  47. </el-table-column>
  48. </el-table-column>
  49. <el-table-column
  50. prop="name"
  51. label="发货">
  52. <el-table-column
  53. prop="point"
  54. label="销售出库审核"
  55. width="150">
  56. <template slot-scope="scope">
  57. <div v-if="scope.row.point == '销售出库审核'" style="color: red">是</div>
  58. <div v-else>--</div>
  59. </template>
  60. </el-table-column>
  61. <el-table-column
  62. prop="days"
  63. label="后置天数"
  64. width="150">
  65. <template slot-scope="scope">
  66. <div v-if="scope.row.point == '销售出库审核'">{{scope.row.days}}</div>
  67. <div v-else>--</div>
  68. </template>
  69. </el-table-column>
  70. </el-table-column>
  71. <el-table-column
  72. prop="name"
  73. label="发票">
  74. <el-table-column
  75. prop="point"
  76. label="发票审核"
  77. width="150">
  78. <template slot-scope="scope">
  79. <div v-if="scope.row.point == '发票审核'" style="color: red">是</div>
  80. <div v-else>--</div>
  81. </template>
  82. </el-table-column>
  83. <el-table-column
  84. prop="days"
  85. label="后置天数"
  86. width="150">
  87. <template slot-scope="scope">
  88. <div v-if="scope.row.point == '发票审核'">{{scope.row.days}}</div>
  89. <div v-else>--</div>
  90. </template>
  91. </el-table-column>
  92. </el-table-column>
  93. </el-table-column>
  94. <el-table-column
  95. prop="isdefault"
  96. label="是否默认条件"
  97. width="120">
  98. <template slot-scope="scope">
  99. <span v-if="scope.row.isdefault" style="color: red">是</span>
  100. <span v-else>否</span>
  101. </template>
  102. </el-table-column>
  103. <el-table-column
  104. prop="a"
  105. label="操作"
  106. width="150px">
  107. <template slot-scope="scope">
  108. <el-button type="text" size="mini" @click="goDetail(scope.row)">详 情</el-button>
  109. </template>
  110. </el-table-column>
  111. </el-table>
  112. </div>
  113. </template>
  114. <script>
  115. export default {
  116. props:['tableData'],
  117. data () {
  118. return {
  119. }
  120. },
  121. methods: {
  122. goDetail (data) {
  123. let query = {id:data.sa_receivableruleid,rowindex:data.rowindex}
  124. this.$router.push({path:'/collectionRuleDetail',query:query})
  125. this.$store.dispatch('changeDetailDrawer',true)
  126. }
  127. }
  128. }
  129. </script>
  130. <style scoped>
  131. </style>