提交 e1660f3a authored 作者: yaoxinguo's avatar yaoxinguo

签约派遣

上级 68536251
...@@ -23,13 +23,14 @@ const initSignFunc = () => { ...@@ -23,13 +23,14 @@ const initSignFunc = () => {
* 第一步 获取选择的每一条审核数据需要盖章的图片 * 第一步 获取选择的每一条审核数据需要盖章的图片
* 一旦开始调接口 就需要 setSubmitLoading(true) 转圈圈 * 一旦开始调接口 就需要 setSubmitLoading(true) 转圈圈
*/ */
console.log("selectRows",selectRows);
const selectList = const selectList =
selectRows.map((g) => { selectRows.map((g) => {
let json = {}; let json = {};
json.isSealOrNot = g['LLzXaxdAYHU'] || "0"; json.isSealOrNot = g['LLzXaxdAYHU'] || "0";
json.signaturePicture = g['LLMbGiXIkvE']; json.signaturePicture = g['LLMbGiXIkvE'];
json.setUp = g['LLtAdXHnnVM'] && ( g['LLtAdXHnnVM'] != undefined && g['LLtAdXHnnVM'] != null ) ? JSON.parse(g['LLtAdXHnnVM']) : {objs: []}; json.setUp = g['LLtAdXHnnVM'] && ( g['LLtAdXHnnVM'] != undefined && g['LLtAdXHnnVM'] != null ) ? JSON.parse(g['LLtAdXHnnVM']) : {objs: []};
json.enclosure = g['LHfENWqbwZs']; json.enclosure = g['LHfENWqbwZs'] ? g['LHfENWqbwZs'] : {files:[]};
json.code = g['code']; json.code = g['code'];
json.taskId = g['taskId']; json.taskId = g['taskId'];
json.appId = g['appId']; json.appId = g['appId'];
...@@ -67,22 +68,26 @@ const initSignFunc = () => { ...@@ -67,22 +68,26 @@ const initSignFunc = () => {
} = selectData; } = selectData;
const oneStudentTask = async () => { const oneStudentTask = async () => {
let resOneStudentRes; let resOneStudentRes;
// 这里还要加判断 如果没得图片能签章. 直接跳过这条数据
if (Number(isSealOrNot) === 1) { //盖章流程
if (enclosure.files == [] || enclosure.files.length == 0) { if (enclosure.files == [] || enclosure.files.length == 0) {
console.log('->>>>>>>>>',`学生:${userName}`+'没有签章图片'); console.log('->>>>>>>>>',`学生:${userName}`+'没有签章图片');
messageList.push({name:'学生没有上传签章图片',type:1,username:`学生:${userName}`}); messageList.push({name:'学生没有上传签章图片',type:1,username:`学生:${userName}`});
return false; return false;
} }
if (setUp.objs == [] || setUp.objs.length == 0) { selectTotal++;
let background = enclosure.files[enclosure.files.length - 1].path;
if ( setUp.objs == [] || setUp.objs.length == 0) {
console.log('->>>>>>>>>',`学生:${userName}`+'上级没有签章,批量签章不生效'); console.log('->>>>>>>>>',`学生:${userName}`+'上级没有签章,批量签章不生效');
messageList.push({name:'上一级审核没有签章,批量签章不生效!',type:1,username:`学生:${userName}`}); messageList.push({name:'上一级审核没有签章,批量签章不生效!',type:1,username:`学生:${userName}`});
return false; return false;
} }
selectTotal++;
let background = enclosure.files[enclosure.files.length - 1].path;
// 这里还要加判断 如果没得图片能签章. 直接跳过这条数据
if (Number(isSealOrNot) === 1) { //盖章流程
setUp.objs.forEach((sv, si) => { setUp.objs.forEach((sv, si) => {
let XGAxis = result[signTypeId] || null ;//根据下级类型配置了XY偏移量 否则使用最上级XY偏移量 let XGAxis = result[signTypeId] || null ;//根据下级类型配置了XY偏移量 否则使用最上级XY偏移量
console.log("signTypeId",signTypeId)
console.log("result",result)
console.log("XGAxis",XGAxis)
if(XGAxis != null){ if(XGAxis != null){
XAxisOffset = XGAxis.XAxisOffset; XAxisOffset = XGAxis.XAxisOffset;
YAxisOffset = XGAxis.YAxisOffset; YAxisOffset = XGAxis.YAxisOffset;
...@@ -120,7 +125,7 @@ const initSignFunc = () => { ...@@ -120,7 +125,7 @@ const initSignFunc = () => {
taskForm: JSON.stringify(taskForm), taskForm: JSON.stringify(taskForm),
}; };
//console.log('examineJson', examineJson); //console.log('examineJson', examineJson);
//return true; // return true;
return uaaRequest('/UnifiedAppFormApi/examineProcess', examineJson).then((resProcess) => { return uaaRequest('/UnifiedAppFormApi/examineProcess', examineJson).then((resProcess) => {
if (!resProcess) { if (!resProcess) {
console.log('->>>>>>>>>', '审核失败'); console.log('->>>>>>>>>', '审核失败');
...@@ -130,7 +135,7 @@ const initSignFunc = () => { ...@@ -130,7 +135,7 @@ const initSignFunc = () => {
return true; return true;
}); });
}); });
} else { //无需盖章流程跳过 } else { //无需盖章流程跳过 直接走审批接口
let examineMaps = { let examineMaps = {
reason: '', reason: '',
...JSON.parse(examineMap), ...JSON.parse(examineMap),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论