替换containsAllLable
This commit is contained in:
		| @ -27,17 +27,17 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|   /** | ||||
|  * 查询参数 | ||||
|  */ | ||||
|    get reqParams() { | ||||
|   get reqParams() { | ||||
|     const params = { | ||||
|       ...this.sf?.value, | ||||
|     } | ||||
|     delete params.signTime; | ||||
|     delete params._$expand; | ||||
|     if(this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss') && this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')) { | ||||
|     if (this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss') && this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss')) { | ||||
|       params.signTime = { | ||||
|         start: this.datePipe.transform(this.sf?.value?.signTime?.[0], 'yyyy-MM-dd HH:mm:ss'), | ||||
|         end: this.datePipe.transform(this.sf?.value?.signTime?.[1], 'yyyy-MM-dd HH:mm:ss'), | ||||
|        } | ||||
|       } | ||||
|     } | ||||
|     return { | ||||
|       ...params | ||||
| @ -49,7 +49,7 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|     private nzModalService: NzModalService, | ||||
|     private router: Router, | ||||
|     private datePipe: DatePipe, | ||||
|     ) {} | ||||
|   ) { } | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initST() | ||||
| @ -58,7 +58,7 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|   /** | ||||
|    * 初始化数据列表 | ||||
|    */ | ||||
|    initST() { | ||||
|   initST() { | ||||
|     this.columns = [ | ||||
|       { | ||||
|         title: '合同编号', | ||||
| @ -70,13 +70,13 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|         title: '单据类型', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index:'documentType' | ||||
|         index: 'documentType' | ||||
|       }, | ||||
|       { | ||||
|         title: '合同名称', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index:'contractName' | ||||
|         index: 'contractName' | ||||
|       }, | ||||
|       { title: '托运人', index: 'shipperName', width: '120px', className: 'text-center' }, | ||||
|       { title: '承运人', index: 'carrierName', width: '120px', className: 'text-center' }, | ||||
| @ -108,69 +108,69 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|           '7': { text: '已拒签', color: 'warning' }, | ||||
|         }, | ||||
|       }, | ||||
|     | ||||
|  | ||||
|     ]; | ||||
|   } | ||||
|     /** | ||||
|  * 初始化查询表单 | ||||
|  */ | ||||
|      initSF() { | ||||
|       this.schema = { | ||||
|         properties: { | ||||
|           _$expand: { type: 'boolean', ui: { hidden: true } }, | ||||
|           contractCode: { | ||||
|             type: 'string', | ||||
|             title: '合同编号', | ||||
|           }, | ||||
|           businessCode: { | ||||
|             type: 'string', | ||||
|             title: '业务单号' | ||||
|           }, | ||||
|           shipperName: { | ||||
|             type: 'string', | ||||
|             title: '托运人' | ||||
|           }, | ||||
|           carrierName: { | ||||
|             type: 'string', | ||||
|             title: '承运人', | ||||
|             ui: { | ||||
|               visibleIf: { | ||||
|                 _$expand: (value: boolean) => value, | ||||
|               }, | ||||
|             } | ||||
|           }, | ||||
|           documentType: { | ||||
|             title: '单据类型', | ||||
|             type: 'string', | ||||
|             default: '', | ||||
|             ui: { | ||||
|               widget: 'dict-select', | ||||
|               containsAllLable: true, | ||||
|               params: { dictKey: 'contract:document:type' }, | ||||
|               containAllLable:true, | ||||
|               visibleIf: { | ||||
|                 _$expand: (value: boolean) => value, | ||||
|               }, | ||||
|             } as SFSelectWidgetSchema, | ||||
|           }, | ||||
|           signTime: { | ||||
|             title: '签署日期', | ||||
|             type: 'string', | ||||
|             ui: { | ||||
|               widget: 'custom', | ||||
|               visibleIf: { | ||||
|                 _$expand: (value: boolean) => value, | ||||
|               }, | ||||
|             } | ||||
|           }, | ||||
|   /** | ||||
| * 初始化查询表单 | ||||
| */ | ||||
|   initSF() { | ||||
|     this.schema = { | ||||
|       properties: { | ||||
|         _$expand: { type: 'boolean', ui: { hidden: true } }, | ||||
|         contractCode: { | ||||
|           type: 'string', | ||||
|           title: '合同编号', | ||||
|         }, | ||||
|         type: 'object', | ||||
|       }; | ||||
|       this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } }; | ||||
|     } | ||||
|       /** | ||||
|    * 查询字段个数 | ||||
|    */ | ||||
|         businessCode: { | ||||
|           type: 'string', | ||||
|           title: '业务单号' | ||||
|         }, | ||||
|         shipperName: { | ||||
|           type: 'string', | ||||
|           title: '托运人' | ||||
|         }, | ||||
|         carrierName: { | ||||
|           type: 'string', | ||||
|           title: '承运人', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } | ||||
|         }, | ||||
|         documentType: { | ||||
|           title: '单据类型', | ||||
|           type: 'string', | ||||
|           default: '', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             containsAllLabel: true, | ||||
|             params: { dictKey: 'contract:document:type' }, | ||||
|             containAllLable: true, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } as SFSelectWidgetSchema, | ||||
|         }, | ||||
|         signTime: { | ||||
|           title: '签署日期', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'custom', | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } | ||||
|         }, | ||||
|       }, | ||||
|       type: 'object', | ||||
|     }; | ||||
|     this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } }; | ||||
|   } | ||||
|   /** | ||||
| * 查询字段个数 | ||||
| */ | ||||
|   get queryFieldCount(): number { | ||||
|     return Object.keys(this.schema?.properties || {}).length; | ||||
|   } | ||||
| @ -239,7 +239,7 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|   /** | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|    expandToggle(): void { | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user