Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -72,7 +72,7 @@ export class ContractManagementContractListComponent implements OnInit {
|
|||||||
title: '签约对象',
|
title: '签约对象',
|
||||||
width: '100px',
|
width: '100px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'documentType'
|
index: 'signingObjectLabel'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '合同类型',
|
title: '合同类型',
|
||||||
|
|||||||
@ -78,7 +78,7 @@ export class ContractManagementPartnerComponent implements OnInit {
|
|||||||
title: '签约对象',
|
title: '签约对象',
|
||||||
width: '100px',
|
width: '100px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'signingObject'
|
index: 'signingObjectLabel'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '合同类型',
|
title: '合同类型',
|
||||||
|
|||||||
@ -131,7 +131,7 @@ export class ContractManagementTemplateFrameComponent implements OnInit {
|
|||||||
title: '签约对象',
|
title: '签约对象',
|
||||||
width: '100px',
|
width: '100px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
render: 'signingObjectLabel'
|
index: 'signingObjectLabel'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '合同类型',
|
title: '合同类型',
|
||||||
@ -145,15 +145,17 @@ export class ContractManagementTemplateFrameComponent implements OnInit {
|
|||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'resourceTypeLabel'
|
index: 'resourceTypeLabel'
|
||||||
},
|
},
|
||||||
{ title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' },
|
{ title: '创建人', index: 'createUserIdLabel', width: '120px', className: 'text-center' },
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'createTime'
|
index: 'createTime',
|
||||||
|
width: '200px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
|
width: '110px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -145,15 +145,17 @@ export class ContractManagementTemplatePartnerComponent implements OnInit {
|
|||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'resourceTypeLabel'
|
index: 'resourceTypeLabel'
|
||||||
},
|
},
|
||||||
{ title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' },
|
{ title: '创建人', index: 'createUserIdLabel', width: '120px', className: 'text-center' },
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'createTime'
|
index: 'createTime',
|
||||||
|
width: '200px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
|
width: '110px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -145,15 +145,17 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
|||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'resourceTypeLabel'
|
index: 'resourceTypeLabel'
|
||||||
},
|
},
|
||||||
{ title: '创建人', index: 'createUserId', width: '120px', className: 'text-center' },
|
{ title: '创建人', index: 'createUserIdLabel', width: '120px', className: 'text-center' },
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'createTime'
|
index: 'createTime',
|
||||||
|
width: '200px'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
|
width: '110px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -233,7 +233,7 @@ export class insuranceManagementListComponent implements OnInit {
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请先选择货主',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
|
|||||||
@ -220,7 +220,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请先选择货主',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
@ -392,7 +392,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
this.uiView = { '*': { spanLabelFixed: 80, grid: { span: 12, gutter: 4 } } };
|
this.uiView = { '*': { spanLabelFixed: 80, grid: { span: 12, gutter: 4 } } };
|
||||||
}
|
}
|
||||||
// 获取城市列表
|
// 获取所属项目
|
||||||
getRegionCode(regionCode: any) {
|
getRegionCode(regionCode: any) {
|
||||||
console.log(regionCode);
|
console.log(regionCode);
|
||||||
return this.service
|
return this.service
|
||||||
|
|||||||
@ -103,6 +103,18 @@ export class OrderManagementComplaintComponent implements OnInit {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: '投诉单号',
|
title: '投诉单号',
|
||||||
},
|
},
|
||||||
|
complaintCause: {
|
||||||
|
title: '投诉原因',
|
||||||
|
type: 'string',
|
||||||
|
ui: {
|
||||||
|
widget: 'dict-select',
|
||||||
|
params: { dictKey: 'complaint:cause' },
|
||||||
|
containsAllLabel: true,
|
||||||
|
visibleIf: {
|
||||||
|
_$expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
} as SFSelectWidgetSchema
|
||||||
|
},
|
||||||
complainantTime: {
|
complainantTime: {
|
||||||
title: '投诉时间',
|
title: '投诉时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -124,14 +136,14 @@ export class OrderManagementComplaintComponent implements OnInit {
|
|||||||
this.columns = [
|
this.columns = [
|
||||||
{
|
{
|
||||||
title: '投诉单号',
|
title: '投诉单号',
|
||||||
width: '170px',
|
width: '200px',
|
||||||
fixed: 'left',
|
fixed: 'left',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
render: 'complaintCode'
|
render: 'complaintCode'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '运单号',
|
title: '运单号',
|
||||||
width: '170px',
|
width: '200px',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'wayBillCode'
|
index: 'wayBillCode'
|
||||||
},
|
},
|
||||||
@ -161,6 +173,12 @@ export class OrderManagementComplaintComponent implements OnInit {
|
|||||||
width: '200px',
|
width: '200px',
|
||||||
index:'handlePartyLabel'
|
index:'handlePartyLabel'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: '处理时间',
|
||||||
|
className: 'text-center',
|
||||||
|
width: '200px',
|
||||||
|
index:'handleTime'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: '处理结果',
|
title: '处理结果',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
|
|||||||
@ -179,7 +179,7 @@ export class OrderManagementComplianceAuditComponent implements OnInit {
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请先选择货主',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-12 10:52:50
|
* @Date : 2022-01-12 10:52:50
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-22 17:54:50
|
* @LastEditTime : 2022-03-23 20:36:40
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\receipts-audit\\receipts-audit.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\receipts-audit\\receipts-audit.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
@ -59,8 +59,8 @@
|
|||||||
[scroll]="{ x: '2000px' }"
|
[scroll]="{ x: '2000px' }"
|
||||||
[data]="service.$api_get_billExamine_page"
|
[data]="service.$api_get_billExamine_page"
|
||||||
[columns]="columns"
|
[columns]="columns"
|
||||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
[req]="{ process: beforeReq }"
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
[res]="{ reName: { list: 'data.records', total: 'data.total' } , process: afterRes}"
|
||||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||||
[loading]="false"
|
[loading]="false"
|
||||||
>
|
>
|
||||||
@ -103,7 +103,7 @@
|
|||||||
<span>{{item?.billStatusLabel}}</span>
|
<span>{{item?.billStatusLabel}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span >{{item?.billTypeLabel}}{{item?.serviceTypeLabel}}</span>
|
<span >{{item?.resourceTypeLabel}}{{item?.serviceTypeLabel}}</span>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="goodsName" let-item let-index="index">
|
<ng-template st-row="goodsName" let-item let-index="index">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { STColumn, STComponent } from '@delon/abc/st';
|
import { STColumn, STComponent, STRequestOptions } from '@delon/abc/st';
|
||||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
||||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
@ -30,6 +30,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
@ViewChild('st') private readonly st!: STComponent;
|
@ViewChild('st') private readonly st!: STComponent;
|
||||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||||
columns: STColumn[] = [];
|
columns: STColumn[] = [];
|
||||||
|
loading: boolean = true;
|
||||||
resourceStatus: any;
|
resourceStatus: any;
|
||||||
tabs = {
|
tabs = {
|
||||||
receivedQuantity: 0,
|
receivedQuantity: 0,
|
||||||
@ -62,6 +63,34 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
|
const a: any = {};
|
||||||
|
if (this.resourceStatus) {
|
||||||
|
a.auditStatus = this.resourceStatus;
|
||||||
|
}
|
||||||
|
const params: any = Object.assign({}, this.sf?.value || {});
|
||||||
|
delete params._$expand;
|
||||||
|
if (this.sf) {
|
||||||
|
Object.assign(requestOptions.body, {
|
||||||
|
...a,
|
||||||
|
...params,
|
||||||
|
createTime: {
|
||||||
|
start: this.sf?.value?.createTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.createTime?.[1] || ''
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.loading = true;
|
||||||
|
return requestOptions;
|
||||||
|
};
|
||||||
|
afterRes = (data: any[], rawData?: any) => {
|
||||||
|
console.log(data)
|
||||||
|
this.loading = false
|
||||||
|
return data.map(item => ({
|
||||||
|
...item,
|
||||||
|
// disabled: item.billStatus !== '4'
|
||||||
|
}));
|
||||||
|
};
|
||||||
get selectedRows() {
|
get selectedRows() {
|
||||||
return this.st?.list.filter(item => item.checked) || [];
|
return this.st?.list.filter(item => item.checked) || [];
|
||||||
}
|
}
|
||||||
@ -143,6 +172,9 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
change: (q: any) => {
|
||||||
|
this.getRegionCode(q);
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
@ -151,14 +183,11 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请先选择货主',
|
||||||
allowClear: true,
|
|
||||||
asyncData: () => this.service.getEnterpriseProject(),
|
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
},
|
||||||
},
|
} as SFSelectWidgetSchema
|
||||||
default: ''
|
|
||||||
},
|
},
|
||||||
loadingPlace: {
|
loadingPlace: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -498,4 +527,25 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// 获取所属项目
|
||||||
|
getRegionCode(regionCode: any) {
|
||||||
|
console.log(regionCode);
|
||||||
|
return this.service
|
||||||
|
.request(this.service.$api_get_enterprise_project, { id: regionCode })
|
||||||
|
.pipe(
|
||||||
|
map(res =>
|
||||||
|
res.map((item: any) => ({
|
||||||
|
label: item.projectName,
|
||||||
|
value: item.id
|
||||||
|
}))
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.subscribe(res => {
|
||||||
|
this.sf.getProperty('/enterpriseProjectId')!.schema.enum = res;
|
||||||
|
this.sf.getProperty('/enterpriseProjectId')!.widget.reset(res);
|
||||||
|
// if (this.enterpriseProjectIds) {
|
||||||
|
// this.sf1.setValue('/enterpriseProjectId', this.enterpriseProjectIds);
|
||||||
|
// }
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2021-12-16 10:19:08
|
* @Date : 2021-12-16 10:19:08
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-22 18:08:04
|
* @LastEditTime : 2022-03-23 19:12:19
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\risk-detail\\risk-detail.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\risk-detail\\risk-detail.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
@ -21,8 +21,8 @@
|
|||||||
<sv label="申诉状态">
|
<sv label="申诉状态">
|
||||||
<span >{{i?.representationsStatusLabel}}</span>
|
<span >{{i?.representationsStatusLabel}}</span>
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="承运司机">{{i?.driverName ? i?.driverName + '/': ''}} {{i?.driverPhoneNumber ?i?.driverPhoneNumber + '/': '' }} {{i?.carId}}</sv>
|
<sv label="承运司机">{{i?.driverName ? i?.driverName + '/': ''}} {{i?.driverPhone ?i?.driverPhone + '/': '' }} {{i?.carId}}</sv>
|
||||||
<sv label="车队长"> {{i?.payeeName ? i?.payeeName+ '/' : ''}}{{i?.payeePhoneNumber}} </sv>
|
<sv label="车队长"> {{i?.carCaptainName ? i?.carCaptainName+ '/' : ''}}{{i?.carCaptainPhone}} </sv>
|
||||||
<sv label="装货时间">{{i?.loadTime}}</sv>
|
<sv label="装货时间">{{i?.loadTime}}</sv>
|
||||||
<sv label="卸货时间">{{i?.unloadTime}}</sv>
|
<sv label="卸货时间">{{i?.unloadTime}}</sv>
|
||||||
<sv label="装货地">{{i?.loadingPlace}}</sv>
|
<sv label="装货地">{{i?.loadingPlace}}</sv>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-12 10:52:50
|
* @Date : 2022-01-12 10:52:50
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-22 09:42:03
|
* @LastEditTime : 2022-03-23 19:45:45
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\risk\\risk.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\risk\\risk.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
@ -59,8 +59,8 @@
|
|||||||
[scroll]="{ x: '2000px' }"
|
[scroll]="{ x: '2000px' }"
|
||||||
[data]="service.$api_get_listRiskPage"
|
[data]="service.$api_get_listRiskPage"
|
||||||
[columns]="columns"
|
[columns]="columns"
|
||||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
[req]="{ process: beforeReq }"
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
[res]="{ reName: { list: 'data.records', total: 'data.total' } , process: afterRes}"
|
||||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||||
[loading]="false"
|
[loading]="false"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { registerLocaleData } from '@angular/common';
|
import { registerLocaleData } from '@angular/common';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { STColumn, STComponent } from '@delon/abc/st';
|
import { STColumn, STComponent, STRequestOptions } from '@delon/abc/st';
|
||||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
import { SFComponent, SFDateWidgetSchema, SFSchema, SFSchemaEnum, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
|
||||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||||
import { ShipperBaseService } from '@shared';
|
import { ShipperBaseService } from '@shared';
|
||||||
@ -21,7 +21,9 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
schema: SFSchema = {};
|
schema: SFSchema = {};
|
||||||
schemaView: SFSchema = {};
|
schemaView: SFSchema = {};
|
||||||
auditMany = false;
|
auditMany = false;
|
||||||
|
loading: boolean = true;
|
||||||
auditId: any;
|
auditId: any;
|
||||||
|
auditIdR: any;
|
||||||
isVisibleRE = false;
|
isVisibleRE = false;
|
||||||
resourceStatus: any;
|
resourceStatus: any;
|
||||||
_$expand = false;
|
_$expand = false;
|
||||||
@ -46,14 +48,6 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
* 查询参数
|
* 查询参数
|
||||||
*/
|
*/
|
||||||
get reqParams() {
|
get reqParams() {
|
||||||
// const a:any = {};
|
|
||||||
// if(this.resourceStatus) {
|
|
||||||
// a.representationsStatus = this.resourceStatus
|
|
||||||
// }
|
|
||||||
// return {
|
|
||||||
// ...a,
|
|
||||||
// ...this.sf?.value,
|
|
||||||
// };
|
|
||||||
const a: any = {};
|
const a: any = {};
|
||||||
if (this.resourceStatus) {
|
if (this.resourceStatus) {
|
||||||
a.representationsStatus = this.resourceStatus
|
a.representationsStatus = this.resourceStatus
|
||||||
@ -69,6 +63,34 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
|
const a: any = {};
|
||||||
|
if (this.resourceStatus) {
|
||||||
|
a.representationsStatus = this.resourceStatus
|
||||||
|
}
|
||||||
|
const params: any = Object.assign({}, this.sf?.value || {});
|
||||||
|
delete params._$expand;
|
||||||
|
if (this.sf) {
|
||||||
|
Object.assign(requestOptions.body, {
|
||||||
|
...a,
|
||||||
|
...params,
|
||||||
|
createTime: {
|
||||||
|
start: this.sf?.value?.createTime?.[0] || '',
|
||||||
|
end: this.sf?.value?.createTime?.[1] || '',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
this.loading = true;
|
||||||
|
return requestOptions;
|
||||||
|
};
|
||||||
|
afterRes = (data: any[], rawData?: any) => {
|
||||||
|
console.log(data)
|
||||||
|
this.loading = false
|
||||||
|
return data.map(item => ({
|
||||||
|
...item,
|
||||||
|
disabled: item.auditStatus !== '1'
|
||||||
|
}));
|
||||||
|
};
|
||||||
search() {
|
search() {
|
||||||
this.st?.load(1);
|
this.st?.load(1);
|
||||||
this.getGoodsSourceStatistical()
|
this.getGoodsSourceStatistical()
|
||||||
@ -312,7 +334,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
{
|
{
|
||||||
text: '审核',
|
text: '审核',
|
||||||
click: _record => this.audit(_record),
|
click: _record => this.audit(_record),
|
||||||
iif: item => item.representationsStatus == '1' || item.representationsStatus == '2',
|
iif: item => item.auditStatus == '1' ,
|
||||||
acl: { ability: ['ORDER-RISK-audit'] },
|
acl: { ability: ['ORDER-RISK-audit'] },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -336,6 +358,14 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
widget: 'text'
|
widget: 'text'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
id: {
|
||||||
|
title: '',
|
||||||
|
type: 'string',
|
||||||
|
default: this.auditIdR,
|
||||||
|
ui: {
|
||||||
|
hidden: true
|
||||||
|
}
|
||||||
|
},
|
||||||
representationsCause: {
|
representationsCause: {
|
||||||
title: '备注',
|
title: '备注',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -428,12 +458,13 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
idList.push(item.id);
|
idList.push(item.id);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
idList.push(this.sfView.value.billCode)
|
idList.push(this.sfView.value.id)
|
||||||
}
|
}
|
||||||
const parms = {
|
const parms = {
|
||||||
ids: idList,
|
ids: idList,
|
||||||
auditRemark: this.sfView.value.representationsCause,
|
auditRemark: this.sfView.value.representationsCause,
|
||||||
representationsStatus: 3,
|
representationsStatus: 3,
|
||||||
|
auditStatus: 2,
|
||||||
};
|
};
|
||||||
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
|
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
@ -454,7 +485,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
idList.push(item.id);
|
idList.push(item.id);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
idList.push(this.sfView.value.billCode)
|
idList.push(this.sfView.value.id)
|
||||||
}
|
}
|
||||||
if (!this.sfView.value.representationsCause) {
|
if (!this.sfView.value.representationsCause) {
|
||||||
this.service.msgSrv.error('拒绝原因为空!');
|
this.service.msgSrv.error('拒绝原因为空!');
|
||||||
@ -464,6 +495,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
ids: idList,
|
ids: idList,
|
||||||
auditRemark: this.sfView.value.representationsCause,
|
auditRemark: this.sfView.value.representationsCause,
|
||||||
representationsStatus: 4,
|
representationsStatus: 4,
|
||||||
|
auditStatus: 3,
|
||||||
};
|
};
|
||||||
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
|
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
@ -480,6 +512,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
audit(item?: any) {
|
audit(item?: any) {
|
||||||
if (item) {
|
if (item) {
|
||||||
this.auditId = item.billCode;
|
this.auditId = item.billCode;
|
||||||
|
this.auditIdR = item.id;
|
||||||
this.initSTAudit(1);
|
this.initSTAudit(1);
|
||||||
this.isVisibleRE = true;
|
this.isVisibleRE = true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -237,7 +237,7 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择'
|
placeholder: '请先选择货主',
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
loadingPlace: {
|
loadingPlace: {
|
||||||
|
|||||||
@ -424,7 +424,7 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
|||||||
const params = [this.i.id];
|
const params = [this.i.id];
|
||||||
this.service.request(this.service.$api_get_billAuditPass, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_billAuditPass, params).subscribe((res) => {
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('审核成功!')
|
this.service.msgSrv.success('生成电子单据成功!')
|
||||||
this.modal.destroy(true);
|
this.modal.destroy(true);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -425,7 +425,7 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
save(value: any): void {
|
save(value: any): void {
|
||||||
console.log(this.Status);
|
console.log(this.Status);
|
||||||
console.log(value?.imgUrl3?.data?.fullFilePath);
|
console.log(value?.imgUrl3?.data?.fullFilePath);
|
||||||
console.log(value?.imgUrl3.url);
|
console.log(value?.imgUrl3?.url);
|
||||||
|
|
||||||
if (this.Status === 1) {
|
if (this.Status === 1) {
|
||||||
if (!value.time) {
|
if (!value.time) {
|
||||||
@ -436,8 +436,8 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
id: this.i.id,
|
id: this.i.id,
|
||||||
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
imgUrl2: value?.imgUrl2?.data?.fullFilePath,
|
imgUrl2: value?.imgUrl2?.data?.fullFilePath,
|
||||||
setLading: value?.imgUrl3?.data?.fullFilePath || value?.imgUrl3.url,
|
setLading: value?.imgUrl3?.data?.fullFilePath || value?.imgUrl3?.url,
|
||||||
setPeoCarGoods: value?.imgUrl4?.data?.fullFilePath || value?.imgUrl4.url,
|
setPeoCarGoods: value?.imgUrl4?.data?.fullFilePath || value?.imgUrl4?.url,
|
||||||
time: value?.time
|
time: value?.time
|
||||||
};
|
};
|
||||||
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ');
|
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ');
|
||||||
@ -466,8 +466,8 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
id: this.i?.id,
|
id: this.i?.id,
|
||||||
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
imgUrl2: value?.imgUrl2?.data?.fullFilePath,
|
imgUrl2: value?.imgUrl2?.data?.fullFilePath,
|
||||||
setLading: value?.imgUrl3?.data?.fullFilePath || value?.imgUrl3.url,
|
setLading: value?.imgUrl3?.data?.fullFilePath || value?.imgUrl3?.url,
|
||||||
setPeoCarGoods: value?.imgUrl4?.data?.fullFilePath || value?.imgUrl4.url,
|
setPeoCarGoods: value?.imgUrl4?.data?.fullFilePath || value?.imgUrl4?.url,
|
||||||
time: value?.time,
|
time: value?.time,
|
||||||
volume: this.data?.volume,
|
volume: this.data?.volume,
|
||||||
weight: this.data?.weight
|
weight: this.data?.weight
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-02-24 20:19:51
|
* @Date : 2022-02-24 20:19:51
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-10 10:27:21
|
* @LastEditTime : 2022-03-23 19:57:34
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\tran-agreement\\tran-agreement.component.ts
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\tran-agreement\\tran-agreement.component.ts
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -28,111 +28,136 @@ import { SupplyManagementService } from '../../services/supply-management.servic
|
|||||||
styleUrls: ['./tran-agreement.component.less']
|
styleUrls: ['./tran-agreement.component.less']
|
||||||
})
|
})
|
||||||
export class TranAgreementComponent {
|
export class TranAgreementComponent {
|
||||||
enterpriseInfo:any; // 网络货运人
|
enterpriseInfo: any; // 网络货运人
|
||||||
type:any;
|
type: any;
|
||||||
object: any;
|
object: any;
|
||||||
agreement:any;
|
agreement: any;
|
||||||
envCache:any;
|
envCache: any;
|
||||||
shipperName:any;
|
shipperName: any;
|
||||||
constructor(private modal: NzModalRef,public service: SupplyManagementService,) {
|
constructor(private modal: NzModalRef, public service: SupplyManagementService) {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.log(this.object)
|
console.log(this.object);
|
||||||
// 获取托运人承运人信息
|
// 获取托运人承运人信息
|
||||||
this.service.request(this.service.$api_getContractAtr,{id:this.object?.shipperAppUserId}).subscribe(res => {
|
this.service.request(this.service.$api_getContractAtr, { id: this.object?.shipperAppUserId }).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.enterpriseInfo = res
|
this.enterpriseInfo = res;
|
||||||
this.getContent();
|
this.getContent();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getContent() {
|
getContent() {
|
||||||
let params:any;
|
let params: any;
|
||||||
if(this.type ==='onecar'){
|
if (this.type === 'onecar') {
|
||||||
|
|
||||||
params = {
|
|
||||||
contractType:'1',
|
|
||||||
resourceType: '1',
|
|
||||||
signingObject: '1',
|
|
||||||
templateType: 'MX',
|
|
||||||
parametersDTO: {
|
|
||||||
contractCode:'',
|
|
||||||
shipperLegalPersonName:this.enterpriseInfo.legalPersonName || '', //托运法定代表人
|
|
||||||
carrierLegalPersonName:this.enterpriseInfo.netLegalPersonName || '', //承运法定代表人
|
|
||||||
shipperName:this?.shipperName || '', //托运人
|
|
||||||
carrierName:this.object?.enterpriseInfoName || '', //承运人
|
|
||||||
consignorInfo: `${this.object?.unLoadingPlaceDTOList[0]?.appUserName || ''} ${this.object?.unLoadingPlaceDTOList[0]?.contractTelephone || ''}`, // 发货信息
|
|
||||||
consignorAddress: this.object?.unLoadingPlaceDTOList[0].detailedAddress || '', // 发货地址
|
|
||||||
consignorDate: this.object?.loadingTime || '', // 发货时间
|
|
||||||
consigneeInfo: `${this.object?.unLoadingPlaceDTOList[this.object?.unLoadingPlaceDTOList.length-1].appUserName} ${this.object?.unLoadingPlaceDTOList[this.object?.unLoadingPlaceDTOList.length-1].contractTelephone}`, // 收货信息
|
|
||||||
consigneeDate: this.object?.unloadingTime || '', // 收货时间
|
|
||||||
consigneeAddress: this.object?.unLoadingPlaceDTOList[this.object?.unLoadingPlaceDTOList.length-1].detailedAddress || '', // 收货地址
|
|
||||||
goodsName:this.object?.goodsInfoDTOList[0].goodsName || '', // 货物名称
|
|
||||||
shippingType:'整车运输',
|
|
||||||
consignmentVolume:`${this.object?.goodsInfoDTOList[0]?.weight || '-'}吨/${this.object?.goodsInfoDTOList[0]?.volume || '-'}方/${this.object?.goodsInfoDTOList[0]?.number || '-'}件`, //托运量
|
|
||||||
transporterInfo:'', //运输方信息
|
|
||||||
freightAmount:this.object?.total || '', // 订单运费金额(元)
|
|
||||||
pre:this.object?.expenseDTOList?.filter((item:any) => item.expenseCode === 'PRE')[0].price || '', //预付
|
|
||||||
rece:this.object?.expenseDTOList?.filter((item:any) => item.expenseCode === 'RECE')[0].price || '',// 到付
|
|
||||||
back:this.object?.expenseDTOList?.filter((item:any) => item.expenseCode === 'BACK')[0].price || '', // 回单付
|
|
||||||
lunarKnot:0,
|
|
||||||
total:this.object?.subtotal || '', // 合计(元)
|
|
||||||
paymentTime:`到货后${this.object?.paymentDays || ''}天`, // 承诺支付运费时间
|
|
||||||
year:new Date().getFullYear() || '', // 签约年份
|
|
||||||
month:new Date().getMonth()+1 || '', // 签约月份
|
|
||||||
day:new Date().getDate() || '', // 签约日期
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if(this.type ==='bulk'){
|
|
||||||
params = {
|
params = {
|
||||||
contractType:'1',
|
contractType: '1',
|
||||||
|
resourceType: '1',
|
||||||
|
signingObject: '1',
|
||||||
|
templateType: 'MX',
|
||||||
|
parametersDTO: {
|
||||||
|
contractCode: '',
|
||||||
|
shipperLegalPersonName: this.enterpriseInfo.legalPersonName || '', //托运法定代表人
|
||||||
|
carrierLegalPersonName: this.enterpriseInfo.netLegalPersonName || '', //承运法定代表人
|
||||||
|
shipperName: this?.shipperName || '', //托运人
|
||||||
|
carrierName: this.object?.enterpriseInfoName || '', //承运人
|
||||||
|
consignorInfo: `${this.object?.unLoadingPlaceDTOList[0]?.appUserName || ''} ${
|
||||||
|
this.object?.unLoadingPlaceDTOList[0]?.contractTelephone || ''
|
||||||
|
}`, // 发货信息
|
||||||
|
consignorAddress: this.object?.unLoadingPlaceDTOList[0].detailedAddress || '', // 发货地址
|
||||||
|
consignorDate: this.object?.loadingTime || '', // 发货时间
|
||||||
|
consigneeInfo: `${this.object?.unLoadingPlaceDTOList[this.object?.unLoadingPlaceDTOList.length - 1].appUserName} ${
|
||||||
|
this.object?.unLoadingPlaceDTOList[this.object?.unLoadingPlaceDTOList.length - 1].contractTelephone
|
||||||
|
}`, // 收货信息
|
||||||
|
consigneeDate: this.object?.unloadingTime || '', // 收货时间
|
||||||
|
consigneeAddress: this.object?.unLoadingPlaceDTOList[this.object?.unLoadingPlaceDTOList.length - 1].detailedAddress || '', // 收货地址
|
||||||
|
goodsName: this.object?.goodsInfoDTOList[0].goodsName || '', // 货物名称
|
||||||
|
shippingType: '整车运输',
|
||||||
|
consignmentVolume: `${this.object?.goodsInfoDTOList[0]?.weight || '-'}吨/${this.object?.goodsInfoDTOList[0]?.volume || '-'}方/${
|
||||||
|
this.object?.goodsInfoDTOList[0]?.number || '-'
|
||||||
|
}件`, //托运量
|
||||||
|
transporterInfo: '', //运输方信息
|
||||||
|
freightAmount: this.object?.total || '', // 订单运费金额(元)
|
||||||
|
pre: this.object?.expenseDTOList?.filter((item: any) => item.expenseCode === 'PRE')[0].price || '', //预付
|
||||||
|
rece: this.object?.expenseDTOList?.filter((item: any) => item.expenseCode === 'RECE')[0].price || '', // 到付
|
||||||
|
back: this.object?.expenseDTOList?.filter((item: any) => item.expenseCode === 'BACK')[0].price || '', // 回单付
|
||||||
|
lunarKnot: 0,
|
||||||
|
total: this.object?.subtotal || '', // 合计(元)
|
||||||
|
paymentTime: `到货后${this.object?.paymentDays || ''}天`, // 承诺支付运费时间
|
||||||
|
year: new Date().getFullYear() || '', // 签约年份
|
||||||
|
month: new Date().getMonth() + 1 || '', // 签约月份
|
||||||
|
day: new Date().getDate() || '' // 签约日期
|
||||||
|
}
|
||||||
|
};
|
||||||
|
} else if (this.type === 'bulk') {
|
||||||
|
params = {
|
||||||
|
contractType: '1',
|
||||||
resourceType: '2',
|
resourceType: '2',
|
||||||
signingObject: '1',
|
signingObject: '1',
|
||||||
templateType: 'MX',
|
templateType: 'MX',
|
||||||
parametersDTO: {
|
parametersDTO: {
|
||||||
contractCode:'',
|
contractCode: '',
|
||||||
shipperName:this?.shipperName || '', //托运人
|
shipperName: this?.shipperName || '', //托运人
|
||||||
carrierName:this.object?.enterpriseInfoName || '', //承运人
|
carrierName: this.object?.enterpriseInfoName || '', //承运人
|
||||||
shipperLegalPersonName:this.enterpriseInfo.legalPersonName || '', //托运法定代表人
|
shipperLegalPersonName: this.enterpriseInfo.legalPersonName || '', //托运法定代表人
|
||||||
carrierLegalPersonName:this.enterpriseInfo.netLegalPersonName || '', //承运法定代表人
|
carrierLegalPersonName: this.enterpriseInfo.netLegalPersonName || '', //承运法定代表人
|
||||||
consignorInfo: `${this.object.unLoadingPlaceDTOList[0]?.appUserName || ''} ${this.object.unLoadingPlaceDTOList[0]?.contractTelephone || ''}`, // 发货信息
|
consignorInfo: `${this.object.unLoadingPlaceDTOList[0]?.appUserName || ''} ${
|
||||||
|
this.object.unLoadingPlaceDTOList[0]?.contractTelephone || ''
|
||||||
|
}`, // 发货信息
|
||||||
consignorAddress: this.object.unLoadingPlaceDTOList[0].detailedAddress, // 发货地址
|
consignorAddress: this.object.unLoadingPlaceDTOList[0].detailedAddress, // 发货地址
|
||||||
consignorDate: '', // 发货时间
|
consignorDate: '', // 发货时间
|
||||||
consigneeInfo: `${this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length-1]?.appUserName || ''} ${this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length-1]?.contractTelephone || ''}`, // 收货信息
|
consigneeInfo: `${this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length - 1]?.appUserName || ''} ${
|
||||||
|
this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length - 1]?.contractTelephone || ''
|
||||||
|
}`, // 收货信息
|
||||||
consigneeDate: '', // 收货时间
|
consigneeDate: '', // 收货时间
|
||||||
consigneeAddress: this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length-1]?.detailedAddress || '', // 收货地址
|
consigneeAddress: this.object.unLoadingPlaceDTOList[this.object.unLoadingPlaceDTOList.length - 1]?.detailedAddress || '', // 收货地址
|
||||||
goodsName:this.object.goodsInfoDTOList[0]?.goodsName || '', // 货物名称
|
goodsName: this.object.goodsInfoDTOList[0]?.goodsName || '', // 货物名称
|
||||||
shippingType:'大宗运输',
|
shippingType: '大宗运输',
|
||||||
consignmentVolume:`${this.object?.goodsInfoDTOList?.[0]?.weight|| '-'}吨/${this.object?.goodsInfoDTOList?.[0]?.volume || '-'}方/${this.object.goodsInfoDTOList?.[0]?.number || '-'}车`, //托运量
|
consignmentVolume: `${this.object?.goodsInfoDTOList?.[0]?.weight || '-'}吨/${
|
||||||
transporterInfo:'', //运输方信息
|
this.object?.goodsInfoDTOList?.[0]?.volume || '-'
|
||||||
freightAmount:'', // 订单运费金额(元)
|
}方/${this.object.goodsInfoDTOList?.[0]?.number || '-'}车`, //托运量
|
||||||
pre:'', //预付
|
transporterInfo: '', //运输方信息
|
||||||
rece:'',// 到付
|
freightAmount: '', // 订单运费金额(元)
|
||||||
back:'',// 回单付
|
pre: '', //预付
|
||||||
lunarKnot:'',
|
rece: '', // 到付
|
||||||
total:'', // 合计(元)
|
back: '', // 回单付
|
||||||
paymentTime:`到货后${this.object?.paymentDays || ''}天`, // 承诺支付运费时间
|
lunarKnot: '',
|
||||||
year:new Date().getFullYear() || '', // 签约年份
|
total: '', // 合计(元)
|
||||||
month:new Date().getMonth()+1 || '', // 签约月份
|
paymentTime: `到货后${this.object?.paymentDays || ''}天`, // 承诺支付运费时间
|
||||||
day:new Date().getDate() || '', // 签约日期
|
year: new Date().getFullYear() || '', // 签约年份
|
||||||
},
|
month: new Date().getMonth() + 1 || '', // 签约月份
|
||||||
}
|
day: new Date().getDate() || '' // 签约日期
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
console.log(params)
|
if (params.parametersDTO.freightAmount) {
|
||||||
this.service.request(this.service.$api_getContractContent,params).subscribe((res) => {
|
params.parametersDTO.freightAmount = this.toThousands(params.parametersDTO.freightAmount);
|
||||||
|
}
|
||||||
|
if (params.parametersDTO.pre) {
|
||||||
|
params.parametersDTO.pre = this.toThousands(params.parametersDTO.pre);
|
||||||
|
}
|
||||||
|
if (params.parametersDTO.rece) {
|
||||||
|
params.parametersDTO.rece = this.toThousands(params.parametersDTO.rece);
|
||||||
|
}
|
||||||
|
if (params.parametersDTO.back) {
|
||||||
|
params.parametersDTO.back = this.toThousands(params.parametersDTO.back);
|
||||||
|
}
|
||||||
|
if (params.parametersDTO.total) {
|
||||||
|
params.parametersDTO.total = this.toThousands(params.parametersDTO.total);
|
||||||
|
}
|
||||||
|
console.log(params);
|
||||||
|
this.service.request(this.service.$api_getContractContent, params).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.agreement = res.contractContent;
|
this.agreement = res.contractContent;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
handleOk(){
|
|
||||||
|
toThousands(num: any) {
|
||||||
|
let str = num.toString();
|
||||||
|
return '¥' + str.replace(/(\d)(?=(?:\d{3})+$)/g, '$1,');
|
||||||
|
}
|
||||||
|
handleOk() {
|
||||||
this.modal.close(true);
|
this.modal.close(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -425,7 +425,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请先选择货主',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,6 +90,7 @@ export class CtcCaptatinAddComponent implements OnInit {
|
|||||||
widget: this.i.id ? 'text' : '',
|
widget: this.i.id ? 'text' : '',
|
||||||
placeholder: '请输入手机号',
|
placeholder: '请输入手机号',
|
||||||
blur: () => {
|
blur: () => {
|
||||||
|
if(this.sf?.value?.mobile) {
|
||||||
this.service.request(this.service.$api_getByMobile, { mobile: this.sf.value.mobile }).subscribe(res => {
|
this.service.request(this.service.$api_getByMobile, { mobile: this.sf.value.mobile }).subscribe(res => {
|
||||||
if (res.certificateNumber) {
|
if (res.certificateNumber) {
|
||||||
this.readFlag = true
|
this.readFlag = true
|
||||||
@ -128,7 +129,8 @@ export class CtcCaptatinAddComponent implements OnInit {
|
|||||||
this.detailData = {}
|
this.detailData = {}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
default: this.detailData.mobile
|
default: this.detailData.mobile
|
||||||
},
|
},
|
||||||
@ -145,6 +147,7 @@ export class CtcCaptatinAddComponent implements OnInit {
|
|||||||
bankCardNo: {
|
bankCardNo: {
|
||||||
title: '银行卡号',
|
title: '银行卡号',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
maxLength: 20,
|
||||||
ui: {
|
ui: {
|
||||||
widget: this.i.id ? 'text' : '',
|
widget: this.i.id ? 'text' : '',
|
||||||
placeholder: '请输入银行卡号',
|
placeholder: '请输入银行卡号',
|
||||||
@ -161,6 +164,7 @@ export class CtcCaptatinAddComponent implements OnInit {
|
|||||||
bankName: {
|
bankName: {
|
||||||
title: '开户行',
|
title: '开户行',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
maxLength: 35,
|
||||||
ui: {
|
ui: {
|
||||||
widget: this.i.id ? 'text' : '',
|
widget: this.i.id ? 'text' : '',
|
||||||
placeholder: '请输入开户行',
|
placeholder: '请输入开户行',
|
||||||
|
|||||||
@ -269,8 +269,8 @@
|
|||||||
</label>
|
</label>
|
||||||
</sv-title>
|
</sv-title>
|
||||||
<sv label="法定代表人">
|
<sv label="法定代表人">
|
||||||
<input nz-input type="text" maxlength="32" [(ngModel)]="detailData.legalPersonIdentityVO.name" [readonly]="!isEdit"
|
<input nz-input type="text" maxlength="32" [(ngModel)]="detailData.legalPersonIdentityVO.name"
|
||||||
[nzBorderless]="!isEdit" [placeholder]="isEdit?'':'-'">
|
[readonly]="!isEdit" [nzBorderless]="!isEdit" [placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="身份证号码">
|
<sv label="身份证号码">
|
||||||
<input nz-input type="text" [(ngModel)]="detailData.legalPersonIdentityVO.certificateNumber" [readonly]="!isEdit"
|
<input nz-input type="text" [(ngModel)]="detailData.legalPersonIdentityVO.certificateNumber" [readonly]="!isEdit"
|
||||||
@ -354,8 +354,73 @@
|
|||||||
[placeholder]="isEdit?'':'-'">
|
[placeholder]="isEdit?'':'-'">
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
|
<nz-divider></nz-divider>
|
||||||
|
<sv-container col="3" class="mt16">
|
||||||
|
<sv-title>合伙人信息</sv-title>
|
||||||
|
<sv label="合伙人名称">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.partnerEnterpriseName" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
<sv label="手机号">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.partnerContactMobile" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
<sv label="管理员">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.partnerContactName + ' ' + partnerInfo.partnerContactMobile" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
<sv label="绑定时间">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.enterprisePartnerRelTime" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
<sv label="结算时间段">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.settStartTime" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
</sv-container>
|
||||||
|
<nz-divider></nz-divider>
|
||||||
|
<sv-container col="3" class="mt16">
|
||||||
|
<sv-title>渠道销售信息</sv-title>
|
||||||
|
<sv label="姓名">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.channelName" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
<sv label="手机号">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.channelMobile" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
<sv label="绑定时间">
|
||||||
|
<input nz-input type="text" [(ngModel)]="partnerInfo.enterpriseChannelRelTime" [readonly]="!isEdit" [nzBorderless]="!isEdit"
|
||||||
|
[placeholder]="isEdit?'':'-'">
|
||||||
|
</sv>
|
||||||
|
</sv-container>
|
||||||
|
</nz-card>
|
||||||
|
<nz-card>
|
||||||
|
<nz-tabset >
|
||||||
|
<nz-tab nzTitle="修改合伙人记录">
|
||||||
|
<st #st [data]="service.$api_findEnterpricePartnerRelLog" [columns]="columns"
|
||||||
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParamsCar }"
|
||||||
|
[res]="{ reName: { list: 'data'} }" [page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }"
|
||||||
|
[loading]="false">
|
||||||
|
<ng-template st-row="remark" let-item let-index="index">
|
||||||
|
<span *ngIf="item.remark" class="overflowText" nz-tooltip [nzTooltipTitle]="item.remark">{{ item.remark }}</span>
|
||||||
|
<span *ngIf="item.remark === null">--</span>
|
||||||
|
</ng-template>
|
||||||
|
</st>
|
||||||
|
</nz-tab>
|
||||||
|
<nz-tab nzTitle="修改渠道销售记录">
|
||||||
|
<st #st1 multiSort bordered [columns]="recordColumns" [ps]="20" [data]="service.$api_findEnterpriceChannelRelLog"
|
||||||
|
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||||
|
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||||
|
[page]="{ show: true, showSize: true, pageSizes: [20, 50, 100] }" [loading]="false">
|
||||||
|
<ng-template st-row="remark" let-item let-index="index">
|
||||||
|
<span *ngIf="item.remark" class="overflowText" nz-tooltip [nzTooltipTitle]="item.remark">{{ item.remark }}</span>
|
||||||
|
<span *ngIf="item.remark === null">--</span>
|
||||||
|
</ng-template>
|
||||||
|
</st>
|
||||||
|
</nz-tab>
|
||||||
|
</nz-tabset>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<ng-template #PopconfirmTempalte let-title="title" let-content="content">
|
<ng-template #PopconfirmTempalte let-title="title" let-content="content">
|
||||||
<div class="ant-popover-message">
|
<div class="ant-popover-message">
|
||||||
<i nz-icon nzType="info-circle" nzTheme="fill"></i>
|
<i nz-icon nzType="info-circle" nzTheme="fill"></i>
|
||||||
|
|||||||
@ -43,4 +43,16 @@
|
|||||||
left: 106px;
|
left: 106px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.overflowText {
|
||||||
|
display: -webkit-box;
|
||||||
|
max-width: 155px;
|
||||||
|
height: 40px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-align: left;
|
||||||
|
text-overflow: -o-ellipsis-lastline;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { apiConf } from '@conf/api.conf';
|
import { apiConf } from '@conf/api.conf';
|
||||||
|
import { STColumn, STComponent } from '@delon/abc/st';
|
||||||
import { DatePipe, _HttpClient } from '@delon/theme';
|
import { DatePipe, _HttpClient } from '@delon/theme';
|
||||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { fromEvent, Subscription } from 'rxjs';
|
import { fromEvent, Subscription } from 'rxjs';
|
||||||
@ -13,11 +14,14 @@ import { UsermanageService } from '../../../../services/usercenter.service';
|
|||||||
providers: [DatePipe]
|
providers: [DatePipe]
|
||||||
})
|
})
|
||||||
export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
||||||
|
@ViewChild('st') private readonly st!: STComponent;
|
||||||
|
@ViewChild('st1') private readonly st1!: STComponent;
|
||||||
@ViewChild('approvedModal', { static: false })
|
@ViewChild('approvedModal', { static: false })
|
||||||
approvedModal!: any;
|
approvedModal!: any;
|
||||||
@ViewChild('redectModal', { static: false })
|
@ViewChild('redectModal', { static: false })
|
||||||
redectModal!: any;
|
redectModal!: any;
|
||||||
|
columns: STColumn[] = [];
|
||||||
|
recordColumns!: STColumn[];
|
||||||
detailData: any = { adminUserInfo: { name: '' }, legalPersonIdentityVO: { name: '' } };
|
detailData: any = { adminUserInfo: { name: '' }, legalPersonIdentityVO: { name: '' } };
|
||||||
tempalateData = { ...this.detailData };
|
tempalateData = { ...this.detailData };
|
||||||
suppliersData: any = {};
|
suppliersData: any = {};
|
||||||
@ -35,7 +39,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
networkTransporter = null;
|
networkTransporter = null;
|
||||||
roleId = null;
|
roleId = null;
|
||||||
customerServiceId = null;
|
customerServiceId = null;
|
||||||
|
partnerInfo: any = {};
|
||||||
esignCheckStatus: any = {
|
esignCheckStatus: any = {
|
||||||
0: '不通过',
|
0: '不通过',
|
||||||
1: '通过',
|
1: '通过',
|
||||||
@ -43,16 +47,31 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
};
|
};
|
||||||
|
|
||||||
billEvaluate = null;
|
billEvaluate = null;
|
||||||
|
|
||||||
scrollTop = 0;
|
scrollTop = 0;
|
||||||
subscribeScoll!: Subscription;
|
subscribeScoll!: Subscription;
|
||||||
|
/**
|
||||||
|
* 查询参数
|
||||||
|
*/
|
||||||
|
get reqParamsCar() {
|
||||||
|
const params = {
|
||||||
|
id: this.route.snapshot.params.id,
|
||||||
|
bindType: 0
|
||||||
|
}
|
||||||
|
return { ...params };
|
||||||
|
}
|
||||||
|
get reqParams() {
|
||||||
|
const params = {
|
||||||
|
id: this.route.snapshot.params.id,
|
||||||
|
}
|
||||||
|
return { ...params };
|
||||||
|
}
|
||||||
constructor(
|
constructor(
|
||||||
public service: UsermanageService,
|
public service: UsermanageService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private nzModalService: NzModalService,
|
private nzModalService: NzModalService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private datePipe: DatePipe
|
private datePipe: DatePipe
|
||||||
) {}
|
) { }
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
this.subscribeScoll.unsubscribe();
|
this.subscribeScoll.unsubscribe();
|
||||||
}
|
}
|
||||||
@ -62,12 +81,80 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
this.initData();
|
this.initData();
|
||||||
this.loadltdId();
|
this.loadltdId();
|
||||||
this.loadRoles();
|
this.loadRoles();
|
||||||
|
this.initST();
|
||||||
|
this.initRecordST()
|
||||||
this.loadCustomerServices();
|
this.loadCustomerServices();
|
||||||
|
this.loadPartnerInfo()
|
||||||
});
|
});
|
||||||
this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => {
|
this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => {
|
||||||
this.scrollTop = document.documentElement.scrollTop;
|
this.scrollTop = document.documentElement.scrollTop;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 初始化数据列表
|
||||||
|
*/
|
||||||
|
initST() {
|
||||||
|
this.columns = [
|
||||||
|
{ title: '修改后合伙人', index: 'newPartnerName', className: 'text-center' },
|
||||||
|
{ title: '修改前合伙人', index: 'originalPartnerNamel', className: 'text-center' },
|
||||||
|
{ title: '备注', render: 'remark', className: 'text-center' },
|
||||||
|
{ title: '结算起算日', index: 'settStartTime', className: 'text-center' },
|
||||||
|
{ title: '生效节点', index: 'effectiveNode', className: 'text-center', type: 'enum', enum: {
|
||||||
|
1: '立即生效',
|
||||||
|
2: 'CRM审核后生效',
|
||||||
|
3: '审核通过生效',
|
||||||
|
} },
|
||||||
|
{
|
||||||
|
title: 'CRM审核状态', index: 'effectiveStatus',
|
||||||
|
type: 'enum',
|
||||||
|
enum: {
|
||||||
|
0: '已失效',
|
||||||
|
1: '未生效',
|
||||||
|
2: '已生效',
|
||||||
|
},
|
||||||
|
className: 'text-center'
|
||||||
|
},
|
||||||
|
{ title: '修改时间', render: 'modifyTime', className: 'text-center' },
|
||||||
|
{ title: '生效时间', render: 'effectiveTime', className: 'text-center' },
|
||||||
|
{ title: '操作人', render: 'approvalUser', className: 'text-center' },
|
||||||
|
|
||||||
|
];
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 初始化数据列表
|
||||||
|
*/
|
||||||
|
initRecordST() {
|
||||||
|
this.recordColumns = [
|
||||||
|
{ title: '修改后渠道销售', index: 'newChannelName', className: 'text-center' },
|
||||||
|
{ title: '修改前渠道销售地', index: 'originalChannelName', className: 'text-center' },
|
||||||
|
{ title: '备注', render: 'remark', className: 'text-center' },
|
||||||
|
{ title: '生效节点', index: 'effectiveNode', className: 'text-center', type: 'enum', enum: {
|
||||||
|
1: '立即生效',
|
||||||
|
2: 'CRM审核后生效',
|
||||||
|
3: '审核通过生效',
|
||||||
|
} },
|
||||||
|
{
|
||||||
|
title: 'CRM审核状态', index: 'effectiveStatus',
|
||||||
|
type: 'enum',
|
||||||
|
enum: {
|
||||||
|
0: '已失效',
|
||||||
|
1: '未生效',
|
||||||
|
2: '已生效',
|
||||||
|
},
|
||||||
|
className: 'text-center'
|
||||||
|
},
|
||||||
|
{ title: '修改时间', render: 'mybidDetailInfo', className: 'text-center' },
|
||||||
|
{ title: '生效时间', index: 'eeffectiveTime', className: 'text-center' },
|
||||||
|
{ title: '操作人', index: 'approvalUser', className: 'text-center' }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
loadPartnerInfo(){
|
||||||
|
this.service.request(this.service.$api_getEnterpriceRel, {id: this.route.snapshot.params.id}).subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.partnerInfo = res;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
loadltdId() {
|
loadltdId() {
|
||||||
this.service.getNetworkFreightForwarder().subscribe(res => {
|
this.service.getNetworkFreightForwarder().subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
@ -273,7 +360,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
res => {
|
res => {
|
||||||
node.children = res.map((item: any) => ({ ...item, isLeaf: index === 1, value: item.regionCode, label: item.name }));
|
node.children = res.map((item: any) => ({ ...item, isLeaf: index === 1, value: item.regionCode, label: item.name }));
|
||||||
},
|
},
|
||||||
_ => {},
|
_ => { },
|
||||||
() => {
|
() => {
|
||||||
resolve(node);
|
resolve(node);
|
||||||
}
|
}
|
||||||
@ -286,7 +373,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
this.isEdit = false;
|
this.isEdit = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
save(data: any){
|
save(data: any) {
|
||||||
const dateil = { ...this.detailData };
|
const dateil = { ...this.detailData };
|
||||||
Object.assign(dateil.legalPersonIdentityVO, {
|
Object.assign(dateil.legalPersonIdentityVO, {
|
||||||
validStartTime: this.datePipe.transform(dateil.legalPersonIdentityVO.validStartTime, 'yyyy-MM-dd'),
|
validStartTime: this.datePipe.transform(dateil.legalPersonIdentityVO.validStartTime, 'yyyy-MM-dd'),
|
||||||
|
|||||||
@ -166,137 +166,6 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
showRequired: false
|
showRequired: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lockedStatus8: {
|
|
||||||
type: 'string',
|
|
||||||
title: '公司所在地',
|
|
||||||
enum: [
|
|
||||||
{ label: '全部', value: '' },
|
|
||||||
{ label: '物流企业', value: 0 }
|
|
||||||
],
|
|
||||||
default: '',
|
|
||||||
ui: {
|
|
||||||
widget: 'select',
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
oftenUsedServices: {
|
|
||||||
type: 'string',
|
|
||||||
title: '常用服务',
|
|
||||||
enum: [
|
|
||||||
{ label: '全部', value: '' },
|
|
||||||
{ label: '整车服务', value: 0 },
|
|
||||||
{ label: '大宗服务', value: 1 }
|
|
||||||
],
|
|
||||||
default: '',
|
|
||||||
ui: {
|
|
||||||
widget: 'select',
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
customerType: {
|
|
||||||
type: 'string',
|
|
||||||
title: '客户类型',
|
|
||||||
enum: [
|
|
||||||
{ label: '全部', value: '' },
|
|
||||||
{ label: '直客', value: 1 },
|
|
||||||
{ label: '渠道客户', value: 20 }
|
|
||||||
],
|
|
||||||
default: '',
|
|
||||||
ui: {
|
|
||||||
widget: 'select',
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
contactName5: {
|
|
||||||
title: '渠道销售',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
placeholder: '请输入',
|
|
||||||
showRequired: false,
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
partnerName: {
|
|
||||||
title: '合伙人',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
placeholder: '请输入',
|
|
||||||
showRequired: false,
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
contactName3: {
|
|
||||||
title: '客服人员',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
placeholder: '请输入',
|
|
||||||
showRequired: false,
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
contactName2: {
|
|
||||||
title: '审核人',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
placeholder: '请输入',
|
|
||||||
showRequired: false,
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
applyDate: {
|
|
||||||
type: 'string',
|
|
||||||
title: '申请时间',
|
|
||||||
ui: {
|
|
||||||
widget: 'sl-from-to',
|
|
||||||
type: 'date',
|
|
||||||
format: 'yyyy-MM-dd',
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
} as SFDateWidgetSchema,
|
|
||||||
},
|
|
||||||
applyDate1: {
|
|
||||||
type: 'string',
|
|
||||||
title: '审核时间',
|
|
||||||
ui: {
|
|
||||||
widget: 'sl-from-to',
|
|
||||||
type: 'date',
|
|
||||||
format: 'yyyy-MM-dd',
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
} as SFDateWidgetSchema,
|
|
||||||
},
|
|
||||||
lockedStatus3: {
|
|
||||||
type: 'string',
|
|
||||||
title: '企业状态',
|
|
||||||
enum: [
|
|
||||||
{ label: '全部', value: '' },
|
|
||||||
{ label: '正常', value: 0 },
|
|
||||||
{ label: '冻结', value: 1 }
|
|
||||||
],
|
|
||||||
default: '',
|
|
||||||
ui: {
|
|
||||||
widget: 'select',
|
|
||||||
visibleIf: {
|
|
||||||
expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
enterpriseType: {
|
enterpriseType: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '企业类型',
|
title: '企业类型',
|
||||||
@ -322,26 +191,41 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
default: '',
|
default: '',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
|
||||||
allowClear: true,
|
|
||||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder(),
|
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// sou1r3ce: {
|
oftenUsedServices: {
|
||||||
// type: 'string',
|
type: 'string',
|
||||||
// title: '客户类型',
|
title: '常用服务',
|
||||||
// enum: [{ label: '全部', value: '' }],
|
enum: [
|
||||||
// default: '',
|
{ label: '全部', value: '' },
|
||||||
// ui: {
|
{ label: '整车发货', value: 10 },
|
||||||
// widget: 'select',
|
{ label: '大宗发货', value: 20 }
|
||||||
// visibleIf: {
|
],
|
||||||
// expand: (value: boolean) => value
|
default: '',
|
||||||
// }
|
ui: {
|
||||||
// }
|
widget: 'select',
|
||||||
// },
|
visibleIf: {
|
||||||
|
expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
customerType: {
|
||||||
|
type: 'string',
|
||||||
|
title: '客户类型',
|
||||||
|
enum: [{ label: '全部', value: '' },
|
||||||
|
{ label: '直客', value: 1 },
|
||||||
|
{ label: '渠道客户', value: 20 }],
|
||||||
|
default: '',
|
||||||
|
ui: {
|
||||||
|
widget: 'select',
|
||||||
|
visibleIf: {
|
||||||
|
expand: (value: boolean) => value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
promotersTelephone: {
|
promotersTelephone: {
|
||||||
title: '业务员',
|
title: '业务员',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -353,28 +237,28 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// promotersTe1le3phone: {
|
partnerNamee: {
|
||||||
// title: '合伙人',
|
title: '合伙人',
|
||||||
// type: 'string',
|
type: 'string',
|
||||||
// ui: {
|
ui: {
|
||||||
// placeholder: '请输入',
|
placeholder: '请输入',
|
||||||
// showRequired: false,
|
showRequired: false,
|
||||||
// visibleIf: {
|
visibleIf: {
|
||||||
// expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// promotersTe1lep1hone: {
|
customerServiceId: {
|
||||||
// title: '客服人员',
|
title: '客服人员',
|
||||||
// type: 'string',
|
type: 'string',
|
||||||
// ui: {
|
ui: {
|
||||||
// placeholder: '请输入',
|
placeholder: '请输入',
|
||||||
// showRequired: false,
|
showRequired: false,
|
||||||
// visibleIf: {
|
visibleIf: {
|
||||||
// expand: (value: boolean) => value
|
expand: (value: boolean) => value
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
approvalUserName: {
|
approvalUserName: {
|
||||||
title: '审核人',
|
title: '审核人',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -442,13 +326,13 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
source2: {
|
isExpired: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '证件是否过期',
|
title: '证件是否过期',
|
||||||
enum: [
|
enum: [
|
||||||
{ label: '全部', value: '' },
|
{ label: '全部', value: '' },
|
||||||
{ label: '是', value: 1 },
|
{ label: '是', value: true },
|
||||||
{ label: '否', value: 2 }
|
{ label: '否', value: false }
|
||||||
],
|
],
|
||||||
default: '',
|
default: '',
|
||||||
ui: {
|
ui: {
|
||||||
@ -506,8 +390,8 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
width: 140
|
width: 140
|
||||||
},
|
},
|
||||||
{ title: '业务员', className: 'text-center', render: 'promotersTelephone', width: 150 },
|
{ title: '业务员', className: 'text-center', render: 'promotersTelephone', width: 150 },
|
||||||
// { title: '合伙人', className: 'text-center', render: 'promoter1sTelephone', width: 150 },
|
{ title: '合伙人', className: 'text-center', render: 'partnerName', width: 150 },
|
||||||
// { title: '客服人员', className: 'text-center', render: 'promoter1sTelephone', width: 150 },
|
{ title: '客服人员', className: 'text-center', render: 'customerServiceId', width: 150 },
|
||||||
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 180 },
|
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 180 },
|
||||||
{
|
{
|
||||||
title: '注册渠道',
|
title: '注册渠道',
|
||||||
@ -544,8 +428,9 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
width: '250px',
|
width: '200px',
|
||||||
className: 'text-center btnBox',
|
className: 'text-center block-td',
|
||||||
|
fixed: 'right',
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
text: '查看',
|
text: '查看',
|
||||||
|
|||||||
@ -154,6 +154,12 @@ export class UsermanageService extends ShipperBaseService {
|
|||||||
$api_batchUpdateEnterpricePartner = '/api/mdc/enterpriceRelLog/batchUpdateEnterpricePartner';
|
$api_batchUpdateEnterpricePartner = '/api/mdc/enterpriceRelLog/batchUpdateEnterpricePartner';
|
||||||
// 渠道销售修改详情
|
// 渠道销售修改详情
|
||||||
$api_partnerChannelUpdateDetaiList = '/api/mdc/enterpriceRelLog/partnerChannelUpdateDetaiList';
|
$api_partnerChannelUpdateDetaiList = '/api/mdc/enterpriceRelLog/partnerChannelUpdateDetaiList';
|
||||||
|
// 查询企业修改合伙人记录
|
||||||
|
$api_findEnterpricePartnerRelLog = '/api/mdc/enterpriceRelLog/findEnterpricePartnerRelLog';
|
||||||
|
// 查询企业修改渠道记录
|
||||||
|
$api_findEnterpriceChannelRelLog = '/api/mdc/enterpriceRelLog/findEnterpriceChannelRelLog';
|
||||||
|
// 查询企业合伙人渠道关系信息
|
||||||
|
$api_getEnterpriceRel = '/api/mdc/enterpriceRelLog/getEnterpriceRel';
|
||||||
|
|
||||||
constructor(public injector: Injector, public nzModalService: NzModalService, private nzImageService: NzImageService) {
|
constructor(public injector: Injector, public nzModalService: NzModalService, private nzImageService: NzImageService) {
|
||||||
super(injector);
|
super(injector);
|
||||||
|
|||||||
@ -152,7 +152,7 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请先选择货主',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
}
|
}
|
||||||
|
|||||||
@ -116,7 +116,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
|||||||
title: '所属项目',
|
title: '所属项目',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请先选择货主',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user