From aa3757e8e1d986a65436c2dccec82f486ee690b5 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期三, 24 十二月 2025 09:51:31 +0800
Subject: [PATCH] 应付接口
---
ui/admin-ui3/src/views/tms/collectionTmsQuotePlan/index.vue | 41 ++++++++++++++++++-----------------------
1 files changed, 18 insertions(+), 23 deletions(-)
diff --git a/ui/admin-ui3/src/views/tms/collectionTmsQuotePlan/index.vue b/ui/admin-ui3/src/views/tms/collectionTmsQuotePlan/index.vue
index c86e5db..078d375 100644
--- a/ui/admin-ui3/src/views/tms/collectionTmsQuotePlan/index.vue
+++ b/ui/admin-ui3/src/views/tms/collectionTmsQuotePlan/index.vue
@@ -456,39 +456,34 @@
}
},
rowSaveBegin:(row:any,loading:any)=>{
- if (selectionList2.value.length == 0){
- proxy.$modal.msgError("璇疯嚦灏戦�夋嫨涓�鏉″簲鏀惰垂鐢ㄦ姤浠烽」");
- loading();
- throw new Error("璇疯嚦灏戦�夋嫨涓�鏉″簲鏀惰垂鐢ㄦ姤浠烽」");
+ if (selectionList2.value.length > 0){
+ let filter = selectionList2.value.filter((item:any)=>{
+ return !item.price || !item.currency
+ });
+ if (filter.length > 0){
+ proxy.$modal.msgError("璇峰~鍐欐墍鏈夊繀濉」");
+ loading();
+ throw new Error("璇峰~鍐欐墍鏈夊繀濉」")
+ }
+ row.quoteItems = selectionList2.value;
}
+
+
+ },
+ rowUpdateBegin(row:any,loading:any){
+ if (selectionList2.value.length > 0){
let filter = selectionList2.value.filter((item:any)=>{
- return !item.price || !item.currency
- });
+ return !item.price || !item.currency
+ });
if (filter.length > 0){
proxy.$modal.msgError("璇峰~鍐欐墍鏈夊繀濉」");
loading();
throw new Error("璇峰~鍐欐墍鏈夊繀濉」")
}
row.quoteItems = selectionList2.value;
-
- },
- rowUpdateBegin(row:any,loading:any){
- if (selectionList2.value.length == 0){
- proxy.$modal.msgError("璇疯嚦灏戦�夋嫨涓�鏉″簲鏀惰垂鐢ㄦ姤浠烽」");
- loading();
- throw new Error("璇疯嚦灏戦�夋嫨涓�鏉″簲鏀惰垂鐢ㄦ姤浠烽」");
-
}
- let filter = selectionList2.value.filter((item:any)=>{
- return !item.price || !item.currency
- });
- if (filter.length > 0){
- proxy.$modal.msgError("璇峰~鍐欐墍鏈夊繀濉」");
- loading();
- throw new Error("璇峰~鍐欐墍鏈夊繀濉」")
- }
- row.quoteItems = selectionList2.value;
+
},
handleEndOpenFunc:(type:string,res:any)=>{
if (type === 'edit'){
--
Gitblit v1.8.0