This commit is contained in:
Taric Xin
2022-02-21 16:23:08 +08:00
16 changed files with 70 additions and 59 deletions

View File

@ -640,13 +640,14 @@ resourceStatus: any;
*变更运费 *变更运费
*/ */
updateFreight(item: any) { updateFreight(item: any) {
console.log(item?.isFreightChangeApplication)
this.service.request(this.service.$api_get_getFreightChangeWholeDetail, { id: item.id }).subscribe(data => { this.service.request(this.service.$api_get_getFreightChangeWholeDetail, { id: item.id }).subscribe(data => {
if (data) { if (data) {
const modal = this.modal.create({ const modal = this.modal.create({
nzTitle: '变更运费', nzTitle: '变更运费',
nzWidth: 580, nzWidth: 580,
nzContent: VehicleUpdateFreightComponent, nzContent: VehicleUpdateFreightComponent,
nzComponentParams: { data: { ...data, id: item.id } }, nzComponentParams: { data: { ...data, id: item.id,isFreightChangeApplication: item?.isFreightChangeApplication } },
nzFooter: null, nzFooter: null,
// nzOnOk: sin => { // nzOnOk: sin => {
// this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => { // this.service.request(this.service.$api_change_bulk, { billId: item.id, ...sin.sf.value }).subscribe(res => {

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-14 14:03:07 * @Date : 2021-12-14 14:03:07
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-01-24 16:40:01 * @LastEditTime : 2022-02-21 14:44:38
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\bulk\\update-freight\\update-freight.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\bulk\\update-freight\\update-freight.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->
@ -33,10 +33,10 @@
<div> <div>
<p style="font-size: 16px"> <p style="font-size: 16px">
<span style="font-weight: bolder" <span style="font-weight: bolder"
>总运费:<span style="color: #dc112a">{{ data.totalFreight |currency }}</span></span >总运费:<span style="color: #dc112a">{{ data.totalAmount |currency }}</span></span
> >
</p> </p>
<p style="margin-bottom: 0"> 运输费:{{ data.freight |currency }},附加费:{{ data.surcharge |currency}}</p> <p style="margin-bottom: 0"> 运输费:{{ data.totalFreight |currency }},附加费:{{ data.totalSurcharge |currency}}</p>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button nz-button type="button" (click)="close()">关闭</button> <button nz-button type="button" (click)="close()">关闭</button>

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-15 13:17:42 * @Date : 2021-12-15 13:17:42
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-02-11 11:08:42 * @LastEditTime : 2022-02-21 14:27:51
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.html * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
--> -->

View File

@ -4,7 +4,7 @@
* @Author : Shiming * @Author : Shiming
* @Date : 2021-12-15 13:17:42 * @Date : 2021-12-15 13:17:42
* @LastEditors : Shiming * @LastEditors : Shiming
* @LastEditTime : 2022-02-14 09:34:18 * @LastEditTime : 2022-02-21 14:27:50
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved. * Copyright (C) 2022 huzhenhong. All rights reserved.
*/ */
@ -122,7 +122,11 @@ export class VehicleUpdateFreightComponent implements OnInit {
} }
save(value: any): void { save(value: any): void {
if (!this.sf.valid) { if (this.data.isFreightChangeApplication) {
this.service.msgSrv.error('变更申请未处理,请勿重复申请!');
return;
}
if (!this.save) {
this.service.msgSrv.error('请填写必填项!'); this.service.msgSrv.error('请填写必填项!');
return; return;
} }

View File

@ -13,9 +13,9 @@
<div nz-row> <div nz-row>
<div nz-col nzSpan="14" class="text-grey-darker">网络货运人:{{ i?.shipperAppUserName }}</div> <div nz-col nzSpan="14" class="text-grey-darker">网络货运人:{{ i?.shipperAppUserName }}</div>
<div nz-col nzSpan="10"> <div nz-col nzSpan="10">
<button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'">取消货源</button> <button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'" acl [acl-ability]="['SUPPLY-BULK-DETAIL-cancelSupply']">取消货源</button>
<button nz-button (click)="updatePrice(i)" *ngIf="i?.resourceStatus === '1'">修改单价</button> <button nz-button (click)="updatePrice(i)" *ngIf="i?.resourceStatus === '1'" acl [acl-ability]="['SUPPLY-BULK-DETAIL-updatePrice']">修改单价</button>
<button nz-button nzType="primary" nzGhost (click)="placeOrder(i)">再下一单</button> <button nz-button nzType="primary" nzGhost (click)="placeOrder(i)" acl [acl-ability]="['SUPPLY-BULK-DETAIL-bulkAnotherOrder']">再下一单</button>
</div> </div>
</div> </div>
<div class="mt-sm mb-sm" nz-row> <div class="mt-sm mb-sm" nz-row>

View File

@ -220,9 +220,9 @@
</nz-card> </nz-card>
<nz-card> <nz-card>
<div class="align-center"> <div class="align-center">
<button nz-button nzType="primary" (click)="submitConfirm('qrcode')">生成二维码</button> <button nz-button nzType="primary" (click)="submitConfirm('qrcode')" acl [acl-ability]="['SUPPLY-VEHICLE-PLACEORDER- QRCode']">生成二维码</button>
<button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('assign')">指派熟车</button> <button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('assign')" acl [acl-ability]="['SUPPLY-VEHICLE-PLACEORDER-bulkDesignate']">指派熟车</button>
<!-- <button nz-button nzType="primary" (click)="choose()">取消</button> --> <!-- <button nz-button nzType="primary" (click)="choose()">取消</button> -->
<button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('publish')">司机抢单</button> <button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('publish')" acl [acl-ability]="['SUPPLY-VEHICLE-PLACEORDER-bulkAnotherOrder']">司机抢单</button>
</div> </div>
</nz-card> </nz-card>

View File

@ -241,8 +241,8 @@
<nz-card> <nz-card>
<div class="align-center"> <div class="align-center">
<!-- <button nz-button nzType="primary" (click)="choose()">取消</button> --> <!-- <button nz-button nzType="primary" (click)="choose()">取消</button> -->
<button nz-button nzType="primary" (click)="submitConfirm('qrcode')">生成二维码</button> <button nz-button nzType="primary" (click)="submitConfirm('qrcode')" acl [acl-ability]="['SUPPLY-BULK-RELEASE-QRCode ']">生成二维码</button>
<button nz-button nzType="primary" (click)="submitConfirm('assign')">指派熟车</button> <button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('assign')" acl [acl-ability]="['SUPPLY-BULK-RELEASE-consignBulkAssign']">指派熟车</button>
<button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('publish')">司机抢单</button> <button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('publish')" acl [acl-ability]="['SUPPLY-BULK-RELEASE-consignBulk']">司机抢单</button>
</div> </div>
</nz-card> </nz-card>

View File

@ -31,7 +31,7 @@
<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()">查询</button> <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()" acl [acl-ability]="['SUPPLY-INDEX-bulkSearch']">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading">导入</button> <button nz-button nzType="primary" [disabled]="service.http.loading">导入</button>
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button> <button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()"> <button nz-button nzType="link" (click)="expandToggle()">
@ -44,8 +44,8 @@
</nz-card> </nz-card>
<ng-template #extraTemplate> <ng-template #extraTemplate>
<div> <div>
<button (click)="audit('', 2)" nz-button nzType="primary">批量审核</button> <button (click)="audit('', 2)" nz-button nzType="primary" acl [acl-ability]="['SUPPLY-INDEX-bulkBatchAudit']">批量审核</button>
<button (click)="releaseGoods()" nz-button nzType="primary">代发货源</button> <button (click)="releaseGoods()" nz-button nzType="primary" acl [acl-ability]="['SUPPLY-INDEX-bulkUndertakesToSupply']">代发货源</button>
</div> </div>
</ng-template> </ng-template>
<nz-card> <nz-card>

View File

@ -303,7 +303,8 @@ export class SupplyManagementBulkComponent implements OnInit {
{ {
text: '货源审核', text: '货源审核',
click: (_record) => this.audit(_record, 1), click: (_record) => this.audit(_record, 1),
iif: item => item.auditStatus === '1' iif: item => item.auditStatus === '1',
acl: { ability: ['SUPPLY-INDEX-bulkBatchAudit'] },
}, },
{ {
text: '二维码 ', text: '二维码 ',
@ -314,15 +315,18 @@ export class SupplyManagementBulkComponent implements OnInit {
text: '修改单价', text: '修改单价',
click: (_record) => this.modification(_record), click: (_record) => this.modification(_record),
iif: item => item.resourceStatus == 1 , iif: item => item.resourceStatus == 1 ,
acl: { ability: ['SUPPLY-INDEX-modificationUnitPrice'] },
}, },
{ {
text: '取消货源', text: '取消货源',
click: (_record) => this.delOne(_record), click: (_record) => this.delOne(_record),
iif: item => item.resourceStatus == 1, iif: item => item.resourceStatus == 1,
acl: { ability: ['SUPPLY-INDEX-bulkCancelSupply'] },
}, },
{ {
text: '再下一单', text: '再下一单',
click: (_record) => this.nextOrder(_record), click: (_record) => this.nextOrder(_record),
acl: { ability: ['SUPPLY-INDEX-bulkPlaceOrder'] },
}, },
], ],
}, },

View File

@ -1,18 +1,15 @@
<!--
* @Description :
* @Version : 1.0
* @Author : Shiming
* @Date : 2021-12-03 11:10:14
* @LastEditors : Shiming
* @LastEditTime : 2022-02-21 13:25:09
* @FilePath : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\index\\index.component.html
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<page-header-wrapper title="货源管理" [tab]="tpTab"> <page-header-wrapper title="货源管理" [tab]="tpTab">
</page-header-wrapper> </page-header-wrapper>
<!-- <ng-template #headerTemplate>
<div>
<nz-tabset [(nzSelectedIndex)]="selectedIndex">
<nz-tab nzTitle="整车货源">
<app-supply-management-vehicle></app-supply-management-vehicle>
</nz-tab>
<nz-tab nzTitle="大宗货源">
<app-supply-management-bulk></app-supply-management-bulk>
</nz-tab>
</nz-tabset>
</div>
</ng-template> -->
<ng-template #tpTab> <ng-template #tpTab>
<nz-tabset [(nzSelectedIndex)]="selectedIndex"> <nz-tabset [(nzSelectedIndex)]="selectedIndex">
<nz-tab nzTitle="整车货源"> <nz-tab nzTitle="整车货源">

View File

@ -135,7 +135,7 @@
<div nz-row [nzGutter]="24" style="margin-top: 24px"> <div nz-row [nzGutter]="24" style="margin-top: 24px">
<div nz-col [nzSpan]="10"> <div nz-col [nzSpan]="10">
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="3" nzRequired>装货时间</nz-form-label> <nz-form-label [nzSpan]="5" nzRequired>装货时间</nz-form-label>
<nz-form-control [nzErrorTip]="'请输入装货时间'"> <nz-form-control [nzErrorTip]="'请输入装货时间'">
<nz-date-picker <nz-date-picker
nzShowTime nzShowTime
@ -150,7 +150,7 @@
<div nz-col [nzSpan]="4"></div> <div nz-col [nzSpan]="4"></div>
<div nz-col [nzSpan]="10"> <div nz-col [nzSpan]="10">
<nz-form-item> <nz-form-item>
<nz-form-label [nzSpan]="3" nzRequired>卸货时间</nz-form-label> <nz-form-label [nzSpan]="5" nzRequired>卸货时间</nz-form-label>
<nz-form-control [nzErrorTip]="'请输入卸货时间'"> <nz-form-control [nzErrorTip]="'请输入卸货时间'">
<nz-date-picker <nz-date-picker
nzShowTime nzShowTime
@ -354,11 +354,11 @@
<div class="align-center"> <div class="align-center">
<button nz-button nzType="primary" *ngIf="this.PageStatus == '整车修改'" (click)="goBack()">取消</button> <button nz-button nzType="primary" *ngIf="this.PageStatus == '整车修改'" (click)="goBack()">取消</button>
<button *ngIf="this.PageStatus == '整车修改'" nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm()" <button *ngIf="this.PageStatus == '整车修改'" nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm()"
>提交修改</button acl [acl-ability]="['SUPPLY-VEHICLE-AMEND-submitChange']">提交修改</button
> >
<button nz-button nzType="primary" *ngIf="this.PageStatus == '整车下一单'" (click)="submitConfirm('assign')">指派熟车</button> <button nz-button nzType="primary" *ngIf="this.PageStatus == '整车下一单'" (click)="submitConfirm('assign')" acl [acl-ability]="['SUPPLY-BULK-PLACEORDER-vehicleDesignate']">指派熟车</button>
<button *ngIf="this.PageStatus == '整车下一单'" nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm()" <button *ngIf="this.PageStatus == '整车下一单'" nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm()"
>司机抢单</button acl [acl-ability]="['SUPPLY-BULK-PLACEORDER-vehicleAnotherOrder']">司机抢单</button
> >
</div> </div>
</nz-card> </nz-card>

View File

@ -364,7 +364,7 @@
</nz-card> </nz-card>
<nz-card> <nz-card>
<div class="align-center"> <div class="align-center">
<button nz-button nzType="primary" (click)="submitConfirm('assign')">指派熟车</button> <button nz-button nzType="primary" (click)="submitConfirm('assign')" acl [acl-ability]="['SUPPLY-VEHICLE-RELEASE-bulkDesignate']">指派熟车</button>
<button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('publish')" *ngIf="type === 'add'">司机抢单</button> <button nz-button nzType="primary" style="margin-left: 48px" (click)="submitConfirm('publish')" *ngIf="type === 'add'" acl [acl-ability]="['SUPPLY-VEHICLE-RELEASE-bulkDriverOrder']">司机抢单</button>
</div> </div>
</nz-card> </nz-card>

View File

@ -13,11 +13,11 @@
<div nz-row> <div nz-row>
<div nz-col nzSpan="14" class="text-grey-darker">网络货运人:{{i?.enterpriseInfoName}}</div> <div nz-col nzSpan="14" class="text-grey-darker">网络货运人:{{i?.enterpriseInfoName}}</div>
<div nz-col nzSpan="10"> <div nz-col nzSpan="10">
<button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'">取消货源</button> <button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'" acl [acl-ability]="['SUPPLY-VEHICLE-DETAIL-cancelSupply']">取消货源</button>
<button nz-button (click)="assignedCar(i)" <button nz-button (click)="assignedCar(i)"
*ngIf="i?.resourceStatus === '1' && i?.serviceType === '2'">重新指派</button> *ngIf="i?.resourceStatus === '1' && i?.serviceType === '2'" acl [acl-ability]="['SUPPLY-VEHICLE-DETAIL-vehicleAnew']">重新指派</button>
<button nz-button (click)="updateGoodsSource(i)" *ngIf="i?.resourceStatus === '1'">修改货源</button> <button nz-button (click)="updateGoodsSource(i)" *ngIf="i?.resourceStatus === '1'" acl [acl-ability]="['SUPPLY-VEHICLE-DETAIL-changeSupply']">修改货源</button>
<button nz-button nzType="primary" nzGhost (click)="nextOrder(i)">再下一单</button> <button nz-button nzType="primary" nzGhost (click)="nextOrder(i)" acl [acl-ability]="['SUPPLY-VEHICLE-DETAIL-vehiclePlaceOrder']">再下一单</button>
</div> </div>
</div> </div>
<div class="mt-sm mb-sm" nz-row> <div class="mt-sm mb-sm" nz-row>

View File

@ -17,9 +17,8 @@
[ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24, gutter: 4 } } }" [compact]="true" [ui]="{ '*': { spanLabelFixed: 110, grid: { lg: 8, md: 12, sm: 12, xs: 24, gutter: 4 } } }" [compact]="true"
[button]="'none'"></sf> [button]="'none'"></sf>
</div> </div>
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" class="text-right">
class="text-right"> <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()" acl [acl-ability]="['SUPPLY-INDEX-vehicleSearch']">查询</button>
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="search()">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading">导出</button> <button nz-button nzType="primary" [disabled]="service.http.loading">导出</button>
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button> <button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()"> <button nz-button nzType="link" (click)="expandToggle()">
@ -69,9 +68,9 @@
</nz-card> </nz-card>
<ng-template #extraTemplate> <ng-template #extraTemplate>
<div> <div>
<button (click)="audit('', 2)" nz-button nzType="primary">批量审核</button> <button (click)="audit('', 2)" nz-button nzType="primary" acl [acl-ability]="['SUPPLY-INDEX-vehicleBatchAudit']">批量审核</button>
<button (click)="releaseGoods()" nz-button nzType="primary">代发货源</button> <button (click)="releaseGoods()" nz-button nzType="primary" acl [acl-ability]="['SUPPLY-INDEX-vehicleUndertakesToSupply']">代发货源</button>
<button (click)="importGoodsSource()" nz-button nzType="primary">导入货源</button> <button (click)="importGoodsSource()" nz-button nzType="primary" >导入货源</button>
</div> </div>
</ng-template> </ng-template>

View File

@ -573,12 +573,14 @@ export class SupplyManagementVehicleComponent implements OnInit {
{ {
text: '货源审核', text: '货源审核',
click: _record => this.audit(_record, 1), click: _record => this.audit(_record, 1),
iif: item => item.auditStatus === '1' iif: item => item.auditStatus === '1',
acl: { ability: ['SUPPLY-INDEX-vehicleBatchAudit'] },
}, },
{ {
text: '修改货源', text: '修改货源',
click: _record => this.amend(_record), click: _record => this.amend(_record),
iif: item => item.resourceStatus === '1' iif: item => item.resourceStatus === '1',
acl: { ability: ['SUPPLY-INDEX-vehicleModificationSupply'] },
}, },
// { // {
// text: '修改运费', // text: '修改运费',
@ -588,16 +590,19 @@ export class SupplyManagementVehicleComponent implements OnInit {
{ {
text: '取消货源', text: '取消货源',
click: _record => this.cancleGoodsSource(_record), click: _record => this.cancleGoodsSource(_record),
iif: item => item.resourceStatus === '1' iif: item => item.resourceStatus === '1',
acl: { ability: ['SUPPLY-INDEX-vehicleCancelSupply'] },
}, },
{ {
text: '再下一单', text: '再下一单',
click: _record => this.nextOrder(_record) click: _record => this.nextOrder(_record),
acl: { ability: ['SUPPLY-INDEX-vehiclePlaceOrder'] },
}, },
{ {
text: '重新指派 ', text: '重新指派 ',
click: _record => this.assignedCar(_record), click: _record => this.assignedCar(_record),
iif: item => item.resourceStatus === '1' && item.serviceType === '2' iif: item => item.resourceStatus === '1' && item.serviceType === '2',
acl: { ability: ['SUPPLY-INDEX-vehicleReassign'] },
} }
] ]
} }

View File

@ -86,12 +86,13 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
settingAction(item?: any) { settingAction(item?: any) {
this.modal.create({ this.modal.create({
nzTitle: '基础设置', nzTitle: '置',
nzContent: DynamicSettingModalComponent, nzContent: DynamicSettingModalComponent,
nzWidth: 900, nzWidth: 900,
nzComponentParams: { nzComponentParams: {
extendType: '4', extendType: '3',
businessId: item.id businessId: item.id,
configvalue: 'sys.config'
}, },
nzFooter: null nzFooter: null
}); });