|
|
@ -123,16 +123,20 @@ export default { |
|
|
|
this.upload = true; |
|
|
|
this.uploaded = new FormData(); |
|
|
|
this.uploaded.append("file", e.target.files[0]); |
|
|
|
console.log(this.uploaded); |
|
|
|
console.log("uploadBookingID" + this.uploadBookingID); |
|
|
|
this.size = Math.ceil(e.target.files[0].size / 1000); |
|
|
|
this.$axios |
|
|
|
.post( |
|
|
|
`/trending/api/BookingOnline/UploadRemittance?BookingID=${this.BookingID}`, this.uploaded ) |
|
|
|
`/trending/api/BookingOnline/UploadRemittance?BookingID=${this.uploadBookingID}`, this.uploaded) |
|
|
|
.then((response) => { |
|
|
|
//console.log(JSON.stringify(response)) |
|
|
|
if(response && response.data){ |
|
|
|
|
|
|
|
console.log("是有沒有傳成功阿肝"); |
|
|
|
this.upload = false; |
|
|
|
this.success = true; |
|
|
|
this.$emit('reload-BookingContent'); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
@ -160,7 +164,7 @@ export default { |
|
|
|
|
|
|
|
hideUploadRemittanceSlip() { |
|
|
|
this.$modal.hide("UploadRemittanceSlip"); |
|
|
|
this.$emit('reload-BookingContent'); |
|
|
|
|
|
|
|
this.success = false; |
|
|
|
this.choose = false; |
|
|
|
this.upload = false; |
|
|
|