Merge branch 'release/2.9.9.2312.01' into release/2.9.9.2312.01-个税

This commit is contained in:
黎永顺 2023-12-07 16:03:04 +08:00
commit 9f63f4e3a8
7 changed files with 149 additions and 133 deletions

View File

@ -158,7 +158,7 @@ const Routes = (
<Route key="calculateDetail" path="calculateDetail" component={CalculateDetail}/>
<Route key="doCalc" path="calculate/:salaryAcctRecordId" component={DoCalcDetail}/>
<Route key="calcOc" path="calcOc/:salaryAcctRecordId" component={OfflineCompare}/>
<Route key="placeOnFileDetail" path="placeOnFileDetail" component={PlaceOnFileDetail}/>
<Route key="placeOnFileDetail" path="placeOnFileDetail/:salaryAcctRecordId" component={PlaceOnFileDetail}/>
<Route key="compareDetail" path="compareDetail" component={CompareDetail}/>
<Route key="payroll" path="payroll" component={Payroll}/>
<Route key="watermarkPreview" path="payroll/watermark/preview" component={WatermarkPreview}/>

View File

@ -123,7 +123,7 @@ class Calculate extends Component {
break;
case "3":
//查看详情
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/placeOnFileDetail?id=${id}`);
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/placeOnFileDetail/${id}?id=${id}`);
break;
case "4":
//重新核算

View File

@ -8,8 +8,9 @@ import FileMergeDetail from "./fileMergeDetail";
import { getQueryString } from "../../util/url";
import { inject, observer } from "mobx-react";
import { getExportField } from "../../apis/calculate";
import "./index.less";
import CustomExportDialog from "./customExportDialog";
import Layout from "../calculate/doCalc/layout";
import "./index.less";
const getLabel = WeaLocaleProvider.getLabel;
@inject("calculateStore")
@ -162,17 +163,18 @@ export default class PlaceOnFileDetail extends React.Component {
};
return (
<div className="placeOnFileDetail">
<CustomTab
searchOperationItem={
renderRightOperation()
}
/>
<div className="tabWrapper" style={{ borderBottom: "none" }}>
<span style={{ marginRight: 10 }}>薪资所属月{baseSalarySobCycle.salaryMonth}</span>
<WeaHelpfulTip
width={100}
title={`薪资周期\n
<Layout {...this.props}>
<div className="placeOnFileDetail">
<CustomTab
searchOperationItem={
renderRightOperation()
}
/>
<div className="tabWrapper" style={{ borderBottom: "none" }}>
<span style={{ marginRight: 10 }}>薪资所属月{baseSalarySobCycle.salaryMonth}</span>
<WeaHelpfulTip
width={100}
title={`薪资周期\n
${baseSalarySobCycle.salaryCycle && baseSalarySobCycle.salaryCycle.fromDate}至${baseSalarySobCycle.salaryCycle && baseSalarySobCycle.salaryCycle.endDate}\n
税款所属期\n
${baseSalarySobCycle.taxCycle}\n
@ -180,53 +182,54 @@ export default class PlaceOnFileDetail extends React.Component {
${baseSalarySobCycle.attendCycle && baseSalarySobCycle.attendCycle.fromDate}至${baseSalarySobCycle.attendCycle && baseSalarySobCycle.attendCycle.endDate}\n
福利台账月份\n
引用${baseSalarySobCycle.socialSecurityCycle}的福利台账数据`}
placement="topLeft"
placement="topLeft"
/>
</div>
<div className="tabWrapper">
<span>公式=</span>
<span>{toJS(columnDescList)[columnIndex] && toJS(columnDescList)[columnIndex].formulaContent}</span>
</div>
<div className="tableWrapper">
<iframe
style={{ border: 0, width: "100%", height: "100%" }}
// src="http://localhost:7607/#/atdTable"
src="/spa/hrmSalary/hrmSalaryCalculateDetail/index.html#/atdTable"
id="atdTable"
/>
</div>
<CustomExportDialog
{...customExportParams}
searchItemsValue={{ employeeName: this.state.searchValue }}
onCancel={() => {
this.setState({
customExportParams: {
visible: false, checkItems: [], itemsByGroup: []
}
});
}}
/>
</div>
<div className="tabWrapper">
<span>公式=</span>
<span>{toJS(columnDescList)[columnIndex] && toJS(columnDescList)[columnIndex].formulaContent}</span>
</div>
<div className="tableWrapper">
<iframe
style={{ border: 0, width: "100%", height: "100%" }}
// src="http://localhost:7607/#/atdTable"
src="/spa/hrmSalary/hrmSalaryCalculateDetail/index.html#/atdTable"
id="atdTable"
/>
</div>
<CustomExportDialog
{...customExportParams}
searchItemsValue={{ employeeName: this.state.searchValue }}
onCancel={() => {
this.setState({
customExportParams: {
visible: false, checkItems: [], itemsByGroup: []
{
slideVisiable &&
<WeaSlideModal
visible={slideVisiable}
top={0}
width={40}
height={100}
direction={"right"}
measure={"%"}
title={
<SlideModalTitle
subtitle={"合并计税详情"}
editable={true}
/>
}
});
}}
/>
{
slideVisiable &&
<WeaSlideModal
visible={slideVisiable}
top={0}
width={40}
height={100}
direction={"right"}
measure={"%"}
title={
<SlideModalTitle
subtitle={"合并计税详情"}
editable={true}
/>
}
content={(<FileMergeDetail/>)}
onClose={() => this.setState({ slideVisiable: false })}
showMask={true}
closeMaskOnClick={() => this.setState({ slideVisiable: false })}/>
}
</div>
content={(<FileMergeDetail/>)}
onClose={() => this.setState({ slideVisiable: false })}
showMask={true}
closeMaskOnClick={() => this.setState({ slideVisiable: false })}/>
}
</div>
</Layout>
);
}
}

View File

@ -41,7 +41,10 @@ class LedgerSearchComp extends Component {
if (getKey(j) === "taxAgentId") {
return {
...j,
options: _.map(data, g => ({ key: g.id, showname: g.content }))
options: [{ key: "", showname: getLabel(332, "全部") }, ..._.map(data, g => ({
key: g.id,
showname: g.content
}))]
};
}
return { ...j };

View File

@ -48,7 +48,6 @@ export const searchConditions = [
conditionType: "SELECT",
domkey: ["taxAgentId"],
fieldcol: 24,
placeholder: "请选择个税扣缴义务人",
lanId: 543234,
label: "",
labelcol: 0,

View File

@ -211,6 +211,7 @@ export default class MobilePayroll extends React.Component {
<div className="templatePreview">
<div className="contentWrapper">
<PhoneTemplate
isPreview
salaryTemplateShowSet={JSON.stringify(mySalaryBillData.salaryTemplate)}
salaryItemSet={!_.isEmpty(salaryGroups) ? JSON.stringify([employeeInformation, ...salaryGroups]) : []}
>

View File

@ -1,78 +1,88 @@
export const roundingModeOptions = [
{
key: "1",
selected: false,
showname: "原始数据"
},
{
key: "2",
selected: false,
showname: "四舍五入"
},
{
key: "3",
selected: false,
showname: "向上舍入"
},
{
key: "4",
selected: false,
showname: "向下舍入"
},
{
key: "5",
selected: false,
showname: "见分进角"
}
{
key: "1",
selected: false,
showname: "原始数据"
},
{
key: "2",
selected: false,
showname: "四舍五入"
},
{
key: "3",
selected: false,
showname: "向上舍入"
},
{
key: "4",
selected: false,
showname: "向下舍入"
},
{
key: "5",
selected: false,
showname: "见分进角"
}
];
export const patternOptions = [
{
key: "0",
showname: "0",
selected: false
},
{
key: "1",
showname: "1",
selected: false
},
{
key: "2",
showname: "2",
selected: false
},
{
key: "3",
showname: "3",
selected: false
},
{
key: "4",
showname: "4",
selected: false
},
{
key: "5",
showname: "5",
selected: false
},
{
key: "6",
showname: "6",
selected: false
},
]
{
key: "0",
showname: "0",
selected: false
},
{
key: "1",
showname: "1",
selected: false
},
{
key: "2",
showname: "2",
selected: false
},
{
key: "3",
showname: "3",
selected: false
},
{
key: "4",
showname: "4",
selected: false
},
{
key: "5",
showname: "5",
selected: false
},
{
key: "6",
showname: "6",
selected: false
},
{
key: "7",
showname: "7",
selected: false
},
{
key: "8",
showname: "8",
selected: false
}
];
export const dataTypeOptions = [
{
key: "number",
showname: "数值",
selected: false
},
{
key: "string",
showname: "字符",
selected: false
},
]
{
key: "number",
showname: "数值",
selected: false
},
{
key: "string",
showname: "字符",
selected: false
}
];