mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
fix/uploadPoandMinorBugs
This commit is contained in:
@@ -241,26 +241,26 @@ export default {
|
||||
console.log(this.purchaseOrderArray);
|
||||
axios
|
||||
.post('/api/booking/' + this.$route.params.id + '/confirm-po', { images: this.purchaseOrderArray})
|
||||
// .then((response) => {
|
||||
// this.$message({
|
||||
// showClose: true,
|
||||
// message: 'Your PO has been uploaded. We are processing the Invoice.',
|
||||
// type: 'success',
|
||||
// duration: 5000
|
||||
// })
|
||||
// this.$router.push({
|
||||
// name: 'home'
|
||||
// })
|
||||
.then((response) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: 'Your PO has been uploaded. We are processing the Invoice.',
|
||||
type: 'success',
|
||||
duration: 5000
|
||||
})
|
||||
this.$router.push({
|
||||
name: 'home'
|
||||
})
|
||||
this.loading_btn = false
|
||||
}).catch((error) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: "Please upload your purchase order",
|
||||
type: 'error',
|
||||
duration: 30000
|
||||
})
|
||||
this.loading_btn = false
|
||||
// }).catch((error) => {
|
||||
// this.$message({
|
||||
// showClose: true,
|
||||
// message: "Please upload your purchase order",
|
||||
// type: 'error',
|
||||
// duration: 30000
|
||||
// })
|
||||
// this.loading_btn = false
|
||||
// })
|
||||
})
|
||||
},
|
||||
beforeFileUpload(file, fileList) {
|
||||
this.purchaseOrderArray = [];
|
||||
|
||||
Reference in New Issue
Block a user