123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <template>
- <view style="padding: 20rpx;">
- <scroll-view :scroll-y="true" class="page">
- <view class="cu-list menu card-menu margin-top">
- <view class="cu-item" style="margin-top: 10rpx;" v-for="(item, index) in reportData">
- <view class="content" @click="backshowReport2(item,backDate)">
- <view class="cu-form-group">
- <view class="title" style="min-width: calc(6em + 15px);">制衣生产车间</view>
- <text class="text-grey" style="flex: 1;">{{ item.filing.workshop.zyProductWorkshop }}</text>
- </view>
- <view class="cu-form-group">
- <view class="title" style="min-width: calc(6em + 15px);">制衣班组</view>
- <text class="text-grey" style="flex: 1;">{{ item.filing.team.zyTeam }}</text>
- </view>
- <view class="cu-form-group">
- <view class="title" style="min-width: calc(6em + 15px);">订单号</view>
- <text class="text-grey" style="flex: 1;">{{ item.filing.orderNo }}</text>
- </view>
- <view class="cu-form-group">
- <view class="title" style="min-width: calc(6em + 15px);" >时间</view>
- <text class="text-grey" style="flex: 1;">{{backDate}}</text>
- </view>
- <view class="cu-form-group">
- <view class="title" style="min-width: calc(6em + 15px);" >数量</view>
- <text class="text-grey" style="flex: 1;">{{ item.backCount }}</text>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- import { backshow } from '@/api/biz/report.js';
- export default {
- data() {
- return {
- reportData: [],
- backDate:''
- };
- },
- onLoad(option) {
- const reportInfo = JSON.parse(decodeURIComponent(option.reportInfo));
- console.log(reportInfo.backDate);
- this.backDate = reportInfo.backDate;
- backshow(reportInfo.backDate).then(res => {
- if (res.success) {
- this.reportData = res.data;
- }
- });
- // this.formData.orderInfo = orderInfo
- // console.log(this.formData.orderInfo)
- // this.getWorkshop();
- },
- methods: {
- backshowReport2(item,backDate) {
- // console.log("item=========="+item);
- // console.log("rcvDate=========="+rcvDate);
- // console.log("filingid" + item.filing.id);
- uni.navigateTo({
- url: '/pages/report/backshow2?filing_id='+item.filing.id+'&backDate='+this.backDate
- })
- },
- }
- };
- </script>
- <style></style>
|