Browse Source

采购询价单-增加制单人筛选条件

jingbb 2 tháng trước cách đây
mục cha
commit
f2199852c6

+ 6 - 0
src/views/purchase/purchaseInquiryForm/purchaseInquiryForm.api.ts

@@ -20,6 +20,7 @@ enum Api {
   customerList='/cuspCode/cuspCustomerProfile/list',
   projectList='/baseCode/baseProjectArchive/list',
   classList='baseCode/baseProductClass/list',
+  userList='/sys/user/listAll',
 }
 /**
  * 导出api
@@ -134,3 +135,8 @@ export const ProjectOption = (params) => defHttp.get({ url: Api.projectList, par
  * @param params
  */
 export const ClassList = (params) => defHttp.get({url: Api.classList, params});
+/**
+ * 用户列表接口
+ * @param params
+ */
+export const UserList = (params) => defHttp.get({url: Api.userList, params});

+ 17 - 0
src/views/purchase/purchaseInquiryForm/purchaseInquiryFormList.vue

@@ -79,6 +79,22 @@
                 <JDictSelectTag v-model:value="queryParam.model" placeholder="请选择" dictCode="model_typer" />
               </a-form-item>
             </a-col>
+            <a-col :lg="8">
+              <a-form-item name="createBy">
+                <template #label><span title="制单人(createBy)">制单人(createBy)</span></template>
+                <ApiSelect
+                  :api="UserList"
+                  showSearch
+                  v-model:value="queryParam.createBy"
+                  :filterOption="true"
+                  resultField="records"
+                  labelField="realname"
+                  valueField="username"
+                  :params="{ pageSize: -1 }"
+                  optionFilterProp="label"
+                />
+              </a-form-item>
+            </a-col>
             <a-col :lg="8">
               <a-form-item name="maker">
                 <template #label><span title="厂家(maker)">厂家(maker)</span></template>
@@ -181,6 +197,7 @@
     ProjectOption,
     supplierOption,
     ClassList,
+    UserList
   } from './purchaseInquiryForm.api';
   import { cloneDeep } from 'lodash-es';
   import { JDictSelectTag, ApiSelect, JInput,JSelect } from '/@/components/Form';