社保福利档案bug修复
This commit is contained in:
parent
c6d02c80c4
commit
39d526d59e
|
|
@ -149,7 +149,7 @@ export default class AccumulationFundForm extends React.Component {
|
|||
<div className="socialFormWrapper">
|
||||
<WeaSearchGroup
|
||||
title="公积金基础信息"
|
||||
customComponent={<SocialTitle keyname="nonPayment" value={nonPayment.toString()}
|
||||
customComponent={<SocialTitle keyname="nonPayment" value={!_.isNil(nonPayment) ? nonPayment.toString() : "0"}
|
||||
onChange={this.handleFormChange}/>}
|
||||
items={foundItems} col={2} showGroup needTigger={false}/>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ export default class OtherForm extends React.Component {
|
|||
<div className="socialFormWrapper">
|
||||
<WeaSearchGroup
|
||||
title="其他福利基础信息"
|
||||
customComponent={<SocialTitle keyname="nonPayment" value={nonPayment.toString()}
|
||||
customComponent={<SocialTitle keyname="nonPayment" value={!_.isNil(nonPayment) ? nonPayment.toString() : "0"}
|
||||
onChange={this.handleFormChange}/>}
|
||||
items={otherItems} col={2} showGroup needTigger={false}/>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ export default class SocialSecurityForm extends React.Component {
|
|||
<div className="socialFormWrapper">
|
||||
<WeaSearchGroup
|
||||
title="社保基础信息"
|
||||
customComponent={<SocialTitle keyname="nonPayment" value={nonPayment.toString()}
|
||||
customComponent={<SocialTitle keyname="nonPayment" value={!_.isNil(nonPayment) ? nonPayment.toString() : "0" }
|
||||
onChange={this.handleFormChange}/>}
|
||||
items={socialItems} col={2} showGroup needTigger={false}/>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -506,7 +506,10 @@ export class payrollStore {
|
|||
@action
|
||||
grantPayroll = (params = {}) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
message.destroy();
|
||||
message.loading("正在发放中...", 0);
|
||||
API.grantPayroll(params).then(res => {
|
||||
message.destroy();
|
||||
if (res.status) {
|
||||
message.success("发送成功");
|
||||
resolve();
|
||||
|
|
@ -522,7 +525,10 @@ export class payrollStore {
|
|||
@action
|
||||
withdrawPayroll = (params = {}) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
message.destroy();
|
||||
message.loading("正在撤回中...", 0);
|
||||
API.withdrawPayroll(params).then(res => {
|
||||
message.destroy();
|
||||
if (res.status) {
|
||||
message.success("撤回成功");
|
||||
resolve();
|
||||
|
|
|
|||
Loading…
Reference in New Issue