Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		| @ -39,13 +39,15 @@ export class PrintOrderModalComponent implements OnInit { | |||||||
|  |  | ||||||
|   sure() { |   sure() { | ||||||
|     if (this.type === 1) { |     if (this.type === 1) { | ||||||
|       this.service.request(this.service.$api_create_express, this.vatappcodes).subscribe(res => { |       this.service.request(this.service.$api_create_express + '?_allow_badcode=true', this.vatappcodes).subscribe(res => { | ||||||
|         if (res?.length > 0) { |         if (res.status === 200) { | ||||||
|           this.getPDF(res); |           if (res?.data?.length > 0) { | ||||||
|  |             this.getPDF(res.data); | ||||||
|           } else { |           } else { | ||||||
|             this.service.msgSrv.warning('请到快递信息页面打印'); |             this.service.msgSrv.warning('请到快递信息页面打印'); | ||||||
|             this.modal.destroy(true); |             this.modal.destroy(true); | ||||||
|           } |           } | ||||||
|  |         } | ||||||
|       }); |       }); | ||||||
|     } else { |     } else { | ||||||
|       if (!this.data.rcontactInfo || !this.data.scontactInfo) { |       if (!this.data.rcontactInfo || !this.data.scontactInfo) { | ||||||
| @ -62,13 +64,15 @@ export class PrintOrderModalComponent implements OnInit { | |||||||
|       delete this.data.scontactInfo.ltdId; |       delete this.data.scontactInfo.ltdId; | ||||||
|       delete this.data.scontactInfo.shipperId; |       delete this.data.scontactInfo.shipperId; | ||||||
|       delete this.data.scontactInfo.id; |       delete this.data.scontactInfo.id; | ||||||
|       this.service.request(this.service.$api_get_order_summary, params).subscribe(res => { |       this.service.request(this.service.$api_get_order_summary + '?_allow_badcode=true', params).subscribe(res => { | ||||||
|         if (res?.length > 0) { |         if (res.status === 200) { | ||||||
|           this.service.reviewPDF(res); |           if (res?.data?.length > 0) { | ||||||
|  |             this.service.reviewPDF(res?.data); | ||||||
|           } else { |           } else { | ||||||
|             this.service.msgSrv.warning('请到快递信息页面打印'); |             this.service.msgSrv.warning('请到快递信息页面打印'); | ||||||
|             this.modal.destroy(true); |             this.modal.destroy(true); | ||||||
|           } |           } | ||||||
|  |         } | ||||||
|       }); |       }); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| @ -86,8 +90,6 @@ export class PrintOrderModalComponent implements OnInit { | |||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|  |  | ||||||
|    |  | ||||||
|  |  | ||||||
|   close() { |   close() { | ||||||
|     this.modal.destroy(); |     this.modal.destroy(); | ||||||
|   } |   } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user