This commit is contained in:
liushuai
2019-06-21 09:31:46 +08:00
parent 478ca7194d
commit 750a4edcc7
5 changed files with 122 additions and 646 deletions

View File

@@ -50,7 +50,12 @@
height="550"
border
highlight-current-row
@selection-change="handleSelectionChange"
@row-click="click">
<el-table-column
type="selection"
align="center"
width="55"/>
<el-table-column label="机床号" align="center">
<template slot-scope="scope">
{{ scope.row.机床图号 }}
@@ -175,7 +180,7 @@ import { initMachineProject, searchgroup, initPerson, search, searchtable1,
export default {
data() {
return {
partNumValue: '',
partNumValue: [],
machineNumberValue: '',
machineNumber: [],
groupNumberValue: '',
@@ -208,10 +213,10 @@ export default {
},
methods: {
returnEdit() { // 在制零件工艺修改
if (this.partNumValue === '' || this.partNumValue === null) {
if (this.partNumValue.length === 0) {
this.$message.error('请选择零件')
} else {
this.$confirm(`此操作会将 ${this.零件图号} 打回至未编制状态, 是否继续?`, '提示', {
this.$confirm(`此操作会将零件打回至未编制状态, 是否继续?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -219,8 +224,8 @@ export default {
returnEdit(this.partNumValue).then(response => {
if (response.data[0].result === '1') {
this.$message.success('打回成功')
this.partNumValue = ''
this.tableData = []
this.partNumValue = []
this.searchData()
this.tableData2 = []
} else {
this.$message.error('打回失败')
@@ -279,12 +284,17 @@ export default {
})
},
click(row) {
this.partNumValue = row.工艺计划流水号
this.零件图号 = row.零件图号
searchtable1(row.工艺计划流水号).then(response => {
this.tableData2 = response.data
})
},
handleSelectionChange(val) {
this.partNumValue = []
for (let i = 0; i < val.length; i++) {
this.partNumValue.push(val[i].工艺计划流水号)
}
},
handleSizeChange(val) {
this.pageCurrent = 1
this.pageSize = val