This commit is contained in:
wangshiming
2022-03-09 10:27:21 +08:00
parent a11bb90f20
commit cf2e3c6351
2 changed files with 12 additions and 11 deletions

View File

@ -130,7 +130,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
searchLoadingText: '搜索中...',
allowClear: true,
onSearch: (q: any) => {
let str =q.replace(/^\s+|\s+$/g,"");
let str =q?.replace(/^\s+|\s+$/g,"");
if (str) {
return this.service
.request(this.service.$api_enterpriceList, { enterpriseName: str })
@ -141,7 +141,7 @@ export class SupplyManagementBulkReleasePublishComponent implements OnInit {
}
},
change: (q: any, qs: any) => {
let str =q.replace(/^\s+|\s+$/g,"");
let str =q?.replace(/^\s+|\s+$/g,"");
if (str) {
this.getRegionCode(str);
this.shipperName = qs?.label;