序间外协全部

This commit is contained in:
Vergil
2020-02-05 14:49:18 +08:00
parent 18c5cf8f80
commit b673cc0c43
3 changed files with 14 additions and 9 deletions

BIN
dist.zip

Binary file not shown.

View File

@@ -39,7 +39,7 @@ export function searchTable(num1, num2, num3, num4, num5, num6, check, num7, pag
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新',
name: '车间生产管理工艺_序间外协_查询零件',
param: '项目流水号_check=' + num1 + '&项目流水号=' + num2 + '&机床流水号_check=' + num3 + '&机床流水号=' + num4 + '&组件流水号_check=' + num5 + '&组件流水号=' + num6 + '&零件图号_check=' + check + '&零件图号=' + num7 + '&考核状态_check=0&考核状态=0&单件是否外协_check=1&单件是否外协=1&时间=0&机加工开始时间=0&机加工结束时间=0&零件类型=0',
Pagination: pageCurrent + '&' + pageSize
}

View File

@@ -21,7 +21,7 @@
</el-select>
<el-input v-model="partName" placeholder="零件图号" size="small" clearable style="width:150px"/>
<el-button size="small" icon="el-icon-search" type="primary" plain @click="pageSize1=50; pageCurrent1=1;searchTable()">查询</el-button>
<el-table v-loading="loading1" :data="tableData1" size="mini" highlight-current-row height="550px" style="width: 100%;" border element-loading-text="拼命加载中" @row-click="searchTable2">
<el-table v-loading="loading1" :data="tableData1" :row-class-name="tableData1ClassName2" size="mini" highlight-current-row height="550px" style="width: 100%;" border element-loading-text="拼命加载中" @row-click="searchTable2">
<el-table-column label="零件图号" prop="零件图号" align="center" width="140px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.零件图号 }}
@@ -235,6 +235,12 @@ export default {
return 'XJWXywc'
}
},
tableData1ClassName2({ row, rowIndex }) {
row.index = rowIndex
if (row.状态 === 1 || row.状态 === '1') {
return 'XJWXwx'
}
},
// 修改外协状态
edit(index, row) {
this.count = 0
@@ -245,21 +251,20 @@ export default {
}
}
if (this.count === this.tableData2.length) {
this.tableData1[this.index2].状态 = 0
edit2(row.工序流水号, row.工艺计划流水号, 0)
}
if (this.checkBox[index] === true) {
this.InOut = 2
this.tableData2[this.index].工序间是否外协 = 2
this.tableData1[this.index2].状态 = 1
edit(row.工序流水号, this.InOut).then(response => {
edit2(row.工序流水号, row.工艺计划流水号, 1).then(response => {
this.tableData2[this.index].工序间是否外协 = 2
this.tableData1[this.index2].工序间是否外协 = 2
})
edit2(row.工序流水号, row.工艺计划流水号, 1)
})
} else {
this.InOut = 1
edit(row.工序流水号, this.InOut).then(response => {
this.tableData2[this.index].工序间是否外协 = 1
})
this.tableData2[this.index].工序间是否外协 = 1
edit(row.工序流水号, this.InOut)
}
},
// 保存行价格