Merge branch 'master' of http://123.56.95.229:10010/r/高精
This commit is contained in:
@@ -42,7 +42,7 @@ export function searchtable(check1, value1, check3, value3, check5, value5, valu
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function editSpare(CutCode, number, id) {
|
export function editSpare(CutCode, number, id, Unqualified, remarkGroup, people) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -51,7 +51,7 @@ export function editSpare(CutCode, number, id) {
|
|||||||
ModularID: router.currentRoute.path,
|
ModularID: router.currentRoute.path,
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '报废补投_提交报废_循环执行',
|
name: '报废补投_提交报废_循环执行',
|
||||||
param: '工艺计划流水号组=' + CutCode + '&报废数量组=' + number + '&报废人=' + id
|
param: '工艺计划流水号组=' + CutCode + '&报废数量组=' + number + '&报废人=' + id + '&不合格原因组=' + Unqualified + '&备注组=' + remarkGroup + '&质检人组=' + people
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -838,7 +838,6 @@ export default {
|
|||||||
},
|
},
|
||||||
QualityType() {
|
QualityType() {
|
||||||
QualityType().then(response => {
|
QualityType().then(response => {
|
||||||
console.log(response.data)
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.QualityTypeNumber.push({
|
this.QualityTypeNumber.push({
|
||||||
label: response.data[i].质检类型,
|
label: response.data[i].质检类型,
|
||||||
|
|||||||
@@ -84,16 +84,36 @@
|
|||||||
{{ scope.row.报废时间 }}
|
{{ scope.row.报废时间 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="报废原因" width="140px" show-overflow-tooltip>
|
<el-table-column align="center" label="报废原因" width="100px" show-overflow-tooltip>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.报废原因 }}
|
{{ scope.row.报废原因 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="报废备注" width="140px" show-overflow-tooltip>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.备注 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="质检员" width="85px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.质检人 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" label="报废工时(分)" width="105px">
|
<el-table-column align="center" label="报废工时(分)" width="105px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.报废工时 }}
|
{{ scope.row.报废工时 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="补投时间" width="85px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.补投时间 ? scope.row.补投时间.split(' ')[0] : '' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="补投人" width="85px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.补投人 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block" style="margin-top: 10px">
|
<div class="block" style="margin-top: 10px">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
|
|||||||
@@ -227,7 +227,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="投产时间">
|
label="投产时间">
|
||||||
<template slot-scope="scope">{{ scope.row.操作时间 }}</template>
|
<template slot-scope="scope">{{ scope.row.操作时间 ? scope.row.操作时间.split(' ')[0] : '' }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!--<el-table-column-->
|
<!--<el-table-column-->
|
||||||
<!--label="是否外协">-->
|
<!--label="是否外协">-->
|
||||||
@@ -239,18 +239,18 @@
|
|||||||
<!--</el-table-column>-->
|
<!--</el-table-column>-->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="机加工开始时间">
|
label="机加工开始时间">
|
||||||
<template slot-scope="scope">{{ scope.row.机加工开始时间 }}</template>
|
<template slot-scope="scope">{{ scope.row.机加工开始时间 ? scope.row.机加工开始时间.split(' ')[0] : '' }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="机加工结束时间">
|
label="机加工结束时间">
|
||||||
<template slot-scope="scope">{{ scope.row.机加工结束时间 }}</template>
|
<template slot-scope="scope">{{ scope.row.机加工结束时间 ? scope.row.机加工结束时间.split(' ')[0] : '' }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="200px">
|
<el-table-column label="操作" width="200px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
fixed="rihgt"
|
fixed="rihgt"
|
||||||
type="primary"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleEdit1(tableData1, scope.$index, scope.row, 'form')">编辑</el-button>
|
@click="handleEdit1(tableData1, scope.$index, scope.row, 'form')">编辑</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ export default {
|
|||||||
if (val[i].进程 !== '编制中') {
|
if (val[i].进程 !== '编制中') {
|
||||||
this.jinyong = true
|
this.jinyong = true
|
||||||
}
|
}
|
||||||
if (val[i].进程 === '编制中') {
|
if (val[i].进程 === '编制中' || val[i].进程 === '未分配') {
|
||||||
this.jinyong1 = true
|
this.jinyong1 = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,6 +194,9 @@ export default {
|
|||||||
procedureGroup: [],
|
procedureGroup: [],
|
||||||
ScrapQuantity: [],
|
ScrapQuantity: [],
|
||||||
ProcessPlanNumber: [],
|
ProcessPlanNumber: [],
|
||||||
|
Unqualified: [],
|
||||||
|
remarkGroup: [],
|
||||||
|
people: [],
|
||||||
Data: [],
|
Data: [],
|
||||||
tableData: [], // 表格数据
|
tableData: [], // 表格数据
|
||||||
total: 0, // 总条数
|
total: 0, // 总条数
|
||||||
@@ -287,12 +290,18 @@ export default {
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.ScrapQuantity = []
|
this.ScrapQuantity = []
|
||||||
this.ProcessPlanNumber = []
|
this.ProcessPlanNumber = []
|
||||||
|
this.Unqualified = []
|
||||||
|
this.remarkGroup = []
|
||||||
|
this.people = []
|
||||||
for (let i = 0; i < this.procedureGroup.length; i++) {
|
for (let i = 0; i < this.procedureGroup.length; i++) {
|
||||||
this.ScrapQuantity.push(this.procedureGroup[i].不合格数量)
|
this.ScrapQuantity.push(this.procedureGroup[i].不合格数量)
|
||||||
this.ProcessPlanNumber.push(this.procedureGroup[i].工艺计划流水号)
|
this.ProcessPlanNumber.push(this.procedureGroup[i].工艺计划流水号)
|
||||||
|
this.Unqualified.push(this.procedureGroup[i].不合格原因文本)
|
||||||
|
this.remarkGroup.push(this.procedureGroup[i].备注)
|
||||||
|
this.people.push(this.procedureGroup[i].人员编号)
|
||||||
}
|
}
|
||||||
this.handleEdit_disable = true
|
this.handleEdit_disable = true
|
||||||
editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id).then(response => {
|
editSpare(this.ProcessPlanNumber, this.ScrapQuantity, this.id, this.Unqualified, this.remarkGroup, this.people).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('报废成功')
|
this.$message.success('报废成功')
|
||||||
this.searchTable()
|
this.searchTable()
|
||||||
|
|||||||
Reference in New Issue
Block a user