|
@@ -379,28 +379,48 @@ function initSheet(sheet, authority, permissions) {
|
|
|
if (permissions["func-psr-05"]) {
|
|
|
canEditRangeList.push({
|
|
|
hintText: "",
|
|
|
- sqref: "$C$6:$C$89",
|
|
|
+ sqref: "$C$6:$C$35",
|
|
|
+ });
|
|
|
+ canEditRangeList.push({
|
|
|
+ hintText: "",
|
|
|
+ sqref: "$C$43:$C$89",
|
|
|
});
|
|
|
}
|
|
|
// 实际支出列编辑权限
|
|
|
if (permissions["func-psr-06"]) {
|
|
|
canEditRangeList.push({
|
|
|
hintText: "",
|
|
|
- sqref: "$D$6:$D$89",
|
|
|
+ sqref: "$D$6:$D$35",
|
|
|
+ });
|
|
|
+ canEditRangeList.push({
|
|
|
+ hintText: "",
|
|
|
+ sqref: "$D$43:$D$89",
|
|
|
});
|
|
|
}
|
|
|
// 预测费用列编辑权限
|
|
|
if (permissions["func-psr-07"]) {
|
|
|
canEditRangeList.push({
|
|
|
hintText: "",
|
|
|
- sqref: "$F$6:$F$89",
|
|
|
+ sqref: "$F$6:$F$35",
|
|
|
+ });
|
|
|
+ canEditRangeList.push({
|
|
|
+ hintText: "",
|
|
|
+ sqref: "$F$37:$F$37",
|
|
|
+ });
|
|
|
+ canEditRangeList.push({
|
|
|
+ hintText: "",
|
|
|
+ sqref: "$F$40:$F$89",
|
|
|
});
|
|
|
}
|
|
|
// 当月发生额列编辑权限
|
|
|
if (permissions["func-psr-08"]) {
|
|
|
canEditRangeList.push({
|
|
|
hintText: "",
|
|
|
- sqref: "$H$6:$H$89",
|
|
|
+ sqref: "$H$6:$H$35",
|
|
|
+ });
|
|
|
+ canEditRangeList.push({
|
|
|
+ hintText: "",
|
|
|
+ sqref: "$H$43:$H$89",
|
|
|
});
|
|
|
}
|
|
|
} else if (sheet.name == "现金流") {
|
|
@@ -490,16 +510,16 @@ function initSheet(sheet, authority, permissions) {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- if (sheet.config.colhidden) {
|
|
|
- sheet.config.colhidden = { ...colhidden, ...sheet.config.colhidden };
|
|
|
- } else {
|
|
|
- sheet.config.colhidden = colhidden;
|
|
|
- }
|
|
|
- if (sheet.config.rowhidden) {
|
|
|
- sheet.config.rowhidden = { ...rowhidden, ...sheet.config.rowhidden };
|
|
|
- } else {
|
|
|
- sheet.config.rowhidden = rowhidden;
|
|
|
- }
|
|
|
+ // if (sheet.config.colhidden) {
|
|
|
+ // sheet.config.colhidden = { ...colhidden, ...sheet.config.colhidden };
|
|
|
+ // } else {
|
|
|
+ sheet.config.colhidden = colhidden;
|
|
|
+ // }
|
|
|
+ // if (sheet.config.rowhidden) {
|
|
|
+ // sheet.config.rowhidden = { ...rowhidden, ...sheet.config.rowhidden };
|
|
|
+ // } else {
|
|
|
+ sheet.config.rowhidden = rowhidden;
|
|
|
+ // }
|
|
|
initCalcChain(sheet);
|
|
|
}
|
|
|
|
|
@@ -507,7 +527,7 @@ function initCalcChain(sheet) {
|
|
|
// 公式计算
|
|
|
let calcChain = [];
|
|
|
let index = sheet.index;
|
|
|
- sheet.celldata.forEach((item) => {
|
|
|
+ sheet.celldata?.forEach((item) => {
|
|
|
if (typeof item.v.f !== "undefined") {
|
|
|
calcChain.push({
|
|
|
r: item.r,
|