Commit e4ba93a1 authored by ari_darmawan's avatar ari_darmawan

fix team merchant topic

parent 19845a38
...@@ -38,7 +38,8 @@ ...@@ -38,7 +38,8 @@
<select type="text" <select type="text"
#inputRequired #inputRequired
class="form-control form-control-sm select-style" class="form-control form-control-sm select-style"
[(ngModel)]="AssigneeTeamAgent_ID"> [(ngModel)]="AssigneeTeamAgent_ID"
(change)="TopicChange()">
<ng-container *ngFor="let AssigneeTeamAgent of AssigneeTeamAgentData; let i = index"> <ng-container *ngFor="let AssigneeTeamAgent of AssigneeTeamAgentData; let i = index">
<option value="{{AssigneeTeamAgent.ID}}">{{AssigneeTeamAgent.Name}}</option> <option value="{{AssigneeTeamAgent.ID}}">{{AssigneeTeamAgent.Name}}</option>
</ng-container> </ng-container>
......
...@@ -359,7 +359,6 @@ export class AdminTicketCreateComponent implements OnInit { ...@@ -359,7 +359,6 @@ export class AdminTicketCreateComponent implements OnInit {
if(result != null){ if(result != null){
this.AssigneeTeamData = [] this.AssigneeTeamData = []
//console.log(JSON.stringify(result)) //console.log(JSON.stringify(result))
if(result.values != null){ if(result.values != null){
this.AssigneeTeamData.push({ this.AssigneeTeamData.push({
...@@ -422,21 +421,23 @@ export class AdminTicketCreateComponent implements OnInit { ...@@ -422,21 +421,23 @@ export class AdminTicketCreateComponent implements OnInit {
var AllowedAgent = []; var AllowedAgent = [];
//If Selected Team is Service Desk //If Selected Team is Service Desk
if(this.Env.Team.ServiceDesk == _Request.ID){ if(this.Env.Team.ServiceDesk == _Request.ID){
if(this.RoleID == this._SP.PARAM_AGENT){ if(this.RoleID == this._SP.PARAM_AGENT){
if(this.TeamID == this.Env.Team.CsCabangBranchAgent){ if(this.TeamID == this.Env.Team.CsCabangBranchAgent){
AllowedAgent = [ AllowedAgent = [
this.Env.Agent.ServiceDesk this.Env.Agent.ServiceDesk,
this.Env.Agent.MarchantService
] ]
} }
else if(this.TeamID == this.Env.Team.SociomileStaff){ else if(this.TeamID == this.Env.Team.SociomileStaff){
AllowedAgent = [ AllowedAgent = [
this.Env.Agent.ServiceDesk this.Env.Agent.ServiceDesk,
this.Env.Agent.MarchantService
] ]
}else{ }else{
AllowedAgent = [ AllowedAgent = [
this.Env.Agent.ServiceDesk, this.Env.Agent.ServiceDesk,
this.Env.Agent.NobuCall this.Env.Agent.NobuCall,
this.Env.Agent.MarchantService
] ]
} }
} }
...@@ -458,9 +459,7 @@ export class AdminTicketCreateComponent implements OnInit { ...@@ -458,9 +459,7 @@ export class AdminTicketCreateComponent implements OnInit {
this.AssigneeTeamAgent_ID = "" this.AssigneeTeamAgent_ID = ""
for(var i=0; i < result.values.length; i++){ for(var i=0; i < result.values.length; i++){
var isThere = (this.Env.Team.ServiceDesk == _Request.ID)? AllowedAgent.includes(result.values[i].id) : true; var isThere = (this.Env.Team.ServiceDesk == _Request.ID)? AllowedAgent.includes(result.values[i].id) : true;
if(isThere){ if(isThere){
this.AssigneeTeamAgentData.push({ this.AssigneeTeamAgentData.push({
ID: result.values[i].id.toString(), ID: result.values[i].id.toString(),
...@@ -617,12 +616,27 @@ export class AdminTicketCreateComponent implements OnInit { ...@@ -617,12 +616,27 @@ export class AdminTicketCreateComponent implements OnInit {
}] }]
this.Category_ID = "" this.Category_ID = ""
if(this.Topic_ID == '2' && this.AssigneeTeamAgent_ID == '30949'){
this.SubTopicData.push({
ID: '128',
Name: "Nobu Merchant Business (Permintaan Barcode QRIS)"
},{
ID: '129',
Name: "Nobu Merchant Business/ QRIS (Kendala Transaksi)"
})
}else if(this.Topic_ID == '4' && this.AssigneeTeamAgent_ID == '30949'){
this.SubTopicData.push({
ID: '115',
Name: "Nobu Merchant Business (Permintaan Barcode QRIS)"
})
}else{
for(var i=0; i < result.values.length; i++){ for(var i=0; i < result.values.length; i++){
this.SubTopicData.push({ this.SubTopicData.push({
ID: result.values[i].id.toString(), ID: result.values[i].id.toString(),
Name: result.values[i].name Name: result.values[i].name
}) })
} }
}
// this.SubTopic_ID = this.SubTopicData[0].ID // this.SubTopic_ID = this.SubTopicData[0].ID
// this.GettingCategoryListAPI({ID : this.SubTopicData[0].ID}) // this.GettingCategoryListAPI({ID : this.SubTopicData[0].ID})
......
...@@ -65,12 +65,13 @@ export const environment = { ...@@ -65,12 +65,13 @@ export const environment = {
SociomileStaff : 10895, SociomileStaff : 10895,
ProductInovationAndBusinessSupport : 30397, ProductInovationAndBusinessSupport : 30397,
ITRM : 30393, ITRM : 30393,
SupervisorNobu : 42931 SupervisorNobu : 42931,
}, },
Agent : { Agent : {
NobuCall : 42, NobuCall : 42,
ServiceDesk : 43 ServiceDesk : 43,
MarchantService: 30949
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment