ソースを参照

核心开立选择应付账款前先选择接收方

xuefy 3 年 前
コミット
7f88b422d9

+ 10 - 2
front-vue/src/views/service/credit/addCredit.vue

@@ -436,6 +436,7 @@ export default {
         },
         //应付账款查询列表
         getAccountsPay() {
+           this.queryParamsPay.zbiPayeeId = this.form.zfiSupplierId;
            return getAccountsPay(this.queryParamsPay).then((response) => {
                 this.payList = response.data.records;
                 this.selectChecked();
@@ -467,6 +468,13 @@ export default {
             //清空搜索条件
             this.queryParamsPay.zbiName = "";
             this.queryParamsPay.receiveName = "";
+             if(!this.form.zfiSupplierId){
+                this.$message({
+                        message: "请选择接收方",
+                        type: "warning",
+                    });
+                return false;    
+            }
             this.getAccountsPay();
             this.open = true;
             this.payTitle = "应付账款";
@@ -534,7 +542,7 @@ export default {
                                 type: "warning",
                             });
                             this.open = false;
-                            return true;
+                            return false;
                         }
                         if (zbiPayDate != this.chooseTicket[i].zbiPayDate) {
                             flag = false
@@ -544,7 +552,7 @@ export default {
                                 type: "warning",
                             });
                             this.open = false;
-                            return true;
+                            return false;
                         }
                     }
                     if(flag){

+ 1 - 1
front-vue/src/views/service/credit/addInformation.vue

@@ -462,7 +462,7 @@ export default {
         },  */  
         //应收账款查询列表
         getAccountsCollection() {
-            //开立方为应收企业的
+            //开立方
             this.queryParamsPay.payId = this.zfiCoreId;
             //接收方
             this.queryParamsPay.zfiSupplierId = this.zfiSupplierId;

+ 8 - 0
front-vue/src/views/service/credit/creditUpdate.vue

@@ -477,6 +477,13 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            if(!this.form.zfiSupplierId){
+                    this.$message({
+                        message: "请选择接收方",
+                        type: "warning",
+                    });
+                    return false;    
+            }
             //搜索条件清空
             this.queryParamsPay.zbiName = "";
             this.queryParamsPay.receiveName = "";
@@ -504,6 +511,7 @@ export default {
         },   
         //应付账款查询列表
         getAccountsPay() {
+           this.queryParamsPay.zbiPayeeId = this.form.zfiSupplierId; 
            return getAccountsPay(this.queryParamsPay).then((response) => {
                 this.payList = response.data.records;
                 this.selectChecked();