fix bug
This commit is contained in:
@ -15,7 +15,7 @@ import {
|
|||||||
import { apiConf } from '@conf/api.conf';
|
import { apiConf } from '@conf/api.conf';
|
||||||
import { _HttpClient } from '@delon/theme';
|
import { _HttpClient } from '@delon/theme';
|
||||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||||
import { NzModalRef } from 'ng-zorro-antd/modal';
|
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
||||||
import { Observable, Observer } from 'rxjs';
|
import { Observable, Observer } from 'rxjs';
|
||||||
import { EAEnvironmentService } from '@shared';
|
import { EAEnvironmentService } from '@shared';
|
||||||
import { OrderManagementService } from '../../../services/order-management.service';
|
import { OrderManagementService } from '../../../services/order-management.service';
|
||||||
@ -46,7 +46,8 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
|||||||
public http: _HttpClient,
|
public http: _HttpClient,
|
||||||
public service: OrderManagementService,
|
public service: OrderManagementService,
|
||||||
private datePipe: DatePipe,
|
private datePipe: DatePipe,
|
||||||
private envSrv: EAEnvironmentService
|
private envSrv: EAEnvironmentService,
|
||||||
|
private modalService: NzModalService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
@ -581,13 +582,25 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
|||||||
switch (res[0]?.esignFlowStatus) {
|
switch (res[0]?.esignFlowStatus) {
|
||||||
case 1:
|
case 1:
|
||||||
case '1':
|
case '1':
|
||||||
this.service.msgSrv.success('电子装货单签署中!')
|
let time = 0
|
||||||
|
setInterval (function () {
|
||||||
|
time+=1
|
||||||
|
}, 1000); //反复执行函数本身
|
||||||
|
const modal = this.modalService.success({
|
||||||
|
nzTitle: '电子装货单签署中!',
|
||||||
|
nzContent: `
|
||||||
|
请等待${time}秒后自动关闭
|
||||||
|
`
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
this.service.request(this.service.$api_getBillTakeEsignFile, [this.datas?.id]).subscribe(res => {
|
this.service.request(this.service.$api_getBillTakeEsignFile, [this.datas?.id]).subscribe(res => {
|
||||||
if(res[0]?.esignFlowStatus == '2') {
|
if(res[0]?.esignFlowStatus == '2') {
|
||||||
this.service.msgSrv.success('电子装货单已生效!')
|
this.service.msgSrv.success('电子装货单已生效!')
|
||||||
this.modal.destroy(true);
|
this.modal.destroy(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
modal.destroy()
|
||||||
|
}, 5000);
|
||||||
return ;
|
return ;
|
||||||
case 2:
|
case 2:
|
||||||
|
|
||||||
@ -610,13 +623,26 @@ export class orderManagementVoucherViewComponent implements OnInit {
|
|||||||
switch (res[0]?.esignFlowStatus) {
|
switch (res[0]?.esignFlowStatus) {
|
||||||
case 1:
|
case 1:
|
||||||
case '1':
|
case '1':
|
||||||
this.service.msgSrv.success('电子卸货单签署中!')
|
let time = 0
|
||||||
this.service.request(this.service.$api_getBillDischargeEsignFile, [this.datas?.id]).subscribe(res => {
|
setInterval (function () {
|
||||||
if(res[0]?.esignFlowStatus == '2') {
|
time+=1
|
||||||
this.service.msgSrv.success('电子卸货单已生效!')
|
}, 1000); //反复执行函数本身
|
||||||
this.modal.destroy(true);
|
const modal = this.modalService.success({
|
||||||
}
|
nzTitle: '电子卸货单签署中!',
|
||||||
|
nzContent: `
|
||||||
|
请等待${time}秒后自动关闭
|
||||||
|
`
|
||||||
});
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
this.service.request(this.service.$api_getBillDischargeEsignFile, [this.datas?.id]).subscribe(res => {
|
||||||
|
if(res[0]?.esignFlowStatus == '2') {
|
||||||
|
this.service.msgSrv.success('电子卸货单已生效!')
|
||||||
|
this.modal.destroy(true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
modal.destroy()
|
||||||
|
}, 5000);
|
||||||
|
|
||||||
return ;
|
return ;
|
||||||
case 2:
|
case 2:
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -228,25 +228,6 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
goodsSurchargeRatio: {
|
|
||||||
title: '货源单费率',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
placeholder: '请输入',
|
|
||||||
showRequired: false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
contractSurchargeRatio: {
|
|
||||||
title: '合同单费率',
|
|
||||||
type: 'string',
|
|
||||||
ui: {
|
|
||||||
placeholder: '请输入',
|
|
||||||
showRequired: false,
|
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
createTime: {
|
createTime: {
|
||||||
title: '注册时间',
|
title: '注册时间',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -255,9 +236,6 @@ export class FreightConfigComponent implements OnInit {
|
|||||||
format: 'yyyy-MM-dd',
|
format: 'yyyy-MM-dd',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
nzShowTime: true,
|
nzShowTime: true,
|
||||||
visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value
|
|
||||||
}
|
|
||||||
} as SFDateWidgetSchema
|
} as SFDateWidgetSchema
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user