Merge branch 'develop'
This commit is contained in:
		| @ -4,7 +4,7 @@ | |||||||
|  * @Author       : Shiming |  * @Author       : Shiming | ||||||
|  * @Date         : 2022-01-18 09:51:21 |  * @Date         : 2022-01-18 09:51:21 | ||||||
|  * @LastEditors  : Shiming |  * @LastEditors  : Shiming | ||||||
|  * @LastEditTime : 2022-05-07 17:54:06 |  * @LastEditTime : 2022-05-09 11:25:41 | ||||||
|  * @FilePath     : \\tms-obc-web\\proxy.conf.js |  * @FilePath     : \\tms-obc-web\\proxy.conf.js | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||||
|  */ |  */ | ||||||
| @ -30,7 +30,7 @@ module.exports = { | |||||||
|   // }, |   // }, | ||||||
|   '//api': { |   '//api': { | ||||||
|     target: { |     target: { | ||||||
|       host: 'tms-api-test.eascs.com', |       host: 'tms-api-dev.eascs.com', | ||||||
|       protocol: 'https:', |       protocol: 'https:', | ||||||
|       port: 443 |       port: 443 | ||||||
|     }, |     }, | ||||||
|  | |||||||
| @ -127,7 +127,6 @@ export class OrderManagementReceiptsAuditComponent extends BasicTableComponent i | |||||||
|     this.initST(); |     this.initST(); | ||||||
|     setTimeout(() => { |     setTimeout(() => { | ||||||
|       this.st.load(); |       this.st.load(); | ||||||
|       this.getGoodsSourceStatistical(); |  | ||||||
|     }, 500); |     }, 500); | ||||||
|   } |   } | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|  | |||||||
| @ -48,7 +48,7 @@ export class PartnerAccountManagementWithdrawalsRecordComponent implements OnIni | |||||||
|  |  | ||||||
|   afterRes = (data: any[], rawData?: any) => { |   afterRes = (data: any[], rawData?: any) => { | ||||||
|     data = data.map(node => ({ ...node,  |     data = data.map(node => ({ ...node,  | ||||||
|       // disabled: node.refundStatus !== '1' |       disabled: node.refundStatus !== '1' | ||||||
|      })); |      })); | ||||||
|     return data; |     return data; | ||||||
|   }; |   }; | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ | |||||||
|  * @Author       : Shiming |  * @Author       : Shiming | ||||||
|  * @Date         : 2022-04-29 17:28:23 |  * @Date         : 2022-04-29 17:28:23 | ||||||
|  * @LastEditors  : Shiming |  * @LastEditors  : Shiming | ||||||
|  * @LastEditTime : 2022-05-06 14:20:04 |  * @LastEditTime : 2022-05-09 11:33:34 | ||||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\partner-list\\components\\index\\partner-list.component.html |  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\partner-list\\components\\index\\partner-list.component.html | ||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||||
| --> | --> | ||||||
| @ -13,11 +13,15 @@ | |||||||
| <nz-card class="search-box" nzBordered> | <nz-card class="search-box" nzBordered> | ||||||
|   <div nz-row nzGutter="8"> |   <div nz-row nzGutter="8"> | ||||||
|     <div nz-col [nzXl]="_$expand ? 24 : 17" [nzLg]="24" [nzSm]="24" [nzXs]="24"> |     <div nz-col [nzXl]="_$expand ? 24 : 17" [nzLg]="24" [nzSm]="24" [nzXs]="24"> | ||||||
|       <sf #sf [schema]="searchSchema" [ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24 } } }" |       <sf | ||||||
|         [compact]="true" [button]="'none'"></sf> |         #sf | ||||||
|  |         [schema]="searchSchema" | ||||||
|  |         [ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24 } } }" | ||||||
|  |         [compact]="true" | ||||||
|  |         [button]="'none'" | ||||||
|  |       ></sf> | ||||||
|     </div> |     </div> | ||||||
|     <div nz-col [nzXl]="_$expand ? 24 : 7" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right" |     <div nz-col [nzXl]="_$expand ? 24 : 7" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right" [class.expend-options]="_$expand"> | ||||||
|       [class.expend-options]="_$expand"> |  | ||||||
|       <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button> |       <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button> | ||||||
|       <button nz-button (click)="resetSF()">重置</button> |       <button nz-button (click)="resetSF()">重置</button> | ||||||
|       <button nz-button nzType="link" (click)="expandToggle()"> |       <button nz-button nzType="link" (click)="expandToggle()"> | ||||||
| @ -30,20 +34,40 @@ | |||||||
|  |  | ||||||
| <nz-card class="content-box" nzBordered> | <nz-card class="content-box" nzBordered> | ||||||
|   <div class="d-flex align-items-center mb-md mt-md"> |   <div class="d-flex align-items-center mb-md mt-md"> | ||||||
|     <button nz-button (click)="this.routeTo('/partner/partner-list/add-etp-partner')" nzType="primary"  acl  [acl-ability]="['ENTERPRISE-saveEnterprise']">新增企业合伙人</button> |     <button | ||||||
|     <button nz-button (click)="this.routeTo('/partner/partner-list/add-personal-partner')" |       nz-button | ||||||
|       nzType="primary"  acl  [acl-ability]="['ENTERPRISE-savePersonally']">新增个人合伙人</button> |       (click)="this.routeTo('/partner/partner-list/add-etp-partner')" | ||||||
|  |       nzType="primary" | ||||||
|  |       acl | ||||||
|  |       [acl-ability]="['ENTERPRISE-saveEnterprise']" | ||||||
|  |       >新增企业合伙人</button | ||||||
|  |     > | ||||||
|  |     <button | ||||||
|  |       nz-button | ||||||
|  |       (click)="this.routeTo('/partner/partner-list/add-personal-partner')" | ||||||
|  |       nzType="primary" | ||||||
|  |       acl | ||||||
|  |       [acl-ability]="['ENTERPRISE-savePersonally']" | ||||||
|  |       >新增个人合伙人</button | ||||||
|  |     > | ||||||
|   </div> |   </div> | ||||||
|  |  | ||||||
|   <st #st [data]="service.$api_get_partner_page" [columns]="columns" [req]="{ process: beforeReq }" |   <st | ||||||
|     [loading]="service.http.loading" [scroll]="{ x: '1200px' }" [page]="{}"> |     #st | ||||||
|  |     [data]="service.$api_get_partner_page" | ||||||
|  |     [columns]="columns" | ||||||
|  |     [req]="{ process: beforeReq }" | ||||||
|  |     [loading]="service.http.loading" | ||||||
|  |     [scroll]="{ x: '1200px' }" | ||||||
|  |     [page]="{}" | ||||||
|  |   > | ||||||
|   </st> |   </st> | ||||||
| </nz-card> | </nz-card> | ||||||
|  |  | ||||||
| <ng-template #editTemplate> | <ng-template #editTemplate> | ||||||
|   <div nz-row nzGutter="8"> |   <div nz-row nzGutter="8"> | ||||||
|     <div nz-col nzSpan="24" se-container [labelWidth]="120"> |     <div nz-col nzSpan="24" se-container [labelWidth]="120"> | ||||||
|       <se [col]="1" label="合伙人名称"> {{selectItem?.enterpriseName || selectItem?.contactName}} </se> |       <se [col]="1" label="合伙人名称"> {{ selectItem?.enterpriseName || selectItem?.contactName }} </se> | ||||||
|       <se [col]="1" label="返佣模板" required> |       <se [col]="1" label="返佣模板" required> | ||||||
|         <nz-select [(ngModel)]="templateId" style="width: 100%"> |         <nz-select [(ngModel)]="templateId" style="width: 100%"> | ||||||
|           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of customers"></nz-option> |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of customers"></nz-option> | ||||||
| @ -57,8 +81,8 @@ | |||||||
| <ng-template #editCannel> | <ng-template #editCannel> | ||||||
|   <div nz-row nzGutter="8"> |   <div nz-row nzGutter="8"> | ||||||
|     <div nz-col nzSpan="24" se-container [labelWidth]="140" [col]="1"> |     <div nz-col nzSpan="24" se-container [labelWidth]="140" [col]="1"> | ||||||
|       <se label="合伙人名称"> {{selectItem?.enterpriseName || selectItem?.contactName}} </se> |       <se label="合伙人名称"> {{ selectItem?.enterpriseName || selectItem?.contactName }} </se> | ||||||
|       <se label="当前渠道销售"> {{selectItem?.channelIdLabel}} </se> |       <se label="当前渠道销售"> {{ selectItem?.channelIdLabel }} </se> | ||||||
|       <se label="渠道销售修改为" required> |       <se label="渠道销售修改为" required> | ||||||
|         <nz-select [(ngModel)]="cannelItem.channelId" style="width: 100%"> |         <nz-select [(ngModel)]="cannelItem.channelId" style="width: 100%"> | ||||||
|           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of cannels"></nz-option> |           <nz-option [nzValue]="item.value" [nzLabel]="item.label" *ngFor="let item of cannels"></nz-option> | ||||||
| @ -68,21 +92,32 @@ | |||||||
|         <textarea rows="3" nz-input [(ngModel)]="cannelItem.remark"></textarea> |         <textarea rows="3" nz-input [(ngModel)]="cannelItem.remark"></textarea> | ||||||
|       </se> |       </se> | ||||||
|       <se label="一并转移的客户"> |       <se label="一并转移的客户"> | ||||||
|         <p style="margin-top: 8px">已选({{selectedRows?.length}})</p> |         <p style="margin-top: 8px">已选({{ selectedRows?.length }})</p> | ||||||
|         <st #rest [data]="service.$api_get_enterprice_rel_list" [columns]="[ |         <st | ||||||
|         { title: '', index: 'key', type: 'checkbox' }, |           #rest | ||||||
|         { title: '客户名称', index: 'enterpriceName' } |           [data]="service.$api_get_enterprice_rel_list" | ||||||
|         ]" [req]="{ process: beforeReq,params:{effectiveStatus:2 ,newPartnerId:selectItem.id} }" |           [columns]="[ | ||||||
|           [loading]="service.http.loading" [page]="{show:false}" (change)="stChange($event)"> |             { title: '', index: 'key', type: 'checkbox' }, | ||||||
|  |             { title: '客户名称', index: 'enterpriseName' } | ||||||
|  |           ]" | ||||||
|  |           [res]="{ reName: { list: 'data', total: 'data.total' } }" | ||||||
|  |           [req]="{ process: beforeReq, params: { effectiveStatus: 2, newPartnerId: selectItem.id } }" | ||||||
|  |           [loading]="service.http.loading" | ||||||
|  |           [page]="{ show: false }" | ||||||
|  |            | ||||||
|  |           (change)="stChange($event)" | ||||||
|  |         > | ||||||
|         </st> |         </st> | ||||||
|       </se> |       </se> | ||||||
|       <se label="生效节点" required> |       <se label="生效节点" required> | ||||||
|         <nz-radio-group [(ngModel)]="cannelItem.effectiveNode"> |         <nz-radio-group [(ngModel)]="cannelItem.effectiveNode"> | ||||||
|           <label nz-radio [nzValue]="1">修改成功后立即生效</label> |           <label nz-radio [nzValue]="1">修改成功后立即生效</label> | ||||||
|           <label nz-radio [nzValue]="2">CRM流程审核通过后生</label> |           <!-- <label nz-radio [nzValue]="2">CRM流程审核通过后生效</label> --> | ||||||
|         </nz-radio-group> |         </nz-radio-group> | ||||||
|       </se> |       </se> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
|   <p class="text-center mt-md">客户转移:客户跟着上级合伙人转移一并到新渠道销售下,会同步发起CRM《客户转移》流程;不转移的,客户会与上级合伙人解绑,成为渠道销售的直客</p> |   <p class="text-center mt-md" | ||||||
| </ng-template> |     >客户转移:客户跟着上级合伙人转移一并到新渠道销售下,会同步发起CRM《客户转移》流程;不转移的,客户会与上级合伙人解绑,成为渠道销售的直客</p | ||||||
|  |   > | ||||||
|  | </ng-template> | ||||||
|  | |||||||
| @ -162,7 +162,7 @@ export class PartnerListComponent { | |||||||
|     const modal = this.nzModalService.confirm({ |     const modal = this.nzModalService.confirm({ | ||||||
|       nzTitle: '确定提交吗?', |       nzTitle: '确定提交吗?', | ||||||
|       nzOnOk: () => { |       nzOnOk: () => { | ||||||
|         this.cannelItem.enterpriseIdList = this.selectedRows.map(row => row.id); |         this.cannelItem.enterpriseIdList = this.selectedRows.map(row => row.enterpriseId); | ||||||
|         this.service |         this.service | ||||||
|           .request(this.service.$api_update_partner_channel_by_id, { |           .request(this.service.$api_update_partner_channel_by_id, { | ||||||
|             ...this.cannelItem, |             ...this.cannelItem, | ||||||
|  | |||||||
| @ -10,7 +10,6 @@ import { | |||||||
|   SFTextareaWidgetSchema, |   SFTextareaWidgetSchema, | ||||||
|   SFUISchema |   SFUISchema | ||||||
| } from '@delon/form'; | } from '@delon/form'; | ||||||
| import { _HttpClient } from '@delon/theme'; |  | ||||||
| import { AmapPoiPickerComponent, AmapService, ShipperBaseService } from '@shared'; | import { AmapPoiPickerComponent, AmapService, ShipperBaseService } from '@shared'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| import { PublishGoodsChooseFamifiarComponent } from '../choose-famifiar/choose-famifiar.component'; | import { PublishGoodsChooseFamifiarComponent } from '../choose-famifiar/choose-famifiar.component'; | ||||||
| @ -20,7 +19,6 @@ import { of } from 'rxjs'; | |||||||
| import { PublishSuccessComponent } from '../onecar-publish/publish-success/publish-success.component'; | import { PublishSuccessComponent } from '../onecar-publish/publish-success/publish-success.component'; | ||||||
| import { PublishAddressListComponent } from '../onecar-publish/address-list/address-list.component'; | import { PublishAddressListComponent } from '../onecar-publish/address-list/address-list.component'; | ||||||
| import { TranAgreementComponent } from '../tran-agreement/tran-agreement.component'; | import { TranAgreementComponent } from '../tran-agreement/tran-agreement.component'; | ||||||
| import differenceInCalendarDays from 'date-fns/differenceInCalendarDays'; |  | ||||||
| import { SupplyManagementQrcodePageComponent } from '../qrcode-page/qrcode-page.component'; | import { SupplyManagementQrcodePageComponent } from '../qrcode-page/qrcode-page.component'; | ||||||
| @Component({ | @Component({ | ||||||
|   selector: 'app-publish-goods-bulk-publish', |   selector: 'app-publish-goods-bulk-publish', | ||||||
| @ -58,7 +56,6 @@ export class SupplyManagementBulkPublishComponent implements OnInit { | |||||||
|   }; |   }; | ||||||
|   patternStr = `^((13[0-9])|(14[0-1,4-9])|(15([0-3,5-9]))|(17[0-8])|(18[0-9])|(19[0-3,5-9])|(16[2,5,6,7]))\\d{8}$`; |   patternStr = `^((13[0-9])|(14[0-1,4-9])|(15([0-3,5-9]))|(17[0-8])|(18[0-9])|(19[0-3,5-9])|(16[2,5,6,7]))\\d{8}$`; | ||||||
|   constructor( |   constructor( | ||||||
|     private http: _HttpClient, |  | ||||||
|     fb: FormBuilder, |     fb: FormBuilder, | ||||||
|     private router: Router, |     private router: Router, | ||||||
|     private route: ActivatedRoute, |     private route: ActivatedRoute, | ||||||
|  | |||||||
| @ -3,9 +3,8 @@ import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms' | |||||||
| import differenceInCalendarDays from 'date-fns/differenceInCalendarDays'; | import differenceInCalendarDays from 'date-fns/differenceInCalendarDays'; | ||||||
| import format from 'date-fns/format'; | import format from 'date-fns/format'; | ||||||
| import { Subject } from 'rxjs'; | import { Subject } from 'rxjs'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { ActivatedRoute } from '@angular/router'; | ||||||
| import { | import { | ||||||
|   SFCheckboxWidgetSchema, |  | ||||||
|   SFComponent, |   SFComponent, | ||||||
|   SFNumberWidgetSchema, |   SFNumberWidgetSchema, | ||||||
|   SFSchema, |   SFSchema, | ||||||
| @ -14,7 +13,6 @@ import { | |||||||
|   SFTextareaWidgetSchema, |   SFTextareaWidgetSchema, | ||||||
|   SFUISchema |   SFUISchema | ||||||
| } from '@delon/form'; | } from '@delon/form'; | ||||||
| import { _HttpClient } from '@delon/theme'; |  | ||||||
| import { AmapPoiPickerComponent, AmapService, EACacheService, ShipperBaseService } from '@shared'; | import { AmapPoiPickerComponent, AmapService, EACacheService, ShipperBaseService } from '@shared'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| import { of } from 'rxjs'; | import { of } from 'rxjs'; | ||||||
| @ -67,9 +65,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit { | |||||||
|   envCache: any; |   envCache: any; | ||||||
|   enterpriseProjectIds: any; |   enterpriseProjectIds: any; | ||||||
|   constructor( |   constructor( | ||||||
|     private http: _HttpClient, |  | ||||||
|     fb: FormBuilder, |     fb: FormBuilder, | ||||||
|     private router: Router, |  | ||||||
|     private route: ActivatedRoute, |     private route: ActivatedRoute, | ||||||
|     private modalService: NzModalService, |     private modalService: NzModalService, | ||||||
|     public service: SupplyManagementService, |     public service: SupplyManagementService, | ||||||
|  | |||||||
| @ -1,10 +1,8 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; | import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; |  | ||||||
| import { cacheConf } from '@conf/cache.conf'; | import { cacheConf } from '@conf/cache.conf'; | ||||||
| import differenceInCalendarDays from 'date-fns/differenceInCalendarDays'; | import differenceInCalendarDays from 'date-fns/differenceInCalendarDays'; | ||||||
| import { | import { | ||||||
|   SFCheckboxWidgetSchema, |  | ||||||
|   SFComponent, |   SFComponent, | ||||||
|   SFNumberWidgetSchema, |   SFNumberWidgetSchema, | ||||||
|   SFSchema, |   SFSchema, | ||||||
| @ -13,7 +11,6 @@ import { | |||||||
|   SFTextareaWidgetSchema, |   SFTextareaWidgetSchema, | ||||||
|   SFUISchema |   SFUISchema | ||||||
| } from '@delon/form'; | } from '@delon/form'; | ||||||
| import { SettingsService, _HttpClient } from '@delon/theme'; |  | ||||||
| import { EACacheService, ShipperBaseService } from '@shared'; | import { EACacheService, ShipperBaseService } from '@shared'; | ||||||
| import format from 'date-fns/format'; | import format from 'date-fns/format'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| @ -54,13 +51,9 @@ export class SupplyManagementReleasePublishComponent implements OnInit { | |||||||
|   shipperName = ''; |   shipperName = ''; | ||||||
|   patternStr = `^((13[0-9])|(14[0-1,4-9])|(15([0-3,5-9]))|(17[0-8])|(18[0-9])|(19[0-3,5-9])|(16[2,5,6,7]))\\d{8}$`; |   patternStr = `^((13[0-9])|(14[0-1,4-9])|(15([0-3,5-9]))|(17[0-8])|(18[0-9])|(19[0-3,5-9])|(16[2,5,6,7]))\\d{8}$`; | ||||||
|   constructor( |   constructor( | ||||||
|     private http: _HttpClient, |  | ||||||
|     fb: FormBuilder, |     fb: FormBuilder, | ||||||
|     private modalService: NzModalService, |     private modalService: NzModalService, | ||||||
|     private settingSrv: SettingsService, |  | ||||||
|     public service: SupplyManagementService, |     public service: SupplyManagementService, | ||||||
|     private router: Router, |  | ||||||
|     private route: ActivatedRoute, |  | ||||||
|     private eaCacheSrv: EACacheService, |     private eaCacheSrv: EACacheService, | ||||||
|     private amapService: AmapService, |     private amapService: AmapService, | ||||||
|     public shipperSrv: ShipperBaseService |     public shipperSrv: ShipperBaseService | ||||||
|  | |||||||
| @ -2,12 +2,10 @@ import { ActivatedRoute, Router } from '@angular/router'; | |||||||
| import { Component, OnInit, ViewChild, OnChanges } from '@angular/core'; | import { Component, OnInit, ViewChild, OnChanges } from '@angular/core'; | ||||||
| import { STColumn, STComponent, STRequestOptions } from '@delon/abc/st'; | import { STColumn, STComponent, STRequestOptions } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; | import { SFComponent, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; | ||||||
| import { ModalHelper, _HttpClient } from '@delon/theme'; |  | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| import { map } from 'rxjs/operators'; | import { map } from 'rxjs/operators'; | ||||||
| import { SupplyManagementService } from '../../services/supply-management.service'; | import { SupplyManagementService } from '../../services/supply-management.service'; | ||||||
| import { SupplyManagementVehicleAssignedCarComponent } from '../assigned-car/assigned-car.component'; | import { SupplyManagementVehicleAssignedCarComponent } from '../assigned-car/assigned-car.component'; | ||||||
| import { SupplyManagementUpdateExternalSnComponent } from '../update-external-sn/update-external-sn.component'; |  | ||||||
| import { of } from 'rxjs'; | import { of } from 'rxjs'; | ||||||
| import { SearchDrawerService, ShipperBaseService } from '@shared'; | import { SearchDrawerService, ShipperBaseService } from '@shared'; | ||||||
| import { SupplyManagementImportSupplyComponent } from '../../model/import-supply/import-supply.component'; | import { SupplyManagementImportSupplyComponent } from '../../model/import-supply/import-supply.component'; | ||||||
| @ -44,7 +42,6 @@ export class SupplyManagementVehicleComponent extends BasicTableComponent implem | |||||||
|     public service: SupplyManagementService, |     public service: SupplyManagementService, | ||||||
|     private modal: NzModalService, |     private modal: NzModalService, | ||||||
|     private router: Router, |     private router: Router, | ||||||
|     private ar: ActivatedRoute, |  | ||||||
|     public shipperSrv: ShipperBaseService, |     public shipperSrv: ShipperBaseService, | ||||||
|     public searchDrawerService: SearchDrawerService |     public searchDrawerService: SearchDrawerService | ||||||
|   ) { |   ) { | ||||||
|  | |||||||
| @ -9,10 +9,8 @@ | |||||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. |  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||||
|  */ |  */ | ||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute } from '@angular/router'; |  | ||||||
| import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; | import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFSchema } from '@delon/form'; | import { SFComponent, SFSchema } from '@delon/form'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; |  | ||||||
| import { SystemService } from '../../services/system.service'; | import { SystemService } from '../../services/system.service'; | ||||||
|  |  | ||||||
| @Component({ | @Component({ | ||||||
| @ -20,7 +18,7 @@ import { SystemService } from '../../services/system.service'; | |||||||
|   templateUrl: './note-management.component.html', |   templateUrl: './note-management.component.html', | ||||||
|   styleUrls: ['../../../commom/less/box.less'] |   styleUrls: ['../../../commom/less/box.less'] | ||||||
| }) | }) | ||||||
| export class NoTeManagementComponent implements OnInit { | export class NoTeManagementComponent { | ||||||
|   @ViewChild('st', { static: true }) |   @ViewChild('st', { static: true }) | ||||||
|   st!: STComponent; |   st!: STComponent; | ||||||
|   @ViewChild('sf', { static: false }) |   @ViewChild('sf', { static: false }) | ||||||
| @ -52,11 +50,9 @@ export class NoTeManagementComponent implements OnInit { | |||||||
|   }, |   }, | ||||||
|   ]; |   ]; | ||||||
|  |  | ||||||
|   constructor(public service: SystemService, private nzModalService: NzModalService, private route: ActivatedRoute) { |   constructor(public service: SystemService) { | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   ngOnInit(): void {} |  | ||||||
|  |  | ||||||
|   beforeReq = (requestOptions: STRequestOptions) => { |   beforeReq = (requestOptions: STRequestOptions) => { | ||||||
|     if (this.sf) { |     if (this.sf) { | ||||||
|       Object.assign(requestOptions.body, { ...this.sf?.value }); |       Object.assign(requestOptions.body, { ...this.sf?.value }); | ||||||
|  | |||||||
| @ -1,9 +1,8 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { Router } from '@angular/router'; | ||||||
| import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; | import { STComponent, STColumn, STChange, STRequestOptions } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFSchema, SFDateWidgetSchema, SFSelectWidgetSchema } from '@delon/form'; | import { SFComponent, SFSchema, SFDateWidgetSchema, SFSelectWidgetSchema } from '@delon/form'; | ||||||
| import { SearchDrawerService } from '@shared'; | import { SearchDrawerService } from '@shared'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; |  | ||||||
| import { BasicTableComponent } from 'src/app/routes/commom'; | import { BasicTableComponent } from 'src/app/routes/commom'; | ||||||
| import { TicketService } from '../../services/ticket.service'; | import { TicketService } from '../../services/ticket.service'; | ||||||
|  |  | ||||||
| @ -214,7 +213,11 @@ export class BillingOrderComponent extends BasicTableComponent { | |||||||
|         className: 'text-center', |         className: 'text-center', | ||||||
|         index: 'paymentMethodRate', |         index: 'paymentMethodRate', | ||||||
|         width: 130, |         width: 130, | ||||||
|         format: record => `${record.paymentMethodRate*100}%` | <<<<<<< HEAD | ||||||
|  |         format: record => `${(record.paymentMethodRate*100).toFixed(2)}%` | ||||||
|  | ======= | ||||||
|  |         format: record => `${record.paymentMethodRate * 100}%` | ||||||
|  | >>>>>>> b6b51c9a662efd271b713242c077a04c199ed167 | ||||||
|       }, |       }, | ||||||
|       { title: '货主名称', index: 'shipperAppUserName', width: '180px', className: 'text-center' }, |       { title: '货主名称', index: 'shipperAppUserName', width: '180px', className: 'text-center' }, | ||||||
|       { title: '所属项目', index: 'enterpriseProjectName', width: '180px', className: 'text-center' }, |       { title: '所属项目', index: 'enterpriseProjectName', width: '180px', className: 'text-center' }, | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { Router } from '@angular/router'; | ||||||
| import { STColumn, STColumnBadge, STComponent, STData } from '@delon/abc/st'; | import { STColumn, STComponent, STData } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFSchema, SFUISchema } from '@delon/form'; | import { SFSchema } from '@delon/form'; | ||||||
| import { ModalHelper } from '@delon/theme'; | import { ModalHelper } from '@delon/theme'; | ||||||
| import { DynamicSettingModalComponent, SearchDrawerService } from '@shared'; | import { DynamicSettingModalComponent, SearchDrawerService } from '@shared'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| @ -26,7 +26,6 @@ export class UserCenterComponentsDriverCaptainComponent extends BasicTableCompon | |||||||
|     public service: UsermanageService, |     public service: UsermanageService, | ||||||
|     private modal: NzModalService, |     private modal: NzModalService, | ||||||
|     private router: Router, |     private router: Router, | ||||||
|     private ar: ActivatedRoute, |  | ||||||
|     private modalHelper: ModalHelper, |     private modalHelper: ModalHelper, | ||||||
|     public searchDrawerService: SearchDrawerService |     public searchDrawerService: SearchDrawerService | ||||||
|   ) { |   ) { | ||||||
| @ -57,8 +56,7 @@ export class UserCenterComponentsDriverCaptainComponent extends BasicTableCompon | |||||||
|     return this.st?.list.filter(item => item.checked) || []; |     return this.st?.list.filter(item => item.checked) || []; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   ngOnInit() { |   ngOnInit() {} | ||||||
|   } |  | ||||||
|   dataProcess(data: STData[]): STData[] { |   dataProcess(data: STData[]): STData[] { | ||||||
|     return data.map((i, index) => { |     return data.map((i, index) => { | ||||||
|       i.showSortFlag = false; |       i.showSortFlag = false; | ||||||
|  | |||||||
| @ -1,5 +1,4 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute } from '@angular/router'; |  | ||||||
| import { STColumn, STComponent } from '@delon/abc/st'; | import { STColumn, STComponent } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFSchema } from '@delon/form'; | import { SFComponent, SFSchema } from '@delon/form'; | ||||||
| import { DynamicSettingModalComponent, SearchDrawerService } from '@shared'; | import { DynamicSettingModalComponent, SearchDrawerService } from '@shared'; | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import {  Router } from '@angular/router'; | ||||||
| import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||||
| import { SearchDrawerService } from '@shared'; | import { SearchDrawerService } from '@shared'; | ||||||
|  | |||||||
| @ -1,5 +1,4 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { Router, ActivatedRoute } from '@angular/router'; |  | ||||||
| import { STColumn, STComponent, STRequestOptions, STData, STChange } from '@delon/abc/st'; | import { STColumn, STComponent, STRequestOptions, STData, STChange } from '@delon/abc/st'; | ||||||
| import { SFUISchema, SFSchema, SFComponent, SFDateWidgetSchema } from '@delon/form'; | import { SFUISchema, SFSchema, SFComponent, SFDateWidgetSchema } from '@delon/form'; | ||||||
| import { ShipperBaseService, DynamicSettingModalComponent, SearchDrawerService } from '@shared'; | import { ShipperBaseService, DynamicSettingModalComponent, SearchDrawerService } from '@shared'; | ||||||
|  | |||||||
| @ -1,14 +1,7 @@ | |||||||
| import { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { SFComponent, SFRadioWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||||
| import { SFComponent, SFDateWidgetSchema, SFRadioWidgetSchema, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; | import { ShipperBaseService } from '@shared'; | ||||||
| import { _HttpClient } from '@delon/theme'; |  | ||||||
| import { EAEnvironmentService, ShipperBaseService } from '@shared'; |  | ||||||
| import differenceInCalendarDays from 'date-fns/differenceInCalendarDays'; |  | ||||||
| import format from 'date-fns/format'; |  | ||||||
| import { NzMessageService } from 'ng-zorro-antd/message'; | import { NzMessageService } from 'ng-zorro-antd/message'; | ||||||
| import { NzUploadFile } from 'ng-zorro-antd/upload'; |  | ||||||
| import { Observable, Observer, of } from 'rxjs'; |  | ||||||
| import { apiConf } from '@conf/api.conf'; |  | ||||||
| import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter.service'; | import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter.service'; | ||||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||||
|  |  | ||||||
| @ -23,39 +16,33 @@ export class EditPartnerComponentsAddComponent implements OnInit { | |||||||
|   sts: any; |   sts: any; | ||||||
|   rows: any; |   rows: any; | ||||||
|   schema: SFSchema = {}; |   schema: SFSchema = {}; | ||||||
|   detailData: any = {} |   detailData: any = {}; | ||||||
|   ui: SFUISchema = {}; |   ui: SFUISchema = {}; | ||||||
|   |  | ||||||
|   constructor( |   constructor( | ||||||
|     public msgSrv: NzMessageService, |     public msgSrv: NzMessageService, | ||||||
|     public http: _HttpClient, |  | ||||||
|     private route: ActivatedRoute, |  | ||||||
|     private router: Router, |  | ||||||
|     public service: UsermanageService, |     public service: UsermanageService, | ||||||
|     private envSrv: EAEnvironmentService, |  | ||||||
|     private modal: NzModalRef, |     private modal: NzModalRef, | ||||||
|     public shipperservice: ShipperBaseService |     public shipperservice: ShipperBaseService | ||||||
|   ) { } |   ) {} | ||||||
|  |  | ||||||
|  |  | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|     if(this.sts == '2') { |     if (this.sts == '2') { | ||||||
|        this.initDetailData() |       this.initDetailData(); | ||||||
|     } |     } | ||||||
|     this.initSF(); |     this.initSF(); | ||||||
|   } |   } | ||||||
|   initDetailData() { |   initDetailData() { | ||||||
|    |  | ||||||
|     const params = { |     const params = { | ||||||
|       id: this.i.id |       id: this.i.id | ||||||
|     } |     }; | ||||||
|     this.service.request(this.service.$api_partnerChannelUpdateDetaiList, params).subscribe(res => { |     this.service.request(this.service.$api_partnerChannelUpdateDetaiList, params).subscribe(res => { | ||||||
|       if(res) { |       if (res) { | ||||||
|         this.detailData = res |         this.detailData = res; | ||||||
|       } else { |       } else { | ||||||
|         this.service.msgSrv.error(res.msg) |         this.service.msgSrv.error(res.msg); | ||||||
|       } |       } | ||||||
|     }) |     }); | ||||||
|   } |   } | ||||||
|   initSF() { |   initSF() { | ||||||
|     this.schema = { |     this.schema = { | ||||||
| @ -98,7 +85,7 @@ export class EditPartnerComponentsAddComponent implements OnInit { | |||||||
|         settStartTime: { |         settStartTime: { | ||||||
|           title: '结算起算日期', |           title: '结算起算日期', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           format: 'date', |           format: 'date' | ||||||
|         }, |         }, | ||||||
|         remark: { |         remark: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
| @ -107,30 +94,29 @@ export class EditPartnerComponentsAddComponent implements OnInit { | |||||||
|             widget: 'textarea', |             widget: 'textarea', | ||||||
|             placeholder: '请不要超过50个字', |             placeholder: '请不要超过50个字', | ||||||
|             maxLength: 50, |             maxLength: 50, | ||||||
|             autosize: { minRows: 2, maxRows: 6 }, |             autosize: { minRows: 2, maxRows: 6 } | ||||||
|           }, |           } | ||||||
|         }, |         }, | ||||||
|         effectiveNode: { |         effectiveNode: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '生效节点', |           title: '生效节点', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'radio', |             widget: 'radio', | ||||||
|             showRequired: true, |             showRequired: true | ||||||
|           } as SFRadioWidgetSchema, |           } as SFRadioWidgetSchema, | ||||||
|           enum: [ |           enum: [ | ||||||
|             { label: '修改成功后立即生效', value: 1 }, |             { label: '修改成功后立即生效', value: 1 }, | ||||||
|             { label: 'CRM流程审核后生效', value: 2 }, |             // { label: 'CRM流程审核通过后生效', value: 2 }, | ||||||
|             { label: 'CRM流程审核通过后生效', value: 3 } |  | ||||||
|           ], |           ], | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       required: ['channelId', 'remark', 'effectiveNode'], |       required: ['channelId', 'remark', 'effectiveNode'] | ||||||
|     }; |     }; | ||||||
|     this.ui = { |     this.ui = { | ||||||
|       '*': { |       '*': { | ||||||
|         spanLabelFixed: 180, |         spanLabelFixed: 180, | ||||||
|         grid: { span: 18 }, |         grid: { span: 18 }, | ||||||
|         width: 600, |         width: 600 | ||||||
|       } |       } | ||||||
|     }; |     }; | ||||||
|   } |   } | ||||||
| @ -138,27 +124,27 @@ export class EditPartnerComponentsAddComponent implements OnInit { | |||||||
|     return {}; |     return {}; | ||||||
|   } |   } | ||||||
|   close(): void { |   close(): void { | ||||||
|     this.modal.close(true) |     this.modal.close(true); | ||||||
|   } |   } | ||||||
|   save() { |   save() { | ||||||
|     console.log(this?.rows); |     console.log(this?.rows); | ||||||
|     let enterId : any; |     let enterId: any; | ||||||
|     if(this.sts == '1') { |     if (this.sts == '1') { | ||||||
|       enterId = this.rows  |       enterId = this.rows; | ||||||
|     } else { |     } else { | ||||||
|       enterId = [this.i.id] |       enterId = [this.i.id]; | ||||||
|     } |     } | ||||||
|     const params = { |     const params = { | ||||||
|       ...this.sf?.value, |       ...this.sf?.value, | ||||||
|       enterpriceIds: enterId, |       enterpriceIds: enterId, | ||||||
|       settStartTime: this.sf?.value?.settStartTime + ' 00:00:00' |       settStartTime: this.sf?.value?.settStartTime + ' 00:00:00' | ||||||
|     } |     }; | ||||||
|  |  | ||||||
|     this.service.request(this.service.$api_batchUpdateEnterpricePartner, params).subscribe(res => { |     this.service.request(this.service.$api_batchUpdateEnterpricePartner, params).subscribe(res => { | ||||||
|       if(res) { |       if (res) { | ||||||
|         this.service.msgSrv.success('修改成功'); |         this.service.msgSrv.success('修改成功'); | ||||||
|         this.modal.destroy(true) |         this.modal.destroy(true); | ||||||
|       } |       } | ||||||
|     }) |     }); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -1,14 +1,7 @@ | |||||||
| import { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { SFComponent, SFRadioWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||||
| import { SFComponent, SFRadioWidgetSchema, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form'; | import { ShipperBaseService } from '@shared'; | ||||||
| import { _HttpClient } from '@delon/theme'; |  | ||||||
| import { EAEnvironmentService, ShipperBaseService } from '@shared'; |  | ||||||
| import differenceInCalendarDays from 'date-fns/differenceInCalendarDays'; |  | ||||||
| import format from 'date-fns/format'; |  | ||||||
| import { NzMessageService } from 'ng-zorro-antd/message'; | import { NzMessageService } from 'ng-zorro-antd/message'; | ||||||
| import { NzUploadFile } from 'ng-zorro-antd/upload'; |  | ||||||
| import { Observable, Observer, of } from 'rxjs'; |  | ||||||
| import { apiConf } from '@conf/api.conf'; |  | ||||||
| import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter.service'; | import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter.service'; | ||||||
| import { NzModalRef } from 'ng-zorro-antd/modal'; | import { NzModalRef } from 'ng-zorro-antd/modal'; | ||||||
|  |  | ||||||
| @ -24,39 +17,33 @@ export class EditSaleComponentsAddComponent implements OnInit { | |||||||
|   sts: any; |   sts: any; | ||||||
|   rows: any; |   rows: any; | ||||||
|   schema: SFSchema = {}; |   schema: SFSchema = {}; | ||||||
|   detailData: any = {} |   detailData: any = {}; | ||||||
|   ui: SFUISchema = {}; |   ui: SFUISchema = {}; | ||||||
|  |  | ||||||
|   constructor( |   constructor( | ||||||
|     public msgSrv: NzMessageService, |     public msgSrv: NzMessageService, | ||||||
|     public http: _HttpClient, |  | ||||||
|     private route: ActivatedRoute, |  | ||||||
|     private router: Router, |  | ||||||
|     public service: UsermanageService, |     public service: UsermanageService, | ||||||
|     private envSrv: EAEnvironmentService, |  | ||||||
|     private modal: NzModalRef, |     private modal: NzModalRef, | ||||||
|     public shipperservice: ShipperBaseService |     public shipperservice: ShipperBaseService | ||||||
|      |   ) {} | ||||||
|   ) { } |  | ||||||
|  |  | ||||||
|  |  | ||||||
|   ngOnInit(): void { |   ngOnInit(): void { | ||||||
|     if(this.sts == '2') { |     if (this.sts == '2') { | ||||||
|       this.initDetailData() |       this.initDetailData(); | ||||||
|    } |     } | ||||||
|     this.initSF(); |     this.initSF(); | ||||||
|   } |   } | ||||||
|   initDetailData() { |   initDetailData() { | ||||||
|     const params = { |     const params = { | ||||||
|       id: this.i.id |       id: this.i.id | ||||||
|     } |     }; | ||||||
|     this.service.request(this.service.$api_partnerChannelUpdateDetaiList, params).subscribe(res => { |     this.service.request(this.service.$api_partnerChannelUpdateDetaiList, params).subscribe(res => { | ||||||
|       if(res) { |       if (res) { | ||||||
|         this.detailData = res |         this.detailData = res; | ||||||
|       } else { |       } else { | ||||||
|         this.service.msgSrv.error(res.msg) |         this.service.msgSrv.error(res.msg); | ||||||
|       } |       } | ||||||
|     }) |     }); | ||||||
|   } |   } | ||||||
|   initSF() { |   initSF() { | ||||||
|     this.schema = { |     this.schema = { | ||||||
| @ -81,30 +68,29 @@ export class EditSaleComponentsAddComponent implements OnInit { | |||||||
|             widget: 'textarea', |             widget: 'textarea', | ||||||
|             placeholder: '请不要超过50个字', |             placeholder: '请不要超过50个字', | ||||||
|             maxLength: 50, |             maxLength: 50, | ||||||
|             autosize: { minRows: 2, maxRows: 6 }, |             autosize: { minRows: 2, maxRows: 6 } | ||||||
|           }, |           } | ||||||
|         }, |         }, | ||||||
|         effectiveNode: { |         effectiveNode: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '生效节点', |           title: '生效节点', | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'radio', |             widget: 'radio', | ||||||
|             showRequired: true, |             showRequired: true | ||||||
|           } as SFRadioWidgetSchema, |           } as SFRadioWidgetSchema, | ||||||
|           enum: [ |           enum: [ | ||||||
|             { label: '修改成功后立即生效', value: 1 }, |             { label: '修改成功后立即生效', value: 1 }, | ||||||
|             { label: 'CRM流程审核后生效', value: 2 }, |             // { label: 'CRM流程审核通过后生效', value: 2 }, | ||||||
|             { label: 'CRM流程审核通过后生效', value: 3 } |  | ||||||
|           ], |           ], | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       required: ['channelId', 'remark', 'effectiveNode'], |       required: ['channelId', 'remark', 'effectiveNode'] | ||||||
|     }; |     }; | ||||||
|     this.ui = { |     this.ui = { | ||||||
|       '*': { |       '*': { | ||||||
|         spanLabelFixed: 180, |         spanLabelFixed: 180, | ||||||
|         grid: { span: 18 }, |         grid: { span: 18 }, | ||||||
|         width: 600, |         width: 600 | ||||||
|       } |       } | ||||||
|     }; |     }; | ||||||
|   } |   } | ||||||
| @ -112,31 +98,30 @@ export class EditSaleComponentsAddComponent implements OnInit { | |||||||
|     return {}; |     return {}; | ||||||
|   } |   } | ||||||
|   save() { |   save() { | ||||||
|     let enterId : any; |     let enterId: any; | ||||||
|     if(this.sts == '1') { |     if (this.sts == '1') { | ||||||
|       enterId = this.rows  |       enterId = this.rows; | ||||||
|     } else { |     } else { | ||||||
|       enterId = [this.i.id] |       enterId = [this.i.id]; | ||||||
|     } |     } | ||||||
|     this.service.nzModalService.create({ |     this.service.nzModalService.create({ | ||||||
|       nzContent: '确定提交吗?', |       nzContent: '确定提交吗?', | ||||||
|       nzOnOk: () => { |       nzOnOk: () => { | ||||||
|         const params = { |         const params = { | ||||||
|           ...this.sf?.value, |           ...this.sf?.value, | ||||||
|            enterpriceIds: enterId, |           enterpriceIds: enterId | ||||||
|  |         }; | ||||||
|         } |  | ||||||
|         this.service.request(this.service.$api_batchUpdateEnterpriceChannel, params).subscribe(res => { |         this.service.request(this.service.$api_batchUpdateEnterpriceChannel, params).subscribe(res => { | ||||||
|           if(res) { |           if (res) { | ||||||
|             this.service.msgSrv.success('修改成功') |             this.service.msgSrv.success('修改成功'); | ||||||
|             this.modal.destroy(true) |             this.modal.destroy(true); | ||||||
|           } |           } | ||||||
|         }) |         }); | ||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   close(): void { |   close(): void { | ||||||
|     this.modal.close(true) |     this.modal.close(true); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -46,12 +46,12 @@ | |||||||
|           <li nz-menu-item (click)="creat()" acl [acl-ability]="['USERCENTER-FREIGHT-LIST-save']"> |           <li nz-menu-item (click)="creat()" acl [acl-ability]="['USERCENTER-FREIGHT-LIST-save']"> | ||||||
|             新增企业 |             新增企业 | ||||||
|           </li> |           </li> | ||||||
|           <!-- <li nz-menu-item (click)="editPartner()" acl [acl-ability]="['USERCENTER-FREIGHT-LIST-partner']"> |           <li nz-menu-item (click)="editPartner()" acl [acl-ability]="['USERCENTER-FREIGHT-LIST-partner']"> | ||||||
|             修改合伙人 |             修改合伙人 | ||||||
|           </li> |           </li> | ||||||
|           <li nz-menu-item (click)="editSale()" acl [acl-ability]="['USERCENTER-FREIGHT-LIST-sale']"> |           <li nz-menu-item (click)="editSale()" acl [acl-ability]="['USERCENTER-FREIGHT-LIST-sale']"> | ||||||
|             修改渠道销售 |             修改渠道销售 | ||||||
|           </li> --> |           </li> | ||||||
|         </ul> |         </ul> | ||||||
|       </nz-dropdown-menu> |       </nz-dropdown-menu> | ||||||
|     </div> |     </div> | ||||||
|  | |||||||
| @ -469,14 +469,14 @@ export class FreightComponentsListComponent extends BasicTableComponent implemen | |||||||
|             text: '分配客服<br>', |             text: '分配客服<br>', | ||||||
|             click: item => this.showService(item) |             click: item => this.showService(item) | ||||||
|           }, |           }, | ||||||
|           // { |           { | ||||||
|           //   text: '修改合伙人', |             text: '修改合伙人', | ||||||
|           //   click: item => this.editPartner(item) |             click: item => this.editPartner(item) | ||||||
|           // }, |           }, | ||||||
|           // { |           { | ||||||
|           //   text: '修改渠道销售', |             text: '修改渠道销售', | ||||||
|           //   click: item => this.editSale(item) |             click: item => this.editSale(item) | ||||||
|           // } |           } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     ]; |     ]; | ||||||
|  | |||||||
| @ -1,5 +1,5 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { Router } from '@angular/router'; | ||||||
| import { apiConf } from '@conf/api.conf'; | import { apiConf } from '@conf/api.conf'; | ||||||
| import { | import { | ||||||
|   SFCascaderWidgetSchema, |   SFCascaderWidgetSchema, | ||||||
|  | |||||||
| @ -1,8 +1,6 @@ | |||||||
| import { Component, OnInit, ViewChild } from '@angular/core'; | import { Component, OnInit, ViewChild } from '@angular/core'; | ||||||
| import { ActivatedRoute } from '@angular/router'; | import { ActivatedRoute } from '@angular/router'; | ||||||
| import { STColumn, STComponent } from '@delon/abc/st'; | import { STComponent } from '@delon/abc/st'; | ||||||
| import { ModalHelper, _HttpClient } from '@delon/theme'; |  | ||||||
| import { NzMessageService } from 'ng-zorro-antd/message'; |  | ||||||
| import { UsermanageService } from '../../../../services/usercenter.service'; | import { UsermanageService } from '../../../../services/usercenter.service'; | ||||||
| import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema, SFUploadWidgetSchema } from '@delon/form'; | import { SFComponent, SFSchema, SFDateWidgetSchema, SFUISchema, SFUploadWidgetSchema } from '@delon/form'; | ||||||
| import { Observable, Observer } from 'rxjs'; | import { Observable, Observer } from 'rxjs'; | ||||||
| @ -31,16 +29,11 @@ export class FreightComponentsListViewComponent implements OnInit { | |||||||
|   FreightsData: any = {}; |   FreightsData: any = {}; | ||||||
|  |  | ||||||
|   constructor( |   constructor( | ||||||
|     private http: _HttpClient, |  | ||||||
|     private modal: ModalHelper, |  | ||||||
|     public service: UsermanageService, |     public service: UsermanageService, | ||||||
|     private route: ActivatedRoute, |     private route: ActivatedRoute, | ||||||
|     private modalHelper: ModalHelper, |  | ||||||
|     private msgSrv: NzMessageService, |  | ||||||
|   ) {} |   ) {} | ||||||
|  |  | ||||||
|   ngOnInit() { |   ngOnInit() { | ||||||
|     console.log(this.route.snapshot); |  | ||||||
|     this.initData(); |     this.initData(); | ||||||
|     this.initSF(); |     this.initSF(); | ||||||
|     // this.launchSign(); |     // this.launchSign(); | ||||||
|  | |||||||
| @ -2,14 +2,12 @@ import { Component, OnInit, ViewChild } from '@angular/core'; | |||||||
| import { ActivatedRoute } from '@angular/router'; | import { ActivatedRoute } from '@angular/router'; | ||||||
| import { STColumn, STComponent } from '@delon/abc/st'; | import { STColumn, STComponent } from '@delon/abc/st'; | ||||||
| import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form'; | ||||||
| import { ModalHelper, _HttpClient } from '@delon/theme'; | import { ModalHelper } from '@delon/theme'; | ||||||
| import { NzMessageService } from 'ng-zorro-antd/message'; |  | ||||||
| import { VehicleService } from '../../../services/vehicle.service'; | import { VehicleService } from '../../../services/vehicle.service'; | ||||||
| import { VehicleComponentsListEditComponent } from '../edit/edit.component'; | import { VehicleComponentsListEditComponent } from '../edit/edit.component'; | ||||||
| import { VehicleImgViewComponent } from '../img-view/img-view.component'; | import { VehicleImgViewComponent } from '../img-view/img-view.component'; | ||||||
| import { apiConf } from '@conf/api.conf'; | import { apiConf } from '@conf/api.conf'; | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| import { ImageViewComponent } from 'src/app/shared/components/imagelist'; |  | ||||||
| import { EADateUtil } from '@shared'; | import { EADateUtil } from '@shared'; | ||||||
| import { NzImageService } from 'ng-zorro-antd/image'; | import { NzImageService } from 'ng-zorro-antd/image'; | ||||||
|  |  | ||||||
| @ -44,12 +42,9 @@ export class VehicleComponentsListDetailComponent implements OnInit { | |||||||
|   contenCarEnergy: any; |   contenCarEnergy: any; | ||||||
|  |  | ||||||
|   constructor( |   constructor( | ||||||
|     private http: _HttpClient, |  | ||||||
|     private modal: ModalHelper, |     private modal: ModalHelper, | ||||||
|     public service: VehicleService, |     public service: VehicleService, | ||||||
|     private route: ActivatedRoute, |     private route: ActivatedRoute, | ||||||
|     private modalHelper: ModalHelper, |  | ||||||
|     private msgSrv: NzMessageService, |  | ||||||
|     private nzModalService: NzModalService, |     private nzModalService: NzModalService, | ||||||
|     private nzImageService: NzImageService |     private nzImageService: NzImageService | ||||||
|   ) {} |   ) {} | ||||||
|  | |||||||
| @ -9,9 +9,6 @@ | |||||||
| import { Component, OnInit } from '@angular/core'; | import { Component, OnInit } from '@angular/core'; | ||||||
| import { ActivatedRoute } from '@angular/router'; | import { ActivatedRoute } from '@angular/router'; | ||||||
| import { STColumn } from '@delon/abc/st'; | 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 { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| import format from 'date-fns/format'; | import format from 'date-fns/format'; | ||||||
| import { VehicleSureArriveComponent } from 'src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component'; | import { VehicleSureArriveComponent } from 'src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component'; | ||||||
| @ -63,7 +60,6 @@ export class WaybillManagementBulkeDetailComponent implements OnInit { | |||||||
|   ]; |   ]; | ||||||
|   constructor( |   constructor( | ||||||
|     private route: ActivatedRoute, |     private route: ActivatedRoute, | ||||||
|     private msgSrv: NzMessageService, |  | ||||||
|     private modal: NzModalService, |     private modal: NzModalService, | ||||||
|     private service: WaybillManagementServe, |     private service: WaybillManagementServe, | ||||||
|     private modalService: NzModalService |     private modalService: NzModalService | ||||||
|  | |||||||
| @ -9,10 +9,7 @@ | |||||||
| import { Component, OnDestroy, OnInit } from '@angular/core'; | import { Component, OnDestroy, OnInit } from '@angular/core'; | ||||||
| import { ActivatedRoute } from '@angular/router'; | import { ActivatedRoute } from '@angular/router'; | ||||||
| import { STColumn } from '@delon/abc/st'; | import { STColumn } from '@delon/abc/st'; | ||||||
| import { _HttpClient } from '@delon/theme'; |  | ||||||
| import format from 'date-fns/format'; | import format from 'date-fns/format'; | ||||||
| import { NzCardComponent } from 'ng-zorro-antd/card'; |  | ||||||
| import { NzMessageService } from 'ng-zorro-antd/message'; |  | ||||||
| import { NzModalService } from 'ng-zorro-antd/modal'; | import { NzModalService } from 'ng-zorro-antd/modal'; | ||||||
| import { Subscription, fromEvent } from 'rxjs'; | import { Subscription, fromEvent } from 'rxjs'; | ||||||
| import { VehicleSureArriveComponent } from 'src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component'; | import { VehicleSureArriveComponent } from 'src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component'; | ||||||
| @ -59,7 +56,6 @@ export class WaybillManagementVehicleDetailComponent implements OnInit, OnDestro | |||||||
|   subscribeScoll!: Subscription; |   subscribeScoll!: Subscription; | ||||||
|   constructor( |   constructor( | ||||||
|     private route: ActivatedRoute, |     private route: ActivatedRoute, | ||||||
|     private msgSrv: NzMessageService, |  | ||||||
|     private service: WaybillManagementServe, |     private service: WaybillManagementServe, | ||||||
|     private modal: NzModalService |     private modal: NzModalService | ||||||
|   ) {} |   ) {} | ||||||
|  | |||||||
| @ -7,9 +7,8 @@ | |||||||
|  * @Reference: |  * @Reference: | ||||||
|  */ |  */ | ||||||
| import { Inject, Injectable, Injector } from '@angular/core'; | import { Inject, Injectable, Injector } from '@angular/core'; | ||||||
| import { ActivatedRoute, Router } from '@angular/router'; | import { Router } from '@angular/router'; | ||||||
| import { cacheConf } from '@conf/cache.conf'; | import { cacheConf } from '@conf/cache.conf'; | ||||||
| import { eventConf } from '@conf/event.conf'; |  | ||||||
| import { sysConf } from '@conf/sys.conf'; | import { sysConf } from '@conf/sys.conf'; | ||||||
| import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth'; | import { DA_SERVICE_TOKEN, ITokenService } from '@delon/auth'; | ||||||
| import { MenuService, SettingsService } from '@delon/theme'; | import { MenuService, SettingsService } from '@delon/theme'; | ||||||
| @ -78,7 +77,6 @@ export class EAUserService extends BaseService { | |||||||
|     public settings: SettingsService, |     public settings: SettingsService, | ||||||
|     private menuService: MenuService, |     private menuService: MenuService, | ||||||
|     public router: Router, |     public router: Router, | ||||||
|     public ar: ActivatedRoute, |  | ||||||
|     @Inject(DA_SERVICE_TOKEN) public tokenSrv: ITokenService, |     @Inject(DA_SERVICE_TOKEN) public tokenSrv: ITokenService, | ||||||
|     private settingSrv: SettingsService |     private settingSrv: SettingsService | ||||||
|   ) { |   ) { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user