Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop

This commit is contained in:
Taric Xin
2022-04-19 15:54:43 +08:00
5 changed files with 102 additions and 31 deletions

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2022-03-30 17:57:46 * @Date : 2022-03-30 17:57:46
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-18 16:45:14 * @LastEditTime : 2022-04-19 15:09:26
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\customtable\\mancustomtable\\mancustomtable.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\customtable\\mancustomtable\\mancustomtable.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->

View File

@ -74,34 +74,69 @@ export class DatatableMancustomtableComponent implements OnInit {
return this?.resourceStatus !== 1 ? false : true; return this?.resourceStatus !== 1 ? false : true;
} }
}, },
{ title: '已认证合伙人', index: 'certifiedCount', className: 'text-center', width: '150px' , {
iif: () => { title: '已认证合伙人',
return this?.resourceStatus !== 2 ? false : true; index: 'certifiedCount',
}}, className: 'text-center',
{ title: '新增合伙人数', index: 'addCount', className: 'text-center', width: '150px' , width: '150px',
iif: () => { iif: () => {
return this?.resourceStatus !== 2 ? false : true; return this?.resourceStatus !== 2 ? false : true;
}}, }
{ title: '合伙人活跃率', index: 'alivePer', className: 'text-center', width: '150px' , },
iif: () => { {
return this?.resourceStatus !== 2 ? false : true; title: '新增合伙人数',
} }, index: 'addCount',
{ title: '活跃合伙人数', index: 'aliveCount', className: 'text-center', width: '150px' , className: 'text-center',
iif: () => { width: '150px',
return this?.resourceStatus !== 2 ? false : true; iif: () => {
} }, return this?.resourceStatus !== 2 ? false : true;
{ title: '沉默合伙人数', index: 'silentCount', className: 'text-center', width: '150px' , }
iif: () => { },
return this?.resourceStatus !== 2 ? false : true; {
} }, title: '合伙人活跃率',
{ title: '流失合伙人数', index: 'drainCount', className: 'text-center', width: '150px' , index: 'alivePer',
iif: () => { className: 'text-center',
return this?.resourceStatus !== 2 ? false : true; width: '150px',
}}, iif: () => {
{ title: '未激活合伙人数', index: 'notActiveCount', className: 'text-center', width: '150px' , return this?.resourceStatus !== 2 ? false : true;
iif: () => { }
return this?.resourceStatus !== 2 ? false : true; },
} }, {
title: '活跃合伙人数',
index: 'aliveCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
}
},
{
title: '沉默合伙人数',
index: 'silentCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
}
},
{
title: '流失合伙人数',
index: 'drainCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
}
},
{
title: '未激活合伙人数',
index: 'notActiveCount',
className: 'text-center',
width: '150px',
iif: () => {
return this?.resourceStatus !== 2 ? false : true;
}
},
{ {
title: '新增货主数', title: '新增货主数',

View File

@ -20,7 +20,7 @@
</p> </p>
<p> <p>
<label nz-checkbox [(ngModel)]="aggreechecked"></label> <label nz-checkbox [(ngModel)]="aggreechecked"></label>
<span>&nbsp;确认已阅读并知晓 <a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 3, data: dataJSON }">《变更协议》</a></span> <span>&nbsp;确认已阅读并知晓 <a (click)="agreement()">《变更协议》</a></span>
</p> </p>
</div> </div>
@ -28,3 +28,9 @@
<button nz-button type="button" (click)="close()">关闭</button> <button nz-button type="button" (click)="close()">关闭</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked">确定</button> <button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked">确定</button>
</div> </div>
<nz-modal [(nzVisible)]="isVisible" nzTitle="变更协议" nzClassName="modal_content" (nzOnOk)="handleOK()"
(nzOnCancel)="handleCancel()" [nzWidth]="800">
<ng-container *nzModalContent>
<div [innerHTML]="modalcontent | html" class=""></div>
</ng-container>
</nz-modal>

View File

@ -24,6 +24,8 @@ export class VehicleUpdateFreightComponent implements OnInit {
@ViewChild('sf', { static: false }) sf!: SFComponent; @ViewChild('sf', { static: false }) sf!: SFComponent;
schema: SFSchema = {}; schema: SFSchema = {};
ui: SFUISchema = {}; ui: SFUISchema = {};
isVisible = false;
modalcontent = '';
aggreechecked = false; aggreechecked = false;
@ -192,4 +194,30 @@ export class VehicleUpdateFreightComponent implements OnInit {
}; };
return params; return params;
} }
agreement() {
const param = {
billId: this.data.id,
pre: this.sf.value.prePay,
rece: this.sf.value.toPay,
back: this.sf.value.receiptPay,
total: this.data.totalFreight,
freightAmount: this.data.totalAmount,
}
this.service.request(this.service.$api_getSupplementaryAgreement, param).subscribe(res => {
if (res) {
this.modalcontent = res.contractContent;
this.isVisible = true;
}
});
}
handleCancel() {
this.isVisible = false;
}
handleOK() {
this.isVisible = false;
}
} }

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-03 15:31:52 * @Date : 2021-12-03 15:31:52
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-04-13 18:52:24 * @LastEditTime : 2022-04-19 15:16:37
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\services\\order-management.service.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -206,6 +206,8 @@ export class OrderManagementService extends ShipperBaseService {
$api_asyncExportComplaintListDrv = `/api/sdc/complaint/operate/asyncExportComplaintListDrv`; $api_asyncExportComplaintListDrv = `/api/sdc/complaint/operate/asyncExportComplaintListDrv`;
//操作日志 //操作日志
public $api_get_log_list = `/api/mdc/pbc/operationLogRecords/getOperationLogRecordsList`; public $api_get_log_list = `/api/mdc/pbc/operationLogRecords/getOperationLogRecordsList`;
// 查看补充协议
public $api_getSupplementaryAgreement = `/api/sdc/billShipper/getSupplementaryAgreement`;
/** /**
* 根据企业ID获取企业历史网络货运人 * 根据企业ID获取企业历史网络货运人
* @returns * @returns