custlist.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <div class="content">
  3. <div class="list-unstyled list-inline x-step x-step-x">
  4. <ul>
  5. <li class="active">查看所有客戶资料<i class="x-split"></i></li>
  6. </ul>
  7. </div>
  8. <div class="tab">
  9. <table class="table table-striped">
  10. <thead>
  11. <tr>
  12. <th>序号</th>
  13. <th>客户名称</th>
  14. <th>录入时间</th>
  15. <th>单据状态</th>
  16. <th>确认客户资料</th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <tr v-for="(item,index) in $store.state.baolilist" @click="$store.dispatch('showcustdetail',item.cusId)">
  21. <td v-text="index+1"></td>
  22. <td v-text="item.fa_enname"></td>
  23. <td v-text="item.submitTime"></td>
  24. <td v-if="item.status==null"></td>
  25. <td v-else-if="item.status==201">已保存</td>
  26. <td v-else-if="item.status==202">已提交</td>
  27. <td v-else-if="item.status==203">已上传至UAS</td>
  28. <td v-else-if="item.status==204">已批复额度</td>
  29. <td v-else>拒绝批复额度</td>
  30. <td v-if="item.checkinfo==1">已确认</td>
  31. <td v-else><el-button @click.stop="check(item.id)" type="primary">确认</el-button></td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. export default {
  40. fetch({store}){
  41. return Promise.all([
  42. store.dispatch('showbaolilist')
  43. ])
  44. },
  45. methods:{
  46. check(id){
  47. this.$store.dispatch('checkinfo',id)
  48. }
  49. },
  50. }
  51. </script>
  52. <style scoped>
  53. </style>