show2.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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">
  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;">{{item.receiveDate}}</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.rcvQty }}</text>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </scroll-view>
  31. </view>
  32. </template>
  33. <script>
  34. import { show2 } from '@/api/biz/report.js';
  35. export default {
  36. data() {
  37. return {
  38. reportData: [],
  39. rcvDate:''
  40. };
  41. },
  42. onLoad(option) {
  43. console.log(option);
  44. // this.rcvDate = reportInfo.rcvDate;
  45. show2(option.filing_id,option.rcvDate).then(res => {
  46. if (res.success) {
  47. this.reportData = res.data;
  48. }
  49. });
  50. // this.formData.orderInfo = orderInfo
  51. // console.log(this.formData.orderInfo)
  52. // this.getWorkshop();
  53. },
  54. methods: {
  55. // showReport(item) {
  56. // uni.navigateTo({
  57. // url: '/pages/report/show2?reportInfo=' + encodeURIComponent(JSON.stringify(item))
  58. // })
  59. // },
  60. }
  61. };
  62. </script>
  63. <style></style>