fix bug
This commit is contained in:
@ -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 => {
|
||||||
|
|||||||
@ -25,5 +25,5 @@
|
|||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button nz-button type="button" (click)="close()">关闭</button>
|
<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>
|
</div>
|
||||||
|
|||||||
@ -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:16: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.
|
||||||
*/
|
*/
|
||||||
@ -26,6 +26,7 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
|||||||
ui: SFUISchema = {};
|
ui: SFUISchema = {};
|
||||||
|
|
||||||
aggreechecked = false;
|
aggreechecked = false;
|
||||||
|
payIng = true;
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
data: any;
|
data: any;
|
||||||
@ -37,6 +38,11 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
|||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
console.log(this.data)
|
console.log(this.data)
|
||||||
this.initSF(this.data);
|
this.initSF(this.data);
|
||||||
|
if(this.data.isFreightChangeApplication) {
|
||||||
|
this.payIng = false;
|
||||||
|
} else {
|
||||||
|
this.payIng = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
initSF(data: any) {
|
initSF(data: any) {
|
||||||
const info = {
|
const info = {
|
||||||
|
|||||||
@ -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="整车货源">
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -90,8 +90,9 @@ export class UserCenterComponentsDriverConfigComponent implements OnInit {
|
|||||||
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
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user