diff --git a/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js b/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js
index 79752acc..2b98919b 100644
--- a/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js
+++ b/pc4mobx/hrmSalary/pages/payroll/SalarySendList.js
@@ -92,7 +92,7 @@ export default class SalarySendList extends React.Component {
title: "操作",
key: "operate",
render: (text, record) => {
- const { sendNum, sendTotal, salaryAcctType, haveBackCalc } = record;
+ const { sendNum, sendTotal, salaryAcctType, haveBackCalc, canSeeDetail } = record;
//显示发放
const showGrant = haveBackCalc === 1 && salaryAcctType === 0;
return (
@@ -100,7 +100,7 @@ export default class SalarySendList extends React.Component {
this.handleGrant(record)}
style={{ marginRight: 10 }}>发放
{
- !showGrant &&
+ canSeeDetail &&
this.handleShowDetail(record)}
style={{ marginRight: 10 }}>查看详情
}
diff --git a/pc4mobx/hrmSalary/pages/payroll/components/index.less b/pc4mobx/hrmSalary/pages/payroll/components/index.less
index ee7666e9..51e742e6 100644
--- a/pc4mobx/hrmSalary/pages/payroll/components/index.less
+++ b/pc4mobx/hrmSalary/pages/payroll/components/index.less
@@ -47,12 +47,6 @@
}
}
-.waterMarkSetWrapper {
- & > .rodal {
- right: 25% !important;
- }
-}
-
.waterMarkSetWrapper, .wmContentWrapper {
.rodal {
.rodal-dialog {
diff --git a/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js b/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js
index 48c6658d..baaafa6c 100644
--- a/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js
+++ b/pc4mobx/hrmSalary/pages/payroll/components/waterMarkSetModal.js
@@ -94,8 +94,8 @@ class WaterMarkSetModal extends Component {
{getLabel(111, "水印设置")}}
- direction="right" top={20} width={800} height={400}
- measureT={"%"} measureX="px" measureY="px"
+ direction="right" top={0} width={800} height={100}
+ measureT="%" measureX="px" measureY="%"
content={
diff --git a/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js b/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js
index beea8bdd..d6fecd53 100644
--- a/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js
+++ b/pc4mobx/hrmSalary/pages/payroll/components/wmContentSetModal.js
@@ -127,8 +127,8 @@ class WmContentSetModal extends Component {
this.props.onClose(this.props.textSet)}
title={{getLabel(111, "水印内容设置")}}
- direction="right" top={-10} width={800} height={480}
- measureT={"%"} measureX="px" measureY="px"
+ direction="right" top={0} width={800} height={100}
+ measureT="%" measureX="px" measureY="%"
content={
{
- if (record.sendStatus === "1" && !notShowGrantOrWithdraw) {
+ if (record.sendStatus === "1" && salarySendDetailBaseInfo.canSend) {
return (
);
- } else if (!notShowGrantOrWithdraw) {
+ } else if (salarySendDetailBaseInfo.canSend) {
return (
];
- if (selectedKey === "0" && !notShowGrantOrWithdraw) {
+ if (selectedKey === "0" && salarySendDetailBaseInfo.canSend) {
btnDom = [
,
...btnDom
];
- } else if (selectedKey === "1" && !notShowGrantOrWithdraw) {
+ } else if (selectedKey === "1" && salarySendDetailBaseInfo.canSend) {
btnDom = [
{
API.mySalaryBill(payload).then(res => {
if (res.status) {
+ this.mySalaryBill = res.data;
+ resolve(res.data);
const { salaryTemplate } = res.data;
const { salaryWatermark } = salaryTemplate;
if (watermark && salaryWatermark) {
- const { wmSetting } = JSON.parse(salaryWatermark);
+ const { wmSetting, watermarkStatus } = JSON.parse(salaryWatermark);
+ if (!watermarkStatus) return;
const {
wmText,
wmHeight: height,
@@ -205,8 +208,6 @@ export class MySalaryStore {
});
}
}
- this.mySalaryBill = res.data;
- resolve(res.data);
} else {
message.error(res.errormsg || "获取失败");
reject("获取失败");