|
@@ -236,7 +236,7 @@
|
|
|
<script>
|
|
|
import itemOption from "./configuration/detailsPage.json";
|
|
|
import { contrastObj,contrastList } from "@/util/contrastData";
|
|
|
- import { getDetails, paymentCheck,getlistBankBy,saveOrEdit } from "@/api/financialManagement/paymentRequest";
|
|
|
+ import { getDetails, paymentCheck,getlistBankBy,saveOrEdit, deleteDetail } from "@/api/financialManagement/paymentRequest";
|
|
|
import checkSchedule from "../../../components/check/checkSchedule";
|
|
|
import check from "@/components/check/check";
|
|
|
import { cancelCheck } from "@/api/check/check";
|
|
@@ -526,7 +526,27 @@
|
|
|
this.$refs.crud.rowCell(row, index)
|
|
|
},
|
|
|
rowDel(row,index){
|
|
|
- this.dataList.splice(index, 1);
|
|
|
+ this.$confirm("确定删除数据?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ if (row.id) {
|
|
|
+ deleteDetail({ids: row.id}).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ })
|
|
|
+ this.dataList.splice(row.$index, 1);
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "删除成功!"
|
|
|
+ });
|
|
|
+ this.dataList.splice(row.$index, 1);
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
//打开审核
|
|
|
openCheckDialog(){
|