getorder.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view>
  3. <scroll-view scroll-x class="bg-white radius nav echo-fixed-top">
  4. <view class="flex text-center solid-bottom">
  5. <view class="cu-item flex-sub" :class="1==TabCur?'text-blue cur':''" @tap="tabSelect" :data-id="1">
  6. 订单信息
  7. </view>
  8. <view class="cu-item flex-sub" :class="2==TabCur?'text-blue cur':''" @tap="tabSelect" :data-id="2">
  9. 报备记录
  10. </view>
  11. </view>
  12. </scroll-view>
  13. <view class="echo-fixed-top-empty"></view>
  14. <view class="cu-list menu margin-bottom-sm">
  15. <view class="cu-item">
  16. <view class="content">
  17. <text>{{order.demand.title}}</text>
  18. </view>
  19. </view>
  20. <view class="cu-item">
  21. <view class="content">
  22. <text>招聘公司:{{order.demand.worker.title}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <block v-if="1==TabCur">
  27. <view class="cu-list menu margin-bottom-sm">
  28. <view class="cu-item">
  29. <view class="content">
  30. <text>状态</text>
  31. </view>
  32. <view class="action">
  33. <text>{{order.status_text}}</text>
  34. </view>
  35. </view>
  36. <view class="cu-item">
  37. <view class="content">
  38. <text>年龄</text>
  39. </view>
  40. <view class="action">
  41. <text>{{order.demand.agegroup}}</text>
  42. </view>
  43. </view>
  44. <view class="cu-item">
  45. <view class="content">
  46. <text>综合月薪</text>
  47. </view>
  48. <view class="action">
  49. <text>{{order.demand.zwagall}}</text>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="cu-bar bg-white solids-bottom">
  54. <view class="action">
  55. <text class="cuIcon-titles text-blue"></text> 岗位要求
  56. </view>
  57. </view>
  58. <view class="echo-article-details bg-white margin-bottom-sm">
  59. <text>{{order.demand.requirement}}</text>
  60. </view>
  61. <view class="cu-bar bg-white solids-bottom">
  62. <view class="action">
  63. <text class="cuIcon-titles text-blue"></text> 企业简介
  64. </view>
  65. </view>
  66. <view class="echo-article-details bg-white margin-bottom-sm">
  67. <text>{{order.demand.comdetails}}</text>
  68. </view>
  69. </block>
  70. <block v-if="2==TabCur">
  71. <view class="padding text-center text-grey" v-if="order_log.length==0">
  72. 暂无报备记录...
  73. </view>
  74. <view v-else>
  75. <view class="cu-timeline" v-for="(item,index) in order_log" :key="index">
  76. <view class="cu-time">{{item.arrivetime}}</view>
  77. <view class="cu-item text-blue">
  78. <view class="content">
  79. <view class="text-bold margin-bottom-sm">{{item.realname}}</view>
  80. <view class="text-gray text-sm">电话:{{item.mobile}}</view>
  81. <view class="text-gray text-sm">身份证:{{item.idcard}}</view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </block>
  87. <view class="cu-bar bg-white tabbar border shop foot">
  88. <view class="bg-blue submit echo-foot-button" @tap="goPage('/pages/broker/setreport?id=' + order.id)" v-if="order.status==2"> <text>立即报备</text> </view>
  89. <view class="bg-grey submit echo-foot-button" v-else> <text>已招满</text> </view>
  90. </view>
  91. </view>
  92. </template>
  93. <script>
  94. var _this;
  95. export default {
  96. data() {
  97. return {
  98. TabCur: 1,
  99. isRotate: false,
  100. brokerinfo: {},
  101. order: {},
  102. order_log: [],
  103. }
  104. },
  105. onLoad: function(option) {
  106. _this = this;
  107. _this.brokerinfo = uni.getStorageSync('brokerinfo') || false;
  108. var id = option.id || 0;
  109. _this.$req.ajax({
  110. path: "broker/getorder",
  111. data: {
  112. id: id,
  113. brokerid: _this.brokerinfo.id
  114. }
  115. }).then((data) => {
  116. _this.order = data.order;
  117. _this.order_log = data.order_log;
  118. }).catch((err) => {
  119. uni.showModal({
  120. title: '信息提示',
  121. content: err,
  122. showCancel: false
  123. });
  124. });
  125. },
  126. methods: {
  127. tabSelect: function(e) {
  128. _this.TabCur = e.currentTarget.dataset.id;
  129. },
  130. goPage: function(pageurl) {
  131. uni.navigateTo({
  132. url: pageurl,
  133. fail: function() {
  134. uni.switchTab({
  135. url: pageurl
  136. });
  137. }
  138. });
  139. },
  140. }
  141. }
  142. </script>
  143. <style>
  144. .cu-time{ width: 300rpx !important; padding-left: 30rpx !important; text-align: left !important; }
  145. </style>