外协价格预算
This commit is contained in:
@@ -76,30 +76,30 @@
|
|||||||
{{ scope.row.原材料规格 }}
|
{{ scope.row.原材料规格 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="面积" width="110" align="center">
|
<!--<el-table-column label="面积" width="110" align="center">-->
|
||||||
<template slot-scope="scope">
|
<!--<template slot-scope="scope">-->
|
||||||
{{ scope.row.面积 }}
|
<!--{{ scope.row.面积 }}-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
</el-table-column>
|
<!--</el-table-column>-->
|
||||||
<el-table-column label="重量" width="110" align="center">
|
<!--<el-table-column label="重量" width="110" align="center">-->
|
||||||
<template slot-scope="scope">
|
<!--<template slot-scope="scope">-->
|
||||||
{{ scope.row.重量 }}
|
<!--{{ scope.row.重量 }}-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
</el-table-column>
|
<!--</el-table-column>-->
|
||||||
<el-table-column label="材料费" width="110" align="center">
|
<!--<el-table-column label="材料费" width="110" align="center">-->
|
||||||
<template slot-scope="scope">
|
<!--<template slot-scope="scope">-->
|
||||||
{{ scope.row.材料费 }}
|
<!--{{ scope.row.材料费 }}-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
</el-table-column>
|
<!--</el-table-column>-->
|
||||||
<el-table-column label="操作" align="center" width="150px" fixed="right">
|
<!--<el-table-column label="操作" align="center" width="150px" fixed="right">-->
|
||||||
<template slot-scope="scope">
|
<!--<template slot-scope="scope">-->
|
||||||
<el-button
|
<!--<el-button-->
|
||||||
size="mini"
|
<!--size="mini"-->
|
||||||
type="primary"
|
<!--type="primary"-->
|
||||||
class="el-icon-edit"
|
<!--class="el-icon-edit"-->
|
||||||
@click="edit(scope.$index, scope.row, 'form')">编辑</el-button>
|
<!--@click="edit(scope.$index, scope.row, 'form')">编辑</el-button>-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
</el-table-column>
|
<!--</el-table-column>-->
|
||||||
</el-table>
|
</el-table>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<el-pagination
|
<el-pagination
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="外协预算价格" width="110" align="center">
|
<el-table-column label="外协预算价格" width="110" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="tableData[scope.$index].外协预算价格_系数" size="mini" />
|
<el-input v-model="tableData[scope.$index].外协预算价格_计算" size="mini" />
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -305,7 +305,7 @@ export default {
|
|||||||
return
|
return
|
||||||
} else if (index === 5) {
|
} else if (index === 5) {
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
sums[5] += parseFloat(data[i].外协预算价格_系数)
|
sums[5] += parseFloat(data[i].外协预算价格_计算)
|
||||||
}
|
}
|
||||||
sums[5] = parseInt(sums[5] * 100) / 100
|
sums[5] = parseInt(sums[5] * 100) / 100
|
||||||
}
|
}
|
||||||
@@ -317,8 +317,8 @@ export default {
|
|||||||
this.tableData = []
|
this.tableData = []
|
||||||
searchTable(row.工艺计划流水号, 1).then(response => {
|
searchTable(row.工艺计划流水号, 1).then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
if (response.data[i].外协预算价格_系数 !== 0) {
|
if (response.data[i].外协预算价格_计算 !== 0) {
|
||||||
response.data[i].外协预算价格_系数 = response.data[i].外协预算价格_系数.toFixed(2)
|
response.data[i].外协预算价格_计算 = response.data[i].外协预算价格_计算.toFixed(2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.cailiaofei = row.材料费
|
this.cailiaofei = row.材料费
|
||||||
@@ -372,7 +372,7 @@ export default {
|
|||||||
this.$message.error('请选择零件')
|
this.$message.error('请选择零件')
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < this.tableData.length; i++) {
|
for (let i = 0; i < this.tableData.length; i++) {
|
||||||
saveRowPrice(this.tableData[i].工序流水号, parseFloat(this.tableData[i].外协预算价格_系数), this.tableData[i].工艺计划流水号, this.cailiaofei).then(response => {
|
saveRowPrice(this.tableData[i].工序流水号, parseFloat(this.tableData[i].外协预算价格_计算), this.tableData[i].工艺计划流水号, this.cailiaofei).then(response => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
|
|||||||
Reference in New Issue
Block a user