|
|
@@ -183,7 +183,7 @@
|
|
|
|
|
|
// 3. 替换模板中的所有占位符(关键步骤)
|
|
|
var parsedTagHtml = templateHtml
|
|
|
- .replace(/__INDEX__/g, index) // 替换索引占位符
|
|
|
+ .replace(/__INDEX__/g, index+1) // 替换索引占位符
|
|
|
.replace(/__LEADER_IDS__/g, leaderIds) // 替换leaderIds
|
|
|
.replace(/__REIMBURSEMENT_NAME__/g, reimbursementName); // 替换报销人名称
|
|
|
|
|
|
@@ -232,8 +232,8 @@
|
|
|
var serialNumber = index + 1
|
|
|
|
|
|
if(flag) {
|
|
|
- const trId = 'workAccountList' + index;
|
|
|
index = index+1
|
|
|
+ const trId = 'workAccountList' + index;
|
|
|
$("#workAccountList").append("<tr id='workAccountList" + index + "' class='rowSize'>" +
|
|
|
"<td class='hide'>" +
|
|
|
"<input id='workAccountList" + index + "_id' name='workAccountList[" + index + "].id' type='hidden' value='" + obj.id + "'/>" +
|
|
|
@@ -354,6 +354,7 @@
|
|
|
var $targetTd = $tr.find('td:eq(1)');
|
|
|
// 3. 触发td的click事件(如果找到该td)
|
|
|
if ($targetTd.length > 0) {
|
|
|
+
|
|
|
$targetTd.trigger('click');
|
|
|
}
|
|
|
}
|
|
|
@@ -2257,7 +2258,7 @@
|
|
|
function setParentInfo(parentId){
|
|
|
return ;
|
|
|
}
|
|
|
- function setPids(pIds,id){
|
|
|
+ function (pIds,id){
|
|
|
$.ajax({
|
|
|
url:"${ctx}/reimbursementType/reimbursementType/projectCharge",
|
|
|
dataType:"json",
|