This commit is contained in:
wangshiming
2022-02-21 14:20:02 +08:00
parent 29b50850f9
commit 85c771f9b0
6 changed files with 25 additions and 20 deletions

View File

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

View File

@ -25,5 +25,5 @@
<div class="modal-footer">
<button nz-button type="button" (click)="close()">关闭</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked">确定</button>
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked && payIng">确定</button>
</div>

View File

@ -4,7 +4,7 @@
* @Author : Shiming
* @Date : 2021-12-15 13:17:42
* @LastEditors : Shiming
* @LastEditTime : 2022-02-14 09:34:18
* @LastEditTime : 2022-02-21 14:16:50
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@ -26,6 +26,7 @@ export class VehicleUpdateFreightComponent implements OnInit {
ui: SFUISchema = {};
aggreechecked = false;
payIng = true;
@Input()
data: any;
@ -37,6 +38,11 @@ export class VehicleUpdateFreightComponent implements OnInit {
ngOnInit(): void {
console.log(this.data)
this.initSF(this.data);
if(this.data.isFreightChangeApplication) {
this.payIng = false;
} else {
this.payIng = true;
}
}
initSF(data: any) {
const info = {

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>
<!-- <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>
<nz-tabset [(nzSelectedIndex)]="selectedIndex">
<nz-tab nzTitle="整车货源">

View File

@ -135,7 +135,7 @@
<div nz-row [nzGutter]="24" style="margin-top: 24px">
<div nz-col [nzSpan]="10">
<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-date-picker
nzShowTime
@ -150,7 +150,7 @@
<div nz-col [nzSpan]="4"></div>
<div nz-col [nzSpan]="10">
<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-date-picker
nzShowTime

View File

@ -90,8 +90,9 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
nzContent: DynamicSettingModalComponent,
nzWidth: 900,
nzComponentParams: {
extendType: '4',
businessId: item.id
extendType: '3',
businessId: item.id,
configvalue: 'sys.config'
},
nzFooter: null
});