Browse Source

采购订单-选择供应商报价选定展示供应商

jingbb 2 months ago
parent
commit
c5ea657362
1 changed files with 11 additions and 6 deletions
  1. 11 6
      src/views/publicComponents/SelectSupplierQuotation.vue

+ 11 - 6
src/views/publicComponents/SelectSupplierQuotation.vue

@@ -144,7 +144,8 @@
     var visible = ref(false)
     var fatherProject = ref('')
     var fatherSourceCode = ref('')
-    const columns = [
+    var columns=[]
+    const columns1 = [
         { 
             type: 'selection',
             fixed: 'left',
@@ -170,11 +171,11 @@
             align:"center",
             dataIndex: 'projectName'
         },
-        // {
-        //     title: '供应商(supplier)',
-        //     align:"center",
-        //     dataIndex: 'selectionSupplier_dictText'
-        // },
+        {
+            title: '供应商(supplier)',
+            align:"center",
+            dataIndex: 'selectionSupplier_dictText'
+        },
         // {
         //     title: '询价供应商(quotation supplier)',
         //     align:"center",
@@ -430,6 +431,7 @@
             }else{
                 fatherSourceCode.value = ''
             }
+            columns= columns1
         }else{
             if(formData.quotationProjectName&&formData.quotationProjectName!==''){
              fatherProject.value = formData.quotationProject
@@ -441,6 +443,9 @@
             }else{
                 fatherSourceCode.value = ''
             }
+            columns= columns1.filter(function(value, i) {
+                return i !== 4;
+            });
         }       
         loadData()
     }