members.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view>
  3. <view class="search">
  4. <u-search placeholder="输入姓名搜索" v-model="goodsName" bgColor="white" @search="refresh()" :animation="true"
  5. actionText="取消" @clear="refresh()"></u-search>
  6. <view class="clear"></view>
  7. </view>
  8. <view class="list">
  9. <view class="item" v-for="(item, index) in list" :key="index">
  10. <view class="flex">
  11. <view class="f name" style="flex: 0.5">{{ item.peopleName }}</view>
  12. <view class="f">
  13. <text class="icon" v-if="item.orderStatus == 0">&#xe631;</text>
  14. <text class="icon ok" v-else>&#xe631;</text>
  15. <text>订单确认</text>
  16. </view>
  17. <view class="f">
  18. <text class="icon" v-if="item.entryStatus == 0">&#xe631;</text>
  19. <text class="icon ok" v-else>&#xe631;</text>
  20. <text>进境申报</text>
  21. </view>
  22. <view class="f">
  23. <text class="icon" v-if="item.importStatus == 0">&#xe631;</text>
  24. <text class="icon ok" v-else>&#xe631;</text>
  25. <text>进口申报</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. goodsName: '',
  37. list: []
  38. };
  39. },
  40. onLoad(e) {
  41. console.log("订单Id", e.orderId, "组Id", e.groupId)
  42. if (e.orderId && e.groupId) {
  43. this.http.request({
  44. url: '/level-one-server/app/TbOrder/getPeopleState',
  45. data: { orderId: e.orderId, groupId: e.groupId},
  46. success: res => {
  47. this.list = res.data.data;
  48. console.log('list', this.list);
  49. }
  50. });
  51. }
  52. },
  53. methods: {
  54. getData() {
  55. }
  56. }
  57. };
  58. </script>
  59. <style lang="scss">
  60. page {
  61. background-color: $pg;
  62. }
  63. .list {
  64. padding: 15px;
  65. .item {
  66. padding: 15px 10px 15px 10px;
  67. background-color: white;
  68. border-radius: 5px;
  69. margin-bottom: 10px;
  70. color: $font-c;
  71. .f {
  72. padding: 2px;
  73. font-size: 14px;
  74. .icon {
  75. color: #c3c5c7;
  76. }
  77. .ok {
  78. color: $main-color;
  79. }
  80. }
  81. .name {
  82. font-weight: bold;
  83. }
  84. }
  85. }
  86. </style>