Merge branch 'st_ui' into develop
This commit is contained in:
		| @ -9,30 +9,16 @@ | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
| --> | ||||
| <!-- 搜索表单 --> | ||||
| <page-header-wrapper [title]="''"> </page-header-wrapper> | ||||
| <nz-card> | ||||
| <!-- <page-header-wrapper [title]="''"> </page-header-wrapper> --> | ||||
| <!-- <nz-card class="search-box"> | ||||
|   <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"> | ||||
|         <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> | ||||
|       </div> | ||||
|       <div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right"> | ||||
|         <button nz-button nzType="primary" [nzLoading]="loading" (click)="search()"  acl  [acl-ability]="['ORDER-VEHICLE-search']">查询</button> | ||||
|       <div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right" [class.expend-options]="_$expand"> | ||||
|         <button nz-button nzType="primary" [nzLoading]="loading" (click)="search()" acl | ||||
|           [acl-ability]="['ORDER-VEHICLE-search']">查询</button> | ||||
|         <button nz-button nzType="primary" [disabled]="loading">导出</button> | ||||
|         <button nz-button [disabled]="loading" (click)="resetSF()">重置</button> | ||||
|         <button nz-button nzType="link" (click)="expandToggle()"> | ||||
| @ -42,30 +28,29 @@ | ||||
|       </div> | ||||
|     </ng-container> | ||||
|   </div> | ||||
| </nz-card> | ||||
| </nz-card> --> | ||||
|  | ||||
| <nz-card> | ||||
|   <nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate"> | ||||
|     <nz-tab [nzTitle]="'全部(' + tabs?.totalCount + ')'"></nz-tab> | ||||
|     <nz-tab [nzTitle]="'待接单(' + tabs?.receivedQuantity + ')'"></nz-tab> | ||||
|     <nz-tab [nzTitle]="'待发车(' + tabs?.stayQuantity + ')'"></nz-tab> | ||||
|     <nz-tab [nzTitle]="'运输中(' + tabs?.GoingQuantity + ')'"></nz-tab> | ||||
|     <nz-tab [nzTitle]="'待签收(' + tabs?.signQuantity + ')'"></nz-tab> | ||||
|     <nz-tab [nzTitle]="'已完成(' + tabs?.compolatelQuantity + ')'"></nz-tab> | ||||
|     <nz-tab [nzTitle]="'已取消(' + tabs?.cancelQuantity + ')'"></nz-tab> | ||||
|   </nz-tabset> | ||||
|   <div style="margin-top: 15px"> | ||||
|     <st | ||||
|       #st | ||||
|       [bordered]="true" | ||||
|       multiSort | ||||
|       [scroll]="{ x: '1200px' }" | ||||
|       [data]="service.$api_get_listWholePage" | ||||
|       [columns]="columns" | ||||
|       [req]="{  process: beforeReq }" | ||||
| <nz-card class="table-box"> | ||||
|   <div style="display: flex;align-items: center;"> | ||||
|     <label style="font-weight: bold;font-size: 17px;"> | ||||
|       <label style="color: #ff4d4f;margin-left: 17px;margin-right: 6px;">|</label> | ||||
|       整车订单</label> | ||||
|     <nz-tabset (nzSelectedIndexChange)="selectChange($event)" [nzTabBarExtraContent]="extraTemplate" style="flex: 1;"> | ||||
|       <nz-tab [nzTitle]="'全部(' + tabs?.totalCount + ')'"></nz-tab> | ||||
|       <nz-tab [nzTitle]="'待接单(' + tabs?.receivedQuantity + ')'"></nz-tab> | ||||
|       <nz-tab [nzTitle]="'待发车(' + tabs?.stayQuantity + ')'"></nz-tab> | ||||
|       <nz-tab [nzTitle]="'运输中(' + tabs?.GoingQuantity + ')'"></nz-tab> | ||||
|       <nz-tab [nzTitle]="'待签收(' + tabs?.signQuantity + ')'"></nz-tab> | ||||
|       <nz-tab [nzTitle]="'已完成(' + tabs?.compolatelQuantity + ')'"></nz-tab> | ||||
|       <nz-tab [nzTitle]="'已取消(' + tabs?.cancelQuantity + ')'"></nz-tab> | ||||
|     </nz-tabset> | ||||
|   </div> | ||||
|  | ||||
|   <div> | ||||
|     <st #st [bordered]="true" multiSort [scroll]="{  x:'1200px',y:scrollY }" [data]="service.$api_get_listWholePage" | ||||
|       [columns]="columns" [req]="{  process: beforeReq }" | ||||
|       [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] }"> | ||||
|       <ng-template st-row="billCode" let-item let-index="index"> | ||||
|         <a [routerLink]="'vehicle-detail/' + item.id">{{ item.billCode }}</a> | ||||
|         <div> | ||||
| @ -97,8 +82,9 @@ | ||||
|       <ng-template st-row="mybidDetailInfo" let-item let-index="index"> | ||||
|         <div *ngIf="item.mybidDetailInfo.length > 0"> | ||||
|           <div *ngFor="let data of item.mybidDetailInfo"> | ||||
|             {{ data.expenseName }}:{{ data.price | currency  }} | ||||
|             <span *ngIf="data.paymentStatus && data.paymentStatus === '1' && data.price>0" style="color: #f59a63">待申请</span> | ||||
|             {{ data.expenseName }}:{{ data.price | currency }} | ||||
|             <span *ngIf="data.paymentStatus && data.paymentStatus === '1' && data.price>0" | ||||
|               style="color: #f59a63">待申请</span> | ||||
|             <span *ngIf="data.paymentStatus && data.paymentStatus === '2'" style="color: #f59a63">已支付</span> | ||||
|             <span *ngIf="data.paymentStatus && data.paymentStatus === '3'" style="color: #f59a63">已拒绝</span> | ||||
|             <span *ngIf="data.paymentStatus && data.paymentStatus === '4'" style="color: #f59a63">申请中</span> | ||||
| @ -124,20 +110,18 @@ | ||||
|       </ng-template> | ||||
|     </st> | ||||
|   </div> | ||||
|   <div class="footer-page"> | ||||
|  | ||||
|   </div> | ||||
| </nz-card> | ||||
|  | ||||
| <nz-modal [(nzVisible)]="isVisible" [nzWidth]="600" [nzFooter]="nzModalFooter" nzTitle="运费变更记录" (nzOnCancel)="handleCancel('0')"> | ||||
| <nz-modal [(nzVisible)]="isVisible" [nzWidth]="600" [nzFooter]="nzModalFooter" nzTitle="运费变更记录" | ||||
|   (nzOnCancel)="handleCancel('0')"> | ||||
|   <ng-container *nzModalContent> | ||||
|     <st | ||||
|       #stFloat | ||||
|       multiSort | ||||
|       size="small" | ||||
|       [bordered]="true" | ||||
|       [data]="service.$api_get_listChangeApply" | ||||
|     <st #stFloat multiSort size="small" [bordered]="true" [data]="service.$api_get_listChangeApply" | ||||
|       [columns]="columnsFloat" | ||||
|       [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: changeParams }" | ||||
|       [res]="{ reName: { list: 'data', total: 'data.total' } }" | ||||
|     > | ||||
|       [res]="{ reName: { list: 'data', total: 'data.total' } }"> | ||||
|       <ng-template st-row="order" let-item let-index="index"> | ||||
|         {{ index + 1 }} | ||||
|       </ng-template> | ||||
| @ -149,31 +133,23 @@ | ||||
|   </ng-template> | ||||
| </nz-modal> | ||||
|  | ||||
| <nz-modal [(nzVisible)]="isVisibleView" [nzWidth]="600" [nzFooter]="nzModalFooterview" nzTitle="查看" (nzOnCancel)="handleCancel('1')"> | ||||
| <nz-modal [(nzVisible)]="isVisibleView" [nzWidth]="600" [nzFooter]="nzModalFooterview" nzTitle="查看" | ||||
|   (nzOnCancel)="handleCancel('1')"> | ||||
|   <ng-container *nzModalContent> | ||||
|     <st | ||||
|       #stFloatView | ||||
|       size="small" | ||||
|       [bordered]="true" | ||||
|       [data]="service.$api_getChangeRecordWholeDetail" | ||||
|       [columns]="columnsFloatView" | ||||
|       [req]="{ method: 'POST', allInBody: true, params: changeViewParams }" | ||||
|       [res]="{ reName: { list: 'data.list', total: 'data.total' } }" | ||||
|     > | ||||
|     <st #stFloatView size="small" [bordered]="true" [data]="service.$api_getChangeRecordWholeDetail" | ||||
|       [columns]="columnsFloatView" [req]="{ method: 'POST', allInBody: true, params: changeViewParams }" | ||||
|       [res]="{ reName: { list: 'data.list', total: 'data.total' } }"> | ||||
|       <ng-template st-row="amountBeforeChange" let-item let-index="index"> | ||||
|         {{ item.amountBeforeChange | currency }} | ||||
|       </ng-template> | ||||
|       <ng-template st-row="amountchangeValue" let-item let-index="index"> ¥{{ item.amountchangeValue | number: '0.2-2' }} </ng-template> | ||||
|       <ng-template st-row="amountchangeValue" let-item let-index="index"> ¥{{ item.amountchangeValue | number: '0.2-2' | ||||
|         }} </ng-template> | ||||
|       <ng-template st-row="amountAfterChange" let-item let-index="index"> | ||||
|         {{ item.amountAfterChange | currency }} | ||||
|       </ng-template> | ||||
|     </st> | ||||
|     <div | ||||
|       ><span>变更原因:{{ ViewCause?.changeCause }}</span></div | ||||
|     > | ||||
|     <div | ||||
|       ><span>拒绝原因:{{ ViewCause?.refuseCause }}</span></div | ||||
|     > | ||||
|     <div><span>变更原因:{{ ViewCause?.changeCause }}</span></div> | ||||
|     <div><span>拒绝原因:{{ ViewCause?.refuseCause }}</span></div> | ||||
|     <div><span>注:附加费依据调整后的运输费用重新计算</span></div> | ||||
|   </ng-container> | ||||
|   <ng-template #nzModalFooterview> | ||||
| @ -182,7 +158,8 @@ | ||||
|   </ng-template> | ||||
| </nz-modal> | ||||
|  | ||||
| <nz-modal [(nzVisible)]="isVisibleEvaluate" [nzWidth]="600" [nzFooter]="nzModalFooterEvaluate" (nzOnCancel)="handleCancel('2')"> | ||||
| <nz-modal [(nzVisible)]="isVisibleEvaluate" [nzWidth]="600" [nzFooter]="nzModalFooterEvaluate" | ||||
|   (nzOnCancel)="handleCancel('2')"> | ||||
|   <ng-container *nzModalContent> | ||||
|     <nz-tabset> | ||||
|       <nz-tab nzTitle="货主评价"> | ||||
| @ -208,32 +185,44 @@ | ||||
|     <button nz-button nzType="primary" (click)="handleCancel('2')">确定</button> | ||||
|   </ng-template> | ||||
| </nz-modal> | ||||
|  | ||||
| <nz-drawer [nzBodyStyle]="{ overflow: 'auto' }" [nzMaskClosable]="false" [nzWidth]="420" [nzVisible]="visible" | ||||
|   [nzMaskClosable]="true" nzTitle="筛选" [nzFooter]="footerTpl" (nzOnClose)="visible=false"> | ||||
|   <div *nzDrawerContent> | ||||
|     <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> | ||||
|   </div> | ||||
|   <ng-template #footerTpl> | ||||
|     <div style="float: right"> | ||||
|       <button nz-button  (click)="visible=false">关闭</button> | ||||
|       <button nz-button [disabled]="loading" (click)="resetSF()">重置</button> | ||||
|       <button nz-button nzType="primary" (click)="search();;">搜索</button> | ||||
|     </div> | ||||
|   </ng-template> | ||||
| </nz-drawer> | ||||
|  | ||||
| <ng-template #extraTemplate> | ||||
|   <div> | ||||
|     <button nz-button nzType="primary" (click)="modifyRate()"  acl  [acl-ability]="['ORDER-VEHICLE-modificationAdditional']"> 修改附加费率 </button> | ||||
|     <button nz-button nzType="primary" (click)="modifyFreightPeople()"  acl  [acl-ability]="['ORDER-VEHICLE-modificationNetworkFreight']"> 修改网络货运人 </button> | ||||
|     <button nz-button nzType="primary" (click)="modifycaptain()"  acl  [acl-ability]="['ORDER-VEHICLE-modificationCarCaptain']"> 修改车队长 </button> | ||||
|     <button | ||||
|     *ngIf="resourceStatus == 4" | ||||
|       nz-button | ||||
|       nzType="primary" | ||||
|       nzGhost | ||||
|       nz-popconfirm | ||||
|       [nzPopconfirmTitle]="enable" | ||||
|       (nzOnConfirm)="userAction()" | ||||
|       nzPopconfirmPlacement="bottomRight" | ||||
|       acl  [acl-ability]="['ORDER-VEHICLE-batchSignWholeOrder']" | ||||
|     > | ||||
|     <button nz-button nzType="primary" (click)="modifyRate()" acl | ||||
|       [acl-ability]="['ORDER-VEHICLE-modificationAdditional']"> 修改附加费率 </button> | ||||
|     <button nz-button nzType="primary" (click)="modifyFreightPeople()" acl | ||||
|       [acl-ability]="['ORDER-VEHICLE-modificationNetworkFreight']"> 修改网络货运人 </button> | ||||
|     <button nz-button nzType="primary" (click)="modifycaptain()" acl | ||||
|       [acl-ability]="['ORDER-VEHICLE-modificationCarCaptain']"> 修改车队长 </button> | ||||
|     <button *ngIf="resourceStatus == 4" nz-button nzType="primary" nzGhost nz-popconfirm [nzPopconfirmTitle]="enable" | ||||
|       (nzOnConfirm)="userAction()" nzPopconfirmPlacement="bottomRight" acl | ||||
|       [acl-ability]="['ORDER-VEHICLE-batchSignWholeOrder']"> | ||||
|       批量签收 | ||||
|     </button> | ||||
|     <button nz-button nzType="primary" [disabled]="loading">导出</button> | ||||
|     <button nz-button nzType="primary" (click)="visible=true;" class="mr-sm">筛选</button> | ||||
|   </div> | ||||
| </ng-template> | ||||
| <ng-template #enable> | ||||
|   <div class="ant-popover-message"> | ||||
|     <i nz-icon nzType="info-circle" nzTheme="fill"></i> | ||||
|     <div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px" | ||||
|       >已选择{{ selectedRows?.length || 0 }}条订单,确认批量签收吗? | ||||
|     <div class="ant-popover-message-title ng-star-inserted self-ant-popover-title" style="font-size: 16px">已选择{{ | ||||
|       selectedRows?.length || 0 }}条订单,确认批量签收吗? | ||||
|     </div> | ||||
|     <div class="ant-popover-message-title ng-star-inserted"> 签收后不可再修改运费,请确保运费等信息准确无误后,再进行签收。 </div> | ||||
|   </div> | ||||
| </ng-template> | ||||
| </ng-template> | ||||
| @ -1,5 +0,0 @@ | ||||
| :host { | ||||
|     p{ | ||||
|         margin-bottom: 0 | ||||
|     } | ||||
| } | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user