|
@@ -69,8 +69,8 @@
|
|
|
</a-tabs>
|
|
|
</div>
|
|
|
</a-card>
|
|
|
- <print-in-check-job-report ref="basePrintModal" @ok="handleOk"/>
|
|
|
- <detail-check-job-report ref="detailModal" @ok="handleOk"/>
|
|
|
+ <!-- <print-in-check-job-report ref="basePrintModal" @ok="handleOk"/>
|
|
|
+ <detail-check-job-report ref="detailModal" @ok="handleOk"/> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -164,13 +164,14 @@ export default {
|
|
|
|
|
|
getSqareInfo(params)
|
|
|
.then(res => {
|
|
|
- this.chartsData = res.data
|
|
|
-
|
|
|
+ this.chartsData = res.data.filter(item => {
|
|
|
+ return item.inNum || item.outNum || item.spareName === this.queryParam.spareName
|
|
|
+ })
|
|
|
// 需要将数据分组:总数,完成数
|
|
|
const groupData = []
|
|
|
this.chartsData.forEach(function (data) {
|
|
|
- groupData.push({ name: '总数', month: data.month + '', num: data.totalNum })
|
|
|
- groupData.push({ name: '完成数', month: data.month + '', num: data.totalFinishNum })
|
|
|
+ groupData.push({ name: '出库', spareName: data.spareName + '', num: data.outNum })
|
|
|
+ groupData.push({ name: '入库', spareName: data.spareName + '', num: data.inNum })
|
|
|
})
|
|
|
this.getCharts('container', groupData)// 调用统计图
|
|
|
})
|
|
@@ -190,7 +191,7 @@ export default {
|
|
|
showMarkers: false,
|
|
|
shared: true
|
|
|
})
|
|
|
- this.chart.interval().position('month*num').color('name').adjust([
|
|
|
+ this.chart.interval().position('spareName*num').color('name').adjust([
|
|
|
{
|
|
|
type: 'dodge',
|
|
|
marginRatio: 0
|