|
@@ -165,7 +165,7 @@
|
|
|
<span slot="option" slot-scope="text, record, index">
|
|
|
<a @click="copyRow(record)">复制</a>
|
|
|
<a-divider type="vertical" />
|
|
|
- <a @click="deleteRow(index)" style="color:red">删行</a>
|
|
|
+ <a @click="deleteRow(record,index)" style="color:red">删行</a>
|
|
|
|
|
|
</span>
|
|
|
</a-table>
|
|
@@ -478,8 +478,9 @@
|
|
|
},
|
|
|
|
|
|
//删行
|
|
|
- deleteRow(index){
|
|
|
+ deleteRow(record,index){
|
|
|
this.syCarryBTable.dataSource.splice(index,1)
|
|
|
+ this.formState.totalNum =(Number(this.formState.totalNum) -Number(record.totalPrice)).toFixed(2)
|
|
|
},
|
|
|
|
|
|
/** 调用完edit()方法之后会自动调用此方法 */
|