fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2021-12-28 14:42:03
|
* @Date : 2021-12-28 14:42:03
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-02 16:28:37
|
* @LastEditTime : 2022-03-04 17:48:27
|
||||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.html
|
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail\\vehicle-detail.component.html
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
-->
|
-->
|
||||||
@ -46,6 +46,10 @@
|
|||||||
<sv label="服务类型">{{ i?.goodsResource?.serviceTypeLabel }}</sv>
|
<sv label="服务类型">{{ i?.goodsResource?.serviceTypeLabel }}</sv>
|
||||||
<sv label="录单员">{{ i?.createUserName || i?.goodsResource?.createUserName }} /{{ i?.createUserPhone || i?.goodsResource?.createUserPhone }} </sv>
|
<sv label="录单员">{{ i?.createUserName || i?.goodsResource?.createUserName }} /{{ i?.createUserPhone || i?.goodsResource?.createUserPhone }} </sv>
|
||||||
<sv label="调度员">{{ i?.goodsResource?.dispatchName }}/{{ i?.goodsResource?.dispatchPhone }} </sv>
|
<sv label="调度员">{{ i?.goodsResource?.dispatchName }}/{{ i?.goodsResource?.dispatchPhone }} </sv>
|
||||||
|
<sv label="外部订单号">{{ i?.wayBillCode }}</sv>
|
||||||
|
<sv label="货源编号">{{ i?.resourceCode }} </sv>
|
||||||
|
<sv label="运单号">{{ i?.wayBillId }}</sv>
|
||||||
|
<sv label="承诺付款天数">{{ i?.goodsResource?.dispatchName }}</sv>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nz-tabset style="margin-top: 15px">
|
<nz-tabset style="margin-top: 15px">
|
||||||
|
|||||||
@ -4,8 +4,9 @@ import { SFComponent, SFSchema, SFUISchema, SFUploadWidgetSchema } from '@delon/
|
|||||||
import { _HttpClient } from '@delon/theme';
|
import { _HttpClient } from '@delon/theme';
|
||||||
import { EAEnvironmentService } from '@shared';
|
import { EAEnvironmentService } from '@shared';
|
||||||
import { NzModalRef } from 'ng-zorro-antd/modal';
|
import { NzModalRef } from 'ng-zorro-antd/modal';
|
||||||
import { Observable, Observer } from 'rxjs';
|
import { Observable, Observer, Subject } from 'rxjs';
|
||||||
import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter.service';
|
import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter.service';
|
||||||
|
import { debounceTime } from 'rxjs/operators';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -21,6 +22,7 @@ export class CtcCaptatinAddComponent implements OnInit {
|
|||||||
schema!: SFSchema;
|
schema!: SFSchema;
|
||||||
ui!: SFUISchema;
|
ui!: SFUISchema;
|
||||||
readFlag = false;
|
readFlag = false;
|
||||||
|
changeSub = new Subject<string>();
|
||||||
detailData: any = {
|
detailData: any = {
|
||||||
bankCardNo: '',
|
bankCardNo: '',
|
||||||
bankName: '',
|
bankName: '',
|
||||||
@ -45,6 +47,7 @@ export class CtcCaptatinAddComponent implements OnInit {
|
|||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.initData()
|
this.initData()
|
||||||
this.initSF();
|
this.initSF();
|
||||||
|
this.changeEndKmAction();
|
||||||
}
|
}
|
||||||
initData() {
|
initData() {
|
||||||
if (this.i && this.i.id) {
|
if (this.i && this.i.id) {
|
||||||
@ -352,31 +355,39 @@ export class CtcCaptatinAddComponent implements OnInit {
|
|||||||
close(): void {
|
close(): void {
|
||||||
this.modal.destroy();
|
this.modal.destroy();
|
||||||
}
|
}
|
||||||
sure() {
|
changeEndKmAction() {
|
||||||
const params: any = {
|
this.changeSub.pipe(debounceTime(500)).subscribe((res: string) => {
|
||||||
bankCardNo: this.sf.value.bankCardNo,
|
|
||||||
bankName: this.sf.value.bankName,
|
|
||||||
mobile: this.sf.value.mobile,
|
|
||||||
remark: this.sf.value.remark,
|
|
||||||
identityInfoDTO: {
|
|
||||||
certificatePhotoBackWatermark: this.sf.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoBackWatermark,
|
|
||||||
certificatePhotoFrontWatermark: this.sf.value?.certificatePhotoFrontWatermark?.data?.fullFilePath ||this.sf.value?.certificatePhotoFrontWatermark,
|
|
||||||
certificatePhotoFront: this.detailData.certificatePhotoFront,
|
|
||||||
certificatePhotoBack: this.detailData.certificatePhotoBack,
|
|
||||||
certificateNumber: this.sf.value.certificateNumber,
|
|
||||||
name: this.sf.value.name,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (this.i.id) {
|
|
||||||
params.id = this.i.id
|
|
||||||
}
|
|
||||||
delete params.showName
|
|
||||||
this.service.request(this.service.$api_saveCaptainr_new, params).subscribe(res => {
|
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success('保存成功')
|
console.log('44444')
|
||||||
this.modal.close(true)
|
console.log(res)
|
||||||
|
const params: any = {
|
||||||
|
bankCardNo: this.sf.value.bankCardNo,
|
||||||
|
bankName: this.sf.value.bankName,
|
||||||
|
mobile: this.sf.value.mobile,
|
||||||
|
remark: this.sf.value.remark,
|
||||||
|
identityInfoDTO: {
|
||||||
|
certificatePhotoBackWatermark: this.sf.value?.certificatePhotoBackWatermark?.data?.fullFilePath || this.sf.value?.certificatePhotoBackWatermark,
|
||||||
|
certificatePhotoFrontWatermark: this.sf.value?.certificatePhotoFrontWatermark?.data?.fullFilePath ||this.sf.value?.certificatePhotoFrontWatermark,
|
||||||
|
certificatePhotoFront: this.detailData.certificatePhotoFront,
|
||||||
|
certificatePhotoBack: this.detailData.certificatePhotoBack,
|
||||||
|
certificateNumber: this.sf.value.certificateNumber,
|
||||||
|
name: this.sf.value.name,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.i.id) {
|
||||||
|
params.id = this.i.id
|
||||||
|
}
|
||||||
|
delete params.showName
|
||||||
|
this.service.request(this.service.$api_saveCaptainr_new, params).subscribe(res => {
|
||||||
|
if (res) {
|
||||||
|
this.service.msgSrv.success('保存成功')
|
||||||
|
this.modal.close(true)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
}
|
||||||
|
sure() {
|
||||||
|
this.changeSub.next('500');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user