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 })
|
this.form.tableData.push({ is_need_manage: '1', prior_level: '01', standard_rate: '0', edit: false })
|
||||||
},
|
},
|
||||||
delOne(index, rows) {
|
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 (rows[index].is_need_manage === '1') {
|
||||||
if (this.form.total_value < 0) {
|
this.form.total_value = parseFloat(parseFloat(this.form.total_value).toFixed(4) - parseFloat(rows[index].standard_rate).toFixed(4)).toFixed(4)
|
||||||
this.form.total_value = 0
|
if (this.form.total_value < 0) {
|
||||||
|
this.form.total_value = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rows.splice(index, 1)
|
rows.splice(index, 1)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user