| | |
| | | :append-to-body="true" |
| | | > |
| | | <div class="app-container"> |
| | | <div class="table_title">新疆吉庆烟花爆竹有限公司<span v-if="timeValue!==''">({{ timeValue }})</span>进货情况</div> |
| | | <div class="table_title">{{company}}<span v-if="timeValue!==''">({{ timeValue }})</span>进货情况</div> |
| | | <div class="table_content"> |
| | | <el-table |
| | | v-loading="listLoading" |
| | |
| | | return{ |
| | | scList: [], |
| | | timeValue: '', |
| | | company: '', |
| | | tableKey:'', |
| | | listLoading:false, |
| | | purchaseDetailVisible:false, |
| | |
| | | }, |
| | | components: {}, |
| | | methods:{ |
| | | open(scItems,timeRange,startTime,endTime){ |
| | | this.scList = scItems; |
| | | open(data,timeRange,startTime,endTime){ |
| | | this.scList = data.scItems |
| | | this.company = data.pifaCompany |
| | | for(let i of this.scList){ |
| | | i.firecracker = i.items.filter(it=>it.type === '爆竹类').length>0?i.items.filter(it=>it.type === '爆竹类')[0].boxCount:0 |
| | | i.spray = i.items.filter(it=>it.type === '喷花类').length>0?i.items.filter(it=>it.type === '喷花类')[0].boxCount:0 |
| | |
| | | if(timeRange){ |
| | | this.timeValue = startTime.split(' ')[0] + '~' + endTime.split(' ')[0] |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |