getorder.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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-themeRed cur':''" @tap="tabSelect" :data-id="1">
  6. 订单信息
  7. </view>
  8. <view class="cu-item flex-sub" :class="2==TabCur?'text-themeRed 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-themeRed"></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-themeRed"></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-themeRed">
  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-themeBtn submit echo-foot-button" @tap="goPage('/pages/broker/setreport?id=' + order.id)"
  89. v-if="order.status==2"> <text>立即报备</text> </view>
  90. <view class="bg-grey submit echo-foot-button" v-else> <text>已招满</text> </view>
  91. </view>
  92. </view>
  93. </template>
  94. <script>
  95. var _this;
  96. export default {
  97. data() {
  98. return {
  99. TabCur: 1,
  100. isRotate: false,
  101. brokerinfo: {},
  102. order: {},
  103. order_log: [],
  104. }
  105. },
  106. onLoad: function(option) {
  107. _this = this;
  108. _this.brokerinfo = uni.getStorageSync('brokerinfo') || false;
  109. var id = option.id || 0;
  110. _this.$req.ajax({
  111. path: "broker/getorder",
  112. data: {
  113. id: id,
  114. brokerid: _this.brokerinfo.id
  115. }
  116. }).then((data) => {
  117. _this.order = data.order;
  118. _this.order_log = data.order_log;
  119. }).catch((err) => {
  120. uni.showModal({
  121. title: '信息提示',
  122. content: err,
  123. showCancel: false
  124. });
  125. });
  126. },
  127. methods: {
  128. tabSelect: function(e) {
  129. _this.TabCur = e.currentTarget.dataset.id;
  130. },
  131. goPage: function(pageurl) {
  132. uni.navigateTo({
  133. url: pageurl,
  134. fail: function() {
  135. uni.switchTab({
  136. url: pageurl
  137. });
  138. }
  139. });
  140. },
  141. }
  142. }
  143. </script>
  144. <style>
  145. .cu-time {
  146. width: 300rpx !important;
  147. padding-left: 30rpx !important;
  148. text-align: left !important;
  149. }
  150. </style>