From 2097d2faf7d09a2a5d92f537720cd04d061e2937 Mon Sep 17 00:00:00 2001 From: liyongshun <971387674@qq.com> Date: Tue, 2 Aug 2022 18:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E6=A0=B8=E7=AE=97=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=9A=84=E5=8A=9F=E8=83=BD=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=97=E8=A1=A8=E5=A4=B4=E5=85=AC=E5=BC=8F?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/components/EditTable/index.js | 12 +- .../hrmSalary/components/customForm/index.js | 4 +- .../components/customTable/index.less | 16 +- .../hrmSalary/components/groupCard/index.js | 4 +- .../hrmSalary/components/importModal/index.js | 12 +- .../components/importModal/modalStep1.js | 4 +- .../components/selectItemsModal/index.js | 8 +- .../selectItemsModal/selectItemsWrapper.js | 12 +- .../hrmSalary/components/selectedTab/index.js | 4 +- .../hrmSalary/components/smallTab/index.js | 4 +- .../pages/calculate/baseFormModal.js | 10 +- pc4mobx/hrmSalary/pages/calculate/index.js | 1 + .../importModal/acctResultImportModal.js | 16 +- .../importModal/selectFieldModal.js | 20 +- .../pages/calculateDetail/compareDetail.js | 8 +- .../compareDetailImportModal.js | 16 +- .../hrmSalary/pages/calculateDetail/index.js | 205 +++++-- .../pages/calculateDetail/index.less | 25 +- .../calculateDetail/placeOnFileDetail.js | 18 +- .../pages/calculateDetail/salaryDetail.js | 26 +- .../pages/calculateDetail/userSure.js | 345 ++++++++--- .../attendance/itemMangeFormModal.js | 7 +- .../attendance/refereAttendFormModal.js | 32 +- .../pages/dataAcquisition/cumDeduct/index.js | 1 + .../dataAcquisition/cumSituation/index.js | 1 + .../dataAcquisition/otherDeduct/index.js | 1 + .../hrmSalary/pages/ledger/calcRulesForm.js | 12 +- pc4mobx/hrmSalary/pages/ledger/index.js | 1 + .../hrmSalary/pages/ledger/slideBaseForm.js | 7 +- .../pages/ledger/step3/AddCategoryModal.js | 12 +- .../pages/ledger/step3/AddSalaryItemModal.js | 18 +- .../pages/ledger/step3/UserInfoSelect.js | 4 +- .../pages/ledger/step3/previewSalaryModal.js | 4 +- .../pages/ledger/step4/RuleEditModal.js | 24 +- .../hrmSalary/pages/mySalary/payrollModal.js | 4 +- .../payroll/components/backgroundUpload.js | 18 +- pc4mobx/hrmSalary/pages/payroll/copyModal.js | 12 +- .../pages/payroll/payrollDetail/index.js | 12 +- .../pages/payroll/stepForm/showSettingForm.js | 44 +- .../pages/payroll/templatePreview/index.js | 8 +- .../pages/salaryFile/changeSalaryModal.js | 26 +- .../pages/salaryFile/editAgentModal.js | 8 +- pc4mobx/hrmSalary/pages/salaryFile/index.js | 1 + .../pages/salaryFile/salaryItemChangeList.js | 8 +- .../pages/salaryFile/saralyFileViewSlide.js | 14 +- .../hrmSalary/pages/salaryFile/slideAgent.js | 8 +- .../pages/salaryFile/slideSalaryItem.js | 8 +- .../pages/salaryFile/taxAgentChangeList.js | 8 +- .../pages/salaryItem/deleteSalaryItemModal.js | 18 +- .../pages/salaryItem/formalFormModal.js | 20 +- pc4mobx/hrmSalary/pages/salaryItem/index.js | 402 ++++++------ .../pages/salaryItem/systemSalaryItemModal.js | 12 +- .../socialSecurityBenefits/archives/index.js | 364 +++++------ .../programme/customNewModal.js | 10 +- .../socialSecurityBenefits/programme/index.js | 16 +- .../standingBook/components/abnormalDrawer.js | 4 +- .../components/abnormalList.js | 27 +- .../standingBookDetail/components/normal.js | 1 + .../pages/taxRate/editSlideContent.js | 4 +- pc4mobx/hrmSalary/pages/taxRate/index.js | 12 +- pc4mobx/hrmSalary/stores/calculate.js | 570 ++++++++++-------- pc4mobx/hrmSalary/stores/programme.js | 3 +- pc4mobx/hrmSalary/util/url.js | 4 +- 63 files changed, 1623 insertions(+), 917 deletions(-) diff --git a/pc4mobx/hrmSalary/components/EditTable/index.js b/pc4mobx/hrmSalary/components/EditTable/index.js index b747078b..8ad51dba 100644 --- a/pc4mobx/hrmSalary/components/EditTable/index.js +++ b/pc4mobx/hrmSalary/components/EditTable/index.js @@ -54,7 +54,9 @@ export default class EditableTable extends React.Component { item.render = (text, record) => ( - {this.onItemDelete(record)}} /> + { +this.onItemDelete(record) +}} /> }>
{text}
@@ -95,7 +97,9 @@ export default class EditableTable extends React.Component { onItemDelete = (record) => { let dataSource = [...this.props.dataSource]; dataSource = dataSource.filter(item => item.indexNum != record.indexNum) - dataSource.map((item, index) => {item.indexNum = index + 1}) + dataSource.map((item, index) => { +item.indexNum = index + 1 +}) this.props.onDataSourceChange(dataSource) } render() { @@ -105,7 +109,9 @@ export default class EditableTable extends React.Component {
{ editable &&
- { this.props.addItem() }} /> + { + this.props.addItem() +}} />
} diff --git a/pc4mobx/hrmSalary/components/customForm/index.js b/pc4mobx/hrmSalary/components/customForm/index.js index 1ecf97c0..00c25613 100644 --- a/pc4mobx/hrmSalary/components/customForm/index.js +++ b/pc4mobx/hrmSalary/components/customForm/index.js @@ -27,7 +27,9 @@ export default class CustomForm extends React.Component { { item.conditionType == "INPUT" && - {this.handleChange({[item.domkey[0]]: value})}}/> + { +this.handleChange({[item.domkey[0]]: value}) +}}/> } { diff --git a/pc4mobx/hrmSalary/components/customTable/index.less b/pc4mobx/hrmSalary/components/customTable/index.less index b6b3f037..511fd0d2 100644 --- a/pc4mobx/hrmSalary/components/customTable/index.less +++ b/pc4mobx/hrmSalary/components/customTable/index.less @@ -1,13 +1,24 @@ .antd-wrap { + .ant-table-scroll{ + .ant-table-thead > tr > th { + border-right: 1px solid #e2e2e2 !important; + } + } .ant-table-thead > tr > th { border-width: 1px !important; - border-right: 1px solid #e2e2e2 !important; padding: 0 5px !important; } .ant-table-bordered .ant-table-fixed-right { top: 1px !important; - + right: 0 !important; + border-radius: 0!important; + .ant-table-thead > tr > th { + border-right: 1px solid #e2e2e2 !important; + } + .ant-table-tbody>tr>td:last-child{ + border-right: 1px solid #e2e2e2 !important; + } thead { tr > th { border-top: 1px solid #e2e2e2 !important; @@ -18,6 +29,7 @@ .ant-table-bordered .ant-table-fixed-left { top: 1px !important; left: 0 !important; + border-radius: 0!important; thead { tr > th { diff --git a/pc4mobx/hrmSalary/components/groupCard/index.js b/pc4mobx/hrmSalary/components/groupCard/index.js index 1d870b43..30871f25 100644 --- a/pc4mobx/hrmSalary/components/groupCard/index.js +++ b/pc4mobx/hrmSalary/components/groupCard/index.js @@ -16,7 +16,9 @@ export default class GroupCard extends React.Component {
{this.props.title}
{this.props.tips}
-
{this.setState({showContent: !this.state.showContent})}}> +
{ +this.setState({showContent: !this.state.showContent}) +}}> { this.state.showContent ? : } diff --git a/pc4mobx/hrmSalary/components/importModal/index.js b/pc4mobx/hrmSalary/components/importModal/index.js index 2aab4702..a956edb5 100644 --- a/pc4mobx/hrmSalary/components/importModal/index.js +++ b/pc4mobx/hrmSalary/components/importModal/index.js @@ -107,7 +107,9 @@ export default class ImportModal extends React.Component { templateLink={this.props.templateLink} headerSetCompoent={this.props.headerSetCompoent} formComponent={this.props.renderFormComponent && this.props.renderFormComponent()} - onFileIdChange={(fileId) => {this.setState({fileId})}} + onFileIdChange={(fileId) => { +this.setState({fileId}) +}} onStep1Next={() => { this.handleStep1Next(); }}/>) @@ -120,13 +122,17 @@ export default class ImportModal extends React.Component { onStep2Next={() => { this.nextStep(); this.hanleImportData() - }} onStep2Pre={() => {this.preStep()}}/>) + }} onStep2Pre={() => { +this.preStep() +}}/>) } { this.props.step == 2 && ( this.hanleImportData()} importResult={toJS(this.props.importResult)} - onFinish={() => {this.props.onFinish()}}/>) + onFinish={() => { +this.props.onFinish() +}}/>) } diff --git a/pc4mobx/hrmSalary/components/importModal/modalStep1.js b/pc4mobx/hrmSalary/components/importModal/modalStep1.js index e941dba0..e7036926 100644 --- a/pc4mobx/hrmSalary/components/importModal/modalStep1.js +++ b/pc4mobx/hrmSalary/components/importModal/modalStep1.js @@ -113,7 +113,9 @@ export default class ModalStep1 extends React.Component { (typeof this.props.templateLink) == "string" ? 点击这里下载模板 : - {this.props.templateLink(hasData === '1' ? `true` : `false`)}}>点击这里下载模板 + { +this.props.templateLink(hasData === '1' ? `true` : `false`) +}}>点击这里下载模板 } {this.props.headerSetCompoent && this.props.headerSetCompoent }; diff --git a/pc4mobx/hrmSalary/components/selectItemsModal/index.js b/pc4mobx/hrmSalary/components/selectItemsModal/index.js index 201aa7a2..c86f957f 100644 --- a/pc4mobx/hrmSalary/components/selectItemsModal/index.js +++ b/pc4mobx/hrmSalary/components/selectItemsModal/index.js @@ -74,10 +74,14 @@ export default class SelectItemModal extends React.Component {
- {this.handleShowChecked(value)}}/> + { +this.handleShowChecked(value) +}}/>
- + 更多
diff --git a/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js b/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js index 5fbe92b4..275f0165 100644 --- a/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js +++ b/pc4mobx/hrmSalary/components/selectItemsModal/selectItemsWrapper.js @@ -14,7 +14,9 @@ export default class SelectItemsWrapper extends React.Component { handleAllChecked(value) { value = value == 1 ? true : false let items = [...this.props.items] - items.map(item => { item.checked = value }) + items.map(item => { + item.checked = value +}) this.setState({ checkStatus: value }) @@ -36,7 +38,9 @@ export default class SelectItemsWrapper extends React.Component { return (
-
{this.props.title}} onChange={(value) => {this.handleAllChecked(value)}} value={this.state.checkStatus}/>
+
{this.props.title}} onChange={(value) => { +this.handleAllChecked(value) +}} value={this.state.checkStatus}/>
this.setState({ showContent: !this.state.showContent })}>已选中{this.props.items ? this.props.items.filter(item => item.checked).length : 0}个字段 @@ -57,7 +61,9 @@ export default class SelectItemsWrapper extends React.Component { { this.props.items && this.props.items.map(item => ( -
{this.handleItemChange(value, item)}}/> + { +this.handleItemChange(value, item) +}}/> )) } diff --git a/pc4mobx/hrmSalary/components/selectedTab/index.js b/pc4mobx/hrmSalary/components/selectedTab/index.js index 732d7d0f..189736d3 100644 --- a/pc4mobx/hrmSalary/components/selectedTab/index.js +++ b/pc4mobx/hrmSalary/components/selectedTab/index.js @@ -20,7 +20,9 @@ export default class SelectedTab extends React.Component {
{ this.props.items.map(item => ( -
{this.handleChange(item)}}> +
{ +this.handleChange(item) +}}> {item.name}
)) diff --git a/pc4mobx/hrmSalary/components/smallTab/index.js b/pc4mobx/hrmSalary/components/smallTab/index.js index dd3e00f3..1555abe2 100644 --- a/pc4mobx/hrmSalary/components/smallTab/index.js +++ b/pc4mobx/hrmSalary/components/smallTab/index.js @@ -15,7 +15,9 @@ export default class SmallTab extends React.Component {
{ this.props.items.map(item => ( - {this.setState({selectedItem: item}); this.props.onChange(item)}}>{item.title} + { +this.setState({selectedItem: item}); this.props.onChange(item) +}}>{item.title} )) }
diff --git a/pc4mobx/hrmSalary/pages/calculate/baseFormModal.js b/pc4mobx/hrmSalary/pages/calculate/baseFormModal.js index c3a1ed45..77fb0dfe 100644 --- a/pc4mobx/hrmSalary/pages/calculate/baseFormModal.js +++ b/pc4mobx/hrmSalary/pages/calculate/baseFormModal.js @@ -72,7 +72,9 @@ export default class baseFormModal extends React.Component { render() { const { salaryMonthStr, salarySobId, description } = this.state; return ( - {this.props.onCancel()}} + { +this.props.onCancel() +}} footer={} @@ -84,9 +86,11 @@ export default class baseFormModal extends React.Component { style={{width: "100%"}} format="yyyy-MM" value={this.state.salaryMonthStr} - onChange={value => {this.setState({ + onChange={value => { +this.setState({ salaryMonthStr: value - })}} + }) +}} /> diff --git a/pc4mobx/hrmSalary/pages/calculate/index.js b/pc4mobx/hrmSalary/pages/calculate/index.js index 31c5fdda..8baecf99 100644 --- a/pc4mobx/hrmSalary/pages/calculate/index.js +++ b/pc4mobx/hrmSalary/pages/calculate/index.js @@ -331,6 +331,7 @@ export default class Calculate extends React.Component { { this.setState({ searchValue: value }); }} diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/acctResultImportModal.js b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/acctResultImportModal.js index 36e13d9e..fcf3469e 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/acctResultImportModal.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/acctResultImportModal.js @@ -127,12 +127,20 @@ export default class AcctResultImportModal extends React.Component { onFinish={() => { this.handleFinish() }} - previewImport={(params) => {fetchPreviewAcctResult(params)}} - importFile={(params) => {fetchImportAcctResult(params)}} - templateLink={ () => { this.handleAccResultTemplateLink()}} + previewImport={(params) => { +fetchPreviewAcctResult(params) +}} + importFile={(params) => { +fetchImportAcctResult(params) +}} + templateLink={ () => { + this.handleAccResultTemplateLink() +}} renderFormComponent={() => this.renderFormComponent()} visiable={visiable} - onCancel={() => { this.props.onCancel() }} + onCancel={() => { + this.props.onCancel() +}} /> } { diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js index f96561ed..5109d9d0 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/acctResult/importModal/selectFieldModal.js @@ -109,16 +109,22 @@ export default class SelectFieldModal extends React.Component { render() { const { fieldData } = this.state; return ( - {this.props.onCancel()}} + { +this.props.onCancel() +}} footer={null} >
添加表头字段 - +
- {this.handleTitleCheckboxChange(value, "formula")}}/> + { +this.handleTitleCheckboxChange(value, "formula") +}}/>
@@ -133,7 +139,9 @@ export default class SelectFieldModal extends React.Component {
- {this.handleTitleCheckboxChange(value, "input")}}/> + { +this.handleTitleCheckboxChange(value, "input") +}}/>
@@ -147,7 +155,9 @@ export default class SelectFieldModal extends React.Component {
- {this.showSelectedChange(value)}}/> + { +this.showSelectedChange(value) +}}/>
) diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/compareDetail.js b/pc4mobx/hrmSalary/pages/calculateDetail/compareDetail.js index 9cbfbe0a..d221d764 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/compareDetail.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/compareDetail.js @@ -175,9 +175,13 @@ export default class CompareDetail extends React.Component {
- {this.setState({ + { +this.setState({ searchValue: value - })}} onSearch={(value) => {this.handleSearch(value)}}/> + }) +}} onSearch={(value) => { +this.handleSearch(value) +}}/>
) } diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/compareDetailImportModal.js b/pc4mobx/hrmSalary/pages/calculateDetail/compareDetailImportModal.js index 9ad9bd1f..db961055 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/compareDetailImportModal.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/compareDetailImportModal.js @@ -64,11 +64,19 @@ export default class CompareDetailImportModal extends React.Component { this.props.onCancel(); this.props.onFinish(); }} - previewImport={(params) => {previewComparisonResult(params)}} - importFile={(params) => {importComparisonExcelAcctResult(params)}} - templateLink={ () => { this.handleTemplateLink()}} + previewImport={(params) => { +previewComparisonResult(params) +}} + importFile={(params) => { +importComparisonExcelAcctResult(params) +}} + templateLink={ () => { + this.handleTemplateLink() +}} visiable={visiable} - onCancel={() => { this.props.onCancel() }} + onCancel={() => { + this.props.onCancel() +}} /> }
diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/index.js b/pc4mobx/hrmSalary/pages/calculateDetail/index.js index 582b101e..03fca025 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/index.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/index.js @@ -1,20 +1,27 @@ import React from "react"; import UserSure from "./userSure"; import { inject, observer } from "mobx-react"; -import CustomTab from "../../components/customTab"; import SalaryDetail from "./salaryDetail"; import { Button, Dropdown, Menu, message, Modal } from "antd"; -import { WeaInputSearch } from "ecCom"; +import { WeaBrowser, WeaCheckbox, WeaFormItem, WeaInput, WeaSearchGroup, WeaSelect, WeaTab } from "ecCom"; import { getQueryString } from "../../util/url"; import AcctResultImportModal from "./acctResult/importModal/acctResultImportModal"; import ProgressModal from "../../components/progressModal"; -@inject("calculateStore") +@inject("calculateStore", "salaryFileStore") @observer export default class CalculateDetail extends React.Component { constructor(props) { super(props); this.state = { + showSearchAd: false, + searchItemsValue: { + employeeName: "", + departmentIds: "", + positionIds: "", + status: "", + consolidatedTaxation: "0" + }, selectedKey: "0", fieldData: {}, acctResultImportVisiable: false, @@ -28,12 +35,94 @@ export default class CalculateDetail extends React.Component { componentWillMount() { let id = getQueryString("id"); this.id = id; - const { calculateStore: { checkTaxAgent } } = this.props; + const { calculateStore: { checkTaxAgent }, salaryFileStore } = this.props; + const { commonEnumList } = salaryFileStore; checkTaxAgent(this.id); let modalParam = { ...this.state.modalParam, salaryAcctRecordId: id }; this.setState({ modalParam }); + commonEnumList("user", { enumClass: "com.engine.salary.enums.salarysob.SalaryEmployeeStatusEnum" }); } + Input = (value, key) => { + const { employeeName } = this.state.searchItemsValue; + return ( + + this.setState({ + searchItemsValue: { + ...this.state.searchItemsValue, + [key]: val + } + })}/> + + ); + }; + Browser = (value, key) => { + const { positionIds, departmentIds } = this.state.searchItemsValue; + return ( + + { + this.setState({ searchItemsValue: { ...this.state.searchItemsValue, [key]: val } }); + }}/> + + ); + }; + Select = (value, key) => { + const { salaryFileStore } = this.props; + const { status } = this.state.searchItemsValue; + const { userStatusList } = salaryFileStore; + return ( + + this.setState({ searchItemsValue: { ...this.state.searchItemsValue, [key]: val } })}/> + + ); + }; + Checkbox = (value, key) => { + const { consolidatedTaxation } = this.state.searchItemsValue; + return ( + + this.setState({ + searchItemsValue: { + ...this.state.searchItemsValue, + [key]: val + } + })}/> + + ); + }; + // 核算点击事件 handleAccount() { const { calculateStore } = this.props; @@ -64,7 +153,7 @@ export default class CalculateDetail extends React.Component { progressVisible: false }); message.success("核算完成"); - acctResultList(this.id); + acctResultList({ salaryAcctRecordId: this.id }); } else if (!data.status) { clearInterval(this.timer); this.timer = null; @@ -109,9 +198,9 @@ export default class CalculateDetail extends React.Component { } // 核算结果搜索 - handleSearch(value) { + handleSearch(params) { const { calculateStore: { acctResultList } } = this.props; - acctResultList(this.id, value); + acctResultList({ salaryAcctRecordId: this.id, ...params }); } componentWillUnmount() { @@ -122,7 +211,7 @@ export default class CalculateDetail extends React.Component { } render() { - const { selectedKey, modalParam, acctResultImportVisiable } = this.state; + const { selectedKey, modalParam, acctResultImportVisiable, showSearchAd } = this.state; const { calculateStore } = this.props; const { calculateProgress } = calculateStore; @@ -135,31 +224,17 @@ export default class CalculateDetail extends React.Component { ); const renderRightOperation = () => { - if (selectedKey == "1") { - return ( -
- - {/* */} - - 更多 - - { - this.setState({ searchValue: value }); - }} - onSearch={value => { - this.handleSearch(value); - }} - /> -
- ); - } + return [ + , + + 更多 + + ]; }; const topTab = [ @@ -173,14 +248,66 @@ export default class CalculateDetail extends React.Component { } ]; + const adBtn = [ + // 高级搜索内部按钮 + , + , + + ]; + + const renderSearch = () => { + const searchItems = [ + { com: this.Input("姓名", "employeeName") }, + { com: this.Browser("部门", "departmentIds") }, + { com: this.Browser("岗位", "positionIds") }, + { com: this.Select("状态", "status") }, + { com: this.Checkbox("合并计税", "consolidatedTaxation") } + ]; + return ; + }; + return (
- { - this.setState({ selectedKey: v }); - }} + this.setState({ selectedKey: v })} + searchType={selectedKey == 1 ? ["base", "advanced"] : []} // base:基础搜索框 advanced:显示高级搜索按钮 + showSearchAd={showSearchAd} // 是否展开高级搜索面板 + setShowSearchAd={(bool) => this.setState({ showSearchAd: bool })} //高级搜索面板受控 + searchsAd={renderSearch()} // 高级搜索内部数据getSearchs(form, toJS(condition), 2) + buttonsAd={adBtn} // 高级搜索内部按钮 + onSearch={() => this.handleSearch(this.state.searchItemsValue)} // 点搜索按钮时的回调 + buttons={selectedKey == 1 ? renderRightOperation() : []} + searchsBasePlaceHolder={"请输入姓名"} + onSearchChange={(v) => + this.setState({ + searchItemsValue: { + ...this.state.searchItemsValue, + employeeName: v + } + }) + } // 在搜索框中输入的文字改变时的回调: 这里需要同步高级搜索和外部搜索框的值form.updateFields({ username: v }) + searchsBaseValue={this.state.searchItemsValue.employeeName} // 外部input搜索值受控: 这里和高级搜索的requestname同步form.getFormParams().username /> {selectedKey == 0 && } {selectedKey == 1 && diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/index.less b/pc4mobx/hrmSalary/pages/calculateDetail/index.less index 47af64b7..f765eb4d 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/index.less +++ b/pc4mobx/hrmSalary/pages/calculateDetail/index.less @@ -12,9 +12,10 @@ } .operateBarWrapper { - border-bottom: 1px solid #eee; - line-height: 47px; height: 47px; + display: flex; + align-items: center; + justify-content: space-between; .crumbsWrapper { display: inline-block; @@ -30,17 +31,18 @@ } .crumbsOperateWrapper { - float: right; - display: inline-block; - - .headerIcon { - display: inline-block; - - .iconItem { - margin-right: 15px; + flex: 1; + .wea-advanced-search{ + right: 0!important; + } + .wea-advanced-searchsAd{ + height: inherit!important; + } + .wea-search-tab{ + padding-right: 0; + .iconItem{ color: #2db7f5; cursor: pointer; - font-size: 16px; } } } @@ -57,7 +59,6 @@ line-height: 47px; padding-left: 10px; padding-right: 10px; - border-bottom: 1px solid #eee; .warningspan { float: right; diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js b/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js index b924eb47..55e619a7 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/placeOnFileDetail.js @@ -17,7 +17,9 @@ export default class PlaceOnFileDetail extends React.Component { placeOnFileColumns.map(item => { if(item.dataIndex == "username") { item.render = (text, record) => ( - {this.onDetail()}}>{text} + { +this.onDetail() +}}>{text} ) } }) @@ -71,7 +73,9 @@ export default class PlaceOnFileDetail extends React.Component { title: '操作', key: "cz", render: (text, record) => { - return {this.handleEdit(record)}}>编辑 + return { +this.handleEdit(record) +}}>编辑 } }) return columns; @@ -138,8 +142,14 @@ export default class PlaceOnFileDetail extends React.Component { const renderRightOperation = () => { return (
- {this.handleExportAll()}} overlay={menu}>导出全部 - {this.setState({searchValue: value})}} value={this.state.searchValue} onSearch={(value) => {this.handleSearch(value)}}/> + { +this.handleExportAll() +}} overlay={menu}>导出全部 + { +this.setState({searchValue: value}) +}} value={this.state.searchValue} onSearch={(value) => { +this.handleSearch(value) +}}/>
) } diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js index 1e72f929..7661fcc3 100644 --- a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js +++ b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js @@ -7,6 +7,7 @@ import EditSalaryDetail from "./editSalaryDetail"; import SlideModalTitle from "../../components/slideModalTitle"; import { getQueryString } from "../../util/url"; import { inject, observer } from "mobx-react"; +import { toJS } from 'mobx'; import CustomPaginationTable from "../../components/customPaginationTable"; @inject("calculateStore", "taxAgentStore") @@ -15,6 +16,7 @@ export default class SalaryDetail extends React.Component { constructor(props) { super(props); this.state = { + columnIndex:"", visible: false, slideVisiable: false, columns: salaryDetailColumns.map(item => { @@ -38,7 +40,7 @@ export default class SalaryDetail extends React.Component { let id = getQueryString("id"); this.id = id; const { calculateStore: { acctResultList, getSalarySobCycle } } = this.props; - acctResultList(id); + acctResultList({ salaryAcctRecordId: id }); getSalarySobCycle(id); } @@ -62,14 +64,14 @@ export default class SalaryDetail extends React.Component { let columns = acctResultListColumns ? [...acctResultListColumns] : []; columns = columns.filter(item => item.hide == "FALSE").map(item => { let result = { ...item }; - result.title = item.text; + result.title = this.setState({columnIndex: item.column})}>{item.text};; result.dataIndex = item.column; result.oldWidth = result.width; result.width = "150px"; if (result.children) { result.width = (result.children.length * 150) + "px"; result.children.map(child => { - child.title = child.text; + child.title = this.setState({columnIndex: child.column})}>{child.text}; child.dataIndex = child.column; child.width = "150px"; }); @@ -114,31 +116,33 @@ export default class SalaryDetail extends React.Component { slideVisiable: false }); saveAcctResult(this.recordId).then(() => { - acctResultList(this.id); + acctResultList({ salaryAcctRecordId: this.id }); }); } // 分页 - handleDataPageChange(value) { + handleDataPageChange(current) { const { calculateStore: { acctResultList } } = this.props; - acctResultList(this.id, this.props.employeeName, value, this.pageInfo); + acctResultList({ salaryAcctRecordId: this.id, employeeName: this.props.employeeName, ...this.pageInfo, current }); } handleShowSizeChange(pageInfo) { const { calculateStore: { acctResultList } } = this.props; - acctResultList(this.id, this.props.employeeName, pageInfo.current, pageInfo); + acctResultList({ salaryAcctRecordId: this.id, employeeName: this.props.employeeName, ...pageInfo }); } render() { - const { slideVisiable } = this.state; + const { slideVisiable, columnIndex } = this.state; const { calculateStore, taxAgentStore: { showOperateBtn } } = this.props; const { acctResultListDateSource, acctResultListColumns, baseSalarySobCycle, acctResultListPageInfo, - loading + loading, + columnDescList } = calculateStore; + return (
@@ -160,6 +164,10 @@ export default class SalaryDetail extends React.Component { this.setState({ visible: true }); }}>校验异常:0
+
+ 公式= + {toJS(columnDescList)[columnIndex] && toJS(columnDescList)[columnIndex].formulaContent} +
{ + const { employeeName } = this.state.searchItemsValue; + return ( + + this.setState({ + searchItemsValue: { + ...this.state.searchItemsValue, + [key]: val + } + })}/> + + ); + }; + Browser = (value, key) => { + const { positionIds, departmentIds } = this.state.searchItemsValue; + return ( + + { + this.setState({ searchItemsValue: { ...this.state.searchItemsValue, [key]: val } }); + }}/> + + ); + }; + Select = (value, key) => { + const { salaryFileStore } = this.props; + const { status } = this.state.searchItemsValue; + const { userStatusList } = salaryFileStore; + return ( + + this.setState({ searchItemsValue: { ...this.state.searchItemsValue, [key]: val } })}/> + + ); + }; + // 添加人员回调 handleUserBrowserChange(ids) { if (ids && ids.length > 0) { @@ -251,7 +321,7 @@ export default class UserSure extends React.Component { } // 搜索 - handleUserListSearch(value) { + handleUserListSearch=(value)=> { const { calculateStore: { acctemployeeList, reducedemployeeList } } = this.props; @@ -259,14 +329,14 @@ export default class UserSure extends React.Component { if (this.state.selectedKey == 0) { acctemployeeList({ salaryAcctRecordId: this.id, - employeeName: value, + ...value, ...this.pageInfo }); this.current = 1; } else { reducedemployeeList({ salaryAcctRecordId: this.id, - employeeName: value, + ...value, ...this.pageInfo }); this.current = 1; @@ -274,7 +344,7 @@ export default class UserSure extends React.Component { } render() { - const { selectedRowKeys } = this.state; + const { selectedRowKeys, showSearchAd, selectedKey } = this.state; const { calculateStore } = this.props; const { calculateBaseForm, @@ -293,6 +363,40 @@ export default class UserSure extends React.Component { onChange: this.onSelectChange }; + const adBtn = [ + // 高级搜索内部按钮 + , + , + + ]; + + const renderSearch = () => { + const searchItems = [ + { com: this.Input("姓名", "employeeName") }, + { com: this.Browser("部门", "departmentIds") }, + { com: this.Browser("岗位", "positionIds") }, + { com: this.Select("状态", "status") } + ]; + return ; + }; + return (
基本信息
@@ -350,91 +454,150 @@ export default class UserSure extends React.Component {
-
-
- { - this.setState({ selectedKey: "0" }); - }}> - 核算人员范围 - - - {" "}|{" "} - { - this.setState({ selectedKey: "1" }); - }}> - 环比上月减少人员 - - -
-
- {this.state.selectedKey == "0" && -
- { - this.handleBatchDelete(); - }} - title="批量删除" - /> - - this.handleUserBrowserChange(ids)}> - - - { - this.handleExport(); - }} - style={{ fontSize: 20, position: "relative", top: "2px" }} - title="导出" - /> - { - this.handleRefresh(); - }} - style={{ fontSize: 20, position: "relative", top: "2px" }} - title="刷新" - /> -
} - { - this.setState({ userListSearchValue: value }); - }} - onSearch={value => { - this.handleUserListSearch(value); - }} - /> -
+
+ { + this.setState({ selectedKey: "0" }); + }}> + 核算人员范围 + + + | + { + this.setState({ selectedKey: "1" }); + }}> + 环比上月减少人员 + +
+
+ this.setState({ showSearchAd: bool })} //高级搜索面板受控 + searchsAd={renderSearch()} // 高级搜索内部数据getSearchs(form, toJS(condition), 2) + buttonsAd={adBtn} // 高级搜索内部按钮 + onSearch={() => this.handleUserListSearch(this.state.searchItemsValue)} // 点搜索按钮时的回调 + buttons={selectedKey == 0 ? [ + { + this.handleBatchDelete(); + }} + title="批量删除" + />, + + this.handleUserBrowserChange(ids)}> + + , + { + this.handleExport(); + }} + style={{ fontSize: 20, position: "relative", top: 2 }} + title="导出" + />, + { + this.handleRefresh(); + }} + style={{ fontSize: 20, position: "relative", top: 2 }} + title="刷新" + /> + ] : []} + searchsBasePlaceHolder={"请输入姓名"} + onSearchChange={(v) => + this.setState({ + searchItemsValue: { + ...this.state.searchItemsValue, + employeeName: v + } + }) + } // 在搜索框中输入的文字改变时的回调: 这里需要同步高级搜索和外部搜索框的值form.updateFields({ username: v }) + searchsBaseValue={this.state.searchItemsValue.employeeName} // 外部input搜索值受控: 这里和高级搜索的requestname同步form.getFormParams().username + /> +
+ + {/*
*/} + {/*{this.state.selectedKey == "0" &&*/} + {/*
*/} + {/* {*/} + {/* this.handleBatchDelete();*/} + {/* }}*/} + {/* title="批量删除"*/} + {/* />*/} + {/* */} + {/* this.handleUserBrowserChange(ids)}>*/} + {/* */} + {/* */} + {/* {*/} + {/* this.handleExport();*/} + {/* }}*/} + {/* style={{ fontSize: 20, position: "relative" }}*/} + {/* title="导出"*/} + {/* />*/} + {/* {*/} + {/* this.handleRefresh();*/} + {/* }}*/} + {/* style={{ fontSize: 20, position: "relative" }}*/} + {/* title="刷新"*/} + {/* />*/} + {/*
}*/} + {/* {*/} + {/* this.setState({ userListSearchValue: value });*/} + {/* }}*/} + {/* onSearch={value => {*/} + {/* this.handleUserListSearch(value);*/} + {/* }}*/} + {/*/>*/} + {/*
*/} + +
{this.state.selectedKey == 0 && diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/itemMangeFormModal.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/itemMangeFormModal.js index 7b65581a..59ff92f1 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/itemMangeFormModal.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/itemMangeFormModal.js @@ -63,8 +63,7 @@ export default class ItemMangeFormModal extends React.Component { - { +
- {this.handleChange({fieldName: v})}}/> + { +this.handleChange({fieldName: v}) +}}/> diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/refereAttendFormModal.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/refereAttendFormModal.js index 2858427e..b3e22919 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/refereAttendFormModal.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/refereAttendFormModal.js @@ -90,8 +90,12 @@ export default class RefereAttendFormModal extends React.Component { return ( - - + + } visible={this.props.visible} onCancel={this.props.onCancel}> @@ -150,13 +154,25 @@ export default class RefereAttendFormModal extends React.Component { {this.props.onShowChecked(value)}} - onRestoreDefault={() => {this.props.onRestoreDefault()}} - onSetDefault={() => {this.props.onSetDefault()}} - onSearch={(value) => {this.props.onSearch(value)}} - onSave={(value) => {this.props.onSave(value)}} + onShowChecked={(value) => { +this.props.onShowChecked(value) +}} + onRestoreDefault={() => { +this.props.onRestoreDefault() +}} + onSetDefault={() => { +this.props.onSetDefault() +}} + onSearch={(value) => { +this.props.onSearch(value) +}} + onSave={(value) => { +this.props.onSave(value) +}} visible={this.state.headerSetVisible} onCancel={() => this.setState({headerSetVisible: false})}> - {this.props.onChange(value)}}/> + { +this.props.onChange(value) +}}/> diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js index ba4693a3..48939235 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumDeduct/index.js @@ -511,6 +511,7 @@ export default class CumDeduct extends React.Component {
setShowSearchAd(bool)} //高级搜索面板受控 searchsAd={getSearchs(form, toJS(condition), 2)} // 高级搜索内部数据 diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js index 38deca5b..4aa0fdf3 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/cumSituation/index.js @@ -517,6 +517,7 @@ export default class CumSituation extends React.Component {
setShowSearchAd(bool)} //高级搜索面板受控 searchsAd={getSearchs(form, toJS(condition), 2)} // 高级搜索内部数据 diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js index 786c3c26..502d303c 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/otherDeduct/index.js @@ -510,6 +510,7 @@ export default class OtherDeduct extends React.Component {
setShowSearchAd(bool)} //高级搜索面板受控 searchsAd={getSearchs(form, toJS(condition), 2)} // 高级搜索内部数据 diff --git a/pc4mobx/hrmSalary/pages/ledger/calcRulesForm.js b/pc4mobx/hrmSalary/pages/ledger/calcRulesForm.js index 7bc4bdb8..c6579813 100644 --- a/pc4mobx/hrmSalary/pages/ledger/calcRulesForm.js +++ b/pc4mobx/hrmSalary/pages/ledger/calcRulesForm.js @@ -18,7 +18,9 @@ export default class CalRulesForm extends React.Component { if(item.key == "cz") { item.render = (text, record) => { return ( - {this.handleDeleteItem(record)}}>删除 + { +this.handleDeleteItem(record) +}}>删除 ) } } @@ -85,7 +87,9 @@ export default class CalRulesForm extends React.Component {
{ canEdit ==='true'&& - {this.setState({modalVisible: true})}}/> + { +this.setState({modalVisible: true}) +}}/> }
@@ -96,7 +100,9 @@ export default class CalRulesForm extends React.Component { this.state.modalVisible && this.setState({modalVisible: false})} - onSave={(params) => {this.handleSave(params)}} + onSave={(params) => { +this.handleSave(params) +}} /> }
diff --git a/pc4mobx/hrmSalary/pages/ledger/index.js b/pc4mobx/hrmSalary/pages/ledger/index.js index 39d335da..4db4d6c2 100644 --- a/pc4mobx/hrmSalary/pages/ledger/index.js +++ b/pc4mobx/hrmSalary/pages/ledger/index.js @@ -263,6 +263,7 @@ export default class Ledger extends React.Component { onChange={value => { this.setState({ searchValue: value }); }} + placeholder={"请输入薪资账套名称"} onSearch={value => { this.handleSearch(value); }} diff --git a/pc4mobx/hrmSalary/pages/ledger/slideBaseForm.js b/pc4mobx/hrmSalary/pages/ledger/slideBaseForm.js index b5d54482..b15f488b 100644 --- a/pc4mobx/hrmSalary/pages/ledger/slideBaseForm.js +++ b/pc4mobx/hrmSalary/pages/ledger/slideBaseForm.js @@ -191,7 +191,12 @@ export default class SlideBaseForm extends React.Component { key: "1", selected: true, showname: "正常工资薪金所得" - } + }, + { + key: "4", + selected: false, + showname: "劳务报酬所得" + }, ]} style={{width: "190px"}} value={taxableItems} diff --git a/pc4mobx/hrmSalary/pages/ledger/step3/AddCategoryModal.js b/pc4mobx/hrmSalary/pages/ledger/step3/AddCategoryModal.js index 75ffedcf..c982d70f 100644 --- a/pc4mobx/hrmSalary/pages/ledger/step3/AddCategoryModal.js +++ b/pc4mobx/hrmSalary/pages/ledger/step3/AddCategoryModal.js @@ -13,14 +13,20 @@ export default class AddCategoryModal extends React.Component { } render() { return ( - {this.props.onSave(this.state.name)}}>保存} width={600} - visible={this.props.visible} onCancel={() => {this.props.onCancel()}} + { +this.props.onSave(this.state.name) +}}>保存} width={600} + visible={this.props.visible} onCancel={() => { +this.props.onCancel() +}} >
分类名称 - {this.setState({name: value})}}/> + { +this.setState({name: value}) +}}/> diff --git a/pc4mobx/hrmSalary/pages/ledger/step3/AddSalaryItemModal.js b/pc4mobx/hrmSalary/pages/ledger/step3/AddSalaryItemModal.js index 6fb24a9d..8114d7f3 100644 --- a/pc4mobx/hrmSalary/pages/ledger/step3/AddSalaryItemModal.js +++ b/pc4mobx/hrmSalary/pages/ledger/step3/AddSalaryItemModal.js @@ -98,15 +98,23 @@ export default class AddSalaryItemModal extends React.Component { return ( {this.props.onCancel()}} width={900} height={600} + visible={this.props.visible} onCancel={() => { +this.props.onCancel() +}} width={900} height={600} style={{top: 20}} footer={null} >
添加薪资项目
- - {this.setState({searchValue: value})}} onSearch={(value) => {this.handleSearch(value)}}/> + + { +this.setState({searchValue: value}) +}} onSearch={(value) => { +this.handleSearch(value) +}}/>
@@ -125,7 +133,9 @@ export default class AddSalaryItemModal extends React.Component { columns={this.getColumns(addSalaryItemColumns)} rowSelection={rowSelection} pagination={{ - onChange: (value) => {this.handleDataPageChange(value)}, + onChange: (value) => { +this.handleDataPageChange(value) +}, total: addSalaryItemPageInfo.total, showTotal: (total) => `共 ${total} 条`, current: addSalaryItemPageInfo.pageNum diff --git a/pc4mobx/hrmSalary/pages/ledger/step3/UserInfoSelect.js b/pc4mobx/hrmSalary/pages/ledger/step3/UserInfoSelect.js index 62cc161d..665ae15c 100644 --- a/pc4mobx/hrmSalary/pages/ledger/step3/UserInfoSelect.js +++ b/pc4mobx/hrmSalary/pages/ledger/step3/UserInfoSelect.js @@ -72,7 +72,9 @@ export default class UserInfoSelected extends React.Component { }}/> )) } - {this.setState({showSelect: true})}}/> + { +this.setState({showSelect: true}) +}}/> { this.state.showSelect && empBrowserList.length > 0 && { this.handleSelectChange(value) diff --git a/pc4mobx/hrmSalary/pages/ledger/step3/previewSalaryModal.js b/pc4mobx/hrmSalary/pages/ledger/step3/previewSalaryModal.js index 3e19f9f4..d1d341ff 100644 --- a/pc4mobx/hrmSalary/pages/ledger/step3/previewSalaryModal.js +++ b/pc4mobx/hrmSalary/pages/ledger/step3/previewSalaryModal.js @@ -58,7 +58,9 @@ export default class PreviewSalaryModal extends React.Component { visible={this.props.visible} title="预览" width={800} - onCancel={() => {this.props.onCancel()}} + onCancel={() => { +this.props.onCancel() +}} footer={null} > diff --git a/pc4mobx/hrmSalary/pages/ledger/step4/RuleEditModal.js b/pc4mobx/hrmSalary/pages/ledger/step4/RuleEditModal.js index 1ae038ba..faa8c42c 100644 --- a/pc4mobx/hrmSalary/pages/ledger/step4/RuleEditModal.js +++ b/pc4mobx/hrmSalary/pages/ledger/step4/RuleEditModal.js @@ -91,8 +91,12 @@ export default class RuleEditModal extends React.Component { const { ruleOptionList } = ledgerStore; const { beforeAdjustmentType, afterAdjustmentType, initedSelect } = this.state return ( - {this.props.onCancel()}} width={800} - footer={} + { +this.props.onCancel() +}} width={800} + footer={} title="调薪计薪规则项" >
@@ -101,7 +105,9 @@ export default class RuleEditModal extends React.Component {
{ initedSelect && - {this.setState({itemValue: value})} } /> + { +this.setState({itemValue: value}) +} } /> } @@ -116,7 +122,9 @@ export default class RuleEditModal extends React.Component { placement="topLeft" /> 如果:调薪生效日期在 - {this.setState({effectiveDate: value})}}/> + { +this.setState({effectiveDate: value}) +}}/> (含)之前 @@ -124,7 +132,9 @@ export default class RuleEditModal extends React.Component {
计薪规则为: - {this.beforeAdjustmentTypeChange(value)}} value={beforeAdjustmentType}> + { +this.beforeAdjustmentTypeChange(value) +}} value={beforeAdjustmentType}> 取调整后薪资 分段计薪
计薪规则为: - {this.afterAdjustmentTypeChange(value)}} value={afterAdjustmentType}> + { +this.afterAdjustmentTypeChange(value) +}} value={afterAdjustmentType}> 取调整前薪资 分段计薪 {this.props.onCancel()}} + { +this.props.onCancel() +}} width={900} footer={null}>
{ (imageUrl || imageUrl == "") ? -
{this.setState({showOperate: true})}} onMouseLeave={() => {this.setState({showOperate: false})}}> +
{ +this.setState({showOperate: true}) +}} onMouseLeave={() => { +this.setState({showOperate: false}) +}}> { this.state.showOperate &&
- {this.handlePreview()}}/> - {this.handleDelete()}}/> + { +this.handlePreview() +}}/> + { +this.handleDelete() +}}/>
}
@@ -74,7 +82,9 @@ function beforeUpload(file) { } - {this.setState({visible: false})}} > + { +this.setState({visible: false}) +}} >
diff --git a/pc4mobx/hrmSalary/pages/payroll/copyModal.js b/pc4mobx/hrmSalary/pages/payroll/copyModal.js index 9d1e7a42..85926196 100644 --- a/pc4mobx/hrmSalary/pages/payroll/copyModal.js +++ b/pc4mobx/hrmSalary/pages/payroll/copyModal.js @@ -22,14 +22,20 @@ export default class CopyModal extends React.Component { render(){ const { name } = this.state; return ( - {this.props.onCancel()}} footer={ - + { +this.props.onCancel() +}} footer={ + }>
工资单名称 {this.handleChange(value)}}/> + onChange={(value) => { +this.handleChange(value) +}}/> diff --git a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js index e64933e2..61834899 100644 --- a/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js +++ b/pc4mobx/hrmSalary/pages/payroll/payrollDetail/index.js @@ -72,11 +72,15 @@ export default class PayrollDetail extends React.Component { item.render = (text,record) => { if(text == 'ALREADYSEND') { return ( - {this.handleWithdraw(record)}}>撤回 + { +this.handleWithdraw(record) +}}>撤回 ) } else { return ( - {this.handleGrant(record)}}>发送 + { +this.handleGrant(record) +}}>发送 ) } } @@ -155,7 +159,9 @@ export default class PayrollDetail extends React.Component { setShowSearchAd={bool => setDetailListShowSearchAd(bool)} //高级搜索面板受控 searchsAd={getSearchs(detailListConditionForm, toJS(detailListCondition), 2)} // 高级搜索内部数据 // buttonsAd={adBtn} // 高级搜索内部按钮 - onSearch={() => {this.handleSearch()}} // 点搜索按钮时的回调 + onSearch={() => { +this.handleSearch() +}} // 点搜索按钮时的回调 // searchsAdQuick={this.getSearchsAdQuick()} onSearchChange={v => detailListConditionForm.updateFields({ username: v })} // 在搜索框中输入的文字改变时的回调: 这里需要同步高级搜索和外部搜索框的值 searchsBaseValue={detailListConditionForm.getFormParams().username} // 外部input搜索值受控: 这里和高级搜索的requestname同步 diff --git a/pc4mobx/hrmSalary/pages/payroll/stepForm/showSettingForm.js b/pc4mobx/hrmSalary/pages/payroll/stepForm/showSettingForm.js index 60e774fe..f64a851b 100644 --- a/pc4mobx/hrmSalary/pages/payroll/stepForm/showSettingForm.js +++ b/pc4mobx/hrmSalary/pages/payroll/stepForm/showSettingForm.js @@ -127,22 +127,30 @@ export default class ShowSettingForm extends React.Component { 工资单主题 - {this.handleChange({theme:value})}}/> + { +this.handleChange({theme:value}) +}}/> 插入变量: - {this.handleThemeNameCllck("${companyName}")}} className="themeFormalStr">公司名称 - {this.handleThemeNameCllck("${salaryMonth}")}} className="themeFormalStr">薪资所属月 + { +this.handleThemeNameCllck("${companyName}") +}} className="themeFormalStr">公司名称 + { +this.handleThemeNameCllck("${salaryMonth}") +}} className="themeFormalStr">薪资所属月 工资单背景 - {this.handleChange({background: value})}}/> + { +this.handleChange({background: value}) +}}/> {/*
@@ -154,14 +162,18 @@ export default class ShowSettingForm extends React.Component {
文本内容 - {this.handleChange({textContent: value})}}/> + { +this.handleChange({textContent: value}) +}}/> 文本内容位置 - {this.handleChange({textContentPosition: e.target.value})}}> + { +this.handleChange({textContentPosition: e.target.value}) +}}> 薪资项目前 薪资项目后 @@ -171,14 +183,18 @@ export default class ShowSettingForm extends React.Component { 薪资项为空时不显示 - {this.handleChange({salaryItemNullStatus: value})}}/> + { +this.handleChange({salaryItemNullStatus: value}) +}}/> 薪资项为0时不显示 - {this.handleChange({salaryItemZeroStatus: value})}}/> + { +this.handleChange({salaryItemZeroStatus: value}) +}}/> @@ -194,13 +210,17 @@ export default class ShowSettingForm extends React.Component { { index < salaryItemSet.length - 1 && {this.handleDownClick(index)}} + onClick={() => { +this.handleDownClick(index) +}} /> } { index > 0 && {this.handleUpClick(index)}}/> + onClick={() => { +this.handleUpClick(index) +}}/> } { @@ -209,7 +229,9 @@ export default class ShowSettingForm extends React.Component {
{group.items.map(item => ( - {item.name} {this.handleDeleteItem(group, item)}}/> + {item.name} { +this.handleDeleteItem(group, item) +}}/> ))}
diff --git a/pc4mobx/hrmSalary/pages/payroll/templatePreview/index.js b/pc4mobx/hrmSalary/pages/payroll/templatePreview/index.js index a087f32e..808e5ec9 100644 --- a/pc4mobx/hrmSalary/pages/payroll/templatePreview/index.js +++ b/pc4mobx/hrmSalary/pages/payroll/templatePreview/index.js @@ -26,10 +26,14 @@ export default class TemplatePreview extends React.Component {
-
{this.handleSelectClick("0")}} className={selectKey == "0" ? "iconWrapper activeIconWrapper" : "iconWrapper" }> +
{ +this.handleSelectClick("0") +}} className={selectKey == "0" ? "iconWrapper activeIconWrapper" : "iconWrapper" }>
-
{this.handleSelectClick("1")}} className={selectKey == "1" ? "iconWrapper activeIconWrapper" : "iconWrapper"}> +
{ +this.handleSelectClick("1") +}} className={selectKey == "1" ? "iconWrapper activeIconWrapper" : "iconWrapper"}>
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js index b337547f..dfa5a355 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/changeSalaryModal.js @@ -144,9 +144,11 @@ export default class ChangeSalaryModal extends React.Component { }) }) } else { - getSalaryItemForm(currentId).then(() => {this.setState({ + getSalaryItemForm(currentId).then(() => { +this.setState({ inited: true - })}) + }) +}) } } @@ -200,7 +202,9 @@ export default class ChangeSalaryModal extends React.Component { }; return ( - {this.props.onCancel()}} + { +this.props.onCancel() +}} footer={} @@ -215,7 +219,9 @@ export default class ChangeSalaryModal extends React.Component { format="yyyy-MM-dd" style={{width: "200px"}} value={effectiveTime} - onChange={(value) => {this.handleChange({ effectiveTime: value })}} + onChange={(value) => { +this.handleChange({ effectiveTime: value }) +}} /> @@ -251,7 +257,9 @@ export default class ChangeSalaryModal extends React.Component { {this.handleChange({description: value})}} + onChange={value => { +this.handleChange({description: value}) +}} /> @@ -261,8 +269,12 @@ export default class ChangeSalaryModal extends React.Component {
调薪明细
- {this.handleRemoveClick()}}/> - {this.handleAddItemClick()}}/> + { +this.handleRemoveClick() +}}/> + { +this.handleAddItemClick() +}}/>
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/editAgentModal.js b/pc4mobx/hrmSalary/pages/salaryFile/editAgentModal.js index 3b0765d2..f69c25e0 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/editAgentModal.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/editAgentModal.js @@ -103,14 +103,18 @@ export default class EditAgentModal extends React.Component { return ( {this.handleSave()}}>保存 + } >
生效日期 - {this.handleChange({effectiveTime: value})}}/> + { +this.handleChange({effectiveTime: value}) +}}/> diff --git a/pc4mobx/hrmSalary/pages/salaryFile/index.js b/pc4mobx/hrmSalary/pages/salaryFile/index.js index 1a4532a1..96f14134 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/index.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/index.js @@ -542,6 +542,7 @@ export default class SalaryFile extends React.Component { buttonsAd={adBtn} // 高级搜索内部按钮 onSearch={() => doSearch(this.state.searchItemsValue)} // 点搜索按钮时的回调this.handleSearch() searchsAdQuick={renderRightOperation()} + searchsBasePlaceHolder={"请输入姓名"} onSearchChange={(v) => this.setState({ searchItemsValue: { diff --git a/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js b/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js index 7d5361d1..6c91528c 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/salaryItemChangeList.js @@ -56,7 +56,9 @@ export default class SalaryItemChangeList extends React.Component {
{this.handlePageChange(value)}, + onChange: (value) => { +this.handlePageChange(value) +}, total: singleSalaryItemList.total, showTotal: (total) => `共 ${total} 条`, current: singleSalaryItemList.pageNum @@ -67,7 +69,9 @@ export default class SalaryItemChangeList extends React.Component { currentId={this.props.id} recordId={this.state.recordId} visible={this.state.changeSalaryVisible} - onCancel={() => {this.setState({changeSalaryVisible: false})}} + onCancel={() => { +this.setState({changeSalaryVisible: false}) +}} /> }
diff --git a/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js b/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js index 3e018d64..6bc09e65 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/saralyFileViewSlide.js @@ -48,7 +48,9 @@ export default class SalaryFileViewSlide extends React.Component { const { baseInfo, adjustSalaryItems } = detailForm; return (
- {this.setState({baseInfoVisible: value})}}/> + { +this.setState({baseInfoVisible: value}) +}}/> { this.state.baseInfoVisible &&
@@ -99,7 +101,9 @@ export default class SalaryFileViewSlide extends React.Component { width={200} title="提示:显示已生效的最新数据" placement="topLeft" - />} items={[]} onVisibleChange={(value) => {this.setState({salaryItemVisible: value})}}/> + />} items={[]} onVisibleChange={(value) => { +this.setState({salaryItemVisible: value}) +}}/> { this.state.salaryItemVisible &&
{ @@ -113,7 +117,11 @@ export default class SalaryFileViewSlide extends React.Component {
} - {this.handleTabChange(item)}}/>} items={[]} onVisibleChange={(value) => {this.setState({salaryItemVisible: value})}}/> + { +this.handleTabChange(item) +}}/>} items={[]} onVisibleChange={(value) => { +this.setState({salaryItemVisible: value}) +}}/> { this.state.selectedTab == "0" ? : } diff --git a/pc4mobx/hrmSalary/pages/salaryFile/slideAgent.js b/pc4mobx/hrmSalary/pages/salaryFile/slideAgent.js index 18ffede3..da76b8ec 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/slideAgent.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/slideAgent.js @@ -53,7 +53,9 @@ export default class SlideAgent extends React.Component { this.setState({ searchValue: value }) - }} onSearch={(value) => { this.handleSearch(value)}}/> + }} onSearch={(value) => { + this.handleSearch(value) +}}/>
{this.handlePageChange(value)}, + onChange: (value) => { +this.handlePageChange(value) +}, total: taxAgentList.total, showTotal: (total) => `共 ${total} 条`, current: taxAgentList.pageNum diff --git a/pc4mobx/hrmSalary/pages/salaryFile/slideSalaryItem.js b/pc4mobx/hrmSalary/pages/salaryFile/slideSalaryItem.js index 244d1412..bef5daef 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/slideSalaryItem.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/slideSalaryItem.js @@ -55,14 +55,18 @@ export default class SlideSalaryItem extends React.Component { this.setState({ searchValue: value }) - }} onSearch={(value) => { this.handleSearch(value)}}/> + }} onSearch={(value) => { + this.handleSearch(value) +}}/>
{this.handlePageChange(value)}, + onChange: (value) => { +this.handlePageChange(value) +}, total: salaryItemList.total, showTotal: (total) => `共 ${total} 条`, current: salaryItemList.pageNum diff --git a/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js b/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js index c7ac48de..0c900839 100644 --- a/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js +++ b/pc4mobx/hrmSalary/pages/salaryFile/taxAgentChangeList.js @@ -57,7 +57,9 @@ export default class TaxAgentChangeList extends React.Component { dataSource={singleTaxAgentList.list ? singleTaxAgentList.list: []} columns={this.getColumns()} pagination={{ - onChange: (value) => {this.handlePageChange(value)}, + onChange: (value) => { +this.handlePageChange(value) +}, total: singleTaxAgentList.total, showTotal: (total) => `共 ${total} 条`, current: singleTaxAgentList.pageNum @@ -68,7 +70,9 @@ export default class TaxAgentChangeList extends React.Component { currentId={this.props.id} recordId={this.state.recordId} visible={this.state.editAgentVisible} - onCancel={() => {this.setState({editAgentVisible: false})}} + onCancel={() => { +this.setState({editAgentVisible: false}) +}} /> }
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/deleteSalaryItemModal.js b/pc4mobx/hrmSalary/pages/salaryItem/deleteSalaryItemModal.js index 2bc510b4..c8db6b44 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/deleteSalaryItemModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/deleteSalaryItemModal.js @@ -69,12 +69,20 @@ export default class DeleteSalaryItemModal extends React.Component { } return ( - {this.props.onCancel()}} footer={null} width={800}> + { +this.props.onCancel() +}} footer={null} width={800}>
批量删除
- - {this.handleSearchChange(value)}} onSearch={(value) => {this.handleSearch(value)}}/> + + { +this.handleSearchChange(value) +}} onSearch={(value) => { +this.handleSearch(value) +}}/>
@@ -83,7 +91,9 @@ export default class DeleteSalaryItemModal extends React.Component { columns={this.getColumns()} dataSource={canDeleteList.list ? canDeleteList.list : []} pagination={{ - onChange: (value) => {this.handleDataPageChange(value)}, + onChange: (value) => { +this.handleDataPageChange(value) +}, total: canDeleteList.total, showTotal: (total) => `共 ${total} 条`, current: canDeleteList.pageNum diff --git a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js index 8e03cba4..92bbe3d0 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js @@ -193,12 +193,18 @@ export default class FormalFormModal extends React.Component { maskClosable={false} width={800} footer={ - + } - onCancel={() => {this.props.onCancel()}}> + onCancel={() => { +this.props.onCancel() +}}> { (this.props.valueType == "3" || this.referenceType == 'sql') &&
- 返回字段: {this.setState({returnValue: value})}} /> + 返回字段: { +this.setState({returnValue: value}) +}} />
}
@@ -218,7 +224,9 @@ export default class FormalFormModal extends React.Component {
{ searchGroup && searchGroup.map(item => { - return
{this.handleItemClick(item)}}> + return
{ +this.handleItemClick(item) +}}> {item.value} {item.value} 的字段 @@ -232,7 +240,9 @@ export default class FormalFormModal extends React.Component { { searchFields && searchFields.map(item => { return ( -
{this.handleFieldClick(item)}}> +
{ +this.handleFieldClick(item) +}}> {item.name}
) diff --git a/pc4mobx/hrmSalary/pages/salaryItem/index.js b/pc4mobx/hrmSalary/pages/salaryItem/index.js index 04d73c7e..4da687e7 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/index.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/index.js @@ -1,26 +1,23 @@ -import React from 'react'; -import { inject, observer } from 'mobx-react'; -import { toJS } from 'mobx'; +import React from "react"; +import { inject, observer } from "mobx-react"; -import { Button, Table, DatePicker, Switch, Menu, Dropdown, Modal } from 'antd'; +import { Button, DatePicker, Dropdown, Menu, Modal, Switch } from "antd"; // import { WeaTableNew } from "comsMobx" +import { WeaInputSearch, WeaRightMenu, WeaSlideModal, WeaTop } from "ecCom"; -import { WeaTable, WeaSlideModal, WeaTop, WeaTab, WeaRightMenu, WeaRangePicker, WeaInputSearch } from 'ecCom'; +import { renderNoright } from "../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中 +import CustomTab from "../../components/customTab"; +import SystemSalaryItemModal from "./systemSalaryItemModal"; +import { columns } from "./columns"; +import SlideModalTitle from "../../components/slideModalTitle"; +import CustomSalaryItemSlide from "./customSalaryItemSlide"; +import DeleteSalaryItemModal from "./deleteSalaryItemModal"; +import CustomPaginationTable from "../../components/customPaginationTable"; -import { renderNoright, getSearchs } from '../../util'; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中 -import CustomTab from '../../components/customTab'; -import ContentWrapper from '../../components/contentWrapper'; -import SystemSalaryItemModal from './systemSalaryItemModal' -import { columns, dataSource } from './columns'; -import SlideModalTitle from "../../components/slideModalTitle" -import CustomSalaryItemSlide from './customSalaryItemSlide' -import DeleteSalaryItemModal from './deleteSalaryItemModal'; -import FormalFormModal from './formalFormModal'; -import CustomPaginationTable from '../../components/customPaginationTable'; const { MonthPicker } = DatePicker; -@inject('salaryItemStore', 'taxAgentStore') +@inject("salaryItemStore", "taxAgentStore") @observer export default class SalaryItem extends React.Component { constructor(props) { @@ -32,76 +29,78 @@ export default class SalaryItem extends React.Component { isAdd: false, searchValue: "", formalModalVisible: false - } - this.searchParams = {current: 1, pageSize: 10} + }; + this.searchParams = { current: 1, pageSize: 10 }; columns.map(item => { - if(item.dataIndex == "refere") { + if (item.dataIndex == "refere") { item.render = () => { return ( - - ) - } - } else if(item.dataIndex == 'cz') { + + ); + }; + } else if (item.dataIndex == "cz") { item.render = () => { - return (
- 编辑 - 删除 - {/* 操作日志 */} -
) - } - + return (
+ 编辑 + 删除 + {/* 操作日志 */} +
); + }; + } - }) - this.record = {} + }); + this.record = {}; } componentWillMount() { // 初始化渲染页面 - const { salaryItemStore: { doInit }} = this.props; + const { salaryItemStore: { doInit } } = this.props; doInit(); } onEditItem(record, isedit) { - this.record = record - const { salaryItemStore: {getItemForm, setEditSlideVisible}} = this.props; - this.setState({editable: isedit, isAdd: false}) - getItemForm(record.id) - setEditSlideVisible(true) + this.record = record; + const { salaryItemStore: { getItemForm, setEditSlideVisible } } = this.props; + this.setState({ editable: isedit, isAdd: false }); + getItemForm(record.id); + setEditSlideVisible(true); } // 删除列表项 handleDeleteItem(record) { - const { salaryItemStore: {deleteItemRequest}} = this.props; + const { salaryItemStore: { deleteItemRequest } } = this.props; Modal.confirm({ - title: '信息确认', - content: '确认删除', - onOk:() => { - deleteItemRequest([record.id]) + title: "信息确认", + content: "确认删除", + onOk: () => { + deleteItemRequest([record.id]); }, onCancel: () => { - }, + } }); } // 增加编辑功能,重写columns绑定事件 getColumns = () => { const { salaryItemStore, taxAgentStore: { showOperateBtn } } = this.props; - const { tableColumns} = salaryItemStore + const { tableColumns } = salaryItemStore; let columns = tableColumns.map(column => { let newColumn = column; newColumn.render = (text, record, index) => { //前端元素转义 let valueSpan = record[newColumn.dataIndex + "span"] !== undefined ? record[newColumn.dataIndex + "span"] : record[newColumn.dataIndex]; - switch(newColumn.dataIndex) { + switch (newColumn.dataIndex) { case "name": - return {this.onEditItem(record, false)}}>{text} + return { + this.onEditItem(record, false); + }}>{text}; case "useInEmployeeSalary": - return + return ; case "useDefault": - return + return ; default: - return
+ return
; } - } + }; return newColumn; }); columns.push({ @@ -109,126 +108,147 @@ export default class SalaryItem extends React.Component { title: "操作", render: (text, record) => { return ( - {this.onEditItem(record, true)}}>{ showOperateBtn ? '编辑' : '查看' } - ) + { + this.onEditItem(record, true); + }}>{showOperateBtn ? "编辑" : "查看"} + ); } - }) + }); columns.push({ - title : '', - key: "moreOperate", - dataIndex: "moreOperate", - render: (text, record) => { - if(record.canDelete) { - return ( - - - { - this.handleDeleteItem(record) - }}>删除 - - }> - - - ); - } else { - return "" - } + title: "", + key: "moreOperate", + dataIndex: "moreOperate", + render: (text, record) => { + if (record.canDelete) { + return ( + + + { + this.handleDeleteItem(record); + }}>删除 + + }> + + + ); + } else { + return ""; } - }) + } + }); - return columns - } + return columns; + }; // onOperatesClick = (record, index, operate, flag) => { - + // switch(operate.index.toString()){ // case '0': // 编辑 // this.onEditItem(record, true); // break; // case "1": // 删除 - + // break; // } // }; - - handleSearch(value) { - const { salaryItemStore: {getTableDatas}} = this.props; - this.searchParams = {name: value, current: 1} - getTableDatas(this.searchParams) + const { salaryItemStore: { getTableDatas } } = this.props; + this.searchParams = { name: value, current: 1 }; + getTableDatas(this.searchParams); } handlePageChnage(value) { this.searchParams.current = value; - const { salaryItemStore: {getTableDatas}} = this.props; - getTableDatas(this.searchParams) + const { salaryItemStore: { getTableDatas } } = this.props; + getTableDatas(this.searchParams); } handleShowSizeChange(searchParams) { - const { salaryItemStore: {getTableDatas}} = this.props; - getTableDatas(searchParams) + const { salaryItemStore: { getTableDatas } } = this.props; + getTableDatas(searchParams); } render() { const { salaryItemStore, taxAgentStore: { showOperateBtn } } = this.props; - const { loading, hasRight, form, condition, tableStore, showSearchAd, getTableDatas, doSearch, setShowSearchAd } = salaryItemStore; - const { tableDataSource, tableColumns, systemItemVisible, setSystemItemVisible, deleteItemVisible, setDeleteItemVisible, deleteItemList, editSlideVisible, setEditSlideVisible, request, pageInfo } = salaryItemStore - const { formalModalVisible} = this.state; + const { + loading, + hasRight, + form, + condition, + tableStore, + showSearchAd, + getTableDatas, + doSearch, + setShowSearchAd + } = salaryItemStore; + const { + tableDataSource, + tableColumns, + systemItemVisible, + setSystemItemVisible, + deleteItemVisible, + setDeleteItemVisible, + deleteItemList, + editSlideVisible, + setEditSlideVisible, + request, + pageInfo + } = salaryItemStore; + const { formalModalVisible } = this.state; if (!hasRight && !loading) { // 无权限处理 return renderNoright(); } const batchDelete = () => { // deleteItemList({}) - setDeleteItemVisible(true) - } + setDeleteItemVisible(true); + }; const rightMenu = [// 右键菜单 - { - key: 'BTN_COLUMN', - icon: , - content: '显示列定制', - onClick: this.showColumn - }, + // { + // key: "BTN_COLUMN", + // icon: , + // content: "显示列定制", + // onClick: this.showColumn + // }, { - key: 'BTN_DEL', - icon: , - content : '批量删除', - onClick : batchDelete, + key: "BTN_DEL", + icon: , + content: "批量删除", + onClick: batchDelete } ]; const collectParams = { // 收藏功能配置 - favname: '薪资项目管理', + favname: "薪资项目管理", favouritetype: 1, objid: 0, - link: 'wui/index.html#/ns_demo03/index', - importantlevel: 1, + link: "wui/index.html#/ns_demo03/index", + importantlevel: 1 }; const adBtn = [ // 高级搜索内部按钮 , , - , + ]; - const topTab = [ - ]; - + const topTab = []; + const handleMenuClick = (e) => { - const { salaryItemStore: {getSysItemList, setEditSlideVisible, initRequest}} = this.props; - if(e.key == "1") { - getSysItemList({}) - setSystemItemVisible(true) - } else if(e.key == "2") { - this.setState({editable: true, isAdd: true}) - initRequest() - setEditSlideVisible(true) + const { salaryItemStore: { getSysItemList, setEditSlideVisible, initRequest } } = this.props; + if (e.key == "1") { + getSysItemList({}); + setSystemItemVisible(true); + } else if (e.key == "2") { + this.setState({ editable: true, isAdd: true }); + initRequest(); + setEditSlideVisible(true); } - } + }; const menu = ( @@ -238,26 +258,30 @@ export default class SalaryItem extends React.Component { ); const renderRightOperation = () => { - const { taxAgentStore: { showOperateBtn } }= this.props; - return (
+ const { taxAgentStore: { showOperateBtn } } = this.props; + return (
{ showOperateBtn && - 新增 + 新增 } - {this.setState({searchValue: value})}} onSearch={(value) => {this.handleSearch(value)}}/> -
) - - } + { + this.setState({ searchValue: value }); + }} onSearch={(value) => { + this.handleSearch(value); + }}/> +
); + + }; // 新建和修改保存的回调 const handleSlideSave = (continueFlag) => { - const { salaryItemStore: {saveItem, request}} = this.props; - if(this.state.editable) { // 修改 + const { salaryItemStore: { saveItem, request } } = this.props; + if (this.state.editable) { // 修改 saveItem(request, continueFlag, this.searchParams); } else { // 新建 - saveItem(request, continueFlag) + saveItem(request, continueFlag); } - } + }; const renderCustomOperate = () => { return ( @@ -265,23 +289,29 @@ export default class SalaryItem extends React.Component {
{ this.state.isAdd ?
- - -
: - this.state.editable ?
- -
: - "" + + +
: + this.state.editable ?
+ +
: + "" } - +
- ) - } + ); + }; const handleSaveSlideChange = (value) => { - const { salaryItemStore:{setRequest}} = this.props; - setRequest(value) - } + const { salaryItemStore: { setRequest } } = this.props; + setRequest(value); + }; return (
@@ -291,19 +321,19 @@ export default class SalaryItem extends React.Component { > } // 左侧图标 - iconBgcolor='#F14A2D' // 左侧图标背景色 + icon={} // 左侧图标 + iconBgcolor="#F14A2D" // 左侧图标背景色 showDropIcon={true} // 是否显示下拉按钮 dropMenuDatas={rightMenu} // 下拉菜单(和页面的右键菜单相同) dropMenuProps={{ collectParams }} // 收藏功能: 配置之后显示 收藏、帮助、显示页面地址 这3个功能 > + searchOperationItem={ + renderRightOperation() + } + /> - {/* */} - { - this.handlePageChnage(value) + this.handlePageChnage(value); }} onShowSizeChange={(current, pageSize) => { this.searchParams.current = current; this.searchParams.pageSize = pageSize; - this.handleShowSizeChange(this.searchParams) + this.handleShowSizeChange(this.searchParams); }} /> - + { - systemItemVisible && {setSystemItemVisible(false)}}/> + systemItemVisible && { + setSystemItemVisible(false); + }}/> } { - deleteItemVisible && {setDeleteItemVisible(false)}}/> + deleteItemVisible && { + setDeleteItemVisible(false); + }}/> } { - editSlideVisible && - {this.setState({selectedTab: item.key})} - } - /> - } - content={ {handleSaveSlideChange(value)}}/>} - onClose={() => setEditSlideVisible(false)} - showMask={true} - closeMaskOnClick={() => setEditSlideVisible(false)} /> - - } + editSlideVisible && + { + this.setState({ selectedTab: item.key }); + } + } + /> + } + content={ { + handleSaveSlideChange(value); + }}/>} + onClose={() => setEditSlideVisible(false)} + showMask={true} + closeMaskOnClick={() => setEditSlideVisible(false)}/> + + }
- ) + ); } } diff --git a/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js b/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js index dadcff76..37bd7484 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/systemSalaryItemModal.js @@ -39,12 +39,18 @@ export default class SystemSalaryItemModal extends React.Component { } return ( - {this.props.onCancel()}} width={800}> + { +this.props.onCancel() +}} width={800}>
添加系统薪资项目
- - {this.handleSearchChange(value)}} onSearch={(value) => { + + { +this.handleSearchChange(value) +}} onSearch={(value) => { this.handleSearch(value) }}/>
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js index 9a58c43e..37873afd 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/archives/index.js @@ -1,28 +1,24 @@ -import React from 'react'; -import { inject, observer } from 'mobx-react'; -import { toJS } from 'mobx'; +import React from "react"; +import { inject, observer } from "mobx-react"; +import { toJS } from "mobx"; -import { Button, Table, DatePicker, Dropdown, Menu, message } from 'antd'; +import { Button, DatePicker, Dropdown, Menu, message } from "antd"; -import { WeaTop, WeaTab, WeaRightMenu, WeaRangePicker, WeaTable, WeaSlideModal } from 'ecCom'; +import { WeaRightMenu, WeaSlideModal, WeaTab, WeaTop } from "ecCom"; // import { WeaTableNew } from "comsMobx" // const WeaTable = WeaTableNew.WeaTable; - -import { renderNoright, getSearchs } from '../../../util'; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中 -import CustomTab from '../../../components/customTab'; -import ContentWrapper from '../../../components/contentWrapper'; -import BaseForm from './baseForm' -import SlideModalTitle from '../../../components/slideModalTitle' -import SocialSecurityForm from './socialSecurityForm'; -import AccumulationFundForm from './accumulationFundForm'; -import OtherForm from './otherForm'; -import { tempateColumns } from '../../payroll/columns'; -import CustomPaginationTable from '../../../components/customPaginationTable'; -import ImportModal from '../../../components/importModal'; +import { getSearchs, renderNoright } from "../../../util"; // 渲染form数据的方法:因为多个页面都会使用,所以抽的公共方法在util中 +import BaseForm from "./baseForm"; +import SlideModalTitle from "../../../components/slideModalTitle"; +import SocialSecurityForm from "./socialSecurityForm"; +import AccumulationFundForm from "./accumulationFundForm"; +import OtherForm from "./otherForm"; +import CustomPaginationTable from "../../../components/customPaginationTable"; +import ImportModal from "../../../components/importModal"; const { MonthPicker } = DatePicker; -@inject('archivesStore','taxAgentStore') +@inject("archivesStore", "taxAgentStore") @observer export default class Archives extends React.Component { constructor(props) { @@ -37,33 +33,33 @@ export default class Archives extends React.Component { modalParam: {}, step: 0, selectedRowKeys: [] - } + }; - this.record = {} - this.pageInfo = {current: 1, pageSize: 10} + this.record = {}; + this.pageInfo = { current: 1, pageSize: 10 }; } componentWillMount() { - const { archivesStore: {doInit}} = this.props; - doInit() + const { archivesStore: { doInit } } = this.props; + doInit(); } handleEdit(record) { - this.record = record - this.setState({employeeId: record.employeeId, editSlideVisible: true}) + this.record = record; + this.setState({ employeeId: record.employeeId, editSlideVisible: true }); } setStep(step) { - this.setState({step}) + this.setState({ step }); } getColumns() { - const { archivesStore: {tableStore}, taxAgentStore: { showOperateBtn }} = this.props; - let columns = [...tableStore.columns] - columns = columns.filter(item => item.hide == "false") + const { archivesStore: { tableStore }, taxAgentStore: { showOperateBtn } } = this.props; + let columns = [...tableStore.columns]; + columns = columns.filter(item => item.hide == "false"); columns.map(item => { - item.width = "150px" - }) + item.width = "150px"; + }); columns.push({ title: "操作", dataIndex: "operate", @@ -71,99 +67,102 @@ export default class Archives extends React.Component { width: "100px", height: "auto", render: (text, record) => { - return ( {this.handleEdit(record)}}>{showOperateBtn ? '编辑' : '查看'}) + return ( { + this.handleEdit(record); + }}>{showOperateBtn ? "编辑" : "查看"}); } - }) + }); return columns; } // 保存 handleEditSlideSave() { const { selectedTab } = this.state; - const { archivesStore: {save}} = this.props; - if(selectedTab == 1) { - save("SOCIAL_SECURITY") - } else if(selectedTab == 2) { - save("ACCUMULATION_FUND") - } else if(selectedTab == 3) { - save("OTHER") + const { archivesStore: { save } } = this.props; + if (selectedTab == 1) { + save("SOCIAL_SECURITY"); + } else if (selectedTab == 2) { + save("ACCUMULATION_FUND"); + } else if (selectedTab == 3) { + save("OTHER"); } } handlePageChnage(value) { - const { archivesStore: {form, getTableDatas}} = this.props; - this.pageInfo.current = value - getTableDatas(this.pageInfo) + const { archivesStore: { form, getTableDatas } } = this.props; + this.pageInfo.current = value; + getTableDatas(this.pageInfo); } // 导入 handleBtnImport() { - this.setState({importVisible: true}) + this.setState({ importVisible: true }); } // 模板点击 handleTemplateLinkClick(exportData) { - const { archivesStore: {exportTempateDownload} } = this.props; - exportTempateDownload({exportData}) + const { archivesStore: { exportTempateDownload } } = this.props; + exportTempateDownload({ exportData }); } // 导入预览 handlePreviewImport(params) { - const { archivesStore: {previewCurData}} = this.props; - previewCurData(params) + const { archivesStore: { previewCurData } } = this.props; + previewCurData(params); } // 导入 handleImport(params) { - const { archivesStore: {importBatch, initImportParams}} = this.props; - importBatch(params) + const { archivesStore: { importBatch, initImportParams } } = this.props; + importBatch(params); } // 导入完成 handleFinish() { - const { archivesStore: {getTableDatas, initImportParams}} = this.props; - initImportParams() - this.setState({importVisible: false, step: 0}) - getTableDatas() + const { archivesStore: { getTableDatas, initImportParams } } = this.props; + initImportParams(); + this.setState({ importVisible: false, step: 0 }); + getTableDatas(); } // 初始化导入参数 handleInitModal() { - const { archivesStore: { setPreviewCurDataColumns, setPreviewCurDataDataSource, setImportResult }} = this.props; - setPreviewCurDataColumns([]) - setPreviewCurDataDataSource([]) - setImportResult({}) + const { archivesStore: { setPreviewCurDataColumns, setPreviewCurDataDataSource, setImportResult } } = this.props; + setPreviewCurDataColumns([]); + setPreviewCurDataDataSource([]); + setImportResult({}); } // 选项设置 onSelectChange = selectedRowKeys => { this.setState({ selectedRowKeys }); - } + }; // 关闭导入框 handleImportCancel() { - const { archivesStore: {initImportParams, getTableDatas }} = this.props; + const { archivesStore: { initImportParams, getTableDatas } } = this.props; - initImportParams() - if(this.state.step == 2) { - getTableDatas() + initImportParams(); + if (this.state.step == 2) { + getTableDatas(); } - this.setState({importVisible: false, step: 0}); + this.setState({ importVisible: false, step: 0 }); } handleSearch() { - const { archivesStore: {getTableDatas}} = this.props; - getTableDatas({...this.pageInfo, current: 1}) + const { archivesStore: { getTableDatas } } = this.props; + getTableDatas({ ...this.pageInfo, current: 1 }); } render() { const { archivesStore, taxAgentStore: { showOperateBtn } } = this.props; const { selectedTab, selectedRowKeys } = this.state; - const { loading, hasRight, form, condition, tableStore, showSearchAd, getTableDatas, doSearch, setShowSearchAd, + const { + loading, hasRight, form, condition, tableStore, showSearchAd, getTableDatas, doSearch, setShowSearchAd, previewCurDataColumns, previewCurDataDataSource, importResult, initImportParams - } = archivesStore; - const { dataSource, pageInfo } = archivesStore + } = archivesStore; + const { dataSource, pageInfo } = archivesStore; if (!hasRight && !loading) { // 无权限处理 return renderNoright(); } @@ -177,41 +176,42 @@ export default class Archives extends React.Component { // }, ]; const collectParams = { // 收藏功能配置 - favname: '社保福利档案', + favname: "社保福利档案", favouritetype: 1, objid: 0, - link: 'wui/index.html#/ns_demo03/index', - importantlevel: 1, + link: "wui/index.html#/ns_demo03/index", + importantlevel: 1 }; const adBtn = [ // 高级搜索内部按钮 , , - , + ]; - const topTab = [ - ]; + const topTab = []; // 导出全部 const handleButtonClick = () => { - const { archivesStore:{exportArchives}} = this.props; - exportArchives() - } + const { archivesStore: { exportArchives } } = this.props; + exportArchives(); + }; // 导出选中 const handleMenuClick = () => { const { selectedRowKeys } = this.state; - if(selectedRowKeys.length == 0) { + if (selectedRowKeys.length == 0) { message.warning("未选择任何条目", 1); - return + return; } - let ids = selectedRowKeys.join(",") - const { archivesStore:{exportArchives}} = this.props; - exportArchives(ids) - } + let ids = selectedRowKeys.join(","); + const { archivesStore: { exportArchives } } = this.props; + exportArchives(ids); + }; const btns = [ - , + , 导出选中 @@ -219,16 +219,16 @@ export default class Archives extends React.Component { } type="ghost"> 导出全部 - ] + ]; const renderSearchOperationItem = () => { - return
- } + return
; + }; const rowSelection = { selectedRowKeys, - onChange: this.onSelectChange, + onChange: this.onSelectChange }; return ( @@ -239,8 +239,8 @@ export default class Archives extends React.Component { > } // 左侧图标 - iconBgcolor='#F14A2D' // 左侧图标背景色 + icon={} // 左侧图标 + iconBgcolor="#F14A2D" // 左侧图标背景色 showDropIcon={true} // 是否显示下拉按钮 dropMenuDatas={rightMenu} // 下拉菜单(和页面的右键菜单相同) dropMenuProps={{ collectParams }} // 收藏功能: 配置之后显示 收藏、帮助、显示页面地址 这3个功能 @@ -248,15 +248,18 @@ export default class Archives extends React.Component { > setShowSearchAd(bool)} //高级搜索面板受控 - searchsAd={getSearchs(form, toJS(condition), 2)} // 高级搜索内部数据 - buttonsAd={adBtn} // 高级搜索内部按钮 - onSearch={() => {this.handleSearch()}} // 点搜索按钮时的回调 - onSearchChange={v => form.updateFields({ username: v })} // 在搜索框中输入的文字改变时的回调: 这里需要同步高级搜索和外部搜索框的值 - searchsBaseValue={form.getFormParams().username} // 外部input搜索值受控: 这里和高级搜索的requestname同步 - /> + searchType={["base", "advanced"]} // base:基础搜索框 advanced:显示高级搜索按钮 + showSearchAd={showSearchAd} // 是否展开高级搜索面板 + setShowSearchAd={bool => setShowSearchAd(bool)} //高级搜索面板受控 + searchsAd={getSearchs(form, toJS(condition), 2)} // 高级搜索内部数据 + buttonsAd={adBtn} // 高级搜索内部按钮 + searchsBasePlaceHolder={"请输入姓名"} + onSearch={() => { + this.handleSearch(); + }} // 点搜索按钮时的回调 + onSearchChange={v => form.updateFields({ username: v })} // 在搜索框中输入的文字改变时的回调: 这里需要同步高级搜索和外部搜索框的值 + searchsBaseValue={form.getFormParams().username} // 外部input搜索值受控: 这里和高级搜索的requestname同步 + /> {/* 0 ? this.getColumns().length * 150: 1000 }} + scroll={{ x: this.getColumns().length > 0 ? this.getColumns().length * 150 : 1000 }} onPageChange={(value) => { - this.handlePageChnage(value) + this.handlePageChnage(value); }} onShowSizeChange={(current, pageSize) => { - this.pageInfo = {current, pageSize} - getTableDatas(this.pageInfo) + this.pageInfo = { current, pageSize }; + getTableDatas(this.pageInfo); }} - /> + /> { - this.state.editSlideVisible && - - { - showOperateBtn && selectedTab != 0 && - } -
- } - subItemChange={ - (item) => {this.setState({selectedTab: item.key})} - } - /> - } - content={
- { - selectedTab == 0 && - } - { - selectedTab == 1 && - } - { - selectedTab == 2 && - } - { - selectedTab == 3 && - } + this.state.editSlideVisible && + + { + showOperateBtn && selectedTab != 0 && + } +
+ } + subItemChange={ + (item) => { + this.setState({ selectedTab: item.key }); + } + } + /> + } + content={
+ { + selectedTab == 0 && + } + { + selectedTab == 1 && + + } + { + selectedTab == 2 && + + } + { + selectedTab == 3 && + } -
} - onClose={() => this.setState({editSlideVisible: false})} - showMask={true} - closeMaskOnClick={() => this.setState({editSlideVisible: false})} /> - } - { - this.state.importVisible && { - this.handleInitModal() - }} - params={this.state.modalParam} - columns={previewCurDataColumns} - step={this.state.step} - setStep={this.setStep.bind(this)} - // isInit 暂时去掉导入带数据的 - slideDataSource={previewCurDataDataSource} - importResult={importResult} - onFinish={() => {this.handleFinish()}} - previewImport={(params) => {this.handlePreviewImport(params)}} - importFile={(params) => {this.handleImport(params);}} - templateLink={(exportData) => {this.handleTemplateLinkClick(exportData)}} - visiable={this.state.importVisible} - onCancel={() => { - this.handleImportCancel() +
} + onClose={() => this.setState({ editSlideVisible: false })} + showMask={true} + closeMaskOnClick={() => this.setState({ editSlideVisible: false })}/> + } + { + this.state.importVisible && { + this.handleInitModal(); + }} + params={this.state.modalParam} + columns={previewCurDataColumns} + step={this.state.step} + setStep={this.setStep.bind(this)} + isInit + slideDataSource={previewCurDataDataSource} + importResult={importResult} + onFinish={() => { + this.handleFinish(); + }} + previewImport={(params) => { + this.handlePreviewImport(params); + }} + importFile={(params) => { + this.handleImport(params); + }} + templateLink={(exportData) => { + this.handleTemplateLinkClick(exportData); + }} + visiable={this.state.importVisible} + onCancel={() => { + this.handleImportCancel(); - }} - /> - } + }} + /> + }
- ) + ); } } diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js index 1e4d920d..d1449921 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/customNewModal.js @@ -28,9 +28,15 @@ export default class CustomNewModal extends React.Component { render() { const { programmeStore: {customRequest, setCustomRequest}} = this.props; return ( - {this.props.onCancel()}} title="新建自定义福利" onOk={() => {this.handleOK()}}> + { +this.props.onCancel() +}} title="新建自定义福利" onOk={() => { +this.handleOK() +}}> {/* {getCustomSearchs(this.props.form, toJS(this.props.condition), 1)} */} - {setCustomRequest(value)}}/> + { +setCustomRequest(value) +}}/> ) } diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js index 37adf04a..cdfa5382 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/programme/index.js @@ -113,14 +113,14 @@ export default class Programme extends React.Component { {/*暂时隐藏*/} - {/**/} - {/* {*/} - {/* this.onDelete(record);*/} - {/* }}>*/} - {/* 删除*/} - {/* */} - {/**/} + + { + this.onDelete(record); + }}> + 删除 + + }> diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js index 226b4cf3..f91d442d 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/components/abnormalDrawer.js @@ -61,7 +61,9 @@ export default class AbnormalDrawer extends Component { dataSource={this.props.dataSource} loading={loading} pagination={{ - onChange: (value) => {this.props.onPageChange(value)}, + onChange: (value) => { +this.props.onPageChange(value) +}, total: this.props.total, showTotal: (total) => `共 ${total} 条`, }} diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/abnormalList.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/abnormalList.js index 8928998d..cb6cd3ec 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/abnormalList.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/abnormalList.js @@ -5,9 +5,9 @@ * LastEditTime: 2022-05-09 15:07:19 */ import React, { Component } from "react"; -import { Icon, Tooltip, Button, Spin } from "antd"; +import { Button, Icon, Spin, Tooltip } from "antd"; import { inject, observer } from "mobx-react"; -import { WeaBrowser, WeaTable, WeaInputSearch } from "ecCom"; +import { WeaInputSearch, WeaTable } from "ecCom"; import "./index.less"; @inject("standingBookStore") @@ -22,8 +22,8 @@ export default class AbnormalListIndex extends Component { tableData: { list: [], columns: [], - total: 0, - }, + total: 0 + } }; } @@ -39,8 +39,8 @@ export default class AbnormalListIndex extends Component { this.setState({ tableData: { list, - total, - }, + total + } }); }); }; @@ -50,6 +50,7 @@ export default class AbnormalListIndex extends Component { const { current } = this.state; this.getChangeList({ billMonth, current, userName: value }); } + render() { const { remarks, billMonth, selectedKey } = this.props; const { selectedRowKeys } = this.state; @@ -66,7 +67,7 @@ export default class AbnormalListIndex extends Component { onChange: (current) => { this.setState({ current }); this.getChangeList({ billMonth, current }); - }, + } }; return (
@@ -77,7 +78,7 @@ export default class AbnormalListIndex extends Component { - + {billMonth} @@ -85,7 +86,15 @@ export default class AbnormalListIndex extends Component {
- {this.setState({searchValue: value})}} onSearch={(value) => {this.handleSearch(value)}}/> + { + this.setState({ searchValue: value }); + }} + onSearch={(value) => { + this.handleSearch(value); + }} + />
{/* table */}
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js index 630b7ac7..b1f25c49 100644 --- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js +++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/normal.js @@ -487,6 +487,7 @@ export default class NormalIndex extends Component { onChange={value => { this.setState({ searchValue: value }); }} + placeholder={"请输入姓名"} onSearch={value => { this.handleSearch(value); }} diff --git a/pc4mobx/hrmSalary/pages/taxRate/editSlideContent.js b/pc4mobx/hrmSalary/pages/taxRate/editSlideContent.js index c29f8670..34b49e31 100644 --- a/pc4mobx/hrmSalary/pages/taxRate/editSlideContent.js +++ b/pc4mobx/hrmSalary/pages/taxRate/editSlideContent.js @@ -82,7 +82,9 @@ export default class EditSlideContent extends React.Component { dataSource={dataSource} bordered type="number" - addItem={() => {this.addItem()}} + addItem={() => { +this.addItem() +}} onDataSourceChange={setDataSource} editable={this.state.editable} /> diff --git a/pc4mobx/hrmSalary/pages/taxRate/index.js b/pc4mobx/hrmSalary/pages/taxRate/index.js index 1d6dc48c..b7ed0fb8 100644 --- a/pc4mobx/hrmSalary/pages/taxRate/index.js +++ b/pc4mobx/hrmSalary/pages/taxRate/index.js @@ -46,7 +46,9 @@ export default class TaxRate extends React.Component { let valueSpan = record[newColumn.dataIndex + "span"] !== undefined ? record[newColumn.dataIndex + "span"] : record[newColumn.dataIndex]; switch(newColumn.dataIndex) { case "name": - return {this.onEdit(record, false)}} + return { +this.onEdit(record, false) +}} dangerouslySetInnerHTML={{ __html: valueSpan }} /> default: return
@@ -137,7 +139,9 @@ export default class TaxRate extends React.Component { {' '} {doSearch({name})}} + onSearch={(name) => { +doSearch({name}) +}} />
@@ -190,7 +194,9 @@ export default class TaxRate extends React.Component { {this.state.currentOperate == "add" ? doSave() : doUpdate()}} + onSave={() => { +this.state.currentOperate == "add" ? doSave() : doUpdate() +}} editable={this.state.editable} /> } diff --git a/pc4mobx/hrmSalary/stores/calculate.js b/pc4mobx/hrmSalary/stores/calculate.js index 62805f2f..36a4318c 100644 --- a/pc4mobx/hrmSalary/stores/calculate.js +++ b/pc4mobx/hrmSalary/stores/calculate.js @@ -1,9 +1,8 @@ -import { observable, action, toJS } from 'mobx'; -import { message } from 'antd'; -import { WeaForm, WeaTableNew } from 'comsMobx'; +import { action, observable } from "mobx"; +import { message } from "antd"; +import { WeaForm, WeaTableNew } from "comsMobx"; -import * as API from '../apis/calculate'; // 引入API接口文件 -import { empFieldList } from '../apis/ledger'; +import * as API from "../apis/calculate"; const { TableStore } = WeaTableNew; @@ -18,8 +17,8 @@ export class calculateStore { // ** 薪资核算列表 ** @observable salaryListDataSource = []; @observable salaryListColumns = []; - @observable calculateBaseForm = {} - @observable salaryListPageInfo = {} + @observable calculateBaseForm = {}; + @observable salaryListPageInfo = {}; // ** 核算信息页 *** // 核算人员 @@ -31,14 +30,14 @@ export class calculateStore { @observable reducedemployeeListColumns = []; // 列 @observable reducedemployeeListPageInfo = {}; // 分页信息 // 薪资周期、考勤周期 - @observable baseSalarySobCycle = {} + @observable baseSalarySobCycle = {}; // *** 薪资核算 *** // 核算结果--列表 @observable acctResultListDateSource = []; // dataSource @observable acctResultListColumns = []; // 列 @observable acctresultDetailForm = {}; // 编辑薪资表单数据 - @observable acctResultListTableStore = new TableStore() + @observable acctResultListTableStore = new TableStore(); @observable acctResultListPageInfo = {}; // 分页信息 // 导入 @observable importFieldData = {}; // 表头选择列表 @@ -56,51 +55,56 @@ export class calculateStore { @observable comparisonImportAcctResult = {}; // 导入结果 @observable comparisonResultColumns = []; // 表头 - // ** 核算进度 ** + // ** 核算进度 ** @observable calculateProgress = 0; + // ** 列表说明数据 ** + @observable columnDescList = {}; - // ** 设置导入参数 ** + + // ** 设置导入参数 ** @action setPreviewAcctResultColumns = (previewAcctResultColumns) => { - this.previewAcctResultColumns = previewAcctResultColumns - } + this.previewAcctResultColumns = previewAcctResultColumns; + }; @action setPreviewAcctResultDataSource = previewAcctResultDataSource => { this.previewAcctResultDataSource = previewAcctResultDataSource; - } + }; @action setImportAcctResult = importAcctResult => { this.importAcctResult = importAcctResult; - } + }; @action setComparisonPreviewColumns = comparisonPreviewColumns => { this.comparisonPreviewColumns = comparisonPreviewColumns; - } + }; @action setComparisonPreviewDataSource = comparisonPreviewDataSource => { - this.comparisonPreviewDataSource = comparisonPreviewDataSource - } + this.comparisonPreviewDataSource = comparisonPreviewDataSource; + }; @action setComparisonImportAcctResult = comparisonImportAcctResult => { - this.comparisonImportAcctResult = comparisonImportAcctResult - } + this.comparisonImportAcctResult = comparisonImportAcctResult; + }; // 编辑薪资表单数据 @action - setAcctresultDetailForm = (acctresultDetailForm) => {this.acctresultDetailForm = acctresultDetailForm} + setAcctresultDetailForm = (acctresultDetailForm) => { + this.acctresultDetailForm = acctresultDetailForm; + }; // 初始化操作 @action doInit = () => { this.getCondition(); this.getTableDatas(); - } + }; // 获得高级搜索表单数据 @action @@ -110,10 +114,10 @@ export class calculateStore { this.condition = res.condition; this.form.initFormFields(res.condition); // 渲染高级搜索form表单 } else { - message.error(res.msg || '接口调用失败!') + message.error(res.msg || "接口调用失败!"); } })); - } + }; // 渲染table数据 @action @@ -126,11 +130,11 @@ export class calculateStore { this.tableStore.getDatas(res.datas); // table 请求数据 this.hasRight = res.hasRight; } else { - message.error(res.msg || '接口调用失败!') + message.error(res.msg || "接口调用失败!"); } this.loading = false; })); - } + }; @action setShowSearchAd = bool => this.showSearchAd = bool; @@ -139,472 +143,516 @@ export class calculateStore { @action doSearch = () => { this.getTableDatas(); this.showSearchAd = false; - } + }; // 薪资记录--薪资核算列表 @action getSalaryAcctList = (params = {}) => { - this.loading = true + this.loading = true; API.getSalaryAcctList(params).then(res => { - if(res.status) { + if (res.status) { this.salaryListDataSource = res.data.list; - this.salaryListColumns = res.data.columns - this.salaryListPageInfo = res.data + this.salaryListColumns = res.data.columns; + this.salaryListPageInfo = res.data; } else { - message.error(res.errormsg || '获取失败'); + message.error(res.errormsg || "获取失败"); } - this.loading = false - }) - } + this.loading = false; + }); + }; // 薪资记录--保存薪资核算的基本信息 @action saveBasic = (params = {}) => { return new Promise((resolve, reject) => { API.saveBasic(params).then(res => { - if(res.status) { + if (res.status) { message.success("保存成功"); - resolve(res.data) + resolve(res.data); } else { - message.error(res.errormsg || "保存失败") - reject() + message.error(res.errormsg || "保存失败"); + reject(); } - }) - }) - - } + }); + }); + + }; // 薪资记录--薪资核算详情 @action salaryacctGetForm = (id) => { return new Promise((resolve, reject) => { - API.salaryacctGetForm({id}).then(res => { - if(res.status) { - this.calculateBaseForm = res.data - resolve(res.data) + API.salaryacctGetForm({ id }).then(res => { + if (res.status) { + this.calculateBaseForm = res.data; + resolve(res.data); } else { - message.error(res.errormsg || "获取失败") - reject() + message.error(res.errormsg || "获取失败"); + reject(); } - }) - }) - } + }); + }); + }; // 核算人员--薪资核算人员确认列表 @action acctemployeeList = (params) => { - API.acctemployeeList(params).then((res) => { - if(res.status) { - this.acctemployeeListDataSource = res.data.list ? res.data.list : [] - this.acctemployeeListColumns = res.data.columns; - this.acctemployeeListPageInfo = res.data - } else { - message.error(res.errormsg || "获取失败") + const { departmentIds = "", positionIds = "", ...extraParams } = params || {}; + params = { + ...extraParams, + departmentIds: departmentIds ? departmentIds.split(",") : undefined, + positionIds: positionIds ? positionIds.split(",") : undefined + }; + for (let key in params) { + if (params[key] === "") { + delete params[key]; } - }) - } + } + API.acctemployeeList(params).then((res) => { + if (res.status) { + this.acctemployeeListDataSource = res.data.list ? res.data.list : []; + this.acctemployeeListColumns = res.data.columns; + this.acctemployeeListPageInfo = res.data; + } else { + message.error(res.errormsg || "获取失败"); + } + }); + }; // 核算人员--检查薪资核算人员的个税扣缴义务人 @action checkTaxAgent = (id = "") => { - API.checkTaxAgent({salaryAcctRecordId: id}).then(res => { - if(res.status) { - + API.checkTaxAgent({ salaryAcctRecordId: id }).then(res => { + if (res.status) { + } else { message.error(res.errormsg || "获取失败"); } - }) - } + }); + }; // 核算人员--薪资核算环比上期减少人员列表 @action reducedemployeeList = (params) => { - this.loading = true - API.reducedemployeeList(params).then(res => { - if(res.status) { - this.reducedemployeeListDataSource = res.data.list ? res.data.list: []; - this.reducedemployeeListColumns = res.data.columns; - this.reducedemployeeListPageInfo = res.data - } else { - message.error(res.errormsg || "获取失败") + this.loading = true; + const { departmentIds = "", positionIds = "", ...extraParams } = params || {}; + params = { + ...extraParams, + departmentIds: departmentIds ? departmentIds.split(",") : undefined, + positionIds: positionIds ? positionIds.split(",") : undefined + }; + for (let key in params) { + if (params[key] === "") { + delete params[key]; } - this.loading = false - }) - } + } + API.reducedemployeeList(params).then(res => { + if (res.status) { + this.reducedemployeeListDataSource = res.data.list ? res.data.list : []; + this.reducedemployeeListColumns = res.data.columns; + this.reducedemployeeListPageInfo = res.data; + } else { + message.error(res.errormsg || "获取失败"); + } + this.loading = false; + }); + }; // 薪资记录--获取薪资核算的薪资周期、考勤周期等 @action getSalarySobCycle = (id = "") => { - API.getSalarySobCycle({salaryAcctRecordId: id}).then(res => { - if(res.status) { - this.baseSalarySobCycle = res.data + API.getSalarySobCycle({ salaryAcctRecordId: id }).then(res => { + if (res.status) { + this.baseSalarySobCycle = res.data; } else { - message.error(res.errormsg || "获取失败") + message.error(res.errormsg || "获取失败"); } - }) - } + }); + }; // 核算人员--添加薪资核算人员 @action saveAcctemployee = (salaryAcctRecordId, employeeIds) => { return new Promise((resolve, reject) => { - API.saveAcctemployee({salaryAcctRecordId, employeeIds}).then(res => { - if(res.status) { + API.saveAcctemployee({ salaryAcctRecordId, employeeIds }).then(res => { + if (res.status) { resolve(); } else { - message.error(res.errormsg || "保存失败") + message.error(res.errormsg || "保存失败"); reject(); } - }) - }) - } + }); + }); + }; // 核算人员--导出环比减少人员 @action exportReducedEmployee = (id) => { - API.exportReducedEmployee(id) - } + API.exportReducedEmployee(id); + }; // 核算人员--导出人员范围 @action exportAcctEmployee = (id) => { - API.exportAcctEmployee(id) - } + API.exportAcctEmployee(id); + }; // 核算人员--删除薪资核算人员 @action deleteAcctemployee = (salaryAcctRecordId, ids) => { return new Promise((resolve, reject) => { - API.deleteAcctemployee({salaryAcctRecordId, ids}).then(res => { - if(res.status) { + API.deleteAcctemployee({ salaryAcctRecordId, ids }).then(res => { + if (res.status) { message.success("删除成功"); resolve(); } else { - message.error(res.errormsg || "删除失败") + message.error(res.errormsg || "删除失败"); reject(); } - }) - }) - } - + }); + }); + }; + // 核算结果--列表 @action - acctResultList = (salaryAcctRecordId, employeeName = "", current = 1, params = {}) => { - this.loading = true - API.acctResultList({salaryAcctRecordId, employeeName, current, ...params}).then(res => { - if(res.status) { - // this.acctResultListTableStore.getDatas(res.data.dataKey.datas) - - let list = res.data.pageInfo.list ? res.data.pageInfo.list: []; - list.map(item => { - item.key = item.id - }) - this.acctResultListDateSource = list; - this.acctResultListPageInfo = res.data.pageInfo - this.acctResultListColumns = res.data.columns; - } else { - message.error(res.errormsg || "") + acctResultList = (params = {}) => { + this.loading = true; + const { departmentIds = "", positionIds = "", consolidatedTaxation = "0", ...extraParams } = params || {}; + params = { + ...extraParams, + departmentIds: departmentIds ? departmentIds.split(",") : undefined, + positionIds: positionIds ? positionIds.split(",") : undefined, + consolidatedTaxation: consolidatedTaxation === "0" ? null : "1" + }; + for (let key in params) { + if (params[key] === "") { + delete params[key]; } - this.loading = false - }) - } + } + API.acctResultList({ ...params }).then(res => { + if (res.status) { + let list = res.data.pageInfo.list ? res.data.pageInfo.list : []; + list.map(item => { + item.key = item.id; + }); + this.acctResultListDateSource = list; + this.acctResultListPageInfo = res.data.pageInfo; + this.acctResultListColumns = res.data.columns; + this.getColumnDesc({ salaryAcctRecordId: params.salaryAcctRecordId }); + } else { + message.error(res.errormsg || ""); + } + this.loading = false; + }); + }; + + @action + getColumnDesc = (params) => { + API.getColumnDesc(params).then(res => { + if (res.status) { + this.columnDescList = res.data; + } else { + message.error(res.errormsg); + } + }); + }; // 核算结果--薪资核算 @action acctresultAccounting = (salaryAcctRecordId) => { return new Promise((resolve, reject) => { - API.acctresultAccounting({salaryAcctRecordId}).then(res => { - if(res.status) { + API.acctresultAccounting({ salaryAcctRecordId }).then(res => { + if (res.status) { // message.success("核算成功") resolve(); } else { - message.error(res.errormsg || "核算失败") + message.error(res.errormsg || "核算失败"); reject(); } - }) - }) - - } + }); + }); + + }; // 线下比对-列表 @action comparisonresultList = (salaryAcctRecordId, params = {}) => { - API.comparisonresultList({salaryAcctRecordId, ...params}).then(res => { - if(res.status) { + API.comparisonresultList({ salaryAcctRecordId, ...params }).then(res => { + if (res.status) { this.comparisonresultListDataSource = res.data.list ? res.data.list : []; - this.comparisonresultListColumns = res.data.columns + this.comparisonresultListColumns = res.data.columns; } else { - message.error(res.errormsg || "获取失败") + message.error(res.errormsg || "获取失败"); } - }) - } + }); + }; // 核算人员--刷新薪资核算人员的个税扣缴义务人 @action refreshTaxAgent = (salaryAcctRecordId) => { return new Promise((resolve, reject) => { - API.refreshTaxAgent({salaryAcctRecordId}).then(res => { - if(res.status) { - message.success("刷新成功") + API.refreshTaxAgent({ salaryAcctRecordId }).then(res => { + if (res.status) { + message.success("刷新成功"); resolve(); } else { - message.error(res.errormsg || "刷新失败") + message.error(res.errormsg || "刷新失败"); reject(); } - }) - }) - } + }); + }); + }; // 薪资核算-编辑表单 @action acctresultDetail = (id) => { - API.acctresultDetail({id}).then(res => { - if(res.status) { - this.acctresultDetailForm = res.data + API.acctresultDetail({ id }).then(res => { + if (res.status) { + this.acctresultDetailForm = res.data; } else { - message.error(res.errormsg || '获取失败') + message.error(res.errormsg || "获取失败"); } - }) - } + }); + }; // 薪资记录--删除薪资核算记录 @action deleteSalaryacct = (ids) => { return new Promise((resolve, reject) => { API.deleteSalaryacct(ids).then(res => { - if(res.status) { - message.success("删除成功") + if (res.status) { + message.success("删除成功"); resolve(); } else { - message.error(res.errormsg || "删除失败") + message.error(res.errormsg || "删除失败"); reject(); } - }) - }) - } + }); + }); + }; // 薪资记录--归档薪资核算记录 @action fileSalaryAcct = (id) => { return new Promise((resolve, reject) => { - API.fileSalaryAcct({id}).then(res => { - if(res.status) { - message.success("归档成功") + API.fileSalaryAcct({ id }).then(res => { + if (res.status) { + message.success("归档成功"); resolve(); } else { - message.error(res.errormsg || "归档失败") + message.error(res.errormsg || "归档失败"); reject(); } - }) - }) - } + }); + }); + }; // 薪资记录-重新核算 @action reAccounting = (salaryAcctRecordId) => { - return new Promise((resolve,reject) => { - API.reAccounting({salaryAcctRecordId}).then(res => { - if(res.status) { - message.success("保存成功") + return new Promise((resolve, reject) => { + API.reAccounting({ salaryAcctRecordId }).then(res => { + if (res.status) { + message.success("保存成功"); resolve(); } else { - message.error(res.errormsg || "保存失败") + message.error(res.errormsg || "保存失败"); reject(); } - }) - }) - - } + }); + }); + + }; // 薪资结果-编辑表单保存 @action saveAcctResult = (recordId) => { let inputItems = this.acctresultDetailForm.inputItems.map(item => { - let record = {} - record.salaryItemId = item.salaryItemId - record.resultValue = item.resultValue + let record = {}; + record.salaryItemId = item.salaryItemId; + record.resultValue = item.resultValue; return record; - }) + }); - let formulaItems = this.acctresultDetailForm.formulaItems.map(item =>{ - let record = {} - record.salaryItemId = item.salaryItemId - record.resultValue = item.resultValue + let formulaItems = this.acctresultDetailForm.formulaItems.map(item => { + let record = {}; + record.salaryItemId = item.salaryItemId; + record.resultValue = item.resultValue; return record; - }) + }); - let items = inputItems.concat(formulaItems) + let items = inputItems.concat(formulaItems); let params = { salaryAcctEmpId: recordId, items - } - return new Promise((resolve,reject) => { + }; + return new Promise((resolve, reject) => { API.saveAcctResult(params).then(res => { - if(res.status) { - message.success("保存成功") + if (res.status) { + message.success("保存成功"); resolve(); } else { - message.error(res.errormsg || "保存失败") + message.error(res.errormsg || "保存失败"); reject(); } - }) - }) - - } + }); + }); + + }; // 获取导入字段设置 @action getImportField = (salaryAcctRecordId) => { return new Promise((resolve, reject) => { - API.getImportField({salaryAcctRecordId}).then(res => { - if(res.status) { - this.importFieldData = res.data - resolve(res.data) + API.getImportField({ salaryAcctRecordId }).then(res => { + if (res.status) { + this.importFieldData = res.data; + resolve(res.data); } else { - message.error(res.errormsg || "获取失败") - reject() + message.error(res.errormsg || "获取失败"); + reject(); } - }) - }) - - } + }); + }); + + }; // 下载薪资导入核算模板 @action getImportTemplate = (salaryItemIds, salaryAcctRecordId) => { - API.getImportTemplate(salaryItemIds, salaryAcctRecordId) - } + API.getImportTemplate(salaryItemIds, salaryAcctRecordId); + }; // 核算结果-导入预览 @action fetchPreviewAcctResult = (params) => { API.previewAcctResult(params).then((res) => { - if(res.status) { - this.previewAcctResultList = res.data + if (res.status) { + this.previewAcctResultList = res.data; this.previewAcctResultColumns = res.data.headers.map((item, index) => { - let column = {} - column.title = item; + let column = {}; + column.title = item; column.dataIndex = "" + index; - column.key = index + "" - return column - }) + column.key = index + ""; + return column; + }); this.previewAcctResultDataSource = res.data.list.map((item) => { - let data = {} + let data = {}; item.map((i, index) => { - data[index + ''] = i - }) - return data - }) + data[index + ""] = i; + }); + return data; + }); } else { - message.error(res.errormsg || "获取失败") + message.error(res.errormsg || "获取失败"); } - }) - } + }); + }; // 核算结果-导入 @action fetchImportAcctResult = (params) => { - API.importAcctResult(params).then(res=> { - if(res.status) { - this.importAcctResult = res.data + API.importAcctResult(params).then(res => { + if (res.status) { + this.importAcctResult = res.data; } else { - message.error(res.errormsg || "导入失败") + message.error(res.errormsg || "导入失败"); } - }) - } + }); + }; // 核算结果-导出全部 @action exportAll = (salaryAcctRecordId, ids = "") => { - API.exportAcctResult(salaryAcctRecordId, ids) - } + API.exportAcctResult(salaryAcctRecordId, ids); + }; // 线下对比-列表 @action fetchComparisonResultList = (params) => { - this.loading = true + this.loading = true; API.comparisonResultList(params).then(res => { - if(res.status) { - this.comparisonResultPageInfo = res.data - this.comparisonResultColumns = res.data.columns + if (res.status) { + this.comparisonResultPageInfo = res.data; + this.comparisonResultColumns = res.data.columns; // this.comparisonResultTableStore.getDatas(res.data.dataKey.datas) } else { - message.error(res.errormsg || "获取失败") + message.error(res.errormsg || "获取失败"); } - this.loading = false - }) - } + this.loading = false; + }); + }; // 线下对比-导入模板 @action exportImportTemplate = (salaryAcctRecordId) => { - API.exportImportTemplate(salaryAcctRecordId) - } + API.exportImportTemplate(salaryAcctRecordId); + }; // 线下对比--导入预览 @action previewComparisonResult = (params) => { API.previewComparisonResult(params).then(res => { - if(res.status) { + if (res.status) { this.comparisonPreviewColumns = res.data.headers.map((item, index) => { - let column = {} - column.title = item; + let column = {}; + column.title = item; column.dataIndex = "" + index; - column.key = index + "" - return column - }) + column.key = index + ""; + return column; + }); this.comparisonPreviewDataSource = res.data.list.map((item) => { - let data = {} + let data = {}; item.map((i, index) => { - data[index + ''] = i - }) - return data - }) + data[index + ""] = i; + }); + return data; + }); } else { - message.error(res.errormsg || "获取失败") + message.error(res.errormsg || "获取失败"); } - }) - } + }); + }; // 线下对比-导入 @action importComparisonExcelAcctResult = (params) => { API.importComparisonExcelAcctResult(params).then(res => { - if(res.status) { - this.comparisonImportAcctResult = res.data + if (res.status) { + this.comparisonImportAcctResult = res.data; } else { - message.error(res.errormsg || "获取失败") + message.error(res.errormsg || "获取失败"); } - }) - } + }); + }; // 线下对比-导出 @action exportComparisonResult = (salaryAcctRecordId) => { - API.exportComparisonResult(salaryAcctRecordId) - } + API.exportComparisonResult(salaryAcctRecordId); + }; // 核算进度条 @action getCalculateProgress = (id) => { return new Promise((resolve, reject) => { API.getCalculateProgress(id).then(res => { - if(res.status) { + if (res.status) { let progress = 0; try { - progress = Number(res.data.progress) * 100 - } catch(err) { + progress = Number(res.data.progress) * 100; + } catch (err) { } - resolve(res.data) + resolve(res.data); } else { - message.error(res.errormsg || "获取失败") - reject() + message.error(res.errormsg || "获取失败"); + reject(); } - }) - }) - } -} \ No newline at end of file + }); + }); + }; +} diff --git a/pc4mobx/hrmSalary/stores/programme.js b/pc4mobx/hrmSalary/stores/programme.js index f36f6a38..cdad1582 100644 --- a/pc4mobx/hrmSalary/stores/programme.js +++ b/pc4mobx/hrmSalary/stores/programme.js @@ -252,7 +252,8 @@ export class ProgrammeStore { } }) } catch(e) { - flag = false } + flag = false +} return flag; } diff --git a/pc4mobx/hrmSalary/util/url.js b/pc4mobx/hrmSalary/util/url.js index b449f327..d5180015 100644 --- a/pc4mobx/hrmSalary/util/url.js +++ b/pc4mobx/hrmSalary/util/url.js @@ -16,7 +16,9 @@ var vars = query.split("&"); for (var i=0;i