This commit is contained in:
liushuai
2020-05-13 18:42:58 +08:00
parent 5dcb28e73e
commit decf0bf58e
8 changed files with 339 additions and 708 deletions

View File

@@ -26,6 +26,7 @@
<el-card>
<el-tabs v-model="PartType2" type="border-card" style="margin-top: 10px">
<el-tab-pane label="车间生产" name="车间生产">
<!--<h3 style="text-align: center;">车间生产</h3>-->
<el-table v-loading="loading" :data="tableData" :summary-method="getSummaries" style="width: 100%;margin-top: 6px" highlight-current-row height="600" size="mini" show-summary border stripe>
<el-table-column align="center" label="零件图号">
<template slot-scope="scope">
@@ -85,6 +86,7 @@
</div>
</el-tab-pane>
<el-tab-pane label="采购部采购" name="采购部采购">
<!--<h3 style="text-align: center;">采购部采购</h3>-->
<el-tabs v-model="PartType" type="border-card" style="margin-top: 10px" @tab-click="searchTable()">
<el-tab-pane label="标准件" name="标准件">
<el-table :data="tableData00" size="mini" height="530px" border stripe>
@@ -123,6 +125,11 @@
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
</template>
</el-table-column>
<el-table-column align="center" label="用库存数">
<template slot-scope="scope">
{{ scope.row.使用库存数 }}
</template>
</el-table-column>
<el-table-column align="center" label="采购时间">
<template slot-scope="scope">
{{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : scope.row.采购日期.split(' ')[0] }}
@@ -183,6 +190,16 @@
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.数量 || scope.row.离线采购数量 || '—' }}
</template>
</el-table-column>
<el-table-column align="center" label="用滞货数">
<template slot-scope="scope">
{{ scope.row.使用滞货数量 }}
</template>
</el-table-column>
<el-table-column align="center" label="用库存数">
<template slot-scope="scope">
{{ scope.row.使用库存数 }}
</template>
</el-table-column>
<el-table-column align="center" label="采购时间">
<template slot-scope="scope">
{{ scope.row.创建日期 ? scope.row.创建日期.split(' ')[0] : scope.row.采购日期.split(' ')[0] }}
@@ -274,6 +291,7 @@
</el-tabs>
</el-tab-pane>
<el-tab-pane label="制造部采购" name="制造部采购">
<!--<h3 style="text-align: center;">制造部采购</h3>-->
<el-table :data="tableData1" border style="width: 100%;margin-top: 6px;" height="600">
<el-table-column label="机床图号" align="center" min-width="80">
<template slot-scope="scope">
@@ -509,6 +527,14 @@ export default {
this.total = parseInt(response.data.output[0].ItemCount)
this.loading = false
})
// searchTable22(this.check1, this.Machine, this.check2, this.Group, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
// console.log(response.data, 123243)
// for (let i = 0; i < response.data.length; i++) {
// if (response.data[i].入库时间 !== null) {
// this.totalNum += 1
// }
// }
// })
searchTable1(this.check1, this.Machine, this.check2, this.Group, this.pageCurrent, this.pageSize).then(response => {
this.tableData1 = response.data.rows
this.total5 = parseInt(response.data.total)
@@ -518,6 +544,7 @@ export default {
this.dialogFormVisible4 = true
this.titleaa = row.零件图号
processingStatus(row.工艺计划流水号).then(response => {
console.log(response.data, 1123)
for (let i = 0; i < response.data.length; i++) {
if (response.data[i].计划日期 !== '' && response.data[i].计划日期 !== null) {
response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
@@ -586,6 +613,7 @@ export default {
this.Group ? check2 = 1 : check2 = 0
searchTable02(check1, this.Machine, check2, this.Group, this.pageCurrent02, this.pageSize02).then(response => {
this.tableData02 = response.data.rows
console.log(response, 999)
this.total02 = response.data.total
})
},