加工顺序调整按工艺计划流水号查

This commit is contained in:
zhangdingyu
2019-06-12 14:33:14 +08:00
parent 9ed1720c3c
commit 7cfd5d5500
4 changed files with 25 additions and 13 deletions

View File

@@ -320,7 +320,7 @@
</template>
<script>
import { searchParts, getMachine, getMachine2, searchtable, getTable2, Order, JurisdictionControl, JurisdictionContro2, outParts } from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
import { searchParts, getMachine, getMachine2, searchtable, getTable3, Order, JurisdictionControl, JurisdictionContro2, outParts } from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
import { wsuri, name } from '@/utils/request'
export default {
data() {
@@ -379,7 +379,7 @@ export default {
})
},
getRowKeys(row) {
return row.零件图
return row.工艺计划流水
},
selectMachine(row) {
this.process = []
@@ -388,7 +388,7 @@ export default {
this.colorCode = []
this.realDate = []
this.tableData2 = []
getTable2(row.零件图).then(response => {
getTable3(row.工艺计划流水).then(response => {
for (let k = 0; k < response.data.length; k++) {
this.process[k] = response.data[k].工艺名称简称
this.planDate[k] = response.data[k].计划日期_短
@@ -469,18 +469,18 @@ export default {
},
searchTable2(row) {
if (this.a === 1) {
this.expands.push(row.零件图)
this.b = row.零件图
this.expands.push(row.工艺计划流水)
this.b = row.工艺计划流水
this.a = 0
} else {
if (this.b === row.零件图) {
if (this.b === row.工艺计划流水) {
this.expands = []
this.a = 1
} else {
this.expands = []
this.expands.push(row.零件图)
this.expands.push(row.工艺计划流水)
this.a = 0
this.b = row.零件图
this.b = row.工艺计划流水
}
}
this.process = []
@@ -489,7 +489,7 @@ export default {
this.colorCode = []
this.realDate = []
this.tableData2 = []
getTable2(row.零件图).then(response => {
getTable3(row.工艺计划流水).then(response => {
for (let k = 0; k < response.data.length; k++) {
this.process[k] = response.data[k].工艺名称简称
this.planDate[k] = response.data[k].计划日期_短