backshow.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <view style="padding: 20rpx;">
  3. <scroll-view :scroll-y="true" class="page">
  4. <view class="cu-list menu card-menu margin-top">
  5. <view class="cu-item" style="margin-top: 10rpx;" v-for="(item, index) in reportData">
  6. <view class="content" @click="backshowReport2(item,backDate)">
  7. <view class="cu-form-group">
  8. <view class="title" style="min-width: calc(6em + 15px);">制衣生产车间</view>
  9. <text class="text-grey" style="flex: 1;">{{ item.filing.workshop.zyProductWorkshop }}</text>
  10. </view>
  11. <view class="cu-form-group">
  12. <view class="title" style="min-width: calc(6em + 15px);">制衣班组</view>
  13. <text class="text-grey" style="flex: 1;">{{ item.filing.team.zyTeam }}</text>
  14. </view>
  15. <view class="cu-form-group">
  16. <view class="title" style="min-width: calc(6em + 15px);">订单号</view>
  17. <text class="text-grey" style="flex: 1;">{{ item.filing.orderNo }}</text>
  18. </view>
  19. <view class="cu-form-group">
  20. <view class="title" style="min-width: calc(6em + 15px);" >时间</view>
  21. <text class="text-grey" style="flex: 1;">{{backDate}}</text>
  22. </view>
  23. <view class="cu-form-group">
  24. <view class="title" style="min-width: calc(6em + 15px);" >数量</view>
  25. <text class="text-grey" style="flex: 1;">{{ item.backCount }}</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </scroll-view>
  31. </view>
  32. </template>
  33. <script>
  34. import { backshow } from '@/api/biz/report.js';
  35. export default {
  36. data() {
  37. return {
  38. reportData: [],
  39. backDate:''
  40. };
  41. },
  42. onLoad(option) {
  43. const reportInfo = JSON.parse(decodeURIComponent(option.reportInfo));
  44. console.log(reportInfo.backDate);
  45. this.backDate = reportInfo.backDate;
  46. backshow(reportInfo.backDate).then(res => {
  47. if (res.success) {
  48. this.reportData = res.data;
  49. }
  50. });
  51. // this.formData.orderInfo = orderInfo
  52. // console.log(this.formData.orderInfo)
  53. // this.getWorkshop();
  54. },
  55. methods: {
  56. backshowReport2(item,backDate) {
  57. // console.log("item=========="+item);
  58. // console.log("rcvDate=========="+rcvDate);
  59. // console.log("filingid" + item.filing.id);
  60. uni.navigateTo({
  61. url: '/pages/report/backshow2?filing_id='+item.filing.id+'&backDate='+this.backDate
  62. })
  63. },
  64. }
  65. };
  66. </script>
  67. <style></style>