Merge branch 'release/3.0.1.2504.01-合并业务线' into custom/西部信托0401
This commit is contained in:
commit
20d0fdfa0d
|
|
@ -127,7 +127,7 @@ class AssociativeSearchMult extends Component {
|
|||
}
|
||||
let options = data.map(d => <Option key={d.id} title={d.name}>{d.name}</Option>);
|
||||
!tags && selectedValues && selectedValues.map((v) => {
|
||||
v && options.unshift(<Option key={v} title={datas[v].name}>{datas[v].name}</Option>);
|
||||
v && datas[v] && options.unshift(<Option key={v} title={datas[v].name}>{datas[v].name}</Option>);
|
||||
});
|
||||
const select = <Select
|
||||
{...this.props}
|
||||
|
|
|
|||
|
|
@ -91,11 +91,11 @@ class CustomBrowserDialog extends Component {
|
|||
this.props.onCancel && this.props.onCancel();
|
||||
};
|
||||
getItemById = (id) => {
|
||||
const { listDatas } = this.state;
|
||||
const { listDatas } = this.state, dataSource = [...listDatas, ..._.values(this.props.datas)];
|
||||
if (this.selectedData[id]) return this.selectedData[id];
|
||||
if (!_.isEmpty(listDatas)) {
|
||||
for (let i = 0; i < listDatas.length; i++) {
|
||||
if (String(id) === String(listDatas[i].id)) return listDatas[i];
|
||||
if (!_.isEmpty(dataSource)) {
|
||||
for (let i = 0; i < dataSource.length; i++) {
|
||||
if (String(id) === String(dataSource[i].id)) return dataSource[i];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -70,10 +70,10 @@ class StatisticalMicroSettingsSlide extends Component {
|
|||
|
||||
getTaxAgentSelectList = async (props) => {
|
||||
const [salarySobList, empStatusList] = await Promise.all([
|
||||
postFetch("/api/bs/hrmsalary/salarysob/listAuth", { filterType: "QUERY_DATA" }),
|
||||
postFetch("/api/bs/hrmsalary/salarysob/listAuth", { filterType: "QUERY_DATA", isShare: props.isShare }),
|
||||
commonEnumList({ enumClass: "com.engine.salary.enums.salarysob.SalaryEmployeeStatusEnum" })
|
||||
]);
|
||||
postFetch("/api/bs/hrmsalary/taxAgent/listAuth", { filterType: "QUERY_DATA" })
|
||||
postFetch("/api/bs/hrmsalary/taxAgent/listAuth", { filterType: "QUERY_DATA", isShare: props.isShare })
|
||||
.then(({ status, data }) => {
|
||||
if (status) {
|
||||
const conditions = _.map(condition, item => {
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class SalaryItemForm extends Component {
|
|||
componentDidMount() {
|
||||
const { salaryItemFieldsList } = this.state;
|
||||
const { request, editable, record, isAdd = false, taxAgentAdminOption, isLedger = false } = this.props;
|
||||
const { systemType = "", sharedType, valueType, useInEmployeeSalary, dataType } = request;
|
||||
const { systemType = "", sharedType, valueType, useInEmployeeSalary, dataType, pattern } = request;
|
||||
this.setState({
|
||||
salaryItemFieldsList: _.map(salaryItemFieldsList, item => {
|
||||
const { key } = item;
|
||||
|
|
@ -87,6 +87,7 @@ class SalaryItemForm extends Component {
|
|||
case "defaultValue":
|
||||
return {
|
||||
...item,
|
||||
precision: pattern ? pattern : item.precision,
|
||||
type: dataType === "number" ? "INPUTNUMBER" : "INPUT",
|
||||
display: valueType && valueType.toString() === "1" && useInEmployeeSalary == 0,
|
||||
viewAttr: (isLedger && record.canEdit) || (editable && record.canEdit) || isAdd ? 2 : 1
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ export const socialAccountConditions = [
|
|||
lanId: 537996,
|
||||
labelcol: 6,
|
||||
options: [],
|
||||
otherParams: {
|
||||
showSearch: true, optionFilterProp: "children"
|
||||
},
|
||||
rules: "required|string",
|
||||
viewAttr: 3
|
||||
},
|
||||
|
|
|
|||
|
|
@ -54,6 +54,12 @@ class WelfareAdvanceSearchPannel extends Component {
|
|||
viewAttr: 2
|
||||
}
|
||||
};
|
||||
} else if (getKey(o) === "siSchemeId" || getKey(o) === "fundSchemeId" || getKey(o) === "otherSchemeId" || getKey(o) === "taxAgentId") {
|
||||
return {
|
||||
...o, otherParams: {
|
||||
showSearch: true, optionFilterProp: "children"
|
||||
}
|
||||
};
|
||||
}
|
||||
return { ...o };
|
||||
})
|
||||
|
|
|
|||
|
|
@ -113,7 +113,10 @@ class Index extends Component {
|
|||
return {
|
||||
...g, label: getLabel(g.lanId, g.label),
|
||||
viewAttr: (runStatuses === "4,5" || !showOperateBtn) ? 1 : g.viewAttr,
|
||||
options: _.find(props[`${o.title}Items`], j => j.domkey[0] === key).options
|
||||
options: _.find(props[`${o.title}Items`], j => j.domkey[0] === key).options,
|
||||
otherParams: {
|
||||
showSearch: true, optionFilterProp: "children"
|
||||
}
|
||||
};
|
||||
} else if (getKey(g).indexOf("StartTime") !== -1) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in New Issue