|
|
@@ -5464,69 +5464,85 @@ namespace CallCenterApi.Interface.Controllers.weixin
|
|
5464
|
5464
|
}
|
|
5465
|
5465
|
model.F_Flag = flag;
|
|
5466
|
5466
|
var modellast = new BLL.T_Wo_WorkOrderItem_New().GetModelList($"F_WoID={model.F_ID} and F_NextUser like '%{ua.F_UserCode}%' and F_IsUsed=0 order by F_ID desc ").FirstOrDefault();
|
|
5467
|
|
- if (flag == 3)
|
|
|
5467
|
+ #region 咨询、建议、抽检类工单变更为单线流转
|
|
|
5468
|
+ if (model.F_Type == "1" || model.F_Type == "3" || model.F_Type == "4")
|
|
5468
|
5469
|
{
|
|
5469
|
|
- if ((clbm == 0 && clid == 0) || (clbm2 == 0 && clid2 == 0))
|
|
5470
|
|
- {
|
|
5471
|
|
- return Error("请选择接收部门");
|
|
5472
|
|
-
|
|
5473
|
|
- }
|
|
5474
|
|
- var res = AssignWO(ua, model, input, cont, F_Files, clbm, clid, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 1, flag,Supercont);
|
|
5475
|
|
- var res1 = AssignWO(ua, model, input, cont, F_Files, clbm2, clid2, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 2, flag);
|
|
5476
|
5470
|
|
|
5477
|
|
- }
|
|
5478
|
|
- else if (flag == 2)
|
|
5479
|
|
- {
|
|
5480
|
|
- if (clbm2 == 0 && clid2 == 0)
|
|
|
5471
|
+ if (clbm == 0 && clid == 0)
|
|
5481
|
5472
|
{
|
|
5482
|
5473
|
return Error("请选择接收部门");
|
|
5483
|
|
- }
|
|
5484
|
|
- if (opttype == 2) //填写处理结果
|
|
5485
|
|
- {
|
|
5486
|
|
- flag = 3;
|
|
5487
|
|
- DealWO(ua, model,"", input, cont2, 1, "", 1,"", flag,isApprovalp);
|
|
5488
|
|
- }
|
|
5489
|
|
- else if (opttype == 3) // 待处理状态
|
|
5490
|
|
- {
|
|
5491
|
|
- flag = 3;
|
|
5492
|
|
- modellast.F_Type = 1;
|
|
5493
|
|
- modellast.F_Flag = flag;
|
|
5494
|
|
- modellast.F_NextDept = 0;
|
|
5495
|
|
- itembll.Update(modellast);
|
|
5496
|
5474
|
}
|
|
5497
|
|
- else //完结工单
|
|
5498
|
|
- {
|
|
5499
|
|
- Overorder(ua, model, 1);
|
|
5500
|
|
- }
|
|
5501
|
|
- model.F_Flag = flag;
|
|
5502
|
|
- var res1 = AssignWO(ua, model, input, cont, F_Files, clbm2, clid2, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 2, flag,Supercont);
|
|
|
5475
|
+ Overorder(ua, model, 2);
|
|
|
5476
|
+ model.F_Flag = 1;
|
|
|
5477
|
+ AssignWO(ua, model, input, cont, F_Files, clbm, clid, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 1, 1, Supercont);
|
|
5503
|
5478
|
}
|
|
|
5479
|
+ #endregion
|
|
5504
|
5480
|
else
|
|
5505
|
5481
|
{
|
|
5506
|
|
- if (clbm == 0 && clid == 0)
|
|
5507
|
|
- {
|
|
5508
|
|
- return Error("请选择接收部门");
|
|
5509
|
|
- }
|
|
5510
|
|
- if (opttype == 2) //填写处理结果
|
|
|
5482
|
+ if (flag == 3)
|
|
5511
|
5483
|
{
|
|
5512
|
|
- flag = 3;
|
|
5513
|
|
- DealWO(ua, model,"", input, cont2, 1, "", 2,"", flag,isApprovalp);
|
|
|
5484
|
+ if ((clbm == 0 && clid == 0) || (clbm2 == 0 && clid2 == 0))
|
|
|
5485
|
+ {
|
|
|
5486
|
+ return Error("请选择接收部门");
|
|
|
5487
|
+
|
|
|
5488
|
+ }
|
|
|
5489
|
+ var res = AssignWO(ua, model, input, cont, F_Files, clbm, clid, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 1, flag, Supercont);
|
|
|
5490
|
+ var res1 = AssignWO(ua, model, input, cont, F_Files, clbm2, clid2, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 2, flag);
|
|
|
5491
|
+
|
|
5514
|
5492
|
}
|
|
5515
|
|
- else if (opttype == 3) // 待处理状态
|
|
|
5493
|
+ else if (flag == 2)
|
|
5516
|
5494
|
{
|
|
5517
|
|
- flag = 3;
|
|
5518
|
|
- modellast.F_Type = 2;
|
|
5519
|
|
- modellast.F_Flag = flag;
|
|
5520
|
|
- modellast.F_NextDept = 0;
|
|
5521
|
|
- itembll.Update(modellast);
|
|
|
5495
|
+ if (clbm2 == 0 && clid2 == 0)
|
|
|
5496
|
+ {
|
|
|
5497
|
+ return Error("请选择接收部门");
|
|
|
5498
|
+ }
|
|
|
5499
|
+ if (opttype == 2) //填写处理结果
|
|
|
5500
|
+ {
|
|
|
5501
|
+ flag = 3;
|
|
|
5502
|
+ DealWO(ua, model, "", input, cont2, 1, "", 1, "", flag, isApprovalp);
|
|
|
5503
|
+ }
|
|
|
5504
|
+ else if (opttype == 3) // 待处理状态
|
|
|
5505
|
+ {
|
|
|
5506
|
+ flag = 3;
|
|
|
5507
|
+ modellast.F_Type = 1;
|
|
|
5508
|
+ modellast.F_Flag = flag;
|
|
|
5509
|
+ modellast.F_NextDept = 0;
|
|
|
5510
|
+ itembll.Update(modellast);
|
|
|
5511
|
+ }
|
|
|
5512
|
+ else //完结工单
|
|
|
5513
|
+ {
|
|
|
5514
|
+ Overorder(ua, model, 1);
|
|
|
5515
|
+ }
|
|
|
5516
|
+ model.F_Flag = flag;
|
|
|
5517
|
+ var res1 = AssignWO(ua, model, input, cont, F_Files, clbm2, clid2, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 2, flag, Supercont);
|
|
5522
|
5518
|
}
|
|
5523
|
|
- else //完结工单
|
|
|
5519
|
+ else
|
|
5524
|
5520
|
{
|
|
5525
|
|
- Overorder(ua, model, 2);
|
|
|
5521
|
+ if (clbm == 0 && clid == 0)
|
|
|
5522
|
+ {
|
|
|
5523
|
+ return Error("请选择接收部门");
|
|
|
5524
|
+ }
|
|
|
5525
|
+ if (opttype == 2) //填写处理结果
|
|
|
5526
|
+ {
|
|
|
5527
|
+ flag = 3;
|
|
|
5528
|
+ DealWO(ua, model, "", input, cont2, 1, "", 2, "", flag, isApprovalp);
|
|
|
5529
|
+ }
|
|
|
5530
|
+ else if (opttype == 3) // 待处理状态
|
|
|
5531
|
+ {
|
|
|
5532
|
+ flag = 3;
|
|
|
5533
|
+ modellast.F_Type = 2;
|
|
|
5534
|
+ modellast.F_Flag = flag;
|
|
|
5535
|
+ modellast.F_NextDept = 0;
|
|
|
5536
|
+ itembll.Update(modellast);
|
|
|
5537
|
+ }
|
|
|
5538
|
+ else //完结工单
|
|
|
5539
|
+ {
|
|
|
5540
|
+ Overorder(ua, model, 2);
|
|
|
5541
|
+ }
|
|
|
5542
|
+ model.F_Flag = flag;
|
|
|
5543
|
+ var res = AssignWO(ua, model, input, cont, F_Files, clbm, clid, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 1, flag, Supercont);
|
|
|
5544
|
+
|
|
5526
|
5545
|
}
|
|
5527
|
|
- model.F_Flag = flag;
|
|
5528
|
|
- var res = AssignWO(ua, model, input, cont, F_Files, clbm, clid, overtime, sms, isApprovalp, hclbm, hclid, "", 0, 1, flag, Supercont);
|
|
5529
|
|
-
|
|
5530
|
5546
|
}
|
|
5531
|
5547
|
return Success("转派成功");
|
|
5532
|
5548
|
}
|