|
@@ -148,9 +148,21 @@ function renderReportDocsByTextbook(textbook){
|
|
|
// 教材适用
|
|
|
let characteristic = (json?.characteristic?.filter(item=>item?.checked).map(item=>item.label) || []).join(",")
|
|
|
|
|
|
+ // 作者列表 限6人
|
|
|
let alist = []
|
|
|
for (let index = 0; index < 9; index++) {
|
|
|
- alist[index] = [json?.authorList[index]?.name||" ",json?.authorList[index]?.unit||" ",toYearMonth(json?.authorList[index]?.birth)||" ",json?.authorList[index]?.nationality||" ",json?.authorList[index]?.job||" ",json?.authorList[index]?.title||" ",json?.authorList[index]?.mobile||" ",json?.authorList[index]?.email||" ",json?.authorList[index]?.work||" "]
|
|
|
+ alist[index] = [json?.authorList?.[index]?.name||" ",json?.authorList?.[index]?.unit||" ",toYearMonth(json?.authorList?.[index]?.birth)||" ",json?.authorList?.[index]?.nationality||" ",json?.authorList?.[index]?.job||" ",json?.authorList?.[index]?.title||" ",json?.authorList?.[index]?.mobile||" ",json?.authorList?.[index]?.email||" ",json?.authorList?.[index]?.work||" "]
|
|
|
+ }
|
|
|
+ // 相关成果 限5项
|
|
|
+ let aclist = []
|
|
|
+ for (let index = 0; index < 5; index++) {
|
|
|
+ aclist[index] = [json?.achievementOptions?.[index]?.name||" ",json?.achievementOptions?.[index]?.unit||" ",toYearMonth(json?.achievementOptions?.[index]?.date)||" "]
|
|
|
+ }
|
|
|
+ // 申报历程 限4项
|
|
|
+ let clist = []
|
|
|
+ for (let index = 0; index < 4; index++) {
|
|
|
+ let num = json?.courses?.[index]?(index+1):" ";
|
|
|
+ clist[index] = [num,toYearMonth(json?.courses?.[index]?.date)||" ",json?.courses?.[index]?.wordage||" ",json?.courses?.[index]?.num||" ",json?.courses?.[index]?.sumNum||" ",json?.courses?.[index]?.accolade||" "]
|
|
|
}
|
|
|
|
|
|
let fixData = {
|
|
@@ -228,6 +240,17 @@ function renderReportDocsByTextbook(textbook){
|
|
|
a41:alist[3][0],a42:alist[3][1],a43:alist[3][2],a44:alist[3][3],a45:alist[3][4],a46:alist[3][5],a47:alist[3][6],a48:alist[3][7],a49:alist[3][8],
|
|
|
a51:alist[4][0],a52:alist[4][1],a53:alist[4][2],a54:alist[4][3],a55:alist[4][4],a56:alist[4][5],a57:alist[4][6],a58:alist[4][7],a59:alist[4][8],
|
|
|
a61:alist[5][0],a62:alist[5][1],a63:alist[5][2],a64:alist[5][3],a65:alist[5][4],a66:alist[5][5],a67:alist[5][6],a68:alist[5][7],a69:alist[5][8],
|
|
|
+ // 成果列表
|
|
|
+ ac11:aclist[0][0],ac12:aclist[0][1],ac13:aclist[0][2],
|
|
|
+ ac21:aclist[1][0],ac22:aclist[1][1],ac23:aclist[1][2],
|
|
|
+ ac31:aclist[2][0],ac32:aclist[2][1],ac33:aclist[2][2],
|
|
|
+ ac41:aclist[3][0],ac42:aclist[3][1],ac43:aclist[3][2],
|
|
|
+ ac51:aclist[4][0],ac52:aclist[4][1],ac53:aclist[4][2],
|
|
|
+ // 历程列表
|
|
|
+ c11:clist[0][0],c12:clist[0][1],c13:clist[0][2],c14:clist[0][3],c15:clist[0][4],c16:clist[0][5],
|
|
|
+ c21:clist[1][0],c22:clist[1][1],c23:clist[1][2],c24:clist[1][3],c25:clist[1][4],c26:clist[1][5],
|
|
|
+ c31:clist[2][0],c32:clist[2][1],c33:clist[2][2],c34:clist[2][3],c35:clist[2][4],c36:clist[2][5],
|
|
|
+ c41:clist[3][0],c42:clist[3][1],c43:clist[3][2],c44:clist[3][3],c45:clist[3][4],c46:clist[3][5],
|
|
|
|
|
|
}
|
|
|
let bookData = json;
|
|
@@ -254,9 +277,8 @@ function renderReportDocsByTextbook(textbook){
|
|
|
}
|
|
|
|
|
|
function toYearMonth(date){
|
|
|
- console.log(date)
|
|
|
- date = new Date(date?.iso||date);
|
|
|
if(!date) return ""
|
|
|
+ date = new Date(date?.iso||date);
|
|
|
return `${date.getFullYear()}年${date.getMonth()+1}月`
|
|
|
}
|
|
|
|