|
@@ -1305,6 +1305,26 @@ export default {
|
|
|
},
|
|
|
//点击修改或保存时触发
|
|
|
rowCellTwo(row, index) {
|
|
|
+ if (row.$cellEdit) {
|
|
|
+
|
|
|
+ if (this.activeName == "first") {
|
|
|
+
|
|
|
+ } else if (this.activeName == "second") {
|
|
|
+ } else if (this.activeName == "three") {
|
|
|
+
|
|
|
+ if (row.serviceCharge != 0) {
|
|
|
+ row.serviceCharge = -Math.abs(row.serviceCharge);
|
|
|
+ }
|
|
|
+ if (row.matMoney != 0) {
|
|
|
+ row.matMoney = -Math.abs(row.matMoney);
|
|
|
+ }
|
|
|
+ if (row.amount != 0) {
|
|
|
+ row.amount = -Math.abs(row.amount);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
this.$refs.crud.rowCell(row, index);
|
|
|
},
|
|
|
//选择时
|
|
@@ -1434,6 +1454,9 @@ export default {
|
|
|
frequency: item.rate,
|
|
|
projectType: this.secondDisable,
|
|
|
commission: item.commission,
|
|
|
+ serviceCharge: 0,
|
|
|
+ matMoney: 0,
|
|
|
+ amount: 0
|
|
|
}
|
|
|
this.$refs.crud.rowCellAdd(params);
|
|
|
this.$refs.crud.rowCell(item, this.optionFrom.length - 1)
|