Browse Source

采购报价单-选择供应商询价单-增加供应商限制

jingbb 4 months ago
parent
commit
ce3f2f66eb

+ 15 - 6
src/views/purchase/purchaseQuotationFrm/components/SelectSupplierInquiryModal.vue

@@ -47,6 +47,7 @@
                                 resultField="records"
                                 labelField="name"
                                 valueField="id"
+                                :disabled="fatherSupplier!==''"
                              />
                             </a-form-item>
                         </a-col>
@@ -271,6 +272,7 @@
     let selectedRows = ref([]);
     var fatherProject = ref('');
     var fatherSourceCode = ref('');
+    var fatherSupplier = ref('')
     const toggleSearchStatus = ref(false);
     var billDate = ref([])
     const queryParams = ref({
@@ -324,6 +326,12 @@
         }else{
             params.inquiryProject = params.inquiryProject
         }
+        if(fatherSupplier.value&&fatherSupplier.value!==''){
+            params.inquirySuppiler = fatherSupplier.value
+        }else{
+            params.inquirySuppiler = params.inquirySuppiler
+        }
+        
         return filterObj(params);
     }
     function handleTableChange(paginations, filters, sorter){
@@ -403,8 +411,8 @@
     }
     function getTable(formData){
         visible.value = true
-        if(formData.quotationProject&&formData.quotationProject!==''){
-            fatherProject.value = formData.quotationProject
+        if(formData.qutationProject&&formData.qutationProject!==''){
+            fatherProject.value = formData.qutationProject
         }else{
             fatherProject.value = ''
         }
@@ -413,6 +421,11 @@
         }else{
             fatherSourceCode.value = ''
         }
+        if(formData.quotationSuppiler&&formData.quotationSuppiler!==''){
+            fatherSupplier.value = formData.quotationSuppiler
+        }else{
+            fatherSupplier.value = ''
+        }
         loadData()
     }
     function changeBillDate(prop){
@@ -427,10 +440,6 @@
        }
        
     }
-    function projectListList(){
-        let params = {pageSize:-1}
-        return defHttp.get({url:'/baseCode/baseProjectArchive/list',params});
-    }
     defineExpose({
       getTable
     });