禅道bug的修复
This commit is contained in:
parent
1075625170
commit
aa7ec55294
|
|
@ -43,7 +43,8 @@ export default class GenerateModal extends React.Component {
|
|||
|
||||
render() {
|
||||
const {
|
||||
taxAgentStore: { taxAgentAdminOption }
|
||||
taxAgentStore: { taxAgentAdminOption },
|
||||
declareStore: { loading }
|
||||
} = this.props;
|
||||
return (
|
||||
<WeaDialog
|
||||
|
|
@ -65,6 +66,7 @@ export default class GenerateModal extends React.Component {
|
|||
buttons={
|
||||
[<Button
|
||||
type="primary"
|
||||
loading={loading}
|
||||
onClick={() => {
|
||||
this.handleGenerate();
|
||||
}}>
|
||||
|
|
|
|||
|
|
@ -350,14 +350,14 @@ class Index extends Component {
|
|||
verticalAlign: "middle"
|
||||
}}/></Button>
|
||||
</Dropdown>,
|
||||
<Button type="ghost" onClick={() => {
|
||||
const { selectedRowKeys } = this.state;
|
||||
if (selectedRowKeys.length === 0) {
|
||||
message.warning("未选择条目");
|
||||
return;
|
||||
}
|
||||
this.deleteSuspendTodo(selectedRowKeys);
|
||||
}}>批量删除待办</Button>,
|
||||
// <Button type="ghost" onClick={() => {
|
||||
// const { selectedRowKeys } = this.state;
|
||||
// if (selectedRowKeys.length === 0) {
|
||||
// message.warning("未选择条目");
|
||||
// return;
|
||||
// }
|
||||
// this.deleteSuspendTodo(selectedRowKeys);
|
||||
// }}>批量删除待办</Button>,
|
||||
<Button type="primary" onClick={() => {
|
||||
this.importRef.handleMenuClick({ key: "SUSPEND" });
|
||||
}}>导入</Button>,
|
||||
|
|
@ -446,7 +446,7 @@ class Index extends Component {
|
|||
placement="bottomRight"
|
||||
content={<Menu onClick={(e) => this.handleMenuClick(e, record.id)}>
|
||||
<Menu.Item key="stopSalary">停薪</Menu.Item>
|
||||
<Menu.Item key="deleteSuspendTodo">删除待办</Menu.Item>
|
||||
{/*<Menu.Item key="deleteSuspendTodo">删除待办</Menu.Item>*/}
|
||||
</Menu>} title="">
|
||||
<i className="icon-coms-more"/>
|
||||
</Popover>
|
||||
|
|
|
|||
|
|
@ -92,7 +92,9 @@ export class DeclareStore {
|
|||
@action
|
||||
saveDeclare = (params) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.loading= true;
|
||||
API.saveDeclare(params).then(res => {
|
||||
this.loading= false;
|
||||
if(res.status) {
|
||||
message.success("生成成功")
|
||||
resolve();
|
||||
|
|
@ -102,8 +104,8 @@ export class DeclareStore {
|
|||
}
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//个税申报表-个税申报表相关信息
|
||||
@action
|
||||
|
|
@ -139,6 +141,6 @@ export class DeclareStore {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,18 +79,21 @@ export class SalaryItemStore {
|
|||
setDeleteItemVisible = deleteItemVisible => this.deleteItemVisible = deleteItemVisible;
|
||||
|
||||
@action
|
||||
setSystemItemVisible = systemItemVisible => this.systemItemVisible = systemItemVisible;
|
||||
setSystemItemVisible = systemItemVisible => {
|
||||
this.systemItemVisible = systemItemVisible;
|
||||
this.sysListTableStore = new TableStore();
|
||||
};
|
||||
|
||||
// 存储分页以及关键字信息
|
||||
@action
|
||||
setPageInfo = (pageInfo) => this.pageInfo = {...this.pageInfo,...pageInfo};
|
||||
setPageInfo = (pageInfo) => this.pageInfo = { ...this.pageInfo, ...pageInfo };
|
||||
|
||||
// 渲染table数据
|
||||
@action
|
||||
getTableDatas = (params) => {
|
||||
this.loading = true;
|
||||
return new Promise((resolve, reject)=>{
|
||||
API.getItemList({...params, ...this.pageInfo}).then(action(res => {
|
||||
return new Promise((resolve, reject) => {
|
||||
API.getItemList({ ...params, ...this.pageInfo }).then(action(res => {
|
||||
this.loading = false;
|
||||
if (res.status) { // 接口请求成功/失败处理
|
||||
this.tableDataSource = res.data.list;
|
||||
|
|
@ -101,7 +104,7 @@ export class SalaryItemStore {
|
|||
reject();
|
||||
}
|
||||
}));
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
@action
|
||||
|
|
@ -202,7 +205,7 @@ export class SalaryItemStore {
|
|||
|
||||
@action
|
||||
deleteItemRequest = (ids) => {
|
||||
return new Promise((resolve, reject)=>{
|
||||
return new Promise((resolve, reject) => {
|
||||
API.deleteItem(ids).then(res => {
|
||||
if (res.status) {
|
||||
this.deleteItemVisible = false;
|
||||
|
|
@ -213,7 +216,7 @@ export class SalaryItemStore {
|
|||
reject();
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
validateForm(params) {
|
||||
|
|
@ -252,7 +255,7 @@ export class SalaryItemStore {
|
|||
//薪资项目-新增薪资项目
|
||||
@action
|
||||
saveItem = (params, continueFlag) => {
|
||||
return new Promise((resolve, reject)=>{
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!this.validateForm(params)) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -269,7 +272,7 @@ export class SalaryItemStore {
|
|||
reject();
|
||||
}
|
||||
});
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
// 获取公式变量类型
|
||||
|
|
|
|||
Loading…
Reference in New Issue