rev:bom修改
This commit is contained in:
@@ -293,9 +293,11 @@ export default {
|
||||
this.form.tableData.push({ is_need_manage: '1', prior_level: '01', standard_rate: '0', edit: false })
|
||||
},
|
||||
delOne(index, rows) {
|
||||
this.form.total_value = parseFloat(parseFloat(this.form.total_value).toFixed(4) - parseFloat(rows[index].standard_rate).toFixed(4)).toFixed(4)
|
||||
if (this.form.total_value < 0) {
|
||||
this.form.total_value = 0
|
||||
if (rows[index].is_need_manage === '1') {
|
||||
this.form.total_value = parseFloat(parseFloat(this.form.total_value).toFixed(4) - parseFloat(rows[index].standard_rate).toFixed(4)).toFixed(4)
|
||||
if (this.form.total_value < 0) {
|
||||
this.form.total_value = 0
|
||||
}
|
||||
}
|
||||
rows.splice(index, 1)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user