|
@@ -174,7 +174,7 @@
|
|
|
import { getDetails,modify,cancelModify,saveOrEdit } from "@/api/financialManagement/paymentRequest";
|
|
|
import billDetail from "@/components/bill/billDetailList";
|
|
|
import _ from "lodash";
|
|
|
- import { getlistBankBy } from "@/api/financialManagement/paymentRequest";
|
|
|
+ import { getlistBankBy,deleteDetail } from "@/api/financialManagement/paymentRequest";
|
|
|
import { contrastObj,contrastList } from "@/util/contrastData";
|
|
|
import {getUserInfo} from "@/api/system/user";
|
|
|
import {getCorpDetail} from "@/api/maintenance/overpayment";
|
|
@@ -501,7 +501,17 @@
|
|
|
this.$refs.crud.rowCell(row, index)
|
|
|
},
|
|
|
rowDel(row,index){
|
|
|
- this.dataList.splice(index, 1);
|
|
|
+ if (row.id) {
|
|
|
+ deleteDetail({ids: row.id}).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!"
|
|
|
+ });
|
|
|
+ this.dataList.splice(index, 1);
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.dataList.splice(index, 1);
|
|
|
+ }
|
|
|
},
|
|
|
searchReset() {
|
|
|
console.log('1')
|
|
@@ -536,22 +546,18 @@
|
|
|
this.buttonLoading = true
|
|
|
this.form.billNo = this.dataList.map(item =>{return item.billNo}).join(",")
|
|
|
|
|
|
- console.log(this.financeDisabled)
|
|
|
if (this.category == 2 && this.financeDisabled) {
|
|
|
this.allAmount = 0;
|
|
|
this.form.amount = this.form.amount? this.form.amount: 0
|
|
|
this.dataList.forEach(e => {
|
|
|
this.allAmount = Number(this.allAmount) + Number(e.thisAmount)
|
|
|
})
|
|
|
- console.log(Number(this.allAmount) > 0)
|
|
|
- console.log((Number(this.form.amount) < Number(this.allAmount)))
|
|
|
if (this.allAmount == 0 && this.form.amount == 0) {
|
|
|
return this.$message.error('人民币金额不能为空')
|
|
|
} else if (Number(this.allAmount) > 0 && (Number(this.form.amount) > Number(this.allAmount))) {
|
|
|
this.form.caseOverPayment = 0;
|
|
|
} else if (Number(this.allAmount) > 0 && (Number(this.form.amount) < Number(this.allAmount))) {
|
|
|
this.form.caseOverPayment = Number(this.allAmount) - Number(this.form.amount)
|
|
|
- console.log(this.form.caseOverPayment)
|
|
|
if (Number(this.form.caseOverPayment) > Number(this.form.overPayment)) {
|
|
|
return this.$message.error('溢付款余额不足,无法收费')
|
|
|
}
|