'打回零件'
This commit is contained in:
@@ -68,3 +68,14 @@ export function searchTable1(check, entryNameValue, check1, machine, check2, gro
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function processingStatus(num) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: '车间生产管理_成组配套加工进度_查询数据',
|
||||||
|
param: '工艺计划流水号=' + num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -36,7 +36,8 @@
|
|||||||
v-loading="listLoading2"
|
v-loading="listLoading2"
|
||||||
:data="tableData2"
|
:data="tableData2"
|
||||||
style="width: 100%;max-height: 400px;"
|
style="width: 100%;max-height: 400px;"
|
||||||
height="400"
|
size="mini"
|
||||||
|
height="300"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
border
|
border
|
||||||
@row-click="searchSpareParts">
|
@row-click="searchSpareParts">
|
||||||
@@ -97,7 +98,8 @@
|
|||||||
v-loading="listLoading"
|
v-loading="listLoading"
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
style="width: 100%;max-height: 400px;"
|
style="width: 100%;max-height: 400px;"
|
||||||
height="400"
|
size="mini"
|
||||||
|
height="300"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
border
|
border
|
||||||
@row-click="searchProcedure">
|
@row-click="searchProcedure">
|
||||||
@@ -153,7 +155,8 @@
|
|||||||
v-loading="listLoading1"
|
v-loading="listLoading1"
|
||||||
:data="tableData1"
|
:data="tableData1"
|
||||||
style="width: 100%;max-height: 400px;"
|
style="width: 100%;max-height: 400px;"
|
||||||
height="400"
|
size="mini"
|
||||||
|
height="300"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
border>
|
border>
|
||||||
<el-table-column align="center" label="工序顺序" width="100">
|
<el-table-column align="center" label="工序顺序" width="100">
|
||||||
@@ -361,7 +364,6 @@ export default {
|
|||||||
this.check3 = 0
|
this.check3 = 0
|
||||||
}
|
}
|
||||||
searchTable(this.entryNameValue, this.machineValue, this.check2, this.GroupNumValue, this.check3, this.PartDrawingNumber, this.pageCurrent, this.pageSize).then(response => {
|
searchTable(this.entryNameValue, this.machineValue, this.check2, this.GroupNumValue, this.check3, this.PartDrawingNumber, this.pageCurrent, this.pageSize).then(response => {
|
||||||
console.log(response)
|
|
||||||
this.tableData = response.data.rows
|
this.tableData = response.data.rows
|
||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
this.listLoading = false
|
this.listLoading = false
|
||||||
|
|||||||
@@ -91,6 +91,11 @@
|
|||||||
{{ scope.row.入库时间 }}
|
{{ scope.row.入库时间 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="操作" fixed="right">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="primary" size="mini" @click="processingStatus(scope.row)">查看加工进度</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block" style="margin-top: 10px;">
|
<div class="block" style="margin-top: 10px;">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
@@ -339,11 +344,49 @@
|
|||||||
<el-button type="primary" @click="submitGroup">提交</el-button>
|
<el-button type="primary" @click="submitGroup">提交</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<el-dialog :visible.sync="dialogFormVisible4" title="零件加工进度" center style="min-height: 300px">
|
||||||
|
<el-table
|
||||||
|
:data="tableData5"
|
||||||
|
style="width: 100%;max-height: 400px;"
|
||||||
|
size="mini"
|
||||||
|
height="300"
|
||||||
|
highlight-current-row
|
||||||
|
border>
|
||||||
|
<el-table-column align="center" label="工序顺序" width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.工序顺序 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="工艺名称" width="150">
|
||||||
|
<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.计划日期 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="工艺是否完成" width="130">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="parseInt(scope.row.工序状态)===4" type="success" size="small">已完成</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.工序状态)===5" type="warning" size="small">报废</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.工序状态)!==4 && parseInt(scope.row.工序状态)!==5" type="primary" size="small">未完成</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { initProject, searchTable, searchmachine, searchgroup, searchPurchaseTable, searchTable1 } from '@/api/ManufacturingCenter/GroupMatching'
|
import { initProject, searchTable, searchmachine, searchgroup, searchPurchaseTable, searchTable1, processingStatus } from '@/api/ManufacturingCenter/GroupMatching'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -371,6 +414,7 @@ export default {
|
|||||||
tableData6: [],
|
tableData6: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
tableData1: [],
|
tableData1: [],
|
||||||
|
tableData5: [],
|
||||||
state: null,
|
state: null,
|
||||||
listLoading1: false,
|
listLoading1: false,
|
||||||
listLoading2: false,
|
listLoading2: false,
|
||||||
@@ -382,6 +426,7 @@ export default {
|
|||||||
title: '',
|
title: '',
|
||||||
dialogFormVisible2: false,
|
dialogFormVisible2: false,
|
||||||
dialogFormVisible3: false,
|
dialogFormVisible3: false,
|
||||||
|
dialogFormVisible4: false,
|
||||||
check: null,
|
check: null,
|
||||||
check1: null,
|
check1: null,
|
||||||
check2: null,
|
check2: null,
|
||||||
@@ -511,6 +556,17 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
processingStatus(row) {
|
||||||
|
this.dialogFormVisible4 = true
|
||||||
|
processingStatus(row.工艺计划流水号).then(response => {
|
||||||
|
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]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.tableData5 = response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
empty() {
|
empty() {
|
||||||
this.machineToolNumber = ''
|
this.machineToolNumber = ''
|
||||||
this.groupNumber = ''
|
this.groupNumber = ''
|
||||||
|
|||||||
@@ -100,11 +100,6 @@
|
|||||||
{{ scope.row.零件数量 }}
|
{{ scope.row.零件数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="库存量" align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.库存量 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="备注" align="center">
|
<el-table-column label="备注" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.零件备注 }}
|
{{ scope.row.零件备注 }}
|
||||||
@@ -135,11 +130,6 @@
|
|||||||
{{ scope.row.零件数量 }}
|
{{ scope.row.零件数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="库存量" align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.库存量 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="备注" align="center">
|
<el-table-column label="备注" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.备注 }}
|
{{ scope.row.备注 }}
|
||||||
@@ -170,11 +160,6 @@
|
|||||||
{{ scope.row.零件数量 }}
|
{{ scope.row.零件数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="库存量" align="center">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.库存量 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="备注" align="center">
|
<el-table-column label="备注" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.备注 }}
|
{{ scope.row.备注 }}
|
||||||
@@ -393,13 +378,13 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:visible.sync="dialogFormVisible1"
|
:visible.sync="dialogFormVisible1"
|
||||||
:row-style="tableRowClassName"
|
|
||||||
title="基本件打回信息"
|
title="基本件打回信息"
|
||||||
center
|
center
|
||||||
width="70%"
|
width="70%"
|
||||||
style="min-height: 400px">
|
style="min-height: 400px">
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData9"
|
:data="tableData9"
|
||||||
|
:row-class-name="tableRowClassName"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 97%;max-height: 300px"
|
style="width: 97%;max-height: 300px"
|
||||||
height="400"
|
height="400"
|
||||||
@@ -432,7 +417,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="机床编号">
|
<el-table-column align="center" label="机床编号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.机床编号 }}
|
{{ scope.row.机床图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="组号">
|
<el-table-column align="center" label="组号">
|
||||||
@@ -461,13 +446,13 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:visible.sync="dialogFormVisible2"
|
:visible.sync="dialogFormVisible2"
|
||||||
:row-style="tableRowClassName"
|
|
||||||
title="外购件和标准件打回信息"
|
title="外购件和标准件打回信息"
|
||||||
center
|
center
|
||||||
width="70%"
|
width="70%"
|
||||||
style="min-height: 400px">
|
style="min-height: 400px">
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData10"
|
:data="tableData10"
|
||||||
|
:row-class-name="tableRowClassName"
|
||||||
size="mini"
|
size="mini"
|
||||||
style="width: 97%;max-height: 300px"
|
style="width: 97%;max-height: 300px"
|
||||||
height="400"
|
height="400"
|
||||||
@@ -500,7 +485,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="机床编号">
|
<el-table-column align="center" label="机床编号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.机床编号 }}
|
{{ scope.row.机床图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="组号">
|
<el-table-column align="center" label="组号">
|
||||||
@@ -615,7 +600,7 @@ export default {
|
|||||||
if (response.data[i].退回时间 !== '') {
|
if (response.data[i].退回时间 !== '') {
|
||||||
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
||||||
}
|
}
|
||||||
if (response.data[i].是否确认 === '0') {
|
if (response.data[i].是否确认 === 0) {
|
||||||
this.value += 1
|
this.value += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -626,7 +611,7 @@ export default {
|
|||||||
if (response.data[i].退回时间 !== '') {
|
if (response.data[i].退回时间 !== '') {
|
||||||
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
||||||
}
|
}
|
||||||
if (response.data[i].是否确认 === '0') {
|
if (response.data[i].是否确认 === 0) {
|
||||||
this.value1 += 1
|
this.value1 += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -649,7 +634,7 @@ export default {
|
|||||||
if (response.data[i].退回时间 !== '') {
|
if (response.data[i].退回时间 !== '') {
|
||||||
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
||||||
}
|
}
|
||||||
if (response.data[i].是否确认 === '0') {
|
if (response.data[i].是否确认 === 0) {
|
||||||
this.value += 1
|
this.value += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -670,7 +655,7 @@ export default {
|
|||||||
if (response.data[i].退回时间 !== '') {
|
if (response.data[i].退回时间 !== '') {
|
||||||
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
||||||
}
|
}
|
||||||
if (response.data[i].是否确认 === '0') {
|
if (response.data[i].是否确认 === 0) {
|
||||||
this.value1 += 1
|
this.value1 += 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -682,52 +667,75 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
Delete(row) {
|
Delete(row) {
|
||||||
Delete(row.基本件流水号).then(response => {
|
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
|
||||||
this.value = 0
|
confirmButtonText: '确定',
|
||||||
if (response.data[0].result === '1') {
|
cancelButtonText: '取消',
|
||||||
this.$message.success('删除成功')
|
type: 'warning'
|
||||||
PartCallbackInformation().then(response => {
|
}).then(() => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
Delete(row.基本件流水号).then(response => {
|
||||||
if (response.data[i].退回时间 !== '') {
|
this.value = 0
|
||||||
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
if (response.data[0].result === '1') {
|
||||||
|
this.$message.success('删除成功')
|
||||||
|
PartCallbackInformation().then(response => {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
if (response.data[i].退回时间 !== '') {
|
||||||
|
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
||||||
|
}
|
||||||
|
if (response.data[i].是否确认 === 0) {
|
||||||
|
this.value += 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (response.data[i].是否确认 === '0') {
|
this.tableData9 = response.data
|
||||||
this.value += 1
|
})
|
||||||
}
|
} else {
|
||||||
}
|
this.$message.error('删除失败')
|
||||||
this.tableData9 = response.data
|
}
|
||||||
})
|
})
|
||||||
} else {
|
}).catch(() => {
|
||||||
this.$message.error('删除失败')
|
this.$message({
|
||||||
}
|
type: 'info',
|
||||||
|
message: '已取消删除'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
Delete1(row) {
|
Delete1(row) {
|
||||||
Delete1(row.标准件和外购件流水号).then(response => {
|
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
|
||||||
this.value1 = 0
|
confirmButtonText: '确定',
|
||||||
if (response.data[0].result === '1') {
|
cancelButtonText: '取消',
|
||||||
this.$message.success('删除成功')
|
type: 'warning'
|
||||||
PartCallbackInformation1().then(response => {
|
}).then(() => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
Delete1(row.标准件和外购件流水号).then(response => {
|
||||||
if (response.data[i].退回时间 !== '') {
|
this.value1 = 0
|
||||||
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
if (response.data[0].result === '1') {
|
||||||
|
this.$message.success('删除成功')
|
||||||
|
PartCallbackInformation1().then(response => {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
if (response.data[i].退回时间 !== '') {
|
||||||
|
response.data[i].退回时间 = (response.data[i].退回时间).split(' ')[0]
|
||||||
|
}
|
||||||
|
if (response.data[i].是否确认 === 0) {
|
||||||
|
this.value1 += 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (response.data[i].是否确认 === '0') {
|
this.tableData10 = response.data
|
||||||
this.value1 += 1
|
})
|
||||||
}
|
} else {
|
||||||
}
|
this.$message.error('删除失败')
|
||||||
this.tableData10 = response.data
|
}
|
||||||
})
|
})
|
||||||
} else {
|
}).catch(() => {
|
||||||
this.$message.error('删除失败')
|
this.$message({
|
||||||
}
|
type: 'info',
|
||||||
|
message: '已取消删除'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tableRowClassName({ row }) {
|
tableRowClassName({ row }) {
|
||||||
if (row.是否确认 === '0') {
|
console.log(row.是否确认)
|
||||||
return 'background: #ffff66'
|
if (row.是否确认 === 0) {
|
||||||
|
return 'NotThrough'
|
||||||
} else {
|
} else {
|
||||||
return ''
|
return 'adopt'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
projectChange() {
|
projectChange() {
|
||||||
@@ -1197,3 +1205,11 @@ export default {
|
|||||||
margin-right: 40px;
|
margin-right: 40px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style>
|
||||||
|
.el-table .NotThrough{
|
||||||
|
background: palevioletred;
|
||||||
|
}
|
||||||
|
.el-table .adopt{
|
||||||
|
background: limegreen;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user