|  | @@ -1,8 +1,6 @@
 | 
	
		
			
				|  |  |  import {BasicColumn} from '/@/components/Table';
 | 
	
		
			
				|  |  |  import {FormSchema} from '/@/components/Table';
 | 
	
		
			
				|  |  | -import { rules} from '/@/utils/helper/validator';
 | 
	
		
			
				|  |  | -import { render } from '/@/utils/common/renderUtils';
 | 
	
		
			
				|  |  | -import { getWeekMonthQuarterYear } from '/@/utils';
 | 
	
		
			
				|  |  | +import {defHttp} from '/@/utils/http/axios';
 | 
	
		
			
				|  |  |  //列表数据
 | 
	
		
			
				|  |  |  export const columns: BasicColumn[] = [
 | 
	
		
			
				|  |  |     {
 | 
	
	
		
			
				|  | @@ -60,7 +58,15 @@ export const searchFormSchema: FormSchema[] = [
 | 
	
		
			
				|  |  |     {
 | 
	
		
			
				|  |  |      label: '关联客户(relate customer)',
 | 
	
		
			
				|  |  |      field: 'relateCustomer',
 | 
	
		
			
				|  |  | -    component: 'Input',
 | 
	
		
			
				|  |  | +    component: 'ApiSelect',
 | 
	
		
			
				|  |  | +    componentProps: {
 | 
	
		
			
				|  |  | +      api: ()=> defHttp.get({ url: '/cuspCode/cuspCustomerProfile/list?pageSize=-1' }),
 | 
	
		
			
				|  |  | +      numberToString: false,
 | 
	
		
			
				|  |  | +      labelField: 'name',
 | 
	
		
			
				|  |  | +      valueField: 'id',
 | 
	
		
			
				|  |  | +      params:{},
 | 
	
		
			
				|  |  | +      resultField:'records'
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      labelWidth: 180,
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |     },
 | 
	
	
		
			
				|  | @@ -73,7 +79,7 @@ export const searchFormSchema: FormSchema[] = [
 | 
	
		
			
				|  |  |     {
 | 
	
		
			
				|  |  |      label: "船厂(ship factory)",
 | 
	
		
			
				|  |  |      field: 'shipFactory',
 | 
	
		
			
				|  |  | -    component: 'JSelectMultiple',
 | 
	
		
			
				|  |  | +    component: 'JDictSelectTag',
 | 
	
		
			
				|  |  |      labelWidth: 150,
 | 
	
		
			
				|  |  |      componentProps:{
 | 
	
		
			
				|  |  |        dictCode:"ship_factory"
 | 
	
	
		
			
				|  | @@ -94,7 +100,7 @@ export const searchFormSchema: FormSchema[] = [
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |    label: "船类型(ship type)",
 | 
	
		
			
				|  |  |    field: 'shipType',
 | 
	
		
			
				|  |  | -  component: 'JSelectMultiple',
 | 
	
		
			
				|  |  | +  component: 'JDictSelectTag',
 | 
	
		
			
				|  |  |    labelWidth: 180,
 | 
	
		
			
				|  |  |    componentProps:{
 | 
	
		
			
				|  |  |      dictCode:"ship_type"
 | 
	
	
		
			
				|  | @@ -105,7 +111,7 @@ export const searchFormSchema: FormSchema[] = [
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |    label: "状态(status)",
 | 
	
		
			
				|  |  |    field: 'status',
 | 
	
		
			
				|  |  | -  component: 'JSelectMultiple',
 | 
	
		
			
				|  |  | +  component: 'JDictSelectTag',
 | 
	
		
			
				|  |  |    componentProps:{
 | 
	
		
			
				|  |  |      dictCode:"valid_status"
 | 
	
		
			
				|  |  |    },
 | 
	
	
		
			
				|  | @@ -129,6 +135,23 @@ export const formSchema: FormSchema[] = [
 | 
	
		
			
				|  |  |      field: 'shipName',
 | 
	
		
			
				|  |  |      component: 'Input',
 | 
	
		
			
				|  |  |      required: true,
 | 
	
		
			
				|  |  | +    componentProps:  ({ formModel }) =>{
 | 
	
		
			
				|  |  | +      return {
 | 
	
		
			
				|  |  | +        AutoComplete:'off',
 | 
	
		
			
				|  |  | +        onblur: ({currentTarget}) => {
 | 
	
		
			
				|  |  | +          var stringLog = currentTarget.value;
 | 
	
		
			
				|  |  | +          var newString = ''
 | 
	
		
			
				|  |  | +          for (let i = 0; i < stringLog.length; i++) {
 | 
	
		
			
				|  |  | +              if( (/^[A-Za-z]$/.test(stringLog[i]))&&(/^[a-z]$/.test(stringLog[i]))){
 | 
	
		
			
				|  |  | +                newString=newString+stringLog[i].toUpperCase()
 | 
	
		
			
				|  |  | +              }else{
 | 
	
		
			
				|  |  | +                newString =newString+stringLog[i]
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          formModel.shipName = newString
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    {
 | 
	
		
			
				|  |  |      label: 'hull number',
 | 
	
	
		
			
				|  | @@ -173,7 +196,6 @@ export const formSchema: FormSchema[] = [
 | 
	
		
			
				|  |  |          stringToNumber:true,
 | 
	
		
			
				|  |  |       },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -  
 | 
	
		
			
				|  |  |  	// TODO 主键隐藏字段,目前写死为ID
 | 
	
		
			
				|  |  |  	{
 | 
	
		
			
				|  |  |  	  label: '',
 |