@@ -399,9 +422,7 @@ export default {
// "text": "Order Number",
"load_api": this.route("api.admin_work_flow.fetch_pending_fill_po"),
"answers": [
- { "text": "Approve", "next": "po_approved" },
{ "text": "Edit PO", "next": "edit_po" },
- { "text": "Reject", "next": "reject_po" }
]
},
"po_filled": {
@@ -411,7 +432,6 @@ export default {
{ "text": "Next PO", "next": "approve_po" }
]
},
- "submit_po": {},
"po_approved": {
"text": "PO Approved",
"answers": [
@@ -419,8 +439,18 @@ export default {
{ "text": "Next PO", "next": "approve_po" }
]
},
- "edit_po": {},
- "po_others": {},
+ "edit_po": {
+ "answers": [
+ { "text": "Issue?", "next": "issue_po"},
+ { "text": "Done", "next": "po_filled" },
+ ]
+ },
+ "po_others": {
+ "text": "Others",
+ "answers": [
+ { "text": "Submit Issue", "next": "issue_submit"}
+ ]
+ },
"reject_po": {
"text": "PO Rejected",
"answers": [
@@ -512,6 +542,14 @@ export default {
}, false, false);
nextQuestionId = '1688_issue_others';
+ } else if(nextQuestionId === 'po_others') {
+ this.callApi(this.route('api.admin_work_flow.create_approve_issue_remark'), 'post', 'section', {
+ 'booking_id': this.currentOrder.booking_id,
+ 'remark': nextQuestionId,
+ 'user_id': this.$store.getters.getUserId,
+ }, false, false);
+ nextQuestionId = 'po_others';
+
} else {
this.callApi(this.route('api.admin_work_flow.create_1688_login_issue_remark'), 'post', 'section', {
'booking_id': this.currentOrder.booking_id,