|
@@ -632,12 +632,17 @@ async function getRoomCodeNum(orgID){
|
|
|
}
|
|
|
}
|
|
|
// 保存接谈排号单
|
|
|
-async function saveQueue(roomCodeNum,taskId,orgID){
|
|
|
+// async function saveQueue(roomCodeNum,taskId,orgID){
|
|
|
+async function saveQueue(taskId,orgID){
|
|
|
let matter = await think.model('matter').where({'taskid':taskId}).find();
|
|
|
+ let queue = await think.model('queue').where({'matterID':matter.id}).find();
|
|
|
let room = await think.model('meeting_room').where({'roomOrgID':orgID}).find();
|
|
|
if (think.isEmpty(matter) || think.isEmpty(room)){
|
|
|
return false
|
|
|
+ } else if (queue.roomOrgID === orgID) {// 这个事项已经安排过这个接谈室,不再进行排号
|
|
|
+ return false
|
|
|
} else {
|
|
|
+ let roomCodeNum = await getRoomCodeNum(orgID);
|
|
|
let contentClassifyAll = ""; // 问题分类全称
|
|
|
let cc = matter.contentClassifyID.split(',');// 问题分类
|
|
|
let ccaID = matter.contentClassifyID;
|