feature/2.15.1.2407.01-权限

This commit is contained in:
黎永顺 2024-10-09 10:22:00 +08:00
parent dd82ecf445
commit 255e8d8760
8 changed files with 61 additions and 34 deletions

View File

@ -7,7 +7,7 @@ class Index extends Component {
render() {
return (
<WeaReqTop
title={getLabel(111, "编辑账套")} icon={<i className="icon-coms-fa"/>} iconBgcolor="#F14A2D"
title={this.props.title || getLabel(111, "编辑账套")} icon={<i className="icon-coms-fa"/>} iconBgcolor="#F14A2D"
showDropIcon={false} tabDatas={this.props.tabDatas} {...this.props}
/>
);

View File

@ -6,7 +6,7 @@ const getLabel = WeaLocaleProvider.getLabel;
class Index extends Component {
render() {
return (
<WeaTop title={getLabel(111, "新建账套")} icon={<i className="icon-coms-fa"/>}
<WeaTop title={this.props.title || getLabel(111, "新建账套")} icon={<i className="icon-coms-fa"/>}
iconBgcolor="#F14A2D" {...this.props}/>
);
}

View File

@ -20,7 +20,7 @@ class BaseSettings extends Component {
render() {
const { taxAgentStore: { salarytaxAgentForm }, decentralization, isChief } = this.props;
return (
<div className="baseSettingWrapper">
<div className="form-dialog-layout">
{
decentralization === "0" ?
getSearchs(salarytaxAgentForm, convertConditon(decentralizationConditions, !isChief), 1, false) :

View File

@ -1,4 +1,21 @@
.taxAgentSlideContent {
height: 100%;
background: #F6F6F6;
.ant-steps {
margin: 0 0 20px 0 !important;
padding-top: 20px;
}
.personal-scope {
padding: 8px 16px;
height: 100%;
.wea-tab, .wea-new-table {
background: #FFF;
}
}
.baseSettingWrapper, .taxDeclarationInfoWrapper {
padding: 12px 12px 12px 20px;

View File

@ -191,18 +191,18 @@ class PersonalScope extends Component {
value={searchValue}
onChange={searchValue => this.setState({ searchValue })}
placeholder="请输入对象"
onSearch={() => this.personalScopeTableRef.getPersonalScopeList()}
onSearch={() => this.personalScopeTableRef.getPersonalScopeList(selectedKey, 1)}
/>
] : [<WeaInputSearch
style={{ width: 220 }}
value={searchValue}
onChange={searchValue => this.setState({ searchValue })}
placeholder="请输入对象"
onSearch={() => this.personalScopeTableRef.getPersonalScopeList()}
onSearch={() => this.personalScopeTableRef.getPersonalScopeList(selectedKey, 1)}
/>];
(selectedKey === "listExclude" || selectedKey === "listExt") && btns.shift();
return (
<div>
<div className="personal-scope">
<WeaTab
datas={(extEmpsWitch === "0" || !extEmpsWitch) ? topTab.slice(0, -1) : topTab}
keyParam="viewcondition" //主键

View File

@ -47,13 +47,11 @@ class PersonalScopeTable extends Component {
}
}
getPersonalScopeList = (tabActive = this.props.tabActive) => {
getPersonalScopeList = (tabActive = this.props.tabActive, current) => {
const { searchValue, taxAgentId } = this.props;
const { pageInfo, loading } = this.state;
const payload = {
taxAgentId,
targetName: searchValue,
...pageInfo
taxAgentId, targetName: searchValue, ...pageInfo, current: current || pageInfo.current
};
this.setState({ loading: { ...loading, query: true } });
APIFox[tabActive](payload).then(({ status, data }) => {
@ -129,6 +127,7 @@ class PersonalScopeTable extends Component {
pagination={pagination}
loading={loading.query}
columns={columns}
scroll={{ y: `calc(100vh - 230px)` }}
/>
);
}

View File

@ -8,12 +8,13 @@ import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { Button, message, Modal } from "antd";
import { WeaLocaleProvider, WeaSlideModal, WeaSteps } from "ecCom";
import SlideModalTitle from "../../../components/slideModalTitle";
import { decentralizationConditions, editConditions } from "../../taxAgent/editConditions";
import BaseSettings, { convertConditon } from "./baseSettings";
import PersonalScope from "./personalScope";
import TaxDeclarationInfo from "./taxDeclarationInfo";
import TaxFilingInfoDialofg from "./taxFillingInfoDialog";
import WeaTopTitle from "../../../components/custom-title/weaTopTitle";
import WeaReqTitle from "../../../components/custom-title/weaReqTitle";
import * as API from "../../../apis/taxAgent";
import { registrationCheck } from "../../../apis/taxAgent";
import "./index.less";
@ -226,9 +227,6 @@ class TaxAgentSlide extends Component {
}
return CurrentDom;
};
handleChangeSlideTab = (current) => {
this.setState({ current: Number(current) });
};
handleSubmit = (selectKey) => {
const { taxFilingInfoDialofg, taxAgentId } = this.state;
const { fieldForm } = this.taxInfoRef.state;
@ -267,7 +265,7 @@ class TaxAgentSlide extends Component {
render() {
const {
isEdit, title, visible, onCancel, salaryOn, decentralization, isChief, taxAgentStore: { showOperateBtn }
isEdit, title, visible, onCancel, salaryOn, decentralization, isChief, taxAgentStore: { PageAndOptAuth }
} = this.props;
const { current, taxAgentId, taxFilingInfoDialofg, loading, verifyLoading } = this.state;
let tabs = [
@ -308,28 +306,15 @@ class TaxAgentSlide extends Component {
}
];
tabs = !salaryOn ? _.filter(tabs, it => it.key !== 1) : tabs;
const showOperateBtn = PageAndOptAuth.opts.includes("admin");
return (
<WeaSlideModal
className="slideOuterWrapper"
visible={visible}
top={0}
width={65}
height={100}
direction="right"
measure="%"
className="taxAgentSlide" visible={visible} top={0} width={65} height={100} measure="%" direction="right"
title={
<SlideModalTitle
subtitle={title}
tabs={isEdit ? tabs : []}
loading={false}
showOperateBtn={showOperateBtn}
editable={false}
onSave={() => {
}}
selectedTab={current}
customOperate={this.renderCustomOperate()}
subItemChange={this.handleChangeSlideTab}
/>
!taxAgentId ? <WeaTopTitle title={title} buttons={_.find(tabs, o => current === o.key).createBtns}/> :
<WeaReqTitle buttons={showOperateBtn ? _.find(tabs, o => current === o.key).editBtns : []}
tabDatas={tabs} selectedKey={String(current)} title={title}
onChange={cur => this.setState({ current: parseInt(cur) })}/>
}
content={
<div className="taxAgentSlideContent">

View File

@ -72,4 +72,30 @@
//margin-top: -6px;
}
}
.taxAgentSlide {
.wea-slide-modal-title {
height: auto;
line-height: normal;
text-align: left;
background: #FFF;
.wea-new-top .ant-col-10 {
padding-right: 45px !important;
}
}
.rodal-close {
z-index: 99;
top: 10px !important;
}
.wea-new-top-req-wapper .wea-new-top-req-title > div:last-child {
right: 45px !important;
}
.wea-slide-modal-content {
height: 100%;
}
}
}