更新
This commit is contained in:
@@ -89,26 +89,16 @@
|
||||
{{ scope.row.零件数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="机床数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="库存数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.库存数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="需求数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.需求数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="120px" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" icon="el-icon-edit" @click="handleEdit(scope.row)">使用</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="外购件">
|
||||
@@ -139,26 +129,16 @@
|
||||
{{ scope.row.零件数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="机床数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="库存数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.安全库存量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="需求数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.需求数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="120px" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" icon="el-icon-edit" @click="handleEdit2(scope.row)">使用</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="标准件">
|
||||
@@ -189,26 +169,16 @@
|
||||
{{ scope.row.零件数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="机床数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.备注 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="库存数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.安全库存量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="需求数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.需求数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="120px" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" icon="el-icon-edit" @click="handleEdit2(scope.row)">使用</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
@@ -1103,6 +1073,7 @@ export default {
|
||||
this.NumberOfParts[i] = val[i].零件数量
|
||||
this.ReMarks[i] = val[i].零件备注
|
||||
}
|
||||
console.log(this.NumberOfParts, 1111)
|
||||
} else if (this.PartType === '外购件') {
|
||||
this.MaterialNum = []
|
||||
this.MaterialCode = []
|
||||
@@ -1118,7 +1089,7 @@ export default {
|
||||
this.MaterialName[i] = val[i].物料名称
|
||||
this.MaterialSpecification[i] = val[i].物料规格
|
||||
this.MaterialModel[i] = val[i].物料型号
|
||||
this.NumberOfParts[i] = val[i].需求数量
|
||||
this.NumberOfParts[i] = val[i].零件数量
|
||||
this.ReMarks[i] = val[i].备注
|
||||
}
|
||||
} else if (this.PartType === '标准件') {
|
||||
@@ -1136,7 +1107,7 @@ export default {
|
||||
this.MaterialName[i] = val[i].物料名称
|
||||
this.MaterialSpecification[i] = val[i].物料规格
|
||||
this.MaterialModel[i] = val[i].物料型号
|
||||
this.NumberOfParts[i] = val[i].需求数量
|
||||
this.NumberOfParts[i] = val[i].零件数量
|
||||
this.ReMarks[i] = val[i].备注
|
||||
}
|
||||
}
|
||||
@@ -1259,7 +1230,7 @@ export default {
|
||||
},
|
||||
Production() {
|
||||
if (this.PartType === '基本件' && this.BasicPartsNumber.length !== 0) {
|
||||
Production(this.groupFloatValue, this.BasicPartsNumber, this.projectFloatValue, this.machineFloatValue).then(response => {
|
||||
Production(this.groupFloatValue, this.BasicPartsNumber, this.NumberOfParts, this.projectFloatValue, this.machineFloatValue).then(response => {
|
||||
if (response.data[0].result !== '0') {
|
||||
this.$message.success('投产成功')
|
||||
searchPart(this.groupFloatValue).then(response => {
|
||||
|
||||
@@ -298,6 +298,7 @@ export default {
|
||||
this.getSelect(initProject, ['项目名称', '项目流水号'], 'project')
|
||||
},
|
||||
searchMachine() {
|
||||
this.machineValue = ''
|
||||
this.machine = []
|
||||
initMachine(this.projectValue).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
|
||||
@@ -69,10 +69,15 @@
|
||||
<template slot-scope="scope">{{ scope.row.组号 }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="需求数量"
|
||||
label="零件数量"
|
||||
align="center">
|
||||
<template slot-scope="scope">{{ scope.row.零件数量 }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="机床数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="材料"
|
||||
align="center">
|
||||
@@ -159,6 +164,11 @@
|
||||
{{ scope.row.零件数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="机床数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.机床数量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="零件类型">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.零件类型 }}
|
||||
|
||||
Reference in New Issue
Block a user