yuansh 5 hours ago
parent
commit
2b2e9e224c

+ 16 - 4
src/views/baseCode/ProjectArchive/BaseProjectArchive.data.ts

@@ -57,10 +57,22 @@ export const searchFormSchema: FormSchema[] = [
     {
       label: "客户(customer)",
       field: 'customerId',
-      component: 'JDictSelectTag',
-      componentProps:{
-          dictCode: 'customer',
-      },
+      component: 'ApiSelect',
+      componentProps: {
+              // mode: 'multiple',//multiple: 多选;不填写为单选
+              //请求api,返回结果{ result: { records: [{'id':'1',name:'scott'},{'id':'2',name:'小张'}] }}
+              api: ()=> defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1' }),
+              //数值转成String
+              numberToString: false,
+              //标题字段
+              labelField: 'name',
+              //值字段
+              valueField: 'id',
+              //请求参数
+              params:{},
+              //返回结果字段
+              resultField:'records'
+            },
       //colProps: {span: 6},
  	  },
      {

+ 1 - 1
src/views/cuspCode/SupplierEvaluation/CuspSupplierEvaluation.data.ts

@@ -85,7 +85,7 @@ export const searchFormSchema: FormSchema[] = [
       labelWidth:150,
       componentProps: {
           valueType: 'Date',
-          showTime:true
+          showTime:false
       },
       //colProps: {span: 6},
 	},

+ 8 - 7
src/views/cuspCode/SupplierProfile/CuspSupplierProfile.data.ts

@@ -141,7 +141,8 @@ export const searchFormSchema: FormSchema[] = [
 	{
       label: "付款条件(payment terms)",
       field: "paymentTerms",
-      component: 'JSelectMultiple',
+      component: 'JDictSelectTag',
+      // component: 'JSelectMultiple',
       labelWidth: 180,
       componentProps:{
         dictCode:"payment_terms"
@@ -151,7 +152,7 @@ export const searchFormSchema: FormSchema[] = [
 	{
       label: "国家(country)",
       field: "country",
-      component: 'JSelectMultiple',
+      component: 'JDictSelectTag',
       labelWidth: 150,
       componentProps:{
         dictCode: 'country'
@@ -161,7 +162,7 @@ export const searchFormSchema: FormSchema[] = [
    {
       label: "考评评级(evaluation level)",
       field: "evaluationLevel",
-      component: 'JSelectMultiple',
+      component: 'JDictSelectTag',
       labelWidth: 180,
       componentProps:{
         dictCode:"grade"
@@ -171,7 +172,7 @@ export const searchFormSchema: FormSchema[] = [
   {
     label: "原厂(original factory)",
     field: "originalFactory",
-    component: 'JSelectMultiple',
+    component: 'JDictSelectTag',
     labelWidth: 150,
     componentProps:{
       dictCode: "yes_or_no"
@@ -181,7 +182,7 @@ export const searchFormSchema: FormSchema[] = [
  {
     label: "供应商性质(supplier nature)",
     field: "supplierNature",
-    component: 'JSelectMultiple',
+    component: 'JDictSelectTag',
     labelWidth: 180,
     componentProps:{
       dictCode: "supplier_nature"
@@ -193,7 +194,7 @@ export const searchFormSchema: FormSchema[] = [
       label: "状态(status)",
       field: "status",
       labelWidth: 150,
-      component: 'JSelectMultiple',
+      component: 'JDictSelectTag',
       componentProps:{
         dictCode: "valid_status"
       },
@@ -202,7 +203,7 @@ export const searchFormSchema: FormSchema[] = [
 	{
       label: "临时供应商(temporary supplier)",
       field: "temporarySupplier",
-      component: 'JSelectMultiple',
+      component: 'JDictSelectTag',
       labelWidth: 210,
       componentProps:{
         dictCode: "should_apply"