Переглянути джерело

销售报价单-选择供应商报价单-页面调整-获取供应商下拉框数据

jingbb 5 місяців тому
батько
коміт
63f2cfd12a

+ 5 - 5
src/views/saleCode/quotation/components/SelectSupplierQuotation.vue

@@ -31,11 +31,11 @@
                            <a-col :md="6"  :sm="8">
                             <a-form-item  label="报价供应商(quotation supplier)">
                                 <ApiSelect
-                                    :api="supplierOptionsApi"
+                                    :api="supplierOption"
                                     showSearch
                                     v-model:value="queryParams.quotationSuppiler"
                                     optionFilterProp="label"
-                                    resultField="list"
+                                    resultField="records"
                                     labelField="name"
                                     valueField="id"
                                 />
@@ -119,9 +119,9 @@
     import {  ApiSelect, } from '/@/components/Form/index';
     import { JDictSelectTag} from '/@/components/Form';
     import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
+    import { supplierOption } from '../quotationForm.api';
     const emit = defineEmits([ 'selectProduct']); //定义emit
     let classOption = ref([])
-    var supplierOptionsApi = ref('/cuspCode/cuspSupplierProfile/list')
     var visible = ref(false)
     var fatherProjectName = ref('')
     var fatherSourceCode = ref('')
@@ -222,11 +222,11 @@
     ];
     const labelCol = ref({
     xs: { span: 24 },
-    sm: { span: 9 },
+    sm: { span: 11 },
     });
     const wrapperCol = ref({
         xs: { span: 24 },
-        sm: { span: 15 },
+        sm: { span: 13 },
     });
     const dataSource =ref([]);
     let selectedRowKeys = ref([]);

+ 6 - 2
src/views/saleCode/quotation/quotationForm.api.ts

@@ -20,7 +20,8 @@ enum Api {
   saleQuotationFormProductList = '/saleCode/saleQuotation/querySaleQuotationProductByMainId',
   salVersonFormProductList = '/saleCode/saleQuotationHis/querySaleQuotationProductHisByMainId',
   submitBatch='/saleCode/saleQuotation/submitBatch',
-  cancelSubmitBatch='/saleCode/saleQuotation/returnSubmitBatch'
+  cancelSubmitBatch='/saleCode/saleQuotation/returnSubmitBatch',
+  supplierList='/cuspCode/cuspSupplierProfile/list?pageSize=-1'
 }
 /**
  * 导出api
@@ -135,4 +136,7 @@ export const cancelBatchSubmit = (params, handleSuccess) => {
       });
     }
   });
-}
+}
+
+//获取供应商列表
+export const supplierOption = (params) => defHttp.get({url: Api.supplierList, params});