Merge branch 'master' of http://192.168.0.112:10010/r/高精2.0
This commit is contained in:
@@ -222,8 +222,8 @@ export default {
|
|||||||
ProcessClassification: [{ required: true, message: '请输入工艺分类名称', trigger: 'blur' }]
|
ProcessClassification: [{ required: true, message: '请输入工艺分类名称', trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
rules2: {
|
rules2: {
|
||||||
Process: [{ required: true, message: '请输入工艺名称' }],
|
Process: [{ required: true, message: '请输入工艺名称', trigger: 'blur' }],
|
||||||
ProcessShort: [{ required: true, message: '请输入工艺名称简称' }]
|
ProcessShort: [{ required: true, message: '请输入工艺名称简称', trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
rules3: {
|
rules3: {
|
||||||
TechnologicalRequirements: [{ required: true, message: '请输入工艺要求', trigger: 'blur' }]
|
TechnologicalRequirements: [{ required: true, message: '请输入工艺要求', trigger: 'blur' }]
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ export default {
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchData() { // 初始化未编制零件号、材料、公差
|
fetchData() { // 初始化未编制零件号
|
||||||
getPerson().then(response => {
|
getPerson().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.person.push({
|
this.person.push({
|
||||||
@@ -255,49 +255,61 @@ export default {
|
|||||||
this.num0 = ''
|
this.num0 = ''
|
||||||
if (this.radio === 1) {
|
if (this.radio === 1) {
|
||||||
detailInfo(this.partNumValue).then(response => {
|
detailInfo(this.partNumValue).then(response => {
|
||||||
this.typeValue = response.data[0].零件类型名称
|
if (response.data.length !== 0) {
|
||||||
this.partName = response.data[0].零件名称
|
this.typeValue = response.data[0].零件类型名称
|
||||||
this.batchNum = response.data[0].批次数量
|
this.partName = response.data[0].零件名称
|
||||||
this.num0 = response.data[0].工艺计划流水号
|
this.batchNum = response.data[0].批次数量
|
||||||
console.log(response.data[0].工艺计划流水号, 520)
|
this.num0 = response.data[0].工艺计划流水号
|
||||||
this.material = response.data[0].材料
|
this.material = response.data[0].材料
|
||||||
|
}
|
||||||
|
}).then(() => {
|
||||||
mainTable(this.num0).then(response => {
|
mainTable(this.num0).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
if (response.data.length === 0) {
|
||||||
this.tableData.push({
|
this.listLoading = false
|
||||||
name: response.data[i].工艺名称,
|
} else {
|
||||||
request: response.data[i].工艺要求,
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
num1: response.data[i].工序流水号,
|
this.tableData.push({
|
||||||
Settlement: response.data[i].准结定额工时,
|
name: response.data[i].工艺名称,
|
||||||
singleton: response.data[i].单件定额工时,
|
request: response.data[i].工艺要求,
|
||||||
lingjian: response.data[i].零件图号,
|
num1: response.data[i].工序流水号,
|
||||||
numm: response.data[i].工艺计划流水号
|
Settlement: response.data[i].准结定额工时,
|
||||||
})
|
singleton: response.data[i].单件定额工时,
|
||||||
|
lingjian: response.data[i].零件图号,
|
||||||
|
numm: response.data[i].工艺计划流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.listLoading = false
|
||||||
}
|
}
|
||||||
this.listLoading = false
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
detailInfo(this.partNumValue).then(response => {
|
detailInfo(this.partNumValue).then(response => {
|
||||||
this.typeValue = response.data[0].零件类型名称
|
if (response.data.length !== 0) {
|
||||||
this.partName = response.data[0].零件名称
|
this.typeValue = response.data[0].零件类型名称
|
||||||
this.batchNum = response.data[0].批次数量
|
this.partName = response.data[0].零件名称
|
||||||
this.num0 = response.data[0].工艺计划流水号
|
this.batchNum = response.data[0].批次数量
|
||||||
this.material = response.data[0].材料
|
this.num0 = response.data[0].工艺计划流水号
|
||||||
})
|
this.material = response.data[0].材料
|
||||||
mainTable1(this.partNumValue).then(response => {
|
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
|
||||||
this.tableData.push({
|
|
||||||
name: response.data[i].工艺名称,
|
|
||||||
request: response.data[i].工艺要求,
|
|
||||||
num1: response.data[i].工序流水号,
|
|
||||||
Settlement: response.data[i].准结定额工时,
|
|
||||||
singleton: response.data[i].单件定额工时,
|
|
||||||
budget: response.data[i].外协预算价格1,
|
|
||||||
lingjian: response.data[i].零件图号,
|
|
||||||
numm: response.data[i].工艺计划流水号
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
this.listLoading = false
|
}).then(() => {
|
||||||
|
mainTable1(this.partNumValue).then(response => {
|
||||||
|
if (response.data.length === 0) {
|
||||||
|
this.listLoading = false
|
||||||
|
} else {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.tableData.push({
|
||||||
|
name: response.data[i].工艺名称,
|
||||||
|
request: response.data[i].工艺要求,
|
||||||
|
num1: response.data[i].工序流水号,
|
||||||
|
Settlement: response.data[i].准结定额工时,
|
||||||
|
singleton: response.data[i].单件定额工时,
|
||||||
|
budget: response.data[i].外协预算价格1,
|
||||||
|
lingjian: response.data[i].零件图号,
|
||||||
|
numm: response.data[i].工艺计划流水号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -97,10 +97,10 @@
|
|||||||
<el-checkbox :disabled="parseInt(scope.row.工序状态)!==3" v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)">选择</el-checkbox>
|
<el-checkbox :disabled="parseInt(scope.row.工序状态)!==3" v-model="checkBox[scope.$index]" @change="edit(scope.$index, scope.row)">选择</el-checkbox>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="外协状态" width="100" align="center">
|
<el-table-column label="是否外协" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="parseInt(scope.row.工序间是否外协)===2" type="success" size="small">外协</el-tag>
|
<el-tag v-if="parseInt(scope.row.工序间是否外协)===2" type="success" size="small">是</el-tag>
|
||||||
<el-tag v-else size="small">自制</el-tag>
|
<el-tag v-else size="small">否</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="工艺名称" align="center" width="220px">
|
<el-table-column label="工艺名称" align="center" width="220px">
|
||||||
@@ -242,7 +242,6 @@ export default {
|
|||||||
this.checkBox = []
|
this.checkBox = []
|
||||||
this.tableData2 = []
|
this.tableData2 = []
|
||||||
searchTable2(row.工艺计划流水号).then(response => {
|
searchTable2(row.工艺计划流水号).then(response => {
|
||||||
console.log(response.data)
|
|
||||||
this.num1 = row.工艺计划流水号
|
this.num1 = row.工艺计划流水号
|
||||||
if (response.data.length === 0) {
|
if (response.data.length === 0) {
|
||||||
this.loading0 = false
|
this.loading0 = false
|
||||||
|
|||||||
Reference in New Issue
Block a user