车间排产
This commit is contained in:
@@ -125,6 +125,7 @@ import { getPerson, getParts, getGongxu, XuanRu, XuanChu, searchTableData2 } fro
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
index: 0,
|
||||
工艺计划流水号: '',
|
||||
PersonValue: '',
|
||||
Person: [],
|
||||
@@ -180,6 +181,7 @@ export default {
|
||||
getGongxu(row) {
|
||||
this.loading3 = true
|
||||
this.tableData3 = []
|
||||
this.index = row.index
|
||||
this.工艺计划流水号 = row.工艺计划流水号
|
||||
getGongxu(row.工艺计划流水号).then(response => {
|
||||
response.data.map(v => {
|
||||
@@ -198,6 +200,7 @@ export default {
|
||||
})
|
||||
},
|
||||
tableData1ClassName({ row, rowIndex }) {
|
||||
row.index = rowIndex
|
||||
if (row.状态 === '1') {
|
||||
return 'CJPClingjianjinxing'
|
||||
}
|
||||
@@ -219,7 +222,8 @@ export default {
|
||||
if (row.工序状态 !== 4) {
|
||||
XuanRu(this.PersonValue, row.工序流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.getParts()
|
||||
// this.getParts()
|
||||
this.tableData1[this.index].状态 = '1'
|
||||
this.loading3 = true
|
||||
this.tableData3 = []
|
||||
getGongxu(this.工艺计划流水号).then(response => {
|
||||
@@ -245,7 +249,8 @@ export default {
|
||||
XuanChu(row) {
|
||||
XuanChu(row.工序流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.getParts()
|
||||
// this.getParts()
|
||||
this.tableData1[this.index].状态 = '1'
|
||||
this.loading3 = true
|
||||
this.tableData3 = []
|
||||
getGongxu(this.工艺计划流水号).then(response => {
|
||||
@@ -268,10 +273,12 @@ export default {
|
||||
})
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
this.tableData3 = []
|
||||
this.pageSize = val
|
||||
this.getParts()
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
this.tableData3 = []
|
||||
this.pageCurrent = val
|
||||
this.getParts()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user