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

采购报价单选定-主表产品分类展示汉字

jingbb 4 місяців тому
батько
коміт
273dee5db5

+ 16 - 6
src/views/purchase/selectionQuotationForm/components/SelectQuotationFormForm.vue

@@ -27,7 +27,17 @@
 						</a-col>
 						<a-col :span="12">
 							<a-form-item label="产品分类(production class)" v-bind="validateInfos.productionClass" id="SelectQuotationFormForm-productionClass" name="productionClass">
-								<a-input v-model:value="formData.productionClass" placeholder="请输入"  allow-clear disabled></a-input>
+								<ApiSelect
+                    :api="ClassList"
+                    showSearch
+                    v-model:value="formData.productionClass"
+                    :filterOption="false"
+                    resultField="records"
+                    labelField="name"
+                    valueField="id"
+                    :params='{pageSize:-1}'
+                    disabled
+                  />
 							</a-form-item>
 						</a-col>
 						<a-col :span="12">
@@ -144,18 +154,17 @@
   import { defineComponent, ref, reactive, computed, toRaw, onMounted } from 'vue';
   import { defHttp } from '/@/utils/http/axios';
   import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
-  import { SelectQuotationFormShippTable, SelectQuotationFormProductListByMainId, queryDataById, saveOrUpdate } from '../SelectionQuotationForm.api';
+  import { SelectQuotationFormShippTable, SelectQuotationFormProductListByMainId, queryDataById, saveOrUpdate,ClassList } from '../SelectionQuotationForm.api';
   import { JVxeTable } from '/@/components/jeecg/JVxeTable';
   import {SelectQuotationFormShipTableCloumn, SelectQuotationFormProductColumns,SupplierQuotationColumns,SupplierSummaryAmountColumns} from '../SelectionQuotationForm.data';
   import BaseShipArchiveAccessoriesModal from '../../../publicComponents/BaseShipArchiveAccessoriesModal.vue';
   import SelectProjectModal from '../../../publicComponents/SelectProjectModal.vue';
   import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
   import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
-  import { JDictSelectTag} from '/@/components/Form';
+  import { JDictSelectTag,ApiSelect} from '/@/components/Form';
   import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
   import { Form ,message} from 'ant-design-vue';
   import moment from 'moment';
-import { log } from 'console';
   const useForm = Form.useForm;
   export default defineComponent({
     name: "SelectQuotationFormForm",
@@ -167,6 +176,7 @@ import { log } from 'console';
       SelectProjectModal,
       JDictSelectTag,
       JSelectInput,
+      ApiSelect
     },
     props:{
       formDisabled:{
@@ -306,7 +316,6 @@ import { log } from 'console';
         const mainData = await getFormData();
         const subData = await getSubFormAndTableData();
         const values = Object.assign({}, dbData, mainData, subData);
-        console.log('表单提交数据', values)
         const isUpdate = values.id ? true : false
         await saveOrUpdate(values, isUpdate);
         //关闭弹窗
@@ -448,7 +457,8 @@ import { log } from 'console';
         SupplierSummaryAmountTableRef,
         SupplierSummaryAmountTable,
         supplierList,
-        selectSupplier
+        selectSupplier,
+        ClassList
       }
     }
   });