|
|
|
|
@@ -158,13 +158,83 @@
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="block" style="margin-top: 10px;">
|
|
|
|
|
<el-pagination
|
|
|
|
|
:current-page="PageCurrent1"
|
|
|
|
|
:current-page="pageCurrent4"
|
|
|
|
|
:page-sizes="[10, 20, 30, 40]"
|
|
|
|
|
:page-size="10"
|
|
|
|
|
:total="total1"
|
|
|
|
|
:page-size="pageSize4"
|
|
|
|
|
:total="total4"
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
@size-change="handleSizeChange1"
|
|
|
|
|
@current-change="handleCurrentChange1"/>
|
|
|
|
|
@size-change="handleSizeChange4"
|
|
|
|
|
@current-change="handleCurrentChange4"/>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card>
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="listLoading2"
|
|
|
|
|
:data="tableData1"
|
|
|
|
|
border
|
|
|
|
|
style="width: 100%;"
|
|
|
|
|
height="300">
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="序号"
|
|
|
|
|
align="center"
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"/>
|
|
|
|
|
<el-table-column label="物料名称" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.物料名称 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="物料规格" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.物料规格 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="物料型号" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.物料型号 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="项目名称" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.项目名称 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="机床图号" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.机床图号 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="组号" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.组号 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="零件数量" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.货位存量 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="零件类型" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.类型名称 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="入库时间" align="center" min-width="80">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.入库时间 }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="block" style="margin-top: 10px;">
|
|
|
|
|
<el-pagination
|
|
|
|
|
:current-page="pageCurrent5"
|
|
|
|
|
:page-sizes="[10, 20, 30, 40]"
|
|
|
|
|
:page-size="pageSize5"
|
|
|
|
|
:total="total5"
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
@size-change="handleSizeChange5"
|
|
|
|
|
@current-change="handleCurrentChange5"/>
|
|
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
<el-dialog :visible.sync="dialogFormVisible2" title="选择机床" center style="min-height: 300px">
|
|
|
|
|
@@ -273,7 +343,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { initProject, searchTable, searchmachine, searchgroup, searchPurchaseTable } from '@/api/ManufacturingCenter/GroupMatching'
|
|
|
|
|
import { initProject, searchTable, searchmachine, searchgroup, searchPurchaseTable, searchTable1 } from '@/api/ManufacturingCenter/GroupMatching'
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
@@ -293,13 +363,22 @@ export default {
|
|
|
|
|
pageSize1: 10,
|
|
|
|
|
pageCurrent2: 1,
|
|
|
|
|
pageSize2: 10,
|
|
|
|
|
pageCurrent4: 1,
|
|
|
|
|
pageSize4: 10,
|
|
|
|
|
pageCurrent5: 1,
|
|
|
|
|
pageSize5: 10,
|
|
|
|
|
tableData7: [],
|
|
|
|
|
tableData6: [],
|
|
|
|
|
tableData: [],
|
|
|
|
|
tableData1: [],
|
|
|
|
|
state: null,
|
|
|
|
|
total: null,
|
|
|
|
|
total1: null,
|
|
|
|
|
total2: null,
|
|
|
|
|
listLoading1: false,
|
|
|
|
|
listLoading2: false,
|
|
|
|
|
total: 0,
|
|
|
|
|
total1: 0,
|
|
|
|
|
total2: 0,
|
|
|
|
|
total4: 0,
|
|
|
|
|
total5: 0,
|
|
|
|
|
title: '',
|
|
|
|
|
dialogFormVisible2: false,
|
|
|
|
|
dialogFormVisible3: false,
|
|
|
|
|
@@ -359,6 +438,8 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
searchData() {
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.listLoading1 = true
|
|
|
|
|
this.listLoading2 = true
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
this.check = 1
|
|
|
|
|
@@ -406,8 +487,14 @@ export default {
|
|
|
|
|
searchPurchaseTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.tableDataPurchase = response.data.rows
|
|
|
|
|
this.listLoading = false
|
|
|
|
|
this.total1 = response.data.total
|
|
|
|
|
this.listLoading1 = false
|
|
|
|
|
this.total4 = parseInt(response.data.total)
|
|
|
|
|
})
|
|
|
|
|
searchTable1(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.tableData1 = response.data.rows
|
|
|
|
|
this.listLoading2 = false
|
|
|
|
|
this.total5 = parseInt(response.data.total)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = false
|
|
|
|
|
@@ -481,11 +568,105 @@ export default {
|
|
|
|
|
handleSizeChange(val) {
|
|
|
|
|
this.pageCurrent = 1
|
|
|
|
|
this.pageSize = val
|
|
|
|
|
this.searchData()
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
this.check = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.machineToolNumber !== '') {
|
|
|
|
|
this.check1 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check1 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.groupNumber !== '') {
|
|
|
|
|
this.check2 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check2 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.year !== null && this.year !== '') {
|
|
|
|
|
this.check3 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check3 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.month !== null && this.month !== '') {
|
|
|
|
|
this.check4 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check4 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.time !== '' && this.time !== null) {
|
|
|
|
|
this.check5 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check5 = 0
|
|
|
|
|
}
|
|
|
|
|
searchTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
|
|
|
|
for (let i = 0; i < response.data.rows.length; i++) {
|
|
|
|
|
if (response.data.rows[i].入库时间 !== null) {
|
|
|
|
|
response.data.rows[i].入库时间 = response.data.rows[i].入库时间.split(' ', 2)[0]
|
|
|
|
|
}
|
|
|
|
|
if (response.data.rows[i].计划完成时间 !== null) {
|
|
|
|
|
response.data.rows[i].计划完成时间 = response.data.rows[i].计划完成时间.split(' ', 2)[0]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.tableData = response.data.rows
|
|
|
|
|
this.total = parseInt(response.data.total)
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.$message.warning('请先选择项目')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
|
this.pageCurrent = val
|
|
|
|
|
this.searchData()
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
this.check = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.machineToolNumber !== '') {
|
|
|
|
|
this.check1 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check1 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.groupNumber !== '') {
|
|
|
|
|
this.check2 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check2 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.year !== null && this.year !== '') {
|
|
|
|
|
this.check3 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check3 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.month !== null && this.month !== '') {
|
|
|
|
|
this.check4 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check4 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.time !== '' && this.time !== null) {
|
|
|
|
|
this.check5 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check5 = 0
|
|
|
|
|
}
|
|
|
|
|
searchTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent, this.pageSize).then(response => {
|
|
|
|
|
for (let i = 0; i < response.data.rows.length; i++) {
|
|
|
|
|
if (response.data.rows[i].入库时间 !== null) {
|
|
|
|
|
response.data.rows[i].入库时间 = response.data.rows[i].入库时间.split(' ', 2)[0]
|
|
|
|
|
}
|
|
|
|
|
if (response.data.rows[i].计划完成时间 !== null) {
|
|
|
|
|
response.data.rows[i].计划完成时间 = response.data.rows[i].计划完成时间.split(' ', 2)[0]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.tableData = response.data.rows
|
|
|
|
|
this.total = parseInt(response.data.total)
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.$message.warning('请先选择项目')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleSizeChange1(val) {
|
|
|
|
|
this.pageCurrent1 = 1
|
|
|
|
|
@@ -504,6 +685,184 @@ export default {
|
|
|
|
|
handleCurrentChange3(val) {
|
|
|
|
|
this.pageCurrent2 = val
|
|
|
|
|
this.searchGroupList()
|
|
|
|
|
},
|
|
|
|
|
handleSizeChange4(val) {
|
|
|
|
|
this.pageCurrent4 = 1
|
|
|
|
|
this.pageSize4 = val
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
this.check = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.machineToolNumber !== '') {
|
|
|
|
|
this.check1 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check1 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.groupNumber !== '') {
|
|
|
|
|
this.check2 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check2 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.year !== null && this.year !== '') {
|
|
|
|
|
this.check3 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check3 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.month !== null && this.month !== '') {
|
|
|
|
|
this.check4 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check4 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.time !== '' && this.time !== null) {
|
|
|
|
|
this.check5 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check5 = 0
|
|
|
|
|
}
|
|
|
|
|
searchPurchaseTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent4, this.pageSize4).then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.tableDataPurchase = response.data.rows
|
|
|
|
|
this.listLoading1 = false
|
|
|
|
|
this.total4 = parseInt(response.data.total)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.$message.warning('请先选择项目')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange4(val) {
|
|
|
|
|
this.pageCurrent4 = val
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
this.check = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.machineToolNumber !== '') {
|
|
|
|
|
this.check1 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check1 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.groupNumber !== '') {
|
|
|
|
|
this.check2 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check2 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.year !== null && this.year !== '') {
|
|
|
|
|
this.check3 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check3 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.month !== null && this.month !== '') {
|
|
|
|
|
this.check4 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check4 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.time !== '' && this.time !== null) {
|
|
|
|
|
this.check5 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check5 = 0
|
|
|
|
|
}
|
|
|
|
|
searchPurchaseTable(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent4, this.pageSize4).then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.tableDataPurchase = response.data.rows
|
|
|
|
|
this.listLoading1 = false
|
|
|
|
|
this.total4 = parseInt(response.data.total)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.$message.warning('请先选择项目')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleSizeChange5(val) {
|
|
|
|
|
this.pageCurrent5 = 1
|
|
|
|
|
this.pageSize5 = val
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
this.check = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.machineToolNumber !== '') {
|
|
|
|
|
this.check1 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check1 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.groupNumber !== '') {
|
|
|
|
|
this.check2 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check2 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.year !== null && this.year !== '') {
|
|
|
|
|
this.check3 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check3 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.month !== null && this.month !== '') {
|
|
|
|
|
this.check4 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check4 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.time !== '' && this.time !== null) {
|
|
|
|
|
this.check5 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check5 = 0
|
|
|
|
|
}
|
|
|
|
|
searchTable1(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent5, this.pageSize5).then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.tableData1 = response.data.rows
|
|
|
|
|
this.listLoading2 = false
|
|
|
|
|
this.total5 = parseInt(response.data.total)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.$message.warning('请先选择项目')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleCurrentChange5(val) {
|
|
|
|
|
this.pageCurrent5 = val
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
if (this.entryNameValue !== null && this.entryNameValue !== '') {
|
|
|
|
|
this.check = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.machineToolNumber !== '') {
|
|
|
|
|
this.check1 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check1 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.groupNumber !== '') {
|
|
|
|
|
this.check2 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check2 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.year !== null && this.year !== '') {
|
|
|
|
|
this.check3 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check3 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.month !== null && this.month !== '') {
|
|
|
|
|
this.check4 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check4 = 0
|
|
|
|
|
}
|
|
|
|
|
if (this.time !== '' && this.time !== null) {
|
|
|
|
|
this.check5 = 1
|
|
|
|
|
} else {
|
|
|
|
|
this.check5 = 0
|
|
|
|
|
}
|
|
|
|
|
searchTable1(this.check, this.entryNameValue, this.check1, this.machine, this.check2, this.groupNum, this.check3, this.year, this.check4, this.month, this.check5, this.time, this.pageCurrent5, this.pageSize5).then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
this.tableData1 = response.data.rows
|
|
|
|
|
this.listLoading2 = false
|
|
|
|
|
this.total5 = parseInt(response.data.total)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.loading = false
|
|
|
|
|
this.$message.warning('请先选择项目')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|