Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -240,11 +240,21 @@ export class CwcAccountManagementWithdrawDepositComponent implements OnInit {
|
|||||||
this.sf.setValue('/payPsd', val);
|
this.sf.setValue('/payPsd', val);
|
||||||
if (val || val !== '') {
|
if (val || val !== '') {
|
||||||
const last = val.substr(val.length - 1);
|
const last = val.substr(val.length - 1);
|
||||||
const password = this.sf.getValue('/payPassword');
|
const password = this.sf.getValue('/payPassword') || '';
|
||||||
const start = this.psd?.nativeElement.selectionStart;
|
const start = this.psd?.nativeElement.selectionStart;
|
||||||
|
const index = val.lastIndexOf('•');
|
||||||
if (last !== '•') {
|
if (last !== '•') {
|
||||||
this.sf.setValue('/payPassword', start !== 1 ? (password + last) : last);
|
if (password.length !== 0) {
|
||||||
|
// 新增 或 替换
|
||||||
|
const pre = password.substr(0, index + 1);
|
||||||
|
const detail = val.substr(index + 1, val.length);
|
||||||
|
this.sf.setValue('/payPassword', pre + detail);
|
||||||
} else {
|
} else {
|
||||||
|
// 新增
|
||||||
|
this.sf.setValue('/payPassword', val);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// 删除
|
||||||
this.sf.setValue('/payPassword', password.substr(0, val.length));
|
this.sf.setValue('/payPassword', password.substr(0, val.length));
|
||||||
}
|
}
|
||||||
const payPswVal = this.sf.getValue('/payPsd');
|
const payPswVal = this.sf.getValue('/payPsd');
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
billCode<!--
|
<!--
|
||||||
* @Description :
|
* @Description :
|
||||||
* @Version : 1.0
|
* @Version : 1.0
|
||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
@ -9,32 +9,15 @@ billCode<!--
|
|||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
<!-- 搜索表单 -->
|
<!-- 搜索表单 -->
|
||||||
<page-header-wrapper [title]="''"> </page-header-wrapper>
|
<!-- <page-header-wrapper [title]="''"> </page-header-wrapper>
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
|
||||||
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
|
||||||
<sf
|
|
||||||
#sf
|
|
||||||
[schema]="schema"
|
|
||||||
[ui]="ui"
|
|
||||||
[mode]="'search'"
|
|
||||||
[disabled]="!sf?.valid"
|
|
||||||
[loading]="false"
|
|
||||||
(formSubmit)="st?.load(1)"
|
|
||||||
(formReset)="resetSF()"
|
|
||||||
></sf>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
|
||||||
<ng-container *ngIf="queryFieldCount > 4">
|
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
|
||||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()" acl [acl-ability]="['ORDER-RECEIPTS-search']"
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()" acl
|
||||||
>查询</button
|
[acl-ability]="['ORDER-RECEIPTS-search']">查询</button>
|
||||||
>
|
|
||||||
<button nz-button nzType="primary" [disabled]="false" (click)="exprot()">导出</button>
|
<button nz-button nzType="primary" [disabled]="false" (click)="exprot()">导出</button>
|
||||||
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
@ -42,28 +25,24 @@ billCode<!--
|
|||||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card> -->
|
||||||
|
|
||||||
<nz-card>
|
<nz-card class="table-box">
|
||||||
|
<div class="tab_header">
|
||||||
|
<label class="page_title"> <label class="driver">|</label> 单据审核</label>
|
||||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
||||||
<nz-tab [nzTitle]="'全部(' + tabs?.totalCount + ')'"></nz-tab>
|
<nz-tab [nzTitle]="'全部(' + tabs?.totalCount + ')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'待审核(' + tabs?.receivedQuantity + ')'"></nz-tab>
|
<nz-tab [nzTitle]="'待审核(' + tabs?.receivedQuantity + ')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'已审核(' + tabs?.stayQuantity + ')'"></nz-tab>
|
<nz-tab [nzTitle]="'已审核(' + tabs?.stayQuantity + ')'"></nz-tab>
|
||||||
</nz-tabset>
|
</nz-tabset>
|
||||||
<div style="margin-top: 15px">
|
</div>
|
||||||
<st
|
|
||||||
#st
|
<div>
|
||||||
[bordered]="true"
|
<st #st [bordered]="true" [scroll]="{ x: '2000px',y:scrollY }" [data]="service.$api_get_billExamine_page"
|
||||||
[scroll]="{ x: '2000px' }"
|
[columns]="columns" [req]="{ process: beforeReq }"
|
||||||
[data]="service.$api_get_billExamine_page"
|
|
||||||
[columns]="columns"
|
|
||||||
[req]="{ process: beforeReq }"
|
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } , process: afterRes}"
|
[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"
|
|
||||||
>
|
|
||||||
<ng-template st-row="freightPrice" let-item let-index="index">
|
<ng-template st-row="freightPrice" let-item let-index="index">
|
||||||
{{ item.freightPrice | currency }}
|
{{ item.freightPrice | currency }}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@ -83,7 +62,8 @@ billCode<!--
|
|||||||
<app-imagelist style="width: 40px" [imgList]="[item.unloadingLadingBillFilePath]"> </app-imagelist>
|
<app-imagelist style="width: 40px" [imgList]="[item.unloadingLadingBillFilePath]"> </app-imagelist>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="item.unloadingPeopleVehiclesGoodsFilePath">
|
<div *ngIf="item.unloadingPeopleVehiclesGoodsFilePath">
|
||||||
<app-imagelist style="width: 40px" [imgList]="[item.unloadingPeopleVehiclesGoodsFilePath]"> </app-imagelist>
|
<app-imagelist style="width: 40px" [imgList]="[item.unloadingPeopleVehiclesGoodsFilePath]">
|
||||||
|
</app-imagelist>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@ -92,21 +72,26 @@ billCode<!--
|
|||||||
<div *ngIf="item?.unloadingTime">卸 | {{ item?.unloadingTime }}</div>
|
<div *ngIf="item?.unloadingTime">卸 | {{ item?.unloadingTime }}</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="driverName" let-item let-index="index">
|
<ng-template st-row="driverName" let-item let-index="index">
|
||||||
<div> {{ item?.driverName }}{{ item?.driverPhone ? "/" + item?.driverPhone : ''}}{{ item?.carNo ? "/" + item?.carNo : '' }} </div>
|
<div> {{ item?.driverName }}{{ item?.driverPhone ? "/" + item?.driverPhone : ''}}{{ item?.carNo ? "/" +
|
||||||
|
item?.carNo : '' }} </div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="payeeName" let-item let-index="index">
|
<ng-template st-row="payeeName" let-item let-index="index">
|
||||||
<div> {{ item?.payeeName }}{{item?.payeePhone ? "/" + item?.payeePhone : '' }} </div>
|
<div> {{ item?.payeeName }}{{item?.payeePhone ? "/" + item?.payeePhone : '' }} </div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="billCode" let-item let-index="index">
|
<ng-template st-row="billCode" let-item let-index="index">
|
||||||
<!-- <div>{{ item.billCode }}</div> -->
|
<!-- <div>{{ item.billCode }}</div> -->
|
||||||
<a *ngIf="item.resourceType == '1'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{ item.billCode }}</a>
|
<a *ngIf="item.resourceType == '1'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{
|
||||||
<a *ngIf="item.resourceType == '2'" [routerLink]="'/order-management/bulk/bulk-detail/' + item.id">{{ item.billCode }}</a>
|
item.billCode }}</a>
|
||||||
<a *ngIf="item.resourceType == '3'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{ item.billCode }}</a>
|
<a *ngIf="item.resourceType == '2'" [routerLink]="'/order-management/bulk/bulk-detail/' + item.id">{{
|
||||||
|
item.billCode }}</a>
|
||||||
|
<a *ngIf="item.resourceType == '3'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{
|
||||||
|
item.billCode }}</a>
|
||||||
<div>
|
<div>
|
||||||
<span>{{item?.billStatusLabel}}</span>
|
<span>{{item?.billStatusLabel}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span >{{item?.resourceTypeLabel}}{{item?.serviceTypeLabel === item?.resourceTypeLabel ? '':item?.serviceTypeLabel}}</span>
|
<span>{{item?.resourceTypeLabel}}{{item?.serviceTypeLabel === 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">
|
||||||
@ -131,7 +116,20 @@ billCode<!--
|
|||||||
|
|
||||||
<ng-template #extraTemplate>
|
<ng-template #extraTemplate>
|
||||||
<div>
|
<div>
|
||||||
<button nz-button nzType="primary" (click)="sign('1')" acl [acl-ability]="['ORDER-RECEIPTS-billAuditPassBatch']"> 批量通过 </button>
|
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()" acl
|
||||||
<button nz-button nzType="primary" (click)="sign1('1')" acl [acl-ability]="['ORDER-RECEIPTS- electronicBilling']"> 批量生成电子单据 </button>
|
[acl-ability]="['ORDER-RECEIPTS-search']">查询</button>
|
||||||
|
<button nz-button nzDanger [disabled]="false" (click)="exprot()">导出</button>
|
||||||
|
<button nz-button nz-dropdown [nzDropdownMenu]="menu" nzPlacement="bottomLeft">
|
||||||
|
更多<i nz-icon nzType="down" nzTheme="outline"></i></button>
|
||||||
|
<nz-dropdown-menu #menu="nzDropdownMenu">
|
||||||
|
<ul nz-menu>
|
||||||
|
<li nz-menu-item (click)="sign('1')" acl [acl-ability]="['ORDER-RECEIPTS-billAuditPassBatch']">
|
||||||
|
批量通过
|
||||||
|
</li>
|
||||||
|
<li nz-menu-item a(click)="sign1('1')" acl [acl-ability]="['ORDER-RECEIPTS- electronicBilling']">
|
||||||
|
批量生成电子单据
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nz-dropdown-menu>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@ -1,22 +1,3 @@
|
|||||||
|
|
||||||
:host {
|
|
||||||
p{
|
p{
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
}
|
}
|
||||||
.left_btn {
|
|
||||||
width: 50px;
|
|
||||||
height: 32px;
|
|
||||||
padding-left: 8px;
|
|
||||||
line-height:32px;
|
|
||||||
background-color: #d7d7d7;
|
|
||||||
}
|
|
||||||
::ng-deep {
|
|
||||||
.imgBox {
|
|
||||||
display: flex;
|
|
||||||
img {
|
|
||||||
width: 60px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -8,25 +8,23 @@ import { OrderManagementService } from '../../services/order-management.service'
|
|||||||
import { UpdateFreightComponent } from '../../modal/bulk/update-freight/update-freight.component';
|
import { UpdateFreightComponent } from '../../modal/bulk/update-freight/update-freight.component';
|
||||||
import { ConfirReceiptComponent } from '../../modal/bulk/confir-receipt/confir-receipt.component';
|
import { ConfirReceiptComponent } from '../../modal/bulk/confir-receipt/confir-receipt.component';
|
||||||
import { of } from 'rxjs';
|
import { of } from 'rxjs';
|
||||||
import { ShipperBaseService } from '@shared';
|
import { SearchDrawerService, ShipperBaseService } from '@shared';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { orderManagementVoucherViewComponent } from '../../modal/audit/voucher-view/voucher-view.component';
|
import { orderManagementVoucherViewComponent } from '../../modal/audit/voucher-view/voucher-view.component';
|
||||||
|
import { BasicTableComponent } from 'src/app/routes/commom/components/basic-table/basic-table.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-order-management-receipts-audit',
|
selector: 'app-order-management-receipts-audit',
|
||||||
templateUrl: './receipts-audit.component.html',
|
templateUrl: './receipts-audit.component.html',
|
||||||
styleUrls: ['./receipts-audit.component.less']
|
styleUrls: ['../../../commom/less/commom-table.less', './receipts-audit.component.less']
|
||||||
})
|
})
|
||||||
export class OrderManagementReceiptsAuditComponent implements OnInit {
|
export class OrderManagementReceiptsAuditComponent extends BasicTableComponent implements OnInit {
|
||||||
ui: SFUISchema = {};
|
|
||||||
uiView: SFUISchema = {};
|
uiView: SFUISchema = {};
|
||||||
schema: SFSchema = {};
|
|
||||||
schemaView: SFSchema = {};
|
schemaView: SFSchema = {};
|
||||||
auditMany = false;
|
auditMany = false;
|
||||||
isVisibleView = false;
|
isVisibleView = false;
|
||||||
isVisibleEvaluate = false;
|
isVisibleEvaluate = false;
|
||||||
isVisible = false;
|
isVisible = false;
|
||||||
_$expand = false;
|
|
||||||
@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[] = [];
|
||||||
@ -41,8 +39,11 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
public service: OrderManagementService,
|
public service: OrderManagementService,
|
||||||
private modal: NzModalService,
|
private modal: NzModalService,
|
||||||
public shipperservice: ShipperBaseService,
|
public shipperservice: ShipperBaseService,
|
||||||
private router: Router
|
private router: Router,
|
||||||
) { }
|
public searchDrawerService: SearchDrawerService
|
||||||
|
) {
|
||||||
|
super(searchDrawerService);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询参数
|
* 查询参数
|
||||||
@ -84,10 +85,10 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
return requestOptions;
|
return requestOptions;
|
||||||
};
|
};
|
||||||
afterRes = (data: any[], rawData?: any) => {
|
afterRes = (data: any[], rawData?: any) => {
|
||||||
console.log(data)
|
console.log(data);
|
||||||
this.loading = false
|
this.loading = false;
|
||||||
return data.map(item => ({
|
return data.map(item => ({
|
||||||
...item,
|
...item
|
||||||
// disabled: item.billStatus !== '4'
|
// disabled: item.billStatus !== '4'
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
@ -105,7 +106,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
totalCount: 0
|
totalCount: 0
|
||||||
};
|
};
|
||||||
const params: any = Object.assign({}, this.reqParams || {});
|
const params: any = Object.assign({}, this.reqParams || {});
|
||||||
delete params.auditStatus
|
delete params.auditStatus;
|
||||||
this.service.request(this.service.$api_get_getAuditStatistical, params).subscribe(res => {
|
this.service.request(this.service.$api_get_getAuditStatistical, params).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
let totalCount = 0;
|
let totalCount = 0;
|
||||||
@ -173,7 +174,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
},
|
||||||
onSearch: (q: any) => {
|
onSearch: (q: any) => {
|
||||||
let str =q.replace(/^\s+|\s+$/g,"");
|
let str = q.replace(/^\s+|\s+$/g, '');
|
||||||
if (str) {
|
if (str) {
|
||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
||||||
@ -196,7 +197,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
placeholder: '请先选择货主',
|
placeholder: '请先选择货主',
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
loadingPlace: {
|
loadingPlace: {
|
||||||
@ -303,7 +304,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
{ label: '无装卸货凭证', value: '1' },
|
{ label: '无装卸货凭证', value: '1' },
|
||||||
{ label: '装卸货凭证齐全', value: '2' },
|
{ label: '装卸货凭证齐全', value: '2' },
|
||||||
{ label: '只有装货凭证', value: '3' },
|
{ label: '只有装货凭证', value: '3' },
|
||||||
{label: '只有卸货凭证',value: '4'},
|
{ label: '只有卸货凭证', value: '4' }
|
||||||
],
|
],
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
@ -311,13 +312,12 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
allowClear: true,
|
allowClear: true,
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
_$expand: (value: boolean) => value
|
_$expand: (value: boolean) => value
|
||||||
},
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
type: 'object'
|
type: 'object'
|
||||||
};
|
};
|
||||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -398,26 +398,26 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
text: '生成电子单据',
|
text: '生成电子单据',
|
||||||
click: _record => this.generate(_record, 2),
|
click: _record => this.generate(_record, 2),
|
||||||
iif: item => !item?.loadingElectronicsLadingBillFilePath || !item?.unloadingElectronicsLadingBillFilePath,
|
iif: item => !item?.loadingElectronicsLadingBillFilePath || !item?.unloadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-electronicBillingOne'] },
|
acl: { ability: ['ORDER-RECEIPTS-electronicBillingOne'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '通过',
|
text: '通过',
|
||||||
click: _record => this.sign(_record),
|
click: _record => this.sign(_record),
|
||||||
iif: item => !item?.loadingElectronicsLadingBillFilePath || !item?.unloadingElectronicsLadingBillFilePath,
|
iif: item => !item?.loadingElectronicsLadingBillFilePath || !item?.unloadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-billAuditPassBatch'] },
|
acl: { ability: ['ORDER-RECEIPTS-billAuditPassBatch'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '修改',
|
text: '修改',
|
||||||
click: _record => this.modification(_record),
|
click: _record => this.modification(_record),
|
||||||
iif: item => !item?.loadingElectronicsLadingBillFilePath || !item?.unloadingElectronicsLadingBillFilePath,
|
iif: item => !item?.loadingElectronicsLadingBillFilePath || !item?.unloadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-updateBillExamine'] },
|
acl: { ability: ['ORDER-RECEIPTS-updateBillExamine'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '查看凭证',
|
text: '查看凭证',
|
||||||
click: _record => this.generate(_record, 3),
|
click: _record => this.generate(_record, 3),
|
||||||
iif: item => item?.loadingElectronicsLadingBillFilePath && item?.unloadingElectronicsLadingBillFilePath,
|
iif: item => item?.loadingElectronicsLadingBillFilePath && item?.unloadingElectronicsLadingBillFilePath,
|
||||||
acl: { ability: ['ORDER-RECEIPTS-view'] },
|
acl: { ability: ['ORDER-RECEIPTS-view'] }
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -428,21 +428,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
get queryFieldCount(): number {
|
get queryFieldCount(): number {
|
||||||
return Object.keys(this.schema?.properties || {}).length;
|
return Object.keys(this.schema?.properties || {}).length;
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 伸缩查询条件
|
|
||||||
*/
|
|
||||||
expandToggle(): void {
|
|
||||||
this._$expand = !this._$expand;
|
|
||||||
this.sf?.setValue('/_$expand', this._$expand);
|
|
||||||
}
|
|
||||||
tabChange(item: any) {}
|
tabChange(item: any) {}
|
||||||
/**
|
|
||||||
* 重置表单
|
|
||||||
*/
|
|
||||||
resetSF(): void {
|
|
||||||
this.sf.reset();
|
|
||||||
this._$expand = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 导入货源
|
* 导入货源
|
||||||
@ -471,7 +457,7 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe((result: any) => {
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
this.st.load(1);
|
this.st.load(1);
|
||||||
this.getGoodsSourceStatistical()
|
this.getGoodsSourceStatistical();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 生成电子单据
|
// 生成电子单据
|
||||||
@ -493,29 +479,29 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
modalRef.afterClose.subscribe((result: any) => {
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
this.st.load();
|
this.st.load();
|
||||||
this.getGoodsSourceStatistical()
|
this.getGoodsSourceStatistical();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 通过
|
// 通过
|
||||||
sign(item?: any) {
|
sign(item?: any) {
|
||||||
let params: any = []
|
let params: any = [];
|
||||||
let text = '';
|
let text = '';
|
||||||
if (item === '1') {
|
if (item === '1') {
|
||||||
if (this.selectedRows.length <= 0) {
|
if (this.selectedRows.length <= 0) {
|
||||||
this.service.msgSrv.error('请选择订单!')
|
this.service.msgSrv.error('请选择订单!');
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
this.selectedRows.forEach(ite => {
|
this.selectedRows.forEach(ite => {
|
||||||
params.push(ite.id);
|
params.push(ite.id);
|
||||||
});
|
});
|
||||||
text = `<b>已选择${this.selectedRows.length}条订单,确认批量通过审核吗?</b>`
|
text = `<b>已选择${this.selectedRows.length}条订单,确认批量通过审核吗?</b>`;
|
||||||
} else {
|
} else {
|
||||||
text = `<b>确认通过审核吗?</b>`
|
text = `<b>确认通过审核吗?</b>`;
|
||||||
params.push(item.id);
|
params.push(item.id);
|
||||||
}
|
}
|
||||||
console.log(this.selectedRows)
|
console.log(this.selectedRows);
|
||||||
console.log(params)
|
console.log(params);
|
||||||
this.modal.confirm({
|
this.modal.confirm({
|
||||||
nzTitle: text,
|
nzTitle: text,
|
||||||
nzContent: `<b>通过后不可修改,可以再生成电子单据。</b>`,
|
nzContent: `<b>通过后不可修改,可以再生成电子单据。</b>`,
|
||||||
@ -535,8 +521,8 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
// 批量生成电子单据
|
// 批量生成电子单据
|
||||||
sign1(item?: any) {
|
sign1(item?: any) {
|
||||||
if (this.selectedRows?.length <= 0) {
|
if (this.selectedRows?.length <= 0) {
|
||||||
this.service.msgSrv.error('请选择订单!')
|
this.service.msgSrv.error('请选择订单!');
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
let params: any[] = [];
|
let params: any[] = [];
|
||||||
this.selectedRows.forEach(item => {
|
this.selectedRows.forEach(item => {
|
||||||
@ -545,14 +531,13 @@ export class OrderManagementReceiptsAuditComponent implements OnInit {
|
|||||||
this.modal.confirm({
|
this.modal.confirm({
|
||||||
nzTitle: `<b>已选择${this.selectedRows.length}条订单,确认批量生成电子单据吗?</b>`,
|
nzTitle: `<b>已选择${this.selectedRows.length}条订单,确认批量生成电子单据吗?</b>`,
|
||||||
nzContent: `<b>确认后单据不可修改,请谨慎操作。</b>`,
|
nzContent: `<b>确认后单据不可修改,请谨慎操作。</b>`,
|
||||||
nzOnOk: () =>
|
nzOnOk: () => {
|
||||||
{
|
this.service.downloadFile(this.service.$api_createBillEsignGoods, params);
|
||||||
this.service.downloadFile(this.service.$api_createBillEsignGoods,params)
|
|
||||||
this.service.msgSrv.success('生成成功!');
|
this.service.msgSrv.success('生成成功!');
|
||||||
this.st?.reload()
|
this.st?.reload();
|
||||||
// this.getGoodsSourceStatistical();
|
// this.getGoodsSourceStatistical();
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
// 获取所属项目
|
// 获取所属项目
|
||||||
getRegionCode(regionCode: any) {
|
getRegionCode(regionCode: any) {
|
||||||
|
|||||||
@ -9,30 +9,15 @@
|
|||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
<!-- 搜索表单 -->
|
<!-- 搜索表单 -->
|
||||||
<page-header-wrapper [title]="''"> </page-header-wrapper>
|
<!-- <page-header-wrapper [title]="''"> </page-header-wrapper>
|
||||||
<nz-card>
|
<nz-card>
|
||||||
<div nz-row nzGutter="8">
|
<div nz-row nzGutter="8">
|
||||||
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
|
||||||
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
|
||||||
<sf
|
|
||||||
#sf
|
|
||||||
[schema]="schema"
|
|
||||||
[ui]="ui"
|
|
||||||
[mode]="'search'"
|
|
||||||
[disabled]="!sf?.valid"
|
|
||||||
[loading]="false"
|
|
||||||
(formSubmit)="search()"
|
|
||||||
(formReset)="resetSF()"
|
|
||||||
></sf>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
|
||||||
<ng-container *ngIf="queryFieldCount > 4">
|
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||||||
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
|
||||||
</div>
|
</div>
|
||||||
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
|
||||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()" acl [acl-ability]="['ORDER-RISK-search']">查询</button>
|
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()" acl
|
||||||
|
[acl-ability]="['ORDER-RISK-search']">查询</button>
|
||||||
<button nz-button nzType="primary" [disabled]="false" (click)="exprot()">导出</button>
|
<button nz-button nzType="primary" [disabled]="false" (click)="exprot()">导出</button>
|
||||||
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
<button nz-button [disabled]="false" (click)="resetSF()">重置</button>
|
||||||
<button nz-button nzType="link" (click)="expandToggle()">
|
<button nz-button nzType="link" (click)="expandToggle()">
|
||||||
@ -40,11 +25,12 @@
|
|||||||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card> -->
|
||||||
|
|
||||||
<nz-card>
|
<nz-card class="table-box">
|
||||||
|
<div class="tab_header">
|
||||||
|
<label class="page_title"> <label class="driver">|</label> 风险单管理</label>
|
||||||
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
<nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate">
|
||||||
<nz-tab [nzTitle]="'全部'"></nz-tab>
|
<nz-tab [nzTitle]="'全部'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'待申诉(' + tabs?.stayQuantity + ')'"></nz-tab>
|
<nz-tab [nzTitle]="'待申诉(' + tabs?.stayQuantity + ')'"></nz-tab>
|
||||||
@ -52,18 +38,13 @@
|
|||||||
<nz-tab [nzTitle]="'申诉成功(' + tabs?.receivedQuantity + ')'"></nz-tab>
|
<nz-tab [nzTitle]="'申诉成功(' + tabs?.receivedQuantity + ')'"></nz-tab>
|
||||||
<nz-tab [nzTitle]="'申诉失败(' + tabs?.cancelQuantity + ')'"></nz-tab>
|
<nz-tab [nzTitle]="'申诉失败(' + tabs?.cancelQuantity + ')'"></nz-tab>
|
||||||
</nz-tabset>
|
</nz-tabset>
|
||||||
<div style="margin-top: 15px">
|
</div>
|
||||||
<st
|
|
||||||
#st
|
<div>
|
||||||
[bordered]="true"
|
<st #st [bordered]="true" [scroll]="{ x: '2000px',y:scrollY }" [data]="service.$api_get_listRiskPage" [columns]="columns"
|
||||||
[scroll]="{ x: '2000px' }"
|
|
||||||
[data]="service.$api_get_listRiskPage"
|
|
||||||
[columns]="columns"
|
|
||||||
[req]="{ process: beforeReq }"
|
[req]="{ process: beforeReq }"
|
||||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } , process: afterRes}"
|
[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"
|
|
||||||
>
|
|
||||||
<!-- <ng-template st-row="billCode" let-item let-index="index">
|
<!-- <ng-template st-row="billCode" let-item let-index="index">
|
||||||
<a [routerLink]="'/order-management/risk-detail/' + item.id">{{ item.billCode }}</a>
|
<a [routerLink]="'/order-management/risk-detail/' + item.id">{{ item.billCode }}</a>
|
||||||
<div>
|
<div>
|
||||||
@ -75,14 +56,18 @@
|
|||||||
</ng-template> -->
|
</ng-template> -->
|
||||||
<ng-template st-row="billCode" let-item let-index="index">
|
<ng-template st-row="billCode" let-item let-index="index">
|
||||||
<!-- <div>{{ item.billCode }}</div> -->
|
<!-- <div>{{ item.billCode }}</div> -->
|
||||||
<a *ngIf="item.billType == '1'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{ item.billCode }}</a>
|
<a *ngIf="item.billType == '1'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{
|
||||||
<a *ngIf="item.billType == '2'" [routerLink]="'/order-management/bulk/bulk-detail/' + item.id">{{ item.billCode }}</a>
|
item.billCode }}</a>
|
||||||
<a *ngIf="item.billType == '3'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{ item.billCode }}</a>
|
<a *ngIf="item.billType == '2'" [routerLink]="'/order-management/bulk/bulk-detail/' + item.id">{{ item.billCode
|
||||||
|
}}</a>
|
||||||
|
<a *ngIf="item.billType == '3'" [routerLink]="'/order-management/vehicle/vehicle-detail/' + item.id">{{
|
||||||
|
item.billCode }}</a>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ item?.representationsStatusLabel }}</span>
|
<span>{{ item?.representationsStatusLabel }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span >{{item?.billTypeLabel}}{{item?.billTypeLabel === item?.serviceTypeLabel ? '' : item?.serviceTypeLabel}}</span>
|
<span>{{item?.billTypeLabel}}{{item?.billTypeLabel === item?.serviceTypeLabel ? '' :
|
||||||
|
item?.serviceTypeLabel}}</span>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="timeer" let-item let-index="index">
|
<ng-template st-row="timeer" let-item let-index="index">
|
||||||
@ -96,7 +81,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="driverName" let-item let-index="index">
|
<ng-template st-row="driverName" let-item let-index="index">
|
||||||
<div> {{ item?.driverName }}{{ item?.driverPhone ? "/" + item?.driverPhone : '' }}{{ item?.carNo ? "/" + item?.carNo : ''}} </div>
|
<div> {{ item?.driverName }}{{ item?.driverPhone ? "/" + item?.driverPhone : '' }}{{ item?.carNo ? "/" +
|
||||||
|
item?.carNo : ''}} </div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template st-row="payeeName" let-item>
|
<ng-template st-row="payeeName" let-item>
|
||||||
<div *ngIf="item?.driverId !== item?.payeeId">
|
<div *ngIf="item?.driverId !== item?.payeeId">
|
||||||
@ -121,14 +107,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</nz-card>
|
</nz-card>
|
||||||
|
|
||||||
<nz-modal
|
<nz-modal [(nzVisible)]="isVisibleRE" [nzWidth]="600" [nzFooter]="nzModalFooterview2" (nzOnOk)="handleOK()" nzTitle="审核"
|
||||||
[(nzVisible)]="isVisibleRE"
|
(nzOnCancel)="handleCancel()">
|
||||||
[nzWidth]="600"
|
|
||||||
[nzFooter]="nzModalFooterview2"
|
|
||||||
(nzOnOk)="handleOK()"
|
|
||||||
nzTitle="审核"
|
|
||||||
(nzOnCancel)="handleCancel()"
|
|
||||||
>
|
|
||||||
<ng-container *nzModalContent>
|
<ng-container *nzModalContent>
|
||||||
<sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'"> </sf>
|
<sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'"> </sf>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
@ -139,7 +119,10 @@
|
|||||||
</nz-modal>
|
</nz-modal>
|
||||||
|
|
||||||
<ng-template #extraTemplate>
|
<ng-template #extraTemplate>
|
||||||
<div>
|
<div class="mr-sm">
|
||||||
|
<button nz-button nzDanger [nzLoading]="service.http.loading" (click)="openDrawer()" acl
|
||||||
|
[acl-ability]="['ORDER-RISK-search']">筛选</button>
|
||||||
|
<button nz-button nzDanger [disabled]="false" (click)="exprot()">导出</button>
|
||||||
<button nz-button nzType="primary" (click)="audit()" acl [acl-ability]="['ORDER-RISK-batchAudit']"> 批量审核 </button>
|
<button nz-button nzType="primary" (click)="audit()" acl [acl-ability]="['ORDER-RISK-batchAudit']"> 批量审核 </button>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
@ -1,13 +0,0 @@
|
|||||||
|
|
||||||
:host {
|
|
||||||
p{
|
|
||||||
margin-bottom: 0
|
|
||||||
}
|
|
||||||
.left_btn {
|
|
||||||
width: 50px;
|
|
||||||
height: 32px;
|
|
||||||
padding-left: 8px;
|
|
||||||
line-height:32px;
|
|
||||||
background-color: #d7d7d7;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -4,21 +4,20 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { STColumn, STComponent, STRequestOptions } 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 { SearchDrawerService, 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';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
import { OrderManagementService } from '../../services/order-management.service';
|
import { OrderManagementService } from '../../services/order-management.service';
|
||||||
|
import { BasicTableComponent } from 'src/app/routes/commom/components/basic-table/basic-table.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-supply-management-risk',
|
selector: 'app-supply-management-risk',
|
||||||
templateUrl: './risk.component.html',
|
templateUrl: './risk.component.html',
|
||||||
styleUrls: ['./risk.component.less']
|
styleUrls: ['../../../commom/less/commom-table.less', './risk.component.less']
|
||||||
})
|
})
|
||||||
export class OrderManagementRiskComponent implements OnInit {
|
export class OrderManagementRiskComponent extends BasicTableComponent implements OnInit {
|
||||||
ui: SFUISchema = {};
|
|
||||||
uiView: SFUISchema = {};
|
uiView: SFUISchema = {};
|
||||||
schema: SFSchema = {};
|
|
||||||
schemaView: SFSchema = {};
|
schemaView: SFSchema = {};
|
||||||
auditMany = false;
|
auditMany = false;
|
||||||
loading: boolean = true;
|
loading: boolean = true;
|
||||||
@ -26,7 +25,6 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
auditIdR: any;
|
auditIdR: any;
|
||||||
isVisibleRE = false;
|
isVisibleRE = false;
|
||||||
resourceStatus: any;
|
resourceStatus: any;
|
||||||
_$expand = false;
|
|
||||||
@ViewChild('st') private readonly st!: STComponent;
|
@ViewChild('st') private readonly st!: STComponent;
|
||||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||||
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
|
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
|
||||||
@ -41,8 +39,11 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
public service: OrderManagementService,
|
public service: OrderManagementService,
|
||||||
public shipperservice: ShipperBaseService,
|
public shipperservice: ShipperBaseService,
|
||||||
private modal: NzModalService,
|
private modal: NzModalService,
|
||||||
public router: Router
|
public router: Router,
|
||||||
) { }
|
public searchDrawerService: SearchDrawerService
|
||||||
|
) {
|
||||||
|
super(searchDrawerService);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询参数
|
* 查询参数
|
||||||
@ -50,7 +51,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
get reqParams() {
|
get reqParams() {
|
||||||
const a: any = {};
|
const a: any = {};
|
||||||
if (this.resourceStatus) {
|
if (this.resourceStatus) {
|
||||||
a.representationsStatus = this.resourceStatus
|
a.representationsStatus = this.resourceStatus;
|
||||||
}
|
}
|
||||||
const params: any = Object.assign({}, this.sf?.value || {});
|
const params: any = Object.assign({}, this.sf?.value || {});
|
||||||
delete params._$expand;
|
delete params._$expand;
|
||||||
@ -59,14 +60,14 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
...params,
|
...params,
|
||||||
createTime: {
|
createTime: {
|
||||||
start: this.sf?.value?.createTime?.[0] || '',
|
start: this.sf?.value?.createTime?.[0] || '',
|
||||||
end: this.sf?.value?.createTime?.[1] || '',
|
end: this.sf?.value?.createTime?.[1] || ''
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
beforeReq = (requestOptions: STRequestOptions) => {
|
beforeReq = (requestOptions: STRequestOptions) => {
|
||||||
const a: any = {};
|
const a: any = {};
|
||||||
if (this.resourceStatus) {
|
if (this.resourceStatus) {
|
||||||
a.representationsStatus = this.resourceStatus
|
a.representationsStatus = this.resourceStatus;
|
||||||
}
|
}
|
||||||
const params: any = Object.assign({}, this.sf?.value || {});
|
const params: any = Object.assign({}, this.sf?.value || {});
|
||||||
delete params._$expand;
|
delete params._$expand;
|
||||||
@ -76,16 +77,16 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
...params,
|
...params,
|
||||||
createTime: {
|
createTime: {
|
||||||
start: this.sf?.value?.createTime?.[0] || '',
|
start: this.sf?.value?.createTime?.[0] || '',
|
||||||
end: this.sf?.value?.createTime?.[1] || '',
|
end: this.sf?.value?.createTime?.[1] || ''
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
return requestOptions;
|
return requestOptions;
|
||||||
};
|
};
|
||||||
afterRes = (data: any[], rawData?: any) => {
|
afterRes = (data: any[], rawData?: any) => {
|
||||||
console.log(data)
|
console.log(data);
|
||||||
this.loading = false
|
this.loading = false;
|
||||||
return data.map(item => ({
|
return data.map(item => ({
|
||||||
...item,
|
...item,
|
||||||
disabled: item.representationsStatus !== '2'
|
disabled: item.representationsStatus !== '2'
|
||||||
@ -93,13 +94,13 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
search() {
|
search() {
|
||||||
this.st?.load(1);
|
this.st?.load(1);
|
||||||
this.getGoodsSourceStatistical()
|
this.getGoodsSourceStatistical();
|
||||||
}
|
}
|
||||||
get selectedRows() {
|
get selectedRows() {
|
||||||
return this.st?.list.filter(item => item.checked) || [];
|
return this.st?.list.filter(item => item.checked) || [];
|
||||||
}
|
}
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.getGoodsSourceStatistical()
|
this.getGoodsSourceStatistical();
|
||||||
this.initSF();
|
this.initSF();
|
||||||
this.initST();
|
this.initST();
|
||||||
}
|
}
|
||||||
@ -109,18 +110,18 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
res.forEach((element: any) => {
|
res.forEach((element: any) => {
|
||||||
console.log(element.representationsStatus);
|
console.log(element.representationsStatus);
|
||||||
if (element.representationsStatus === '1') {
|
if (element.representationsStatus === '1') {
|
||||||
this.tabs.stayQuantity = element.quantity
|
this.tabs.stayQuantity = element.quantity;
|
||||||
} else if (element.representationsStatus == '4') {
|
} else if (element.representationsStatus == '4') {
|
||||||
this.tabs.cancelQuantity = element.quantity
|
this.tabs.cancelQuantity = element.quantity;
|
||||||
} else if (element.representationsStatus == '3') {
|
} else if (element.representationsStatus == '3') {
|
||||||
this.tabs.receivedQuantity = element.quantity
|
this.tabs.receivedQuantity = element.quantity;
|
||||||
} else if (element.representationsStatus == '2') {
|
} else if (element.representationsStatus == '2') {
|
||||||
this.tabs.underwayQuantity = element.quantity
|
this.tabs.underwayQuantity = element.quantity;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log(this.tabs)
|
console.log(this.tabs);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 初始化查询表单
|
* 初始化查询表单
|
||||||
@ -146,48 +147,23 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
loadingPlace: {
|
loadingPlace: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '装货地',
|
title: '装货地'
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
dischargePlace: {
|
dischargePlace: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '卸货地',
|
title: '卸货地'
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
driverName: {
|
driverName: {
|
||||||
title: '承运司机',
|
title: '承运司机',
|
||||||
type: 'string',
|
type: 'string'
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
carNo: {
|
carNo: {
|
||||||
title: '车牌号',
|
title: '车牌号',
|
||||||
type: 'string',
|
type: 'string'
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
payeeName: {
|
payeeName: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '车队长',
|
title: '车队长'
|
||||||
ui: {
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
wayBillType: {
|
wayBillType: {
|
||||||
title: '运单类型',
|
title: '运单类型',
|
||||||
@ -195,10 +171,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'dict-select',
|
widget: 'dict-select',
|
||||||
params: { dictKey: 'bill:type' },
|
params: { dictKey: 'bill:type' },
|
||||||
containsAllLabel: true,
|
containsAllLabel: true
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
shipperAppUserName: {
|
shipperAppUserName: {
|
||||||
@ -210,11 +183,8 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
searchDebounceTime: 300,
|
searchDebounceTime: 300,
|
||||||
searchLoadingText: '搜索中...',
|
searchLoadingText: '搜索中...',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
},
|
|
||||||
onSearch: (q: any) => {
|
onSearch: (q: any) => {
|
||||||
let str =q.replace(/^\s+|\s+$/g,"");
|
let str = q.replace(/^\s+|\s+$/g, '');
|
||||||
if (str) {
|
if (str) {
|
||||||
return this.service
|
return this.service
|
||||||
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
||||||
@ -223,7 +193,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
return of([]);
|
return of([]);
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
},
|
},
|
||||||
enterpriseInfoId: {
|
enterpriseInfoId: {
|
||||||
@ -233,11 +203,8 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
visibleIf: {
|
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
||||||
_$expand: (value: boolean) => value,
|
}
|
||||||
},
|
|
||||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder(),
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
createTime: {
|
createTime: {
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
@ -246,16 +213,12 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
widget: 'date',
|
widget: 'date',
|
||||||
mode: 'range',
|
mode: 'range',
|
||||||
format: 'yyyy-MM-dd',
|
format: 'yyyy-MM-dd',
|
||||||
allowClear: true,
|
allowClear: true
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
type: 'object'
|
type: 'object'
|
||||||
};
|
};
|
||||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -348,13 +311,13 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
text: '审核',
|
text: '审核',
|
||||||
click: _record => this.audit(_record),
|
click: _record => this.audit(_record),
|
||||||
iif: item => item.representationsStatus == '2',
|
iif: item => item.representationsStatus == '2',
|
||||||
acl: { ability: ['ORDER-RISK-audit'] },
|
acl: { ability: ['ORDER-RISK-audit'] }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '详情',
|
text: '详情',
|
||||||
click: _record => this.viewEvaluate(_record),
|
click: _record => this.viewEvaluate(_record),
|
||||||
iif: item => item.representationsStatus !== '1',
|
iif: item => item.representationsStatus !== '1',
|
||||||
acl: { ability: ['ORDER-RISK-riskDetail'] },
|
acl: { ability: ['ORDER-RISK-riskDetail'] }
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -419,30 +382,10 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
|
|
||||||
this.uiView = { '*': { spanLabelFixed: 110, grid: { span: 24 } } };
|
this.uiView = { '*': { spanLabelFixed: 110, grid: { span: 24 } } };
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 查询字段个数
|
|
||||||
*/
|
|
||||||
get queryFieldCount(): number {
|
|
||||||
return Object.keys(this.schema?.properties || {}).length;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* 伸缩查询条件
|
|
||||||
*/
|
|
||||||
expandToggle(): void {
|
|
||||||
this._$expand = !this._$expand;
|
|
||||||
this.sf?.setValue('/_$expand', this._$expand);
|
|
||||||
}
|
|
||||||
tabChange(item: any) {
|
tabChange(item: any) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 重置表单
|
|
||||||
*/
|
|
||||||
resetSF(): void {
|
|
||||||
this.sf.reset();
|
|
||||||
this._$expand = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
selectChange(e: number) {
|
selectChange(e: number) {
|
||||||
this.resourceStatus = e;
|
this.resourceStatus = e;
|
||||||
@ -472,20 +415,20 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
idList.push(item.id);
|
idList.push(item.id);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
idList.push(this.sfView.value.id)
|
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,
|
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) {
|
||||||
this.service.msgSrv.success('审核通过成功!');
|
this.service.msgSrv.success('审核通过成功!');
|
||||||
this.isVisibleRE = false;
|
this.isVisibleRE = false;
|
||||||
this.st?.load(1);
|
this.st?.load(1);
|
||||||
this.getGoodsSourceStatistical()
|
this.getGoodsSourceStatistical();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -499,7 +442,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
idList.push(item.id);
|
idList.push(item.id);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
idList.push(this.sfView.value.id)
|
idList.push(this.sfView.value.id);
|
||||||
}
|
}
|
||||||
if (!this.sfView.value.representationsCause) {
|
if (!this.sfView.value.representationsCause) {
|
||||||
this.service.msgSrv.error('拒绝原因为空!');
|
this.service.msgSrv.error('拒绝原因为空!');
|
||||||
@ -509,14 +452,14 @@ 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,
|
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) {
|
||||||
this.service.msgSrv.success('审核拒绝成功!');
|
this.service.msgSrv.success('审核拒绝成功!');
|
||||||
this.isVisibleRE = false;
|
this.isVisibleRE = false;
|
||||||
this.st?.load(1);
|
this.st?.load(1);
|
||||||
this.getGoodsSourceStatistical()
|
this.getGoodsSourceStatistical();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -531,7 +474,7 @@ export class OrderManagementRiskComponent implements OnInit {
|
|||||||
this.isVisibleRE = true;
|
this.isVisibleRE = true;
|
||||||
} else {
|
} else {
|
||||||
if (this.selectedRows.length <= 0) {
|
if (this.selectedRows.length <= 0) {
|
||||||
this.service.msgSrv.error('请选择订单!')
|
this.service.msgSrv.error('请选择订单!');
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
this.initSTAudit(2);
|
this.initSTAudit(2);
|
||||||
|
|||||||
@ -369,7 +369,7 @@
|
|||||||
<sv-container col="3" class="mt16">
|
<sv-container col="3" class="mt16">
|
||||||
<sv-title>合伙人信息</sv-title>
|
<sv-title>合伙人信息</sv-title>
|
||||||
<sv label="合伙人名称">
|
<sv label="合伙人名称">
|
||||||
{{partnerInfo.partnerEnterpriseName}}
|
{{partnerInfo.partnerContactName}}
|
||||||
</sv>
|
</sv>
|
||||||
<sv label="手机号">
|
<sv label="手机号">
|
||||||
<input nz-input type="text" [(ngModel)]="partnerInfo.partnerContactMobile" [readonly]="!isEdit"
|
<input nz-input type="text" [(ngModel)]="partnerInfo.partnerContactMobile" [readonly]="!isEdit"
|
||||||
|
|||||||
@ -116,7 +116,7 @@ export class FreightComponentsListDetailComponent implements OnInit, OnDestroy {
|
|||||||
className: 'text-center'
|
className: 'text-center'
|
||||||
},
|
},
|
||||||
{ title: '修改时间', render: 'modifyTime', className: 'text-center' },
|
{ title: '修改时间', render: 'modifyTime', className: 'text-center' },
|
||||||
{ title: '生效时间', render: 'effectiveTime', className: 'text-center' },
|
{ title: '生效时间', index: 'effectiveTime', className: 'text-center' },
|
||||||
{ title: '操作人', render: 'approvalUser', className: 'text-center' },
|
{ title: '操作人', render: 'approvalUser', className: 'text-center' },
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -57,6 +57,9 @@
|
|||||||
<ng-template st-row="contacter" let-item let-index="index">
|
<ng-template st-row="contacter" let-item let-index="index">
|
||||||
{{ item.contacter }}<br>/{{item.mobile}}
|
{{ item.contacter }}<br>/{{item.mobile}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
<ng-template st-row="partnerName" let-item let-index="index">
|
||||||
|
{{ item.partnerName }}<br>/{{item.promotersTelephone}}
|
||||||
|
</ng-template>
|
||||||
<ng-template st-row="promotersTelephone" let-item let-index="index">
|
<ng-template st-row="promotersTelephone" let-item let-index="index">
|
||||||
<a acl [acl-ability]="['USERCENTER-FREIGHT-LIST-salesman']" (click)="addPromoter(item)">{{ item.promotersTelephone
|
<a acl [acl-ability]="['USERCENTER-FREIGHT-LIST-salesman']" (click)="addPromoter(item)">{{ item.promotersTelephone
|
||||||
|| '添加' }}</a>
|
|| '添加' }}</a>
|
||||||
|
|||||||
@ -424,7 +424,7 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
enum: { 10: '整车发货', 20: '大宗发货' },
|
enum: { 10: '整车发货', 20: '大宗发货' },
|
||||||
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: 'partnerName', width: 150 },
|
{ title: '合伙人', className: 'text-center', render: 'partnerName', width: 150 },
|
||||||
{ title: '客服人员', className: 'text-center', index: 'customerServiceIdLabel', width: 150 },
|
{ title: '客服人员', className: 'text-center', index: 'customerServiceIdLabel', width: 150 },
|
||||||
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 180 },
|
{ title: '网络货运人', className: 'text-center', index: 'netTranName', width: 180 },
|
||||||
|
|||||||
3
src/app/shared/components/search-drawer/index.ts
Normal file
3
src/app/shared/components/search-drawer/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export * from './search-drawer.component';
|
||||||
|
export * from './search-drawer.module';
|
||||||
|
export * from './search-drawer.service';
|
||||||
@ -22,6 +22,7 @@ export * from './components/dynamic-setting';
|
|||||||
export * from './components/singlepage-setting';
|
export * from './components/singlepage-setting';
|
||||||
export * from './components/insurance-table/index';
|
export * from './components/insurance-table/index';
|
||||||
export * from './components/rebate-table/index';
|
export * from './components/rebate-table/index';
|
||||||
|
export * from './components/search-drawer';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
export * from './utils';
|
export * from './utils';
|
||||||
|
|||||||
Reference in New Issue
Block a user