车间排产

This commit is contained in:
zhangdingyu
2019-10-26 20:09:48 +08:00
parent a398554f26
commit 1345515b68

View File

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