release/2.16.1.2410.01

工资单模板设置添加薪资所属年的设置
This commit is contained in:
lys 2024-10-25 17:04:45 +08:00
parent 02ff34c202
commit 444c9b19ab
4 changed files with 6 additions and 3 deletions

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 {