This commit is contained in:
wangshiming
2022-04-28 20:26:30 +08:00
parent 6cc12ff451
commit 2aeaa09e14
112 changed files with 339 additions and 339 deletions

View File

@ -149,7 +149,7 @@ export class EditPartnerComponentsAddComponent implements OnInit {
enterId = [this.i.id]
}
const params = {
...this.sf.value,
...this.sf?.value,
enterpriceIds: enterId,
settStartTime: this.sf?.value?.settStartTime + ' 00:00:00'
}

View File

@ -122,7 +122,7 @@ export class EditSaleComponentsAddComponent implements OnInit {
nzContent: '确定提交吗?',
nzOnOk: () => {
const params = {
...this.sf.value,
...this.sf?.value,
enterpriceIds: enterId,
}

View File

@ -47,21 +47,21 @@ export class FreightComponentsListComponent implements OnInit {
Object.assign(requestOptions.body, { listSource: 1 });
if (this.sf) {
Object.assign(requestOptions.body, {
...this.sf.value
...this.sf?.value
});
if (this.sf.value.createTime) {
if (this.sf?.value.createTime) {
Object.assign(requestOptions.body, {
createTime: {
start: this.sf.value.createTime[0],
end: this.sf.value.createTime[1]
start: this.sf?.value.createTime[0],
end: this.sf?.value.createTime[1]
}
});
}
if (this.sf.value.approvalTime) {
if (this.sf?.value.approvalTime) {
Object.assign(requestOptions.body, {
approvalTime: {
start: this.sf.value.approvalTime[0],
end: this.sf.value.approvalTime[1]
start: this.sf?.value.approvalTime[0],
end: this.sf?.value.approvalTime[1]
}
});
}
@ -555,7 +555,7 @@ export class FreightComponentsListComponent implements OnInit {
const params = { listSource: 1, pageSize: -1 };
if (this.sf) {
Object.assign(params, {
...this.sf.value
...this.sf?.value
});
}
this.service.downloadFile(this.service.$api_export_enterprise, params);

View File

@ -107,12 +107,12 @@ export class FreightComponentsListNewComponent implements OnInit {
return;
}
}
const sfVlaue = this.sf.value;
const sfVlaue = this.sf?.value;
const params = {};
Object.assign(
params,
{ ...this.sf1.value },
{ ...this.sf.value },
{ ...this.sf?.value },
{
enterpriseAddressCode: this.sf1.value.enterpriseAddressCode[2],
oftenUsedServices: sfVlaue.oftenUsedServices,

View File

@ -80,7 +80,7 @@ export class ShowServiceComponent implements OnInit {
}
submitForm() {
const params: any = {
...this.sf.value,
...this.sf?.value,
enterpriseIdList: [this.i.id]
};
this.service.request(this.service.$api_distributionCusService, params).subscribe(res => {