Merge branch 'release/2.16.1.2410.01' into feature/2.15.2.2409.01合并业务线测试

This commit is contained in:
lys 2024-10-30 10:27:18 +08:00
commit 09ea3da3e3
5 changed files with 7 additions and 4 deletions

View File

@ -173,7 +173,7 @@ class LedgerSalaryItemTable extends Component {
this.setState({ this.setState({
editFormulModal: { editFormulModal: {
...editFormulModal, visible: true, valueType, dataType, name: salaryItemName, ...editFormulModal, visible: true, valueType, dataType, name: salaryItemName,
formulaId: ((valueType.toString() === "2" && (originFormulaContent || originFormulaContent !== " ")) || valueType.toString() === "3" && (originSqlContent || originSqlContent === " ")) ? formulaId : "" formulaId: ((valueType.toString() === "2" && (originFormulaContent || originFormulaContent !== " ")) || valueType.toString() === "3" && (originSqlContent || originSqlContent !== " ")) ? formulaId : ""
} }
}); });
}; };

View File

@ -37,7 +37,8 @@ class TmpPreview extends Component {
} }
const data = JSON.parse(dataStr); const data = JSON.parse(dataStr);
let theme = data.theme || ""; let theme = data.theme || "";
theme = theme.replaceAll("${salaryMonth}", moment().format("YYYY-MM")); theme = theme.replaceAll("${salaryMonth}", moment().format("YYYY年MM月"));
theme = theme.replaceAll("${salaryYear}", moment().format("YYYY年"));
this.setState({ this.setState({
theme, tip: data.textContent || "", theme, tip: data.textContent || "",
background: data.background || "", background: data.background || "",

View File

@ -253,7 +253,7 @@ export const tempNormalSetConditions = [
colSpan: 1, colSpan: 1,
conditionType: "INPUT", conditionType: "INPUT",
domkey: ["theme"], domkey: ["theme"],
fieldcol: 10, fieldcol: 8,
label: "工资单标题", label: "工资单标题",
lanId: 543588, lanId: 543588,
labelcol: 6, labelcol: 6,

View File

@ -46,6 +46,8 @@ export const payrollTempNormalSetForm = (form, condition, background, onChange =
<span className="sftv-tip">{getLabel(500143, "插入变量")}</span> <span className="sftv-tip">{getLabel(500143, "插入变量")}</span>
<a className="sftv-item" <a className="sftv-item"
onClick={() => insertVar("theme", "${companyName}")}>{getLabel(1976, "公司名称")}</a> onClick={() => insertVar("theme", "${companyName}")}>{getLabel(1976, "公司名称")}</a>
<a className="sftv-item"
onClick={() => insertVar("theme", "${salaryYear}")}>{getLabel(111, "薪资所属年")}</a>
<a className="sftv-item" <a className="sftv-item"
onClick={() => insertVar("theme", "${salaryMonth}")}>{getLabel(542604, "薪资所属月")}</a> onClick={() => insertVar("theme", "${salaryMonth}")}>{getLabel(542604, "薪资所属月")}</a>
</div> </div>

View File

@ -158,7 +158,7 @@
margin-left: 10px; margin-left: 10px;
position: absolute; position: absolute;
top: 25%; top: 25%;
right: -208px; right: -262px;
margin-top: -2px; margin-top: -2px;
.sftv-item { .sftv-item {