From 02aa50f23d4858798a951bef1cfe2bc23031a4b1 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期五, 26 四月 2024 16:11:46 +0800
Subject: [PATCH] 合同导入新增金额规则

---
 src/views/system/calculate/record/index.vue |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/views/system/calculate/record/index.vue b/src/views/system/calculate/record/index.vue
index b321768..a48404b 100644
--- a/src/views/system/calculate/record/index.vue
+++ b/src/views/system/calculate/record/index.vue
@@ -44,7 +44,6 @@
           size="mini"
           :disabled="single"
           @click="handleUpdate"
-          v-hasPermi="['system:record:edit']"
         >淇敼</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -55,7 +54,6 @@
           size="mini"
           :disabled="multiple"
           @click="handleDelete"
-          v-hasPermi="['system:record:remove']"
         >鍒犻櫎</el-button>
       </el-col>
       <el-col :span="1.5">
@@ -65,7 +63,6 @@
           icon="el-icon-download"
           size="mini"
           @click="handleExport"
-          v-hasPermi="['system:record:export']"
         >瀵煎嚭</el-button>
       </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@@ -98,14 +95,12 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['system:record:edit']"
           >淇敼</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['system:record:remove']"
           >鍒犻櫎</el-button>
         </template>
       </el-table-column>
@@ -164,7 +159,7 @@
 </template>
 
 <script>
-import { listRecord, getRecord, delRecord, addRecord, updateRecord } from "@/api/platform/calculate-record";
+import { getCalculateRecords, getCalculateRecordById,deleteCalculateRecordByIds, addCalculateRecord, editCalculateRecord } from "@/api/platform/calculate-record";
 import {unitSelect} from "@/api/platform/unit";
 export default {
   name: "Record",
@@ -223,7 +218,7 @@
     /** 鏌ヨ鏍哥畻璁板綍鍒楄〃 */
     getList() {
       this.loading = true;
-      listRecord(this.queryParams).then(response => {
+      getCalculateRecords(this.queryParams).then(response => {
         this.recordList = response.rows;
         this.total = response.total;
         this.loading = false;
@@ -273,7 +268,7 @@
     handleUpdate(row) {
       this.reset();
       const id = row.id || this.ids
-      getRecord(id).then(response => {
+      getCalculateRecordById(id).then(response => {
         this.form = response.data;
         this.open = true;
         this.title = "淇敼鏍哥畻璁板綍";
@@ -284,13 +279,13 @@
       this.$refs["form"].validate(valid => {
         if (valid) {
           if (this.form.id != null) {
-            updateRecord(this.form).then(response => {
+            editCalculateRecord(this.form).then(response => {
               this.$modal.msgSuccess("淇敼鎴愬姛");
               this.open = false;
               this.getList();
             });
           } else {
-            addRecord(this.form).then(response => {
+            addCalculateRecord(this.form).then(response => {
               this.$modal.msgSuccess("鏂板鎴愬姛");
               this.open = false;
               this.getList();
@@ -303,7 +298,7 @@
     handleDelete(row) {
       const ids = row.id || this.ids;
       this.$modal.confirm('鏄惁纭鍒犻櫎鏍哥畻璁板綍缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
-        return delRecord(ids);
+        return deleteCalculateRecordByIds(ids);
       }).then(() => {
         this.getList();
         this.$modal.msgSuccess("鍒犻櫎鎴愬姛");

--
Gitblit v1.8.0