chen 3 лет назад
Родитель
Сommit
e14fbdae04

+ 57 - 50
src/api/finance/receivable_list.js

@@ -1,68 +1,75 @@
-import request from '@/utils/request'
+import request from "@/utils/request";
 
 // 其他应收单-新增
 export function getFinanceOtherReceAdd(data) {
-    return request({
-      url: '/finance/other/rece/add',
-      method: 'post',
-      data
-    })
-  }
+  return request({
+    url: "/finance/other/rece/add",
+    method: "post",
+    data,
+  });
+}
 // 经销商列表
 export function getCustomerList(params) {
-    return request({
-      url: '/customer/list',
-      method: 'get',
-      params
-    })
-  }
+  return request({
+    url: "/customer/list",
+    method: "get",
+    params,
+  });
+}
 // 经销商钱包列表
 export function getFinanceCustomerList(params) {
-    return request({
-      url: '/finance/customer/list',
-      method: 'get',
-      params
-    })
-  }
+  return request({
+    url: "/finance/customer/list",
+    method: "get",
+    params,
+  });
+}
 // 其他应收单-列表
 export function getFinanceOtherReceList(params) {
-    return request({
-      url: '/finance/other/rece/list',
-      method: 'get',
-      params
-    })
-  }
+  return request({
+    url: "/finance/other/rece/list",
+    method: "get",
+    params,
+  });
+}
 
 // 其他应收单-提审
 export function getFinanceOtherReceApply(params) {
-    return request({
-      url: '/finance/other/rece/apply',
-      method: 'post',
-      params
-    })
-  }
+  return request({
+    url: "/finance/other/rece/apply",
+    method: "post",
+    params,
+  });
+}
 // 其他应收单-详情
 export function getFinanceOtherReceDetail(params) {
-    return request({
-      url: '/finance/other/rece/detail',
-      method: 'get',
-      params
-    })
-  }
+  return request({
+    url: "/finance/other/rece/detail",
+    method: "get",
+    params,
+  });
+}
 // 其他应收单-审核
 export function getFinanceOtherReceExamine(params) {
-    return request({
-      url: '/finance/other/rece/examine',
-      method: 'post',
-      params
-    })
-  }
+  return request({
+    url: "/finance/other/rece/examine",
+    method: "post",
+    params,
+  });
+}
 // 其他应收单-删除
 export function getFinanceOtherReceDelete(params) {
-    return request({
-      url: '/finance/other/rece/delete',
-      method: 'post',
-      params
-    })
-  }
-
+  return request({
+    url: "/finance/other/rece/delete",
+    method: "post",
+    params,
+  });
+}
+// // 其他应收单-弃审
+// export function getFinanceOtherReceAbandon(params) {
+//   return request({
+//     url: "/finance/other/rece/abandon",
+//     method: "post",
+//     params,
+//   });
+// }

+ 10 - 1
src/views/basic_data/dealer/dealer_deposit.vue

@@ -147,7 +147,7 @@
           <el-table-column
             align="center"
             label="操作"
-            min-width="160"
+            min-width="200"
             show-overflow-tooltip
             fixed="right"
           >
@@ -159,6 +159,12 @@
                 @click="editFn(scope.row.id)"
                 >编辑</el-button
               >
+              <el-button
+                type="text"
+                class="textColor"
+                @click="logFn(scope.row.id)"
+                >记录</el-button
+              >
               <el-popconfirm
                 @onConfirm="deleFn(scope.row.id)"
                 v-if="$checkBtnRole('del', $route.meta.roles)"
@@ -410,6 +416,9 @@ export default {
     //     this.$message.warning("已选定额押金,如需选择押金比例,请把定额押金归零");
     //   }
     // },
+
+    //记录
+    logFn() {},
     //取消
     async cancelFn() {
       this.dialogForm = {

+ 18 - 0
src/views/finance/receivable_list.vue

@@ -233,6 +233,13 @@
                   @click="approvalFn(scope.row.id)"
                   >审批</el-button
                 >
+                <!-- <el-button
+                  type="text"
+                  class="textColor"
+                  v-show="scope.row.examineStatus == 'OK'"
+                  @click="unApprovalFn(scope.row.id)"
+                  >弃审</el-button
+                > -->
                 <el-button
                   type="text"
                   class="textColor"
@@ -272,6 +279,7 @@
 import {
   getFinanceOtherReceList,
   getFinanceOtherReceDelete,
+  getFinanceOtherReceAbandon,
 } from "@/api/finance/receivable_list";
 import ReceivableListAdd from "./components/receivable_list-add";
 import ReceivableListApproval from "./components/receivable_list-approval";
@@ -318,6 +326,16 @@ export default {
     this.getDataList({ pageSize: this.pageSize, pageNum: this.currentPage });
   },
   methods: {
+    // //弃审
+    // async unApprovalFn(id) {
+    //   await getFinanceOtherReceAbandon({ id });
+    //   this.$message.success("弃审成功");
+    //   this.getDataList({
+    //     pageNum: 1,
+    //     pageSize: this.pageSize,
+    //     examineStatus: this.examine,
+    //   });
+    // },
     //radio切换'
     changeRadioGroupFn(v) {
       this.getDataList({