解决冲突
This commit is contained in:
		| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-07 13:29:57 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-02-23 16:04:18 | ||||
|  * @LastEditTime : 2022-02-24 10:08:53 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-frame\\contract-frame.component.html | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
| --> | ||||
| @ -29,8 +29,9 @@ | ||||
|       <div nz-col [nzSpan]="_$expand ? 24 : 18"> | ||||
|         <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"> | ||||
|           <ng-template sf-template="signTime" let-me let-ui="ui" let-schema="schema"> | ||||
|             <!-- <input placeholder="请输入1-30" type="number" [ngModel]="sf.value.description3" style="width: 200px;" nz-input /> | ||||
|               <span> 天内支付运费</span> --> | ||||
|             <ng-template sf-template="effectiveEndTime" let-me let-ui="ui" let-schema="schema"> | ||||
|               <nz-range-picker [nzShowTime]="true" [(ngModel)]="sf.value.effectiveEndTime"></nz-range-picker> | ||||
|             </ng-template> | ||||
|             <nz-range-picker [nzShowTime]="true" [(ngModel)]="sf.value.signTime"></nz-range-picker> | ||||
|           </ng-template> | ||||
|         </sf> | ||||
|  | ||||
| @ -1,14 +1,17 @@ | ||||
| import { DatePipe } from '@angular/common'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { STComponent, STColumn, STChange } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema, SFSelectWidgetSchema } from '@delon/form'; | ||||
| import { ShipperBaseService } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ContractManagementService } from '../../services/contract-management.service'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-contract-management-contract-frame', | ||||
|   templateUrl: './contract-frame.component.html', | ||||
|   styleUrls: ['./contract-frame.component.less'] | ||||
|   styleUrls: ['./contract-frame.component.less'], | ||||
|   providers: [DatePipe] | ||||
| }) | ||||
| export class ContractManagementFrameComponent implements OnInit { | ||||
|   url = `/rule?_allow_anonymous=true`; | ||||
| @ -22,19 +25,48 @@ export class ContractManagementFrameComponent implements OnInit { | ||||
|   columns: STColumn[] = []; | ||||
|   ui: SFUISchema = {}; | ||||
|   _$expand = false; | ||||
|  | ||||
|   reqParams = {}; | ||||
|   selectedRows: any[] = []; | ||||
|   constructor(public service: ContractManagementService, private nzModalService: NzModalService, private router: Router) {} | ||||
|   constructor( | ||||
|     public service: ContractManagementService, | ||||
|     private nzModalService: NzModalService, | ||||
|     private router: Router, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     private datePipe: DatePipe, | ||||
|       ) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initST() | ||||
|     this.initSF() | ||||
|     this.initST(); | ||||
|     this.initSF(); | ||||
|   } | ||||
|     /** | ||||
|  * 查询参数 | ||||
|  */ | ||||
|      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')) { | ||||
|         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'), | ||||
|          } | ||||
|       } | ||||
|       if(this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss') && this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss')) { | ||||
|         params.effectiveEndTime = { | ||||
|           start: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss'), | ||||
|           end: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss'), | ||||
|          } | ||||
|       } | ||||
|       return { | ||||
|         ...params | ||||
|       }; | ||||
|     } | ||||
|   /** | ||||
|    * 初始化数据列表 | ||||
|    */ | ||||
|    initST() { | ||||
|   initST() { | ||||
|     this.columns = [ | ||||
|       { | ||||
|         title: '合同编号', | ||||
| @ -42,14 +74,26 @@ export class ContractManagementFrameComponent implements OnInit { | ||||
|         className: 'text-center', | ||||
|         render: 'contractCode' | ||||
|       }, | ||||
|       { | ||||
|         title: '签约对象', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index: 'signingObject' | ||||
|       }, | ||||
|       { | ||||
|         title: '合同类型', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index: 'contractType' | ||||
|       }, | ||||
|       { | ||||
|         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' }, | ||||
|       { title: '网络货运人', index: 'enterpriseInfoName', width: '120px', className: 'text-center' }, | ||||
|       { title: '合同对象', index: 'contractObjectName', width: '120px', className: 'text-center' }, | ||||
|       { | ||||
|         title: '有效期至', | ||||
|         className: 'text-center', | ||||
| @ -75,47 +119,108 @@ export class ContractManagementFrameComponent implements OnInit { | ||||
|           '3': { text: '已撤销', color: 'warning' }, | ||||
|           '4': { text: '已作废', color: 'warning' }, | ||||
|           '5': { text: '已过期', color: 'warning' }, | ||||
|           '7': { text: '已拒签', color: 'warning' }, | ||||
|         }, | ||||
|       }, | ||||
|     | ||||
|           '7': { text: '已拒签', color: 'warning' } | ||||
|         } | ||||
|       } | ||||
|     ]; | ||||
|   } | ||||
|     /** | ||||
|  * 初始化查询表单 | ||||
|  */ | ||||
|      initSF() { | ||||
|       this.schema = { | ||||
|         properties: { | ||||
|           _$expand: { type: 'boolean', ui: { hidden: true } }, | ||||
|           contractCode: { | ||||
|             type: 'string', | ||||
|             title: '合同编号', | ||||
|           }, | ||||
|           shipperName: { | ||||
|             type: 'string', | ||||
|             title: '托运人' | ||||
|           }, | ||||
|           carrierName: { | ||||
|             type: 'string', | ||||
|             title: '承运人', | ||||
|           }, | ||||
|           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 } } }; | ||||
|     } | ||||
|       /** | ||||
|         signingObject: { | ||||
|           type: 'string', | ||||
|           title: '签约对象', | ||||
|           enum: [ | ||||
|             { label: '全部', value: '' }, | ||||
|             { label: '货主', value: 1 }, | ||||
|             { label: '司机', value: 2 }, | ||||
|           ], | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请选择', | ||||
|           } | ||||
|         }, | ||||
|         contractType: { | ||||
|           title: '合同类型', | ||||
|           type: 'string', | ||||
|           default: '', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             containsAllLable: true, | ||||
|             params: { dictKey: 'contract:type' }, | ||||
|             containAllLable:true, | ||||
|           } as SFSelectWidgetSchema, | ||||
|         }, | ||||
|         enterpriseInfoId: { | ||||
|           type: 'string', | ||||
|           title: '网络货运人', | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请选择', | ||||
|             allowClear: true, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value | ||||
|             }, | ||||
|             asyncData: () => this.shipperservice.getNetworkFreightForwarder() | ||||
|           } | ||||
|         }, | ||||
|         contractObjectName: { | ||||
|           type: 'string', | ||||
|           title: '合同对象', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } | ||||
|         }, | ||||
|         signTime: { | ||||
|           title: '签署日期', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'custom', | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } | ||||
|         }, | ||||
|         effectiveEndTime: { | ||||
|           title: '有效期', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'custom', | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } | ||||
|         }, | ||||
|         esignFlowStatus: { | ||||
|           title: '状态', | ||||
|           type: 'string', | ||||
|           default: '', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             containsAllLable: true, | ||||
|             params: { dictKey: 'esign:flow:status' }, | ||||
|             containAllLable:true, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } as SFSelectWidgetSchema, | ||||
|         }, | ||||
|       }, | ||||
|       type: 'object' | ||||
|     }; | ||||
|     this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } }; | ||||
|   } | ||||
|   /** | ||||
|    * 查询字段个数 | ||||
|    */ | ||||
|   get queryFieldCount(): number { | ||||
| @ -193,7 +298,7 @@ export class ContractManagementFrameComponent implements OnInit { | ||||
|   /** | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|    expandToggle(): void { | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
|   } | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2021-12-07 15:57:49 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-01-18 17:16:12 | ||||
|  * @LastEditTime : 2022-02-23 20:11:50 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-list\\contract-list.component.html | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
| --> | ||||
| @ -53,6 +53,10 @@ | ||||
|     <ng-template st-row="contractCode" let-item let-index="index"> | ||||
|       <a [routerLink]="'/contract-management/index/detail/' + item.id">{{ item?.contractCode }}</a> | ||||
|     </ng-template> | ||||
|     <ng-template st-row="signingObject" let-item let-index="index"> | ||||
|      <span *ngIf="item.signingObject == 0"></span> | ||||
|      <span></span> | ||||
|     </ng-template> | ||||
|   </st> | ||||
| </nz-card> | ||||
|  | ||||
|  | ||||
| @ -5,6 +5,7 @@ import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema, SFSelectWidgetSc | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ContractManagementService } from '../../services/contract-management.service'; | ||||
| import { DatePipe } from '@angular/common'; | ||||
| import { ShipperBaseService } from '@shared'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-contract-management-contract-list', | ||||
| @ -47,6 +48,7 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|   constructor( | ||||
|     public service: ContractManagementService, | ||||
|     private nzModalService: NzModalService, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     private router: Router, | ||||
|     private datePipe: DatePipe, | ||||
|     ) {} | ||||
| @ -67,19 +69,31 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|         render: 'contractCode' | ||||
|       }, | ||||
|       { | ||||
|         title: '单据类型', | ||||
|         title: '签约对象', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index:'documentType' | ||||
|         index:'signingObject' | ||||
|       }, | ||||
|       { | ||||
|         title: '合同名称', | ||||
|         title: '合同类型', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index:'contractName' | ||||
|         index:'contractType' | ||||
|       }, | ||||
|       { | ||||
|         title: '货源类型', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index:'resourceType' | ||||
|       }, | ||||
|       { title: '合同名称', index: 'contractName', width: '120px', className: 'text-center' }, | ||||
|       { title: '网络货运人', index: 'enterpriseInfoName', width: '120px', className: 'text-center' }, | ||||
|       { | ||||
|         title: '合同对象', | ||||
|         className: 'text-center', | ||||
|         width: '120px', | ||||
|         index: 'contractObjectName' | ||||
|       }, | ||||
|       { title: '托运人', index: 'shipperName', width: '120px', className: 'text-center' }, | ||||
|       { title: '承运人', index: 'carrierName', width: '120px', className: 'text-center' }, | ||||
|       { | ||||
|         title: '业务单号', | ||||
|         className: 'text-center', | ||||
| @ -126,21 +140,35 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|             type: 'string', | ||||
|             title: '业务单号' | ||||
|           }, | ||||
|           shipperName: { | ||||
|           signingObject: { | ||||
|             type: 'string', | ||||
|             title: '托运人' | ||||
|           }, | ||||
|           carrierName: { | ||||
|             type: 'string', | ||||
|             title: '承运人', | ||||
|             title: '签约对象', | ||||
|             enum: [ | ||||
|               { label: '全部', value: '' }, | ||||
|               { label: '货主', value: 1 }, | ||||
|               { label: '司机', value: 2 }, | ||||
|             ], | ||||
|             ui: { | ||||
|               widget: 'select', | ||||
|               placeholder: '请选择', | ||||
|             } | ||||
|           }, | ||||
|           contractType: { | ||||
|             title: '合同类型', | ||||
|             type: 'string', | ||||
|             default: '', | ||||
|             ui: { | ||||
|               widget: 'dict-select', | ||||
|               containsAllLable: true, | ||||
|               params: { dictKey: 'contract:type' }, | ||||
|               containAllLable:true, | ||||
|               visibleIf: { | ||||
|                 _$expand: (value: boolean) => value, | ||||
|               }, | ||||
|             } | ||||
|             } as SFSelectWidgetSchema, | ||||
|           }, | ||||
|           documentType: { | ||||
|             title: '单据类型', | ||||
|           resourceType: { | ||||
|             title: '货源类型', | ||||
|             type: 'string', | ||||
|             default: '', | ||||
|             ui: { | ||||
| @ -153,6 +181,28 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|               }, | ||||
|             } as SFSelectWidgetSchema, | ||||
|           }, | ||||
|           enterpriseInfoId: { | ||||
|             type: 'string', | ||||
|             title: '网络货运人', | ||||
|             ui: { | ||||
|               widget: 'select', | ||||
|               placeholder: '请选择', | ||||
|               allowClear: true, | ||||
|               visibleIf: { | ||||
|                 _$expand: (value: boolean) => value | ||||
|               }, | ||||
|               asyncData: () => this.shipperservice.getNetworkFreightForwarder() | ||||
|             } | ||||
|           }, | ||||
|           contractObjectName: { | ||||
|             type: 'string', | ||||
|             title: '合同对象', | ||||
|             ui: { | ||||
|               visibleIf: { | ||||
|                 _$expand: (value: boolean) => value, | ||||
|               }, | ||||
|             } | ||||
|           }, | ||||
|           signTime: { | ||||
|             title: '签署日期', | ||||
|             type: 'string', | ||||
| @ -163,6 +213,20 @@ export class ContractManagementContractListComponent implements OnInit { | ||||
|               }, | ||||
|             } | ||||
|           }, | ||||
|           esignFlowStatus: { | ||||
|             title: '状态', | ||||
|             type: 'string', | ||||
|             default: '', | ||||
|             ui: { | ||||
|               widget: 'dict-select', | ||||
|               containsAllLable: true, | ||||
|               params: { dictKey: 'esign:flow:status' }, | ||||
|               containAllLable:true, | ||||
|               visibleIf: { | ||||
|                 _$expand: (value: boolean) => value, | ||||
|               }, | ||||
|             } as SFSelectWidgetSchema, | ||||
|           }, | ||||
|         }, | ||||
|         type: 'object', | ||||
|       }; | ||||
|  | ||||
| @ -4,8 +4,8 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-07 13:29:57 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-02-23 16:04:18 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-frame\\contract-frame.component.html | ||||
|  * @LastEditTime : 2022-02-24 10:08:28 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-partner\\contract-partner.component.html | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
| --> | ||||
| <nz-card> | ||||
| @ -29,10 +29,11 @@ | ||||
|       <div nz-col [nzSpan]="_$expand ? 24 : 18"> | ||||
|         <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"> | ||||
|           <ng-template sf-template="signTime" let-me let-ui="ui" let-schema="schema"> | ||||
|             <!-- <input placeholder="请输入1-30" type="number" [ngModel]="sf.value.description3" style="width: 200px;" nz-input /> | ||||
|               <span> 天内支付运费</span> --> | ||||
|             <nz-range-picker [nzShowTime]="true" [(ngModel)]="sf.value.signTime"></nz-range-picker> | ||||
|           </ng-template> | ||||
|           <ng-template sf-template="effectiveEndTime" let-me let-ui="ui" let-schema="schema"> | ||||
|             <nz-range-picker [nzShowTime]="true" [(ngModel)]="sf.value.effectiveEndTime"></nz-range-picker> | ||||
|           </ng-template> | ||||
|         </sf> | ||||
|       </div> | ||||
|       <div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand"> | ||||
| @ -69,7 +70,7 @@ | ||||
|  | ||||
|   <st | ||||
|     #st | ||||
|     [data]="service.$api_listFrame_page" | ||||
|     [data]="service.$api_listPartner_page" | ||||
|     [columns]="columns" | ||||
|     [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" | ||||
|     [res]="{ reName: { list: 'data.records', total: 'data.total' } }" | ||||
|  | ||||
| @ -1,14 +1,17 @@ | ||||
| import { DatePipe } from '@angular/common'; | ||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | ||||
| import { Router } from '@angular/router'; | ||||
| import { STComponent, STColumn, STChange } from '@delon/abc/st'; | ||||
| import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema } from '@delon/form'; | ||||
| import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema, SFSelectWidgetSchema } from '@delon/form'; | ||||
| import { ShipperBaseService } from '@shared'; | ||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ContractManagementService } from '../../services/contract-management.service'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-contract-management-contract-partner', | ||||
|   templateUrl: './contract-partner.component.html', | ||||
|   styleUrls: ['./contract-partner.component.less'] | ||||
|   styleUrls: ['./contract-partner.component.less'], | ||||
|   providers: [DatePipe] | ||||
| }) | ||||
| export class ContractManagementPartnerComponent implements OnInit { | ||||
|   url = `/rule?_allow_anonymous=true`; | ||||
| @ -22,19 +25,48 @@ export class ContractManagementPartnerComponent implements OnInit { | ||||
|   columns: STColumn[] = []; | ||||
|   ui: SFUISchema = {}; | ||||
|   _$expand = false; | ||||
|  | ||||
|   reqParams = {}; | ||||
|   selectedRows: any[] = []; | ||||
|   constructor(public service: ContractManagementService, private nzModalService: NzModalService, private router: Router) {} | ||||
|   constructor( | ||||
|     public service: ContractManagementService, | ||||
|     private nzModalService: NzModalService, | ||||
|     private router: Router, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     private datePipe: DatePipe, | ||||
|     ) {} | ||||
|  | ||||
|   ngOnInit(): void { | ||||
|     this.initST() | ||||
|     this.initSF() | ||||
|     this.initST(); | ||||
|     this.initSF(); | ||||
|   } | ||||
|    /** | ||||
|  * 查询参数 | ||||
|  */ | ||||
|     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')) { | ||||
|         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'), | ||||
|          } | ||||
|       } | ||||
|       if(this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss') && this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss')) { | ||||
|         params.effectiveEndTime = { | ||||
|           start: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[0], 'yyyy-MM-dd HH:mm:ss'), | ||||
|           end: this.datePipe.transform(this.sf?.value?.effectiveEndTime?.[1], 'yyyy-MM-dd HH:mm:ss'), | ||||
|          } | ||||
|       } | ||||
|       return { | ||||
|         ...params | ||||
|       }; | ||||
|     } | ||||
|   /** | ||||
|    * 初始化数据列表 | ||||
|    */ | ||||
|    initST() { | ||||
|   initST() { | ||||
|     this.columns = [ | ||||
|       { | ||||
|         title: '合同编号', | ||||
| @ -43,13 +75,25 @@ export class ContractManagementPartnerComponent implements OnInit { | ||||
|         render: 'contractCode' | ||||
|       }, | ||||
|       { | ||||
|         title: '合同名称', | ||||
|         title: '签约对象', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index:'contractName' | ||||
|         index: 'signingObject' | ||||
|       }, | ||||
|       { | ||||
|         title: '合同类型', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index: 'contractType' | ||||
|       }, | ||||
|       { title: '合同名称', index: 'contractName', width: '120px', className: 'text-center' }, | ||||
|       { title: '网络货运人', index: 'enterpriseInfoName', width: '120px', className: 'text-center' }, | ||||
|       { | ||||
|         title: '合同对象', | ||||
|         className: 'text-center', | ||||
|         width: '120px', | ||||
|         index: 'contractObjectName' | ||||
|       }, | ||||
|       { title: '托运人', index: 'shipperName', width: '120px', className: 'text-center' }, | ||||
|       { title: '承运人', index: 'carrierName', width: '120px', className: 'text-center' }, | ||||
|       { | ||||
|         title: '有效期至', | ||||
|         className: 'text-center', | ||||
| @ -75,47 +119,108 @@ export class ContractManagementPartnerComponent implements OnInit { | ||||
|           '3': { text: '已撤销', color: 'warning' }, | ||||
|           '4': { text: '已作废', color: 'warning' }, | ||||
|           '5': { text: '已过期', color: 'warning' }, | ||||
|           '7': { text: '已拒签', color: 'warning' }, | ||||
|         }, | ||||
|       }, | ||||
|     | ||||
|           '7': { text: '已拒签', color: 'warning' } | ||||
|         } | ||||
|       } | ||||
|     ]; | ||||
|   } | ||||
|     /** | ||||
|  * 初始化查询表单 | ||||
|  */ | ||||
|      initSF() { | ||||
|       this.schema = { | ||||
|         properties: { | ||||
|           _$expand: { type: 'boolean', ui: { hidden: true } }, | ||||
|           contractCode: { | ||||
|             type: 'string', | ||||
|             title: '合同编号', | ||||
|           }, | ||||
|           shipperName: { | ||||
|             type: 'string', | ||||
|             title: '托运人' | ||||
|           }, | ||||
|           carrierName: { | ||||
|             type: 'string', | ||||
|             title: '承运人', | ||||
|           }, | ||||
|           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 } } }; | ||||
|     } | ||||
|       /** | ||||
|         signingObject: { | ||||
|           type: 'string', | ||||
|           title: '签约对象', | ||||
|           enum: [ | ||||
|             { label: '全部', value: '' }, | ||||
|             { label: '货主', value: 1 }, | ||||
|             { label: '司机', value: 2 } | ||||
|           ], | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请选择' | ||||
|           } | ||||
|         }, | ||||
|         contractType: { | ||||
|           title: '合同类型', | ||||
|           type: 'string', | ||||
|           default: '', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             containsAllLable: true, | ||||
|             params: { dictKey: 'contract:type' }, | ||||
|             containAllLable: true, | ||||
|           } as SFSelectWidgetSchema | ||||
|         }, | ||||
|         enterpriseInfoId: { | ||||
|           type: 'string', | ||||
|           title: '网络货运人', | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请选择', | ||||
|             allowClear: true, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value | ||||
|             }, | ||||
|             asyncData: () => this.shipperservice.getNetworkFreightForwarder() | ||||
|           } | ||||
|         }, | ||||
|         contractObjectName: { | ||||
|           type: 'string', | ||||
|           title: '合同对象', | ||||
|           ui: { | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         signTime: { | ||||
|           title: '签署日期', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'custom', | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         effectiveEndTime: { | ||||
|           title: '有效期', | ||||
|           type: 'string', | ||||
|           ui: { | ||||
|             widget: 'custom', | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|             }, | ||||
|           } | ||||
|         }, | ||||
|         esignFlowStatus: { | ||||
|           title: '状态', | ||||
|           type: 'string', | ||||
|           default: '', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             containsAllLable: true, | ||||
|             params: { dictKey: 'esign:flow:status' }, | ||||
|             containAllLable: true, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value | ||||
|             } | ||||
|           } as SFSelectWidgetSchema | ||||
|         } | ||||
|       }, | ||||
|       type: 'object' | ||||
|     }; | ||||
|     this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } }; | ||||
|   } | ||||
|   /** | ||||
|    * 查询字段个数 | ||||
|    */ | ||||
|   get queryFieldCount(): number { | ||||
| @ -193,7 +298,7 @@ export class ContractManagementPartnerComponent implements OnInit { | ||||
|   /** | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|    expandToggle(): void { | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
|   } | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-05 11:01:55 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-01-25 14:25:49 | ||||
|  * @LastEditTime : 2022-02-24 10:23:53 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template-detail\\contract-template-detail.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -16,12 +16,12 @@ import { NzModalService } from 'ng-zorro-antd/modal'; | ||||
| import { ContractManagementService } from '../../services/contract-management.service'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-contract-management-template-detail-complaint', | ||||
|   selector: 'app-contract-management-template-text-complaint', | ||||
|   templateUrl: './contract-template-detail.component.html', | ||||
|   styleUrls: ['./contract-template-detail.component.less'], | ||||
|   providers: [DatePipe] | ||||
| }) | ||||
| export class ContractManagementTemplateDetailComponent implements OnInit { | ||||
| export class ContractManagementTemplateTextComponent implements OnInit { | ||||
|   constructor( | ||||
|     private nzModalService: NzModalService, | ||||
|     public service: ContractManagementService, | ||||
|  | ||||
| @ -4,13 +4,12 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-12 10:52:50 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-01-18 17:16:18 | ||||
|  * @LastEditTime : 2022-02-24 10:31:05 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template\\contract-template.component.html | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
| --> | ||||
|  | ||||
| <!-- 搜索表单 --> | ||||
| <page-header-wrapper [title]="'合同模板'"> </page-header-wrapper> | ||||
| <nz-card> | ||||
|   <div nz-row nzGutter="8"> | ||||
|     <!-- 查询字段小于或等于3个时,不显示伸缩按钮 --> | ||||
| @ -28,9 +27,16 @@ | ||||
|     </div> | ||||
|  | ||||
|     <!-- 查询字段大于3个时,根据展开状态调整布局 --> | ||||
|     <ng-container *ngIf="queryFieldCount > 4"> | ||||
|     <ng-container> | ||||
|       <div nz-col [nzSpan]="_$expand ? 24 : 18"> | ||||
|         <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> | ||||
|         <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"> | ||||
|           <ng-template sf-template="signTime" let-me let-ui="ui" let-schema="schema"> | ||||
|             <nz-range-picker [nzShowTime]="true" [(ngModel)]="sf.value.signTime"></nz-range-picker> | ||||
|           </ng-template> | ||||
|           <ng-template sf-template="effectiveEndTime" let-me let-ui="ui" let-schema="schema"> | ||||
|             <nz-range-picker [nzShowTime]="true" [(ngModel)]="sf.value.effectiveEndTime"></nz-range-picker> | ||||
|           </ng-template> | ||||
|         </sf> | ||||
|       </div> | ||||
|       <div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand"> | ||||
|         <button | ||||
| @ -40,10 +46,9 @@ | ||||
|           [nzLoading]="service.http.loading" | ||||
|           (click)="st?.load(1)" | ||||
|           acl | ||||
|           [acl-ability]="['CONTRACT-TEMPLATE-search']" | ||||
|           [acl-ability]="['CONTRACT-INDEX-listFrame']" | ||||
|           >查询</button | ||||
|         > | ||||
|         <button nz-button nzType="primary" acl [acl-ability]="['CONTRACT-TEMPLATE-export']">导出</button> | ||||
|         <button nz-button (click)="resetSF()">重置</button> | ||||
|         <button nz-button nzType="link" (click)="expandToggle()"> | ||||
|           {{ !_$expand ? '展开' : '收起' }} | ||||
|  | ||||
| @ -4,27 +4,27 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-05 09:45:47 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-01-18 17:16:22 | ||||
|  * @LastEditTime : 2022-02-24 10:25:58 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\contract-template\\contract-template.component.spec.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
|  | ||||
| import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; | ||||
| import { ContractManagementTemplateComponent } from './contract-template.component'; | ||||
| import { ContractManagementTemplateDetailComponent } from './contract-template.component'; | ||||
|  | ||||
| describe('ContractManagementTemplateComponent', () => { | ||||
|   let component: ContractManagementTemplateComponent; | ||||
|   let fixture: ComponentFixture<ContractManagementTemplateComponent>; | ||||
| describe('ContractManagementTemplateDetailComponent', () => { | ||||
|   let component: ContractManagementTemplateDetailComponent; | ||||
|   let fixture: ComponentFixture<ContractManagementTemplateDetailComponent>; | ||||
|  | ||||
|   beforeEach(waitForAsync(() => { | ||||
|     TestBed.configureTestingModule({ | ||||
|       declarations: [ ContractManagementTemplateComponent ] | ||||
|       declarations: [ ContractManagementTemplateDetailComponent ] | ||||
|     }) | ||||
|     .compileComponents(); | ||||
|   })); | ||||
|  | ||||
|   beforeEach(() => { | ||||
|     fixture = TestBed.createComponent(ContractManagementTemplateComponent); | ||||
|     fixture = TestBed.createComponent(ContractManagementTemplateDetailComponent); | ||||
|     component = fixture.componentInstance; | ||||
|     fixture.detectChanges(); | ||||
|   }); | ||||
|  | ||||
| @ -9,11 +9,11 @@ import { ContractManagementService } from '../../services/contract-management.se | ||||
|  | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-contract-management-template-complaint', | ||||
|   selector: 'app-contract-management-template-detail-complaint', | ||||
|   templateUrl: './contract-template.component.html', | ||||
|   styleUrls: ['./contract-template.component.less'] | ||||
| }) | ||||
| export class ContractManagementTemplateComponent implements OnInit { | ||||
| export class ContractManagementTemplateDetailComponent implements OnInit { | ||||
|   ui: SFUISchema = {}; | ||||
|   uiView: SFUISchema = {}; | ||||
|   schema: SFSchema = {}; | ||||
| @ -69,12 +69,37 @@ export class ContractManagementTemplateComponent implements OnInit { | ||||
|   initSF() { | ||||
|     this.schema = { | ||||
|       properties: { | ||||
|         _$expand: { type: 'boolean', ui: { hidden: true } }, | ||||
|         templateName: { | ||||
|           type: 'string', | ||||
|           title: '模板名称', | ||||
|         }, | ||||
|         templateType: { | ||||
|           title: '模板类型', | ||||
|         signingObject: { | ||||
|           type: 'string', | ||||
|           title: '签约对象', | ||||
|           enum: [ | ||||
|             { label: '全部', value: '' }, | ||||
|             { label: '货主', value: 1 }, | ||||
|             { label: '司机', value: 2 } | ||||
|           ], | ||||
|           ui: { | ||||
|             widget: 'select', | ||||
|             placeholder: '请选择' | ||||
|           } | ||||
|         }, | ||||
|         contractType: { | ||||
|           title: '合同类型', | ||||
|           type: 'string', | ||||
|           default: '', | ||||
|           ui: { | ||||
|             widget: 'dict-select', | ||||
|             containsAllLable: true, | ||||
|             params: { dictKey: 'contract:type' }, | ||||
|             containAllLable: true, | ||||
|           } as SFSelectWidgetSchema | ||||
|         }, | ||||
|         templateType2: { | ||||
|           title: '货源类型', | ||||
|           type: 'string', | ||||
|           default: '', | ||||
|           ui: { | ||||
| @ -82,7 +107,7 @@ export class ContractManagementTemplateComponent implements OnInit { | ||||
|             params: { dictKey: 'contract:template:type' }, | ||||
|             containsAllLable: true, | ||||
|             visibleIf: { | ||||
|               _$expand: (value: boolean) => value, | ||||
|               _$expand: (value: boolean) => value | ||||
|             }, | ||||
|           } as SFSelectWidgetSchema, | ||||
|         }, | ||||
| @ -102,14 +127,22 @@ export class ContractManagementTemplateComponent implements OnInit { | ||||
|         render: 'templateName' | ||||
|       }, | ||||
|       { | ||||
|         title: '模板类型', | ||||
|         title: '签约对象', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index: 'templateType' | ||||
|         index: 'signingObject' | ||||
|       }, | ||||
|       { | ||||
|         title: '单据类型', | ||||
|         index: 'contractType', | ||||
|         title: '合同类型', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index: 'contractType' | ||||
|       }, | ||||
|       { | ||||
|         title: '货源类型', | ||||
|         width: '100px', | ||||
|         className: 'text-center', | ||||
|         index: 'contractType' | ||||
|       }, | ||||
|       { title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' }, | ||||
|       { | ||||
| @ -160,9 +193,9 @@ export class ContractManagementTemplateComponent implements OnInit { | ||||
|   get queryFieldCount(): number { | ||||
|     return Object.keys(this.schema?.properties || {}).length; | ||||
|   } | ||||
|   /** | ||||
|   * 伸缩查询条件 | ||||
|   */ | ||||
|  /** | ||||
|    * 伸缩查询条件 | ||||
|    */ | ||||
|   expandToggle(): void { | ||||
|     this._$expand = !this._$expand; | ||||
|     this.sf?.setValue('/_$expand', this._$expand); | ||||
| @ -178,14 +211,14 @@ export class ContractManagementTemplateComponent implements OnInit { | ||||
|   } | ||||
|  | ||||
|   edit(value: any) { | ||||
|     this.router.navigate(['/contract-management/template/detail/' + value.id],{ | ||||
|     this.router.navigate(['/contract-management/template/text/' + value.id],{ | ||||
|       queryParams: { | ||||
|         status: 2 | ||||
|       } | ||||
|     }) | ||||
|   } | ||||
|   creatTemplate() { | ||||
|     this.router.navigate(['/contract-management/template/detail/' + 0], { | ||||
|     this.router.navigate(['/contract-management/template/text/' + 0], { | ||||
|       queryParams: { | ||||
|         status: 1 | ||||
|       } | ||||
| @ -195,7 +228,7 @@ export class ContractManagementTemplateComponent implements OnInit { | ||||
|     window.history.go(-1) | ||||
|   } | ||||
|   view(value: any) { | ||||
|     this.router.navigate(['/contract-management/template/detail/' + value.id],{ | ||||
|     this.router.navigate(['/contract-management/template/text/' + value.id],{ | ||||
|       queryParams: { | ||||
|         status: 3 | ||||
|       } | ||||
|  | ||||
| @ -0,0 +1,26 @@ | ||||
| <!-- | ||||
|  * @Description  :  | ||||
|  * @Version      : 1.0 | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-07 13:27:10 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-02-23 19:39:38 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\index\\index.component.html | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
| --> | ||||
|  | ||||
| <page-header-wrapper title="合同模板" [tab]="tpTab"> | ||||
| </page-header-wrapper> | ||||
| <ng-template #tpTab> | ||||
|   <nz-tabset [(nzSelectedIndex)]="selectedIndex"> | ||||
|     <nz-tab nzTitle="明细合同"> | ||||
|       <app-contract-management-template-detail-complaint></app-contract-management-template-detail-complaint> | ||||
|     </nz-tab> | ||||
|     <nz-tab nzTitle="框架合同"> | ||||
|       <app-contract-management-contract-frame></app-contract-management-contract-frame> | ||||
|     </nz-tab> | ||||
|     <nz-tab nzTitle="合伙人合同"> | ||||
|       <app-contract-management-contract-partner></app-contract-management-contract-partner> | ||||
|     </nz-tab> | ||||
|   </nz-tabset> | ||||
| </ng-template> | ||||
| @ -0,0 +1,24 @@ | ||||
| import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; | ||||
| import { ContractManagementTemplateComponent } from './template.component'; | ||||
|  | ||||
| describe('ContractManagementTemplateComponent', () => { | ||||
|   let component: ContractManagementTemplateComponent; | ||||
|   let fixture: ComponentFixture<ContractManagementTemplateComponent>; | ||||
|  | ||||
|   beforeEach(waitForAsync(() => { | ||||
|     TestBed.configureTestingModule({ | ||||
|       declarations: [ ContractManagementTemplateComponent ] | ||||
|     }) | ||||
|     .compileComponents(); | ||||
|   })); | ||||
|  | ||||
|   beforeEach(() => { | ||||
|     fixture = TestBed.createComponent(ContractManagementTemplateComponent); | ||||
|     component = fixture.componentInstance; | ||||
|     fixture.detectChanges(); | ||||
|   }); | ||||
|  | ||||
|   it('should create', () => { | ||||
|     expect(component).toBeTruthy(); | ||||
|   }); | ||||
| }); | ||||
| @ -0,0 +1,27 @@ | ||||
| /* | ||||
|  * @Description  :  | ||||
|  * @Version      : 1.0 | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-07 13:27:10 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-02-24 10:20:23 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\template\\template.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
|  | ||||
| import { Component, OnInit } from '@angular/core'; | ||||
| import { ModalHelper, _HttpClient } from '@delon/theme'; | ||||
|  | ||||
| @Component({ | ||||
|   selector: 'app-supply-management-template', | ||||
|   templateUrl: './template.component.html', | ||||
| }) | ||||
| export class ContractManagementTemplateComponent implements OnInit { | ||||
|   selectedIndex = 0; | ||||
|    | ||||
|   constructor(private http: _HttpClient, private modal: ModalHelper) { } | ||||
|  | ||||
|   ngOnInit(): void { } | ||||
|  | ||||
|  | ||||
| } | ||||
| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-04 21:05:49 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-02-23 19:39:21 | ||||
|  * @LastEditTime : 2022-02-24 10:24:16 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\contract-management-routing.module.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -14,15 +14,15 @@ import { RouterModule, Routes } from '@angular/router'; | ||||
| import { ContractManagementDetailComponent } from './components/contract-detail/contract-detail.component'; | ||||
| import { ContractManagementContractListComponent } from './components/contract-list/contract-list.component'; | ||||
| import { ContractManagementPartnerComponent } from './components/contract-partner/contract-partner.component'; | ||||
| import { ContractManagementTemplateDetailComponent } from './components/contract-template-detail/contract-template-detail.component'; | ||||
| import { ContractManagementTemplateComponent } from './components/contract-template/contract-template.component'; | ||||
| import { ContractManagementTemplateTextComponent } from './components/contract-template-detail/contract-template-detail.component'; | ||||
| import { ContractManagementIndexComponent } from './components/index/index.component'; | ||||
| import { ContractManagementPolicyComponent } from './components/policy/policy.component'; | ||||
| import { ContractManagementTemplateComponent } from './components/template/template.component'; | ||||
| const routes: Routes = [ | ||||
|   { path: 'index', component: ContractManagementIndexComponent }, | ||||
|   { path: 'index/detail/:id', component: ContractManagementDetailComponent }, | ||||
|   { path: 'template', component: ContractManagementTemplateComponent }, | ||||
|   { path: 'template/detail/:id', component: ContractManagementTemplateDetailComponent }, | ||||
|   { path: 'template/text/:id', component: ContractManagementTemplateTextComponent }, | ||||
|   { path: 'policy', component: ContractManagementPolicyComponent }, | ||||
|   { path: 'partner', component: ContractManagementPartnerComponent }, | ||||
| ]; | ||||
|  | ||||
| @ -15,22 +15,25 @@ import { SharedModule } from '@shared'; | ||||
| import { ContractManagementManagementRoutingModule } from './contract-management-routing.module'; | ||||
| import { ContractManagementContractListComponent } from './components/contract-list/contract-list.component'; | ||||
| import { ContractManagementPolicyComponent } from './components/policy/policy.component'; | ||||
| import { ContractManagementTemplateComponent } from './components/contract-template/contract-template.component'; | ||||
| import { ContractManagementTemplateDetailComponent } from './components/contract-template/contract-template.component'; | ||||
| import { ContractManagementIndexComponent } from './components/index/index.component'; | ||||
| import { ContractManagementFrameComponent } from './components/contract-frame/contract-frame.component'; | ||||
| import { ContractManagementTemplateDetailComponent } from './components/contract-template-detail/contract-template-detail.component'; | ||||
| import { ContractManagementDetailComponent } from './components/contract-detail/contract-detail.component'; | ||||
| import { ContractManagementPartnerComponent } from './components/contract-partner/contract-partner.component'; | ||||
| import { ContractManagementTemplateComponent } from './components/template/template.component'; | ||||
| import { ContractManagementTemplateTextComponent } from './components/contract-template-detail/contract-template-detail.component'; | ||||
|  | ||||
| const COMPONENTS: any = [ | ||||
|   ContractManagementContractListComponent, | ||||
|   ContractManagementPolicyComponent, | ||||
|   ContractManagementTemplateComponent, | ||||
|   ContractManagementTemplateDetailComponent, | ||||
|   ContractManagementTemplateDetailComponent, | ||||
|   ContractManagementIndexComponent, | ||||
|   ContractManagementFrameComponent, | ||||
|   ContractManagementDetailComponent, | ||||
|   ContractManagementPartnerComponent | ||||
|   ContractManagementPartnerComponent, | ||||
|   ContractManagementTemplateComponent, | ||||
|   ContractManagementTemplateTextComponent | ||||
| ]; | ||||
| const NOTROUTECOMPONENTS: any = []; | ||||
| @NgModule({ | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2022-01-04 21:05:49 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-01-18 17:17:10 | ||||
|  * @LastEditTime : 2022-02-24 10:00:59 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\contract-management\\services\\contract-management.service.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -31,6 +31,8 @@ export class ContractManagementService extends BaseService { | ||||
|   $api_listDetailed_page = `/api/sdc/contract/listDetailed/page`; | ||||
|   // 查询框架合同 | ||||
|   $api_listFrame_page = `/api/sdc/contract/listFrame/page`; | ||||
|   // 查询合伙人合同 | ||||
|   $api_listPartner_page = `/api/sdc/contract/listPartner/page`; | ||||
|   // 获取订单合同表 | ||||
|   $api_contract_get = `/api/sdc/contract/get`; | ||||
|   constructor(public injector: Injector) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user