Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		| @ -1,9 +1,7 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { AdviceFeedbackService } from '../../services/advice-feedback.service'; | ||||
|  | ||||
| @Component({ | ||||
| @ -20,15 +18,10 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|   @ViewChild('sf', { static: false }) | ||||
|   sf!: SFComponent; | ||||
|   _$expand = false; | ||||
|   selectedIndex =  0; | ||||
|   selectedIndex = 0; | ||||
|  | ||||
|   data=[{name1:1111}] | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: AdviceFeedbackService, | ||||
|     private modalService: NzModalService | ||||
|   ) {} | ||||
|   data = [{ name1: 1111 }]; | ||||
|   constructor(public router: Router, public service: AdviceFeedbackService) {} | ||||
|  | ||||
|   /** | ||||
|    * 查询参数 | ||||
| @ -36,19 +29,19 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|   get reqParams() { | ||||
|     return { ...this.sf?.value }; | ||||
|   } | ||||
|     /** | ||||
|   /** | ||||
|    * 查询字段个数 | ||||
|    */ | ||||
|      get queryFieldCount(): number { | ||||
|       return Object.keys(this.schema?.properties || {}).length; | ||||
|     } | ||||
|     /** | ||||
|      * 伸缩查询条件 | ||||
|      */ | ||||
|     expandToggle(): void { | ||||
|       this._$expand = !this._$expand; | ||||
|       this.sf?.setValue('/_$expand', this._$expand); | ||||
|     } | ||||
|   get queryFieldCount(): number { | ||||
|     return Object.keys(this.schema?.properties || {}).length; | ||||
|   } | ||||
|   /** | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
|   } | ||||
|  | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
| @ -89,7 +82,7 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         } | ||||
|       } | ||||
|     }; | ||||
|     this.ui = { | ||||
| @ -139,12 +132,12 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|         buttons: [ | ||||
|           { | ||||
|             text: '详情', | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record), | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '处理', | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record), | ||||
|           }, | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     ]; | ||||
| @ -182,13 +175,12 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|         buttons: [ | ||||
|           { | ||||
|             text: '详情', | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record), | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '审核', | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record), | ||||
|           }, | ||||
|  | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     ]; | ||||
| @ -197,7 +189,7 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|   partnerView(record: STData) { | ||||
|     this.router.navigate(['/partner/advice-feedback/detail'], { queryParams: {} }); | ||||
|   } | ||||
|    | ||||
|  | ||||
|   channelView(record: STData) { | ||||
|     this.router.navigate(['/partner/advice-feedback/detail'], { queryParams: {} }); | ||||
|   } | ||||
| @ -211,8 +203,8 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|     // this.st1?.load(1); | ||||
|   } | ||||
|  | ||||
|   tabChange(index:any){ | ||||
|     console.log(index) | ||||
|   tabChange(index: any) { | ||||
|     console.log(index); | ||||
|     switch (index) { | ||||
|       case 0: | ||||
|         this.initST1(); | ||||
| @ -224,5 +216,4 @@ export class ParterAdviceFeedbackListComponent implements OnInit { | ||||
|         break; | ||||
|     } | ||||
|   } | ||||
|  | ||||
| } | ||||
|  | ||||
| @ -1,11 +1,15 @@ | ||||
| import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { apiConf } from '@conf/api.conf'; | ||||
| import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema, SFUploadWidgetSchema } from '@delon/form'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { | ||||
|   SFComponent, | ||||
|   SFRadioWidgetSchema, | ||||
|   SFSchema, | ||||
|   SFSelectWidgetSchema, | ||||
|   SFTextareaWidgetSchema, | ||||
|   SFUISchema, | ||||
|   SFUploadWidgetSchema | ||||
| } from '@delon/form'; | ||||
| import { Observable, Observer } from 'rxjs'; | ||||
| import { map } from 'rxjs/operators'; | ||||
| import { AmapPoiPickerComponent } from 'src/app/shared/components/amap'; | ||||
| import { ChannelSalesService } from '../../services/channel-sales.service'; | ||||
|  | ||||
| @Component({ | ||||
| @ -19,12 +23,7 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|   i: any; | ||||
|   type: any; | ||||
|  | ||||
|   constructor( | ||||
|     public http: _HttpClient, | ||||
|     private cdr: ChangeDetectorRef, | ||||
|     private route: ActivatedRoute, | ||||
|     public service: ChannelSalesService, | ||||
|   ) {} | ||||
|   constructor(public service: ChannelSalesService) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initSF(); | ||||
| @ -44,8 +43,8 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'textarea', | ||||
|             autosize: { minRows: 3, maxRows: 6 }, | ||||
|             placeholder:'请输入50字符' | ||||
|           } as SFTextareaWidgetSchema, | ||||
|             placeholder: '请输入50字符' | ||||
|           } as SFTextareaWidgetSchema | ||||
|         }, | ||||
|         name2: { | ||||
|           type: 'string', | ||||
| @ -54,8 +53,8 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'textarea', | ||||
|             autosize: { minRows: 3, maxRows: 6 }, | ||||
|             placeholder:'请输入50字符' | ||||
|           } as SFTextareaWidgetSchema, | ||||
|             placeholder: '请输入50字符' | ||||
|           } as SFTextareaWidgetSchema | ||||
|         }, | ||||
|         name3: { | ||||
|           type: 'string', | ||||
| @ -89,12 +88,10 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|         name: { | ||||
|           title: '分类', | ||||
|           type: 'string', | ||||
|           enum: [ | ||||
|             { label: '管理员', value: '1'}, | ||||
|           ], | ||||
|           enum: [{ label: '管理员', value: '1' }], | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|           } as SFSelectWidgetSchema, | ||||
|             widget: 'select' | ||||
|           } as SFSelectWidgetSchema | ||||
|         }, | ||||
|         name4: { | ||||
|           type: 'number', | ||||
| @ -102,21 +99,21 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|           minimum: 0, | ||||
|           maximum: 99, | ||||
|           ui: { | ||||
|             widgetWidth: 300 , | ||||
|             placeholder:'请输入0~99,数字越大,排序越靠前' | ||||
|             widgetWidth: 300, | ||||
|             placeholder: '请输入0~99,数字越大,排序越靠前' | ||||
|           } | ||||
|         }, | ||||
|         name5: { | ||||
|           type: 'string', | ||||
|           title: '跳转路径', | ||||
|           enum: [ | ||||
|             { label: '图文', value: '1'}, | ||||
|             { label: '视频', value: '2'}, | ||||
|             { label: '图文', value: '1' }, | ||||
|             { label: '视频', value: '2' } | ||||
|           ], | ||||
|           ui: { | ||||
|             widget: 'radio', | ||||
|             widget: 'radio' | ||||
|           } as SFRadioWidgetSchema, | ||||
|           default: '1', | ||||
|           default: '1' | ||||
|         }, | ||||
|         content: { | ||||
|           type: 'string', | ||||
| @ -128,7 +125,7 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|               height: 450 | ||||
|             }, | ||||
|             visibleIf: { name5: (value: string) => value === '1' } | ||||
|           }, | ||||
|           } | ||||
|         }, | ||||
|         name6: { | ||||
|           type: 'string', | ||||
| @ -159,7 +156,7 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|             }, | ||||
|             visibleIf: { name5: (value: string) => value === '2' } | ||||
|           } as SFUploadWidgetSchema | ||||
|         }, | ||||
|         } | ||||
|       }, | ||||
|       required: ['name1', 'name2'] | ||||
|     }; | ||||
| @ -167,17 +164,14 @@ export class ParterArticleManagementEditComponent implements OnInit { | ||||
|       '*': { | ||||
|         spanLabelFixed: 150, | ||||
|         grid: { span: 20 } | ||||
|       }, | ||||
|  | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|  | ||||
|   close() { | ||||
|      | ||||
|   } | ||||
|   close() {} | ||||
|   save() { | ||||
|     this.sf.validator({ emitError: true }); | ||||
|     if(!this.sf.valid) return; | ||||
|     if (!this.sf.valid) return; | ||||
|     // this.service.request('', { ...this.sf?.value }).subscribe(res => { | ||||
|     //   if (res) { | ||||
|     //     this.modalRef.destroy(true); | ||||
|  | ||||
| @ -1,11 +1,9 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ChannelSalesService } from '../../services/channel-sales.service'; | ||||
| import { ParterArticleManagementEditComponent } from '../edit/edit.component'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-parter-article-management-list', | ||||
| @ -22,13 +20,8 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|   spuStatus = '1'; | ||||
|   _$expand = false; | ||||
|  | ||||
|   data=[{name1:1111}] | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: ChannelSalesService, | ||||
|     private modalService: NzModalService | ||||
|   ) {} | ||||
|   data = [{ name1: 1111 }]; | ||||
|   constructor(public router: Router, public service: ChannelSalesService, private modalService: NzModalService) {} | ||||
|  | ||||
|   /** | ||||
|    * 查询参数 | ||||
| @ -40,7 +33,7 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|   /** | ||||
|    * 重置表单 | ||||
|    */ | ||||
|    resetSF() { | ||||
|   resetSF() { | ||||
|     this.sf.reset(); | ||||
|     this.st.load(1); | ||||
|   } | ||||
| @ -49,19 +42,19 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|     // this.st1?.load(1); | ||||
|   } | ||||
|  | ||||
|    /** | ||||
|   /** | ||||
|    * 查询字段个数 | ||||
|    */ | ||||
|     get queryFieldCount(): number { | ||||
|       return Object.keys(this.schema?.properties || {}).length; | ||||
|     } | ||||
|     /** | ||||
|      * 伸缩查询条件 | ||||
|      */ | ||||
|     expandToggle(): void { | ||||
|       this._$expand = !this._$expand; | ||||
|       this.sf?.setValue('/_$expand', this._$expand); | ||||
|     } | ||||
|   get queryFieldCount(): number { | ||||
|     return Object.keys(this.schema?.properties || {}).length; | ||||
|   } | ||||
|   /** | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
|   } | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
|     this.initST(); | ||||
| @ -91,8 +84,7 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         | ||||
|         } | ||||
|       } | ||||
|     }; | ||||
|     this.ui = { | ||||
| @ -138,19 +130,19 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|         buttons: [ | ||||
|           { | ||||
|             text: '修改', | ||||
|             click: (_record, _modal, _instance) => this.edit(_record), | ||||
|             click: (_record, _modal, _instance) => this.edit(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '禁用', | ||||
|             click: (_record, _modal, _instance) => this.stop(_record), | ||||
|             click: (_record, _modal, _instance) => this.stop(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '启用', | ||||
|             click: (_record, _modal, _instance) => this.start(_record.id), | ||||
|             click: (_record, _modal, _instance) => this.start(_record.id) | ||||
|           }, | ||||
|           { | ||||
|             text: '推荐到首页', | ||||
|             click: (_record, _modal, _instance) => this.recommend(_record.id), | ||||
|             click: (_record, _modal, _instance) => this.recommend(_record.id) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
| @ -166,11 +158,10 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|     this.router.navigate(['/partner/knowledge/article-management-edit'], { queryParams: {} }); | ||||
|   } | ||||
|  | ||||
|   | ||||
|   stop(record: STData) { | ||||
|     this.modalService.confirm({ | ||||
|       nzTitle: '<i>禁用确认</i>', | ||||
|       nzContent: `<b>确定禁用此文章吗?</br>`, | ||||
|       nzContent: `<b>确定禁用此文章吗?</br>` | ||||
|       // nzOnOk: () => | ||||
|       //   this.service.request('', '').subscribe(res => { | ||||
|       //     if (res) { | ||||
| @ -183,7 +174,7 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|   start(record: STData) { | ||||
|     this.modalService.confirm({ | ||||
|       nzTitle: '<i>启用确认</i>', | ||||
|       nzContent: `<b>确定启用此文章吗?</br>`, | ||||
|       nzContent: `<b>确定启用此文章吗?</br>` | ||||
|       // nzOnOk: () => | ||||
|       //   this.service.request('', '').subscribe(res => { | ||||
|       //     if (res) { | ||||
| @ -193,8 +184,5 @@ export class ParterArticleManagementListComponent implements OnInit { | ||||
|       //   }) | ||||
|     }); | ||||
|   } | ||||
|   recommend(record: STData) { | ||||
|     | ||||
|   } | ||||
|    | ||||
|   recommend(record: STData) {} | ||||
| } | ||||
|  | ||||
| @ -1,8 +1,7 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ChannelSalesService } from '../../services/channel-sales.service'; | ||||
| import { ParterChannelSalesEditComponent } from '../edit/edit.component'; | ||||
| @ -24,7 +23,6 @@ export class ParterChannelSalesListComponent implements OnInit { | ||||
|   data = [{ name1: 1111 }] | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: ChannelSalesService, | ||||
|     private modalService: NzModalService | ||||
|   ) { } | ||||
|  | ||||
| @ -1,13 +1,8 @@ | ||||
| import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { map } from 'rxjs/operators'; | ||||
| import { AmapPoiPickerComponent } from 'src/app/shared/components/amap'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { SFComponent, SFSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { ClaimAuditService } from '../../services/claim-audit.service'; | ||||
|  | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-parter-claim-audit-channel-approve', | ||||
|   templateUrl: './channel-approve.component.html' | ||||
| @ -19,14 +14,7 @@ export class ParterClaimAuditListChannelApproveComponent implements OnInit { | ||||
|   i: any; | ||||
|   type: any; | ||||
|  | ||||
|   constructor( | ||||
|     public http: _HttpClient, | ||||
|     private cdr: ChangeDetectorRef, | ||||
|     private route: ActivatedRoute, | ||||
|     private modalService: NzModalService, | ||||
|     public service: ClaimAuditService, | ||||
|     private modalRef: NzModalRef | ||||
|   ) {} | ||||
|   constructor(public service: ClaimAuditService, private modalRef: NzModalRef) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initSF(); | ||||
| @ -43,20 +31,20 @@ export class ParterClaimAuditListChannelApproveComponent implements OnInit { | ||||
|           title: '合伙人(认领人)', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         name2: { | ||||
|           title: '认领客户名称', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         data: { | ||||
|           title: '结算起算日期', | ||||
|           type: 'string', | ||||
|           format: 'date', | ||||
|           format: 'date' | ||||
|         }, | ||||
|         name3: { | ||||
|           type: 'string', | ||||
| @ -65,9 +53,9 @@ export class ParterClaimAuditListChannelApproveComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'textarea', | ||||
|             autosize: { minRows: 3, maxRows: 6 }, | ||||
|             placeholder:'请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema, | ||||
|         }, | ||||
|             placeholder: '请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema | ||||
|         } | ||||
|       }, | ||||
|       required: ['name3'] | ||||
|     }; | ||||
| @ -75,7 +63,7 @@ export class ParterClaimAuditListChannelApproveComponent implements OnInit { | ||||
|       '*': { | ||||
|         spanLabelFixed: 120, | ||||
|         grid: { span: 24 } | ||||
|       }, | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|  | ||||
| @ -84,7 +72,7 @@ export class ParterClaimAuditListChannelApproveComponent implements OnInit { | ||||
|   } | ||||
|   save() { | ||||
|     this.sf.validator({ emitError: true }); | ||||
|     if(!this.sf.valid) return; | ||||
|     if (!this.sf.valid) return; | ||||
|     // this.service.request('', { ...this.sf?.value }).subscribe(res => { | ||||
|     //   if (res) { | ||||
|     //     this.modalRef.destroy(true); | ||||
| @ -93,6 +81,4 @@ export class ParterClaimAuditListChannelApproveComponent implements OnInit { | ||||
|     //   } | ||||
|     // }); | ||||
|   } | ||||
|  | ||||
|    | ||||
| } | ||||
|  | ||||
| @ -2,11 +2,7 @@ | ||||
| import { Component, OnInit } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn } from '@delon/abc/st'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { NzCardComponent } from 'ng-zorro-antd/card'; | ||||
| import { NzMessageService } from 'ng-zorro-antd/message'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import format from 'date-fns/format'; | ||||
|  | ||||
| import { ClaimAuditService } from '../../services/claim-audit.service'; | ||||
| import { ParterClaimAuditListChannelApproveComponent } from '../channel-approve/channel-approve.component'; | ||||
| @ -34,10 +30,8 @@ export class ParterClaimAuditListChannelDetailComponent implements OnInit { | ||||
|  | ||||
|   constructor( | ||||
|     private route: ActivatedRoute, | ||||
|     private msgSrv: NzMessageService, | ||||
|     private service: ClaimAuditService, | ||||
|     private modalService: NzModalService, | ||||
|     private router: Router | ||||
|   ) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|  | ||||
| @ -1,13 +1,8 @@ | ||||
| import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { map } from 'rxjs/operators'; | ||||
| import { AmapPoiPickerComponent } from 'src/app/shared/components/amap'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { SFComponent, SFSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { ClaimAuditService } from '../../services/claim-audit.service'; | ||||
|  | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-parter-claim-audit-channel-reject', | ||||
|   templateUrl: './channel-reject.component.html' | ||||
| @ -19,14 +14,7 @@ export class ParterClaimAuditListChannelRejectComponent implements OnInit { | ||||
|   i: any; | ||||
|   type: any; | ||||
|  | ||||
|   constructor( | ||||
|     public http: _HttpClient, | ||||
|     private cdr: ChangeDetectorRef, | ||||
|     private route: ActivatedRoute, | ||||
|     private modalService: NzModalService, | ||||
|     public service: ClaimAuditService, | ||||
|     private modalRef: NzModalRef | ||||
|   ) {} | ||||
|   constructor(public service: ClaimAuditService, private modalRef: NzModalRef) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initSF(); | ||||
| @ -43,20 +31,20 @@ export class ParterClaimAuditListChannelRejectComponent implements OnInit { | ||||
|           title: '合伙人(认领人)', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         name2: { | ||||
|           title: '认领客户名称', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         data: { | ||||
|           title: '结算起算日期', | ||||
|           type: 'string', | ||||
|           format: 'date', | ||||
|           format: 'date' | ||||
|         }, | ||||
|         name3: { | ||||
|           type: 'string', | ||||
| @ -65,9 +53,9 @@ export class ParterClaimAuditListChannelRejectComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'textarea', | ||||
|             autosize: { minRows: 3, maxRows: 6 }, | ||||
|             placeholder:'请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema, | ||||
|         }, | ||||
|             placeholder: '请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema | ||||
|         } | ||||
|       }, | ||||
|       required: ['name3'] | ||||
|     }; | ||||
| @ -75,7 +63,7 @@ export class ParterClaimAuditListChannelRejectComponent implements OnInit { | ||||
|       '*': { | ||||
|         spanLabelFixed: 120, | ||||
|         grid: { span: 24 } | ||||
|       }, | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|  | ||||
| @ -84,7 +72,7 @@ export class ParterClaimAuditListChannelRejectComponent implements OnInit { | ||||
|   } | ||||
|   save() { | ||||
|     this.sf.validator({ emitError: true }); | ||||
|     if(!this.sf.valid) return; | ||||
|     if (!this.sf.valid) return; | ||||
|     // this.service.request('', { ...this.sf?.value }).subscribe(res => { | ||||
|     //   if (res) { | ||||
|     //     this.modalRef.destroy(true); | ||||
| @ -93,6 +81,4 @@ export class ParterClaimAuditListChannelRejectComponent implements OnInit { | ||||
|     //   } | ||||
|     // }); | ||||
|   } | ||||
|  | ||||
|    | ||||
| } | ||||
|  | ||||
| @ -1,9 +1,7 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ClaimAuditService } from '../../services/claim-audit.service'; | ||||
|  | ||||
| @Component({ | ||||
| @ -22,15 +20,10 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|   @ViewChild('sf', { static: false }) | ||||
|   sf!: SFComponent; | ||||
|   _$expand = false; | ||||
|   selectedIndex =  0; | ||||
|   selectedIndex = 0; | ||||
|  | ||||
|   data=[{name1:1111}] | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: ClaimAuditService, | ||||
|     private modalService: NzModalService | ||||
|   ) {} | ||||
|   data = [{ name1: 1111 }]; | ||||
|   constructor(public router: Router, public service: ClaimAuditService) {} | ||||
|  | ||||
|   /** | ||||
|    * 查询参数 | ||||
| @ -38,19 +31,19 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|   get reqParams() { | ||||
|     return { ...this.sf?.value }; | ||||
|   } | ||||
|     /** | ||||
|   /** | ||||
|    * 查询字段个数 | ||||
|    */ | ||||
|      get queryFieldCount(): number { | ||||
|       return Object.keys(this.schema?.properties || {}).length; | ||||
|     } | ||||
|     /** | ||||
|      * 伸缩查询条件 | ||||
|      */ | ||||
|     expandToggle(): void { | ||||
|       this._$expand = !this._$expand; | ||||
|       this.sf?.setValue('/_$expand', this._$expand); | ||||
|     } | ||||
|   get queryFieldCount(): number { | ||||
|     return Object.keys(this.schema?.properties || {}).length; | ||||
|   } | ||||
|   /** | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
|   } | ||||
|  | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
| @ -91,7 +84,7 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         } | ||||
|       } | ||||
|     }; | ||||
|     this.ui = { | ||||
| @ -141,12 +134,12 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|         buttons: [ | ||||
|           { | ||||
|             text: '详情', | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record), | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '审核', | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record), | ||||
|           }, | ||||
|             click: (_record, _modal, _instance) => this.partnerView(_record) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     ]; | ||||
| @ -184,13 +177,12 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|         buttons: [ | ||||
|           { | ||||
|             text: '详情', | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record), | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '审核', | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record), | ||||
|           }, | ||||
|  | ||||
|             click: (_record, _modal, _instance) => this.channelView(_record) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     ]; | ||||
| @ -199,7 +191,7 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|   partnerView(record: STData) { | ||||
|     this.router.navigate(['/partner/claim-audit/partner-detail'], { queryParams: {} }); | ||||
|   } | ||||
|    | ||||
|  | ||||
|   channelView(record: STData) { | ||||
|     this.router.navigate(['/partner/claim-audit/channel-detail'], { queryParams: {} }); | ||||
|   } | ||||
| @ -213,8 +205,8 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|     // this.st1?.load(1); | ||||
|   } | ||||
|  | ||||
|   tabChange(index:any){ | ||||
|     console.log(index) | ||||
|   tabChange(index: any) { | ||||
|     console.log(index); | ||||
|     switch (index) { | ||||
|       case 0: | ||||
|         this.initST1(); | ||||
| @ -226,5 +218,4 @@ export class ParterClaimAuditListComponent implements OnInit { | ||||
|         break; | ||||
|     } | ||||
|   } | ||||
|  | ||||
| } | ||||
|  | ||||
| @ -1,13 +1,9 @@ | ||||
| import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { SFComponent, SFSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { map } from 'rxjs/operators'; | ||||
| import { AmapPoiPickerComponent } from 'src/app/shared/components/amap'; | ||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { ClaimAuditService } from '../../services/claim-audit.service'; | ||||
|  | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-parter-claim-audit-partner-approve', | ||||
|   templateUrl: './partner-approve.component.html' | ||||
| @ -19,14 +15,7 @@ export class ParterClaimAuditListPartnerApproveComponent implements OnInit { | ||||
|   i: any; | ||||
|   type: any; | ||||
|  | ||||
|   constructor( | ||||
|     public http: _HttpClient, | ||||
|     private cdr: ChangeDetectorRef, | ||||
|     private route: ActivatedRoute, | ||||
|     private modalService: NzModalService, | ||||
|     public service: ClaimAuditService, | ||||
|     private modalRef: NzModalRef | ||||
|   ) {} | ||||
|   constructor(public service: ClaimAuditService, private modalRef: NzModalRef) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initSF(); | ||||
| @ -43,20 +32,20 @@ export class ParterClaimAuditListPartnerApproveComponent implements OnInit { | ||||
|           title: '合伙人(认领人)', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         name2: { | ||||
|           title: '认领客户名称', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         data: { | ||||
|           title: '结算起算日期', | ||||
|           type: 'string', | ||||
|           format: 'date', | ||||
|           format: 'date' | ||||
|         }, | ||||
|         name3: { | ||||
|           type: 'string', | ||||
| @ -65,9 +54,9 @@ export class ParterClaimAuditListPartnerApproveComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'textarea', | ||||
|             autosize: { minRows: 3, maxRows: 6 }, | ||||
|             placeholder:'请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema, | ||||
|         }, | ||||
|             placeholder: '请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema | ||||
|         } | ||||
|       }, | ||||
|       required: ['name3'] | ||||
|     }; | ||||
| @ -75,7 +64,7 @@ export class ParterClaimAuditListPartnerApproveComponent implements OnInit { | ||||
|       '*': { | ||||
|         spanLabelFixed: 120, | ||||
|         grid: { span: 24 } | ||||
|       }, | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|  | ||||
| @ -84,7 +73,7 @@ export class ParterClaimAuditListPartnerApproveComponent implements OnInit { | ||||
|   } | ||||
|   save() { | ||||
|     this.sf.validator({ emitError: true }); | ||||
|     if(!this.sf.valid) return; | ||||
|     if (!this.sf.valid) return; | ||||
|     // this.service.request('', { ...this.sf?.value }).subscribe(res => { | ||||
|     //   if (res) { | ||||
|     //     this.modalRef.destroy(true); | ||||
| @ -93,6 +82,4 @@ export class ParterClaimAuditListPartnerApproveComponent implements OnInit { | ||||
|     //   } | ||||
|     // }); | ||||
|   } | ||||
|  | ||||
|    | ||||
| } | ||||
|  | ||||
| @ -1,15 +1,9 @@ | ||||
|  | ||||
| import { Component, OnInit } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { STColumn } from '@delon/abc/st'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { NzCardComponent } from 'ng-zorro-antd/card'; | ||||
| import { NzMessageService } from 'ng-zorro-antd/message'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import format from 'date-fns/format'; | ||||
| import { ClaimAuditService } from '../../services/claim-audit.service'; | ||||
| import { ParterClaimAuditListPartnerRejectComponent } from '../partner-reject/partner-reject.component'; | ||||
| import {  ParterClaimAuditListPartnerApproveComponent } from '../partner-approve/partner-approve.component'; | ||||
| import { ParterClaimAuditListPartnerApproveComponent } from '../partner-approve/partner-approve.component'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-parter-claim-audit-partner-detail', | ||||
| @ -23,21 +17,15 @@ export class ParterClaimAuditListPartnerDetailComponent implements OnInit { | ||||
|   isVisible = false; | ||||
|   columns: STColumn[] = [ | ||||
|     { title: '操作时间', index: 'id', width: 120 }, | ||||
|     { title: '操作人', type: 'img', width: 120, }, | ||||
|     { title: '操作人', type: 'img', width: 120 }, | ||||
|     { title: '操作人手机号', index: 'email', width: 120 }, | ||||
|     { title: '操作页面', index: 'phone' }, | ||||
|     { title: '操作内容', index: 'registered' } | ||||
|   ]; | ||||
|  | ||||
|   data=[{id:11111}] | ||||
|   data = [{ id: 11111 }]; | ||||
|  | ||||
|   constructor( | ||||
|     private route: ActivatedRoute, | ||||
|     private msgSrv: NzMessageService, | ||||
|     private service: ClaimAuditService, | ||||
|     private modalService: NzModalService, | ||||
|     private router: Router | ||||
|   ) {} | ||||
|   constructor(private route: ActivatedRoute, private modalService: NzModalService) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initData(); | ||||
| @ -47,7 +35,7 @@ export class ParterClaimAuditListPartnerDetailComponent implements OnInit { | ||||
|     // this.service.request(this.service.$api_getBulkBillDetail, { id: this.id }).subscribe(res => { | ||||
|     //   if (res) { | ||||
|     //     this.i = res; | ||||
|     //    | ||||
|     // | ||||
|     //   } | ||||
|     // }); | ||||
|   } | ||||
| @ -77,6 +65,4 @@ export class ParterClaimAuditListPartnerDetailComponent implements OnInit { | ||||
|   goBack() { | ||||
|     window.history.go(-1); | ||||
|   } | ||||
|  | ||||
|  | ||||
| } | ||||
|  | ||||
| @ -1,13 +1,8 @@ | ||||
| import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { map } from 'rxjs/operators'; | ||||
| import { AmapPoiPickerComponent } from 'src/app/shared/components/amap'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { SFComponent, SFSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { ClaimAuditService } from '../../services/claim-audit.service'; | ||||
|  | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-parter-claim-audit-partner-reject', | ||||
|   templateUrl: './partner-reject.component.html' | ||||
| @ -19,14 +14,7 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit { | ||||
|   i: any; | ||||
|   type: any; | ||||
|  | ||||
|   constructor( | ||||
|     public http: _HttpClient, | ||||
|     private cdr: ChangeDetectorRef, | ||||
|     private route: ActivatedRoute, | ||||
|     private modalService: NzModalService, | ||||
|     public service: ClaimAuditService, | ||||
|     private modalRef: NzModalRef | ||||
|   ) {} | ||||
|   constructor(public service: ClaimAuditService, private modalRef: NzModalRef) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initSF(); | ||||
| @ -43,20 +31,20 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit { | ||||
|           title: '合伙人(认领人)', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         name2: { | ||||
|           title: '认领客户名称', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'text', | ||||
|           } , | ||||
|             widget: 'text' | ||||
|           } | ||||
|         }, | ||||
|         data: { | ||||
|           title: '结算起算日期', | ||||
|           type: 'string', | ||||
|           format: 'date', | ||||
|           format: 'date' | ||||
|         }, | ||||
|         name3: { | ||||
|           type: 'string', | ||||
| @ -65,9 +53,9 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'textarea', | ||||
|             autosize: { minRows: 3, maxRows: 6 }, | ||||
|             placeholder:'请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema, | ||||
|         }, | ||||
|             placeholder: '请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema | ||||
|         } | ||||
|       }, | ||||
|       required: ['name3'] | ||||
|     }; | ||||
| @ -75,7 +63,7 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit { | ||||
|       '*': { | ||||
|         spanLabelFixed: 120, | ||||
|         grid: { span: 24 } | ||||
|       }, | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|  | ||||
| @ -84,7 +72,7 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit { | ||||
|   } | ||||
|   save() { | ||||
|     this.sf.validator({ emitError: true }); | ||||
|     if(!this.sf.valid) return; | ||||
|     if (!this.sf.valid) return; | ||||
|     // this.service.request('', { ...this.sf?.value }).subscribe(res => { | ||||
|     //   if (res) { | ||||
|     //     this.modalRef.destroy(true); | ||||
| @ -93,6 +81,4 @@ export class ParterClaimAuditListPartnerRejectComponent implements OnInit { | ||||
|     //   } | ||||
|     // }); | ||||
|   } | ||||
|  | ||||
|    | ||||
| } | ||||
|  | ||||
| @ -12,7 +12,6 @@ import { BannerService } from '../../services/banner.service'; | ||||
|   templateUrl: './list.component.html', | ||||
|   styleUrls: ['./list.component.less'] | ||||
| }) | ||||
|  | ||||
| export class BannerComponentsListComponent implements OnInit { | ||||
|   schema: SFSchema = {}; | ||||
|   columns: STColumn[] = []; | ||||
| @ -27,7 +26,14 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|  | ||||
|   @ViewChild('st', { static: false }) st!: STComponent; | ||||
|   @ViewChild('sf', { static: false }) sf!: SFComponent; | ||||
|   constructor(public service: BannerService, private modal: ModalHelper, private msg: NzMessageService, private router: Router, private modalSrv: NzModalService,  private ar: ActivatedRoute) { } | ||||
|   constructor( | ||||
|     public service: BannerService, | ||||
|     private modal: ModalHelper, | ||||
|     private msg: NzMessageService, | ||||
|     private router: Router, | ||||
|     private modalSrv: NzModalService, | ||||
|     private ar: ActivatedRoute | ||||
|   ) {} | ||||
|  | ||||
|   /** | ||||
|    * 查询字段个数 | ||||
| @ -51,14 +57,14 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|     if (params.navigationId === '') { | ||||
|       delete params.navigationId; | ||||
|     } | ||||
|     return { ...params}; | ||||
|     return { ...params }; | ||||
|   } | ||||
|  | ||||
|   /** | ||||
|    * 选中行 | ||||
|    */ | ||||
|   get selectedRows() { | ||||
|     return this.st?.list.filter((item) => item.checked) || []; | ||||
|     return this.st?.list.filter(item => item.checked) || []; | ||||
|   } | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
| @ -80,8 +86,8 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|         _$expand: { | ||||
|           type: 'boolean', | ||||
|           ui: { | ||||
|             hidden: true, | ||||
|           }, | ||||
|             hidden: true | ||||
|           } | ||||
|         }, | ||||
|         name: { | ||||
|           type: 'string', | ||||
| @ -89,7 +95,7 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|           maxLength: 10, | ||||
|           ui: { | ||||
|             widget: '', | ||||
|             placeholder: '请输入', | ||||
|             placeholder: '请输入' | ||||
|           } | ||||
|         }, | ||||
|         status: { | ||||
| @ -98,21 +104,21 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请选择', | ||||
|             allowClear: true, | ||||
|             allowClear: true | ||||
|           } as SFSelectWidgetSchema, | ||||
|           enum: [ | ||||
|             { label: '全部', value: 1 }, | ||||
|             { label: '正常', value: 2 }, | ||||
|             { label: '禁用', value: 3 } | ||||
|           ] | ||||
|         }, | ||||
|       }, | ||||
|         } | ||||
|       } | ||||
|     }; | ||||
|     this.ui = { | ||||
|       '*': { | ||||
|         spanLabelFixed: 110, | ||||
|         grid: { span: 8 }, | ||||
|       }, | ||||
|         grid: { span: 8 } | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|  | ||||
| @ -138,9 +144,9 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|         index: 'style', | ||||
|         className: 'text-center', | ||||
|         type: 'enum', | ||||
|         enum: {  | ||||
|         enum: { | ||||
|           1: '正常', | ||||
|           2: '禁用', | ||||
|           2: '禁用' | ||||
|         } | ||||
|       }, | ||||
|       { | ||||
| @ -157,7 +163,7 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|           { | ||||
|             text: '修改', | ||||
|             acl: { ability: ['banner-change'] }, | ||||
|             click: (item) => { | ||||
|             click: item => { | ||||
|               this.router.navigate(['../detail'], { queryParams: { id: item.id, type: 'edit' }, relativeTo: this.ar }); | ||||
|             } | ||||
|           }, | ||||
| @ -167,12 +173,12 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|             pop: { | ||||
|               title: `确定禁用此banner图吗??`, | ||||
|               okType: 'danger', | ||||
|               icon: 'alert', | ||||
|               icon: 'alert' | ||||
|             }, | ||||
|             click: (item) => { | ||||
|             click: item => { | ||||
|               this.changeStatus(item.id); | ||||
|             }, | ||||
|             iif: (item) => item.status === 1 | ||||
|             iif: item => item.status === 1 | ||||
|           }, | ||||
|           { | ||||
|             text: '启用', | ||||
| @ -180,15 +186,15 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|             pop: { | ||||
|               title: `确定启用此banner图吗?`, | ||||
|               okType: 'danger', | ||||
|               icon: 'success', | ||||
|               icon: 'success' | ||||
|             }, | ||||
|             click: (item) => { | ||||
|             click: item => { | ||||
|               this.changeStatus(item); | ||||
|             }, | ||||
|             iif: (item) => item.status === 2 | ||||
|           }, | ||||
|         ], | ||||
|       }, | ||||
|             iif: item => item.status === 2 | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     ]; | ||||
|   } | ||||
|   changeStatus(item: any) { | ||||
| @ -216,7 +222,7 @@ export class BannerComponentsListComponent implements OnInit { | ||||
|   resetSF() { | ||||
|     this.sf.reset(); | ||||
|     this._$expand = false; | ||||
|     this.isLoading = true | ||||
|     this.isLoading = true; | ||||
|   } | ||||
|  | ||||
|   /** | ||||
|  | ||||
| @ -8,13 +8,10 @@ | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\level-config\\components\\edit\\edit.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSchemaEnumType, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { Component,  OnInit, ViewChild } from '@angular/core'; | ||||
| import { SFComponent, SFSchema,  SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { _HttpClient } from '@delon/theme'; | ||||
| import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { map } from 'rxjs/operators'; | ||||
| import { AmapPoiPickerComponent } from 'src/app/shared/components/amap'; | ||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { ChannelSalesService } from '../../services/level-config.service'; | ||||
|  | ||||
| @Component({ | ||||
| @ -29,10 +26,6 @@ export class ParterLevelConfigEditComponent implements OnInit { | ||||
|   type: any; | ||||
|  | ||||
|   constructor( | ||||
|     public http: _HttpClient, | ||||
|     private cdr: ChangeDetectorRef, | ||||
|     private route: ActivatedRoute, | ||||
|     private modalService: NzModalService, | ||||
|     public service: ChannelSalesService, | ||||
|     private modalRef: NzModalRef | ||||
|   ) {} | ||||
|  | ||||
| @ -1,8 +1,6 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ChannelSalesService } from '../../services/level-config.service'; | ||||
| import { ParterLevelConfigEditComponent } from '../edit/edit.component'; | ||||
| @ -23,8 +21,6 @@ export class ParterLevelConfigListComponent implements OnInit { | ||||
|  | ||||
|   data = [{ name1: 1111 }]; | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: ChannelSalesService, | ||||
|     private modalService: NzModalService | ||||
|   ) {} | ||||
|  | ||||
| @ -1,5 +1,4 @@ | ||||
| import { Component, OnInit } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { STColumn } from '@delon/abc/st'; | ||||
| import { PartnerListService } from '../../services/partner-list.service'; | ||||
|  | ||||
| @ -10,7 +9,7 @@ import { PartnerListService } from '../../services/partner-list.service'; | ||||
| export class ChannelLogModalComponent implements OnInit { | ||||
|   columns: { changeColumn: STColumn[]; beChangeColumn: STColumn[] } = this.initST(); | ||||
|   id = ''; | ||||
|   constructor(public service: PartnerListService, public route: ActivatedRoute) {} | ||||
|   constructor(public service: PartnerListService) {} | ||||
|  | ||||
|   ngOnInit(): void {} | ||||
|  | ||||
|  | ||||
| @ -1,9 +1,7 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { STColumn, STComponent } from '@delon/abc/st'; | ||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort, ShipperBaseService } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ShipperBaseService } from '@shared'; | ||||
| import { RebateManagementService } from '../../services/rebate-management.service'; | ||||
|  | ||||
| @Component({ | ||||
| @ -27,10 +25,7 @@ export class ParterRebateManageMentParticularsComponent implements OnInit { | ||||
|   resourceStatus: any; | ||||
|   data = this.service.$api_get_searchPageList; | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: RebateManagementService, | ||||
|     private modalService: NzModalService, | ||||
|     public shipperservice: ShipperBaseService | ||||
|   ) {} | ||||
|   /** | ||||
|  | ||||
| @ -1,6 +1,4 @@ | ||||
| import { ModalHelper } from '@delon/theme'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort, ShipperBaseService } from '@shared'; | ||||
| @ -25,8 +23,6 @@ export class ParterRebateManageMentRecordComponent implements OnInit { | ||||
|   _$expand = false; | ||||
|   data = [{ name1: 1111 }]; | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: RebateManagementService, | ||||
|     private modal: NzModalService, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|  | ||||
| @ -1,12 +1,10 @@ | ||||
| import { ModalHelper } from '@delon/theme'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort, ShipperBaseService } from '@shared'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { STColumn, STComponent } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | ||||
| import { ShipperBaseService } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { RebateManagementService } from '../../services/rebate-management.service'; | ||||
| import { ParterRebateManageMenRecordDetailComponent } from '../../model/record-detail/record-detail.component'; | ||||
| import { ParterRebateManageMenAbnormalFeedbackComponent } from '../../model/abnormal-feedback/abnormal-feedback.component'; | ||||
|  | ||||
| @Component({ | ||||
| @ -25,19 +23,18 @@ export class ParterRebateManageMentSettingComponent implements OnInit { | ||||
|   _$expand = false; | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: RebateManagementService, | ||||
|     private modal: NzModalService, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     public shipperservice: ShipperBaseService | ||||
|   ) {} | ||||
|   /** | ||||
|  * 查询参数 | ||||
|  */ | ||||
|    get reqParams() { | ||||
|    * 查询参数 | ||||
|    */ | ||||
|   get reqParams() { | ||||
|     const params: any = Object.assign({}, this.sf?.value || {}); | ||||
|     return {  | ||||
|       ...params, | ||||
|      }; | ||||
|     return { | ||||
|       ...params | ||||
|     }; | ||||
|   } | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
| @ -49,21 +46,20 @@ export class ParterRebateManageMentSettingComponent implements OnInit { | ||||
|       properties: { | ||||
|         configName: { | ||||
|           type: 'string', | ||||
|           title: '模板名称', | ||||
|           title: '模板名称' | ||||
|         }, | ||||
|         stateLocked: { | ||||
|           type: 'string', | ||||
|           title: '状态', | ||||
|           enum: [ | ||||
|             {label: '全部', value: ''}, | ||||
|             {label: '生效中', value: 1}, | ||||
|             {label: '失效', value: 0}, | ||||
|             { label: '全部', value: '' }, | ||||
|             { label: '生效中', value: 1 }, | ||||
|             { label: '失效', value: 0 } | ||||
|           ], | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|           }, | ||||
|          | ||||
|         }, | ||||
|             widget: 'select' | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|     }; | ||||
|     this.ui = { | ||||
| @ -79,43 +75,42 @@ export class ParterRebateManageMentSettingComponent implements OnInit { | ||||
|       { | ||||
|         title: '模板名称', | ||||
|         index: 'configName', | ||||
|         width: '200px', | ||||
|         width: '200px' | ||||
|       }, | ||||
|       { | ||||
|         title: '等级类型', | ||||
|         render: 'configType', | ||||
|         width: '200px', | ||||
|  | ||||
|         width: '200px' | ||||
|       }, | ||||
|       { | ||||
|         title: '备注', | ||||
|         index: 'remark', | ||||
|         width: '250px', | ||||
|         width: '250px' | ||||
|       }, | ||||
|       { | ||||
|         title: '合伙人范围', | ||||
|         render: 'partnerType', | ||||
|         width: '200px', | ||||
|         width: '200px' | ||||
|       }, | ||||
|       { | ||||
|         title: '创建时间', | ||||
|         index: 'enableTime', | ||||
|         width: '200px', | ||||
|         width: '200px' | ||||
|       }, | ||||
|       { | ||||
|         title: '生效时间', | ||||
|         index: 'enableTime', | ||||
|         width: '200px', | ||||
|         width: '200px' | ||||
|       }, | ||||
|       { | ||||
|         title: '优先级', | ||||
|         index: 'priority', | ||||
|         width: '100px', | ||||
|         width: '100px' | ||||
|       }, | ||||
|       { | ||||
|         title: '状态', | ||||
|         render: 'stateLocked', | ||||
|         width: '100px', | ||||
|         width: '100px' | ||||
|       }, | ||||
|       { | ||||
|         title: '操作', | ||||
| @ -126,20 +121,24 @@ export class ParterRebateManageMentSettingComponent implements OnInit { | ||||
|           { | ||||
|             text: '查看', | ||||
|             acl: { ability: ['REBATE-SETTING-detail'] }, | ||||
|             click: _record => this.configAction(_record), | ||||
|             click: _record => this.configAction(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '禁用', | ||||
|             acl: { ability: ['REBATE-SETTING-forbidden'] }, | ||||
|             iif: (_record) =>{ return _record.stateLocked == true && (_record.partnerType == 3 ||  _record.partnerType == 2)}, | ||||
|             click: _record => this.viewEvaluate(_record), | ||||
|             iif: _record => { | ||||
|               return _record.stateLocked == true && (_record.partnerType == 3 || _record.partnerType == 2); | ||||
|             }, | ||||
|             click: _record => this.viewEvaluate(_record) | ||||
|           }, | ||||
|           { | ||||
|             text: '启用', | ||||
|             acl: { ability: ['REBATE-SETTING-startUseing'] }, | ||||
|             iif: (_record) =>{ return _record.stateLocked == false}, | ||||
|             click: _record => this.viewEvaluate(_record), | ||||
|           }, | ||||
|             iif: _record => { | ||||
|               return _record.stateLocked == false; | ||||
|             }, | ||||
|             click: _record => this.viewEvaluate(_record) | ||||
|           } | ||||
|         ] | ||||
|       } | ||||
|     ]; | ||||
| @ -147,52 +146,52 @@ export class ParterRebateManageMentSettingComponent implements OnInit { | ||||
|   /** | ||||
|    *禁用 | ||||
|    */ | ||||
|    viewEvaluate(item: any) { | ||||
|      console.log(item.stateLocked); | ||||
|      let title = '' | ||||
|      let stateLocked: boolean; | ||||
|      if(item.stateLocked) { | ||||
|        title = '是否禁用该配置?' | ||||
|        stateLocked = false | ||||
|      } else { | ||||
|        title = '是否启用该配置?' | ||||
|        stateLocked = true | ||||
|      } | ||||
|   viewEvaluate(item: any) { | ||||
|     console.log(item.stateLocked); | ||||
|     let title = ''; | ||||
|     let stateLocked: boolean; | ||||
|     if (item.stateLocked) { | ||||
|       title = '是否禁用该配置?'; | ||||
|       stateLocked = false; | ||||
|     } else { | ||||
|       title = '是否启用该配置?'; | ||||
|       stateLocked = true; | ||||
|     } | ||||
|     this.modal.confirm({ | ||||
|       nzTitle: title, | ||||
|       nzOnOk: () => { | ||||
|         const params = { | ||||
|           id: item?.id, | ||||
|           stateLocked: stateLocked, | ||||
|         } | ||||
|           this.service.request(this.service.$api_set_updateRebateConfig,params).subscribe((res: any) => {  | ||||
|             if(res) { | ||||
|               this.service.msgSrv.success('设置成功!') | ||||
|               this.st.reload(); | ||||
|             } | ||||
|           }) | ||||
|           stateLocked: stateLocked | ||||
|         }; | ||||
|         this.service.request(this.service.$api_set_updateRebateConfig, params).subscribe((res: any) => { | ||||
|           if (res) { | ||||
|             this.service.msgSrv.success('设置成功!'); | ||||
|             this.st.reload(); | ||||
|           } | ||||
|         }); | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
|   /** | ||||
|    *查看 | ||||
|    */ | ||||
|    feedback(item?: any) { | ||||
|        const modal = this.modal.create({ | ||||
|           nzTitle: '查看', | ||||
|           nzWidth: 580, | ||||
|           nzContent: ParterRebateManageMenAbnormalFeedbackComponent, | ||||
|           nzComponentParams: { i: item }, | ||||
|           nzFooter: null | ||||
|         }); | ||||
|         modal.afterClose.subscribe((res: any) => { | ||||
|           if (res) { | ||||
|           } | ||||
|         }); | ||||
|   feedback(item?: any) { | ||||
|     const modal = this.modal.create({ | ||||
|       nzTitle: '查看', | ||||
|       nzWidth: 580, | ||||
|       nzContent: ParterRebateManageMenAbnormalFeedbackComponent, | ||||
|       nzComponentParams: { i: item }, | ||||
|       nzFooter: null | ||||
|     }); | ||||
|     modal.afterClose.subscribe((res: any) => { | ||||
|       if (res) { | ||||
|       } | ||||
|     }); | ||||
|   } | ||||
|   configAction(value?: any) { | ||||
|     this.router.navigate(['/partner/rebate/setting/add/', '0'], {queryParams: value}) | ||||
|   }  | ||||
|     this.router.navigate(['/partner/rebate/setting/add/', '0'], { queryParams: value }); | ||||
|   } | ||||
|   /** | ||||
|    * 重置表单 | ||||
|    */ | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| /* | ||||
|  * @Description  :  | ||||
|  * @Description  : | ||||
|  * @Version      : 1.0 | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-03-10 14:50:45 | ||||
| @ -8,15 +8,11 @@ | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\rebate-management\\model\\abnormal-feedback\\abnormal-feedback.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| import { ModalHelper } from '@delon/theme'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFSelectWidgetSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort, ShipperBaseService } from '@shared'; | ||||
| import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { SFComponent, SFSchema, SFTextareaWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { ShipperBaseService } from '@shared'; | ||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { RebateManagementService } from '../../services/rebate-management.service'; | ||||
| import { NzButtonSize } from 'ng-zorro-antd/button'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-parter-channel-rebate-management-abnormal-feedback', | ||||
| @ -29,15 +25,7 @@ export class ParterRebateManageMenAbnormalFeedbackComponent implements OnInit { | ||||
|   sf!: SFComponent; | ||||
|   i!: any; | ||||
|   data = [{ name1: 1111 }]; | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: RebateManagementService, | ||||
|     private modalService: NzModalService, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     public modalRef: NzModalRef, | ||||
|   ) {} | ||||
|  | ||||
|   constructor(public service: RebateManagementService, public shipperservice: ShipperBaseService, public modalRef: NzModalRef) {} | ||||
|  | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
| @ -53,20 +41,19 @@ export class ParterRebateManageMenAbnormalFeedbackComponent implements OnInit { | ||||
|           ui: { | ||||
|             widget: 'textarea', | ||||
|             autosize: { minRows: 3, maxRows: 6 }, | ||||
|             placeholder:'请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema, | ||||
|         }, | ||||
|             placeholder: '请不要超过50个字' | ||||
|           } as SFTextareaWidgetSchema | ||||
|         } | ||||
|       } | ||||
|     }; | ||||
|     this.ui = { | ||||
|       '*': { | ||||
|         spanLabelFixed: 60, | ||||
|         grid: { span: 16 }, | ||||
|         grid: { span: 16 } | ||||
|       } | ||||
|     }; | ||||
|   } | ||||
|   close() { | ||||
|     this.modalRef.destroy() | ||||
|     this.modalRef.destroy(); | ||||
|   } | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,10 +1,8 @@ | ||||
| import { ModalHelper } from '@delon/theme'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute, Router } from '@angular/router'; | ||||
| import { STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { processSingleSort, ShipperBaseService } from '@shared'; | ||||
| import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { STColumn, STComponent } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { ShipperBaseService } from '@shared'; | ||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||
| import { RebateManagementService } from '../../services/rebate-management.service'; | ||||
| import { NzButtonSize } from 'ng-zorro-antd/button'; | ||||
|  | ||||
| @ -24,36 +22,29 @@ export class ParterRebateManageMenRecordDetailComponent implements OnInit { | ||||
|   size: NzButtonSize = 'large'; | ||||
|   _$expand = false; | ||||
|   data = [{ name1: 1111 }]; | ||||
|   constructor( | ||||
|     public router: Router, | ||||
|     public ar: ActivatedRoute, | ||||
|     public service: RebateManagementService, | ||||
|     private modalService: NzModalService, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     public modalRef: NzModalRef, | ||||
|   ) {} | ||||
|   constructor(public service: RebateManagementService, public shipperservice: ShipperBaseService, public modalRef: NzModalRef) {} | ||||
|   /** | ||||
|    * 查询字段个数 | ||||
|    */ | ||||
|   get queryFieldCount(): number { | ||||
|     return Object.keys(this.schema?.properties || {}).length; | ||||
|   } | ||||
|     /** | ||||
|   * 伸缩查询条件 | ||||
|   */ | ||||
|      expandToggle(): void { | ||||
|       this._$expand = !this._$expand; | ||||
|       this.sf?.setValue('/_$expand', this._$expand); | ||||
|     } | ||||
|   /** | ||||
|  * 查询参数 | ||||
|  */ | ||||
|    get reqParams() { | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
|   } | ||||
|   /** | ||||
|    * 查询参数 | ||||
|    */ | ||||
|   get reqParams() { | ||||
|     const params: any = Object.assign({}, this.sf?.value || {}); | ||||
|     delete params._$expand; | ||||
|     return {  | ||||
|       ...params, | ||||
|      }; | ||||
|     return { | ||||
|       ...params | ||||
|     }; | ||||
|   } | ||||
|   ngOnInit() { | ||||
|     this.initSF(); | ||||
| @ -72,8 +63,8 @@ export class ParterRebateManageMenRecordDetailComponent implements OnInit { | ||||
|             allowClear: true, | ||||
|             asyncData: () => this.shipperservice.getNetworkFreightForwarder(), | ||||
|             change: (value: any) => { | ||||
|               console.log(value) | ||||
|               this.st.reload() | ||||
|               console.log(value); | ||||
|               this.st.reload(); | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
| @ -85,11 +76,11 @@ export class ParterRebateManageMenRecordDetailComponent implements OnInit { | ||||
|             params: { dictKey: 'overall:payment:status' }, | ||||
|             containsAllLabel: true, | ||||
|             change: (value: any) => { | ||||
|               console.log(value) | ||||
|               this.st.reload() | ||||
|               console.log(value); | ||||
|               this.st.reload(); | ||||
|             } | ||||
|           } as SFSelectWidgetSchema | ||||
|         }, | ||||
|         } | ||||
|       } | ||||
|     }; | ||||
|     this.ui = { | ||||
| @ -165,7 +156,6 @@ export class ParterRebateManageMenRecordDetailComponent implements OnInit { | ||||
|     this.st.load(1); | ||||
|   } | ||||
|   close() { | ||||
|     this.modalRef.destroy() | ||||
|     this.modalRef.destroy(); | ||||
|   } | ||||
| } | ||||
|  | ||||
|  | ||||
| @ -1,7 +1,6 @@ | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { ActivatedRoute } from '@angular/router'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { FreightAccountService } from 'src/app/routes/financial-management/services/freight-account.service'; | ||||
| import { RecordedService } from '../../services/recorded.service'; | ||||
|  | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user