소스 검색

修改bug

lichao 3 년 전
부모
커밋
fbfb4d31b3

+ 22 - 2
src/views/financialManagement/paymentRequest/paymentRequestDetails.vue

@@ -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(){

+ 9 - 1
src/views/reimbursement/index.vue

@@ -140,6 +140,14 @@ export default {
       this.show = false;
       this.$store.commit("BX_IN_DETAIL");
     }
+    if (this.$route.query.params) {
+      this.show = true;
+      this.detailData = {
+        id: this.$route.query.params,
+      };
+      this.show = false;
+      this.$store.commit("BX_IN_DETAIL");
+    }
   },
   methods: {
     searchCriteriaSwitch(type) {
@@ -231,7 +239,7 @@ export default {
       this.selection = list;
     },
     goBack() {
-      if (this.$route.query.check) {
+      if (this.$route.query.check || this.$route.query.params) {
         this.$router.$avueRouter.closeTag(this.$route.fullPath);
         this.$router.push({
           path: "/reimbursement/index"

+ 9 - 1
src/views/workManagement/purchaseApply/index.vue

@@ -131,6 +131,14 @@ export default {
       this.show = false;
       this.$store.commit("OFFICEPUR_IN_DETAIL");
     }
+    if (this.$route.query.params) {
+      this.show = true;
+      this.detailData = {
+        id: this.$route.query.params,
+      };
+      this.show = false;
+      this.$store.commit("OFFICEPUR_IN_DETAIL");
+    }
   },
   filters: {
     userFormat(row, userList) {
@@ -234,7 +242,7 @@ export default {
       this.selection = list;
     },
     goBack() {
-      if (this.$route.query.check) {
+      if (this.$route.query.check || this.$route.query.params) {
         this.$router.$avueRouter.closeTag(this.$route.fullPath);
         this.$router.push({
           path: "/workManagement/purchaseApply/index"

+ 9 - 1
src/views/workManagement/requisition/index.vue

@@ -131,6 +131,14 @@ export default {
       this.show = false;
       this.$store.commit("OFFICELY_IN_DETAIL");
     }
+    if (this.$route.query.params) {
+      this.show = true;
+      this.detailData = {
+        id: this.$route.query.params,
+      };
+      this.show = false;
+      this.$store.commit("OFFICELY_IN_DETAIL");
+    }
   },
   methods: {
     searchCriteriaSwitch(type) {
@@ -224,7 +232,7 @@ export default {
       this.selection = list;
     },
     goBack() {
-      if (this.$route.query) {
+      if (this.$route.query.check || this.$route.query.params) {
         this.$router.$avueRouter.closeTag(this.$route.fullPath);
         this.$router.push({
           path: "/workManagement/requisition/index"