custom-银盛科技服务集团有限公司

This commit is contained in:
lys 2025-01-07 15:54:20 +08:00
parent 890eeb414f
commit 6abefce41d
3 changed files with 18 additions and 4 deletions

View File

@ -16,7 +16,7 @@ export const calculateConditions = [
{
colSpan: 1,
conditionType: "SELECT",
domkey: ["salarySobId"],
domkey: ["salarySobIds"],
fieldcol: 14,
label: "核算账套",
lanId: 519146,

View File

@ -7,10 +7,11 @@
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import { WeaDialog, WeaLocaleProvider, WeaTools } from "ecCom";
import { WeaSwitch } from "comsMobx";
import { Button, message } from "antd";
import { getSearchs } from "../../../../util";
import { salaryacctGetForm, saveBasic } from "../../../../apis/calculate";
import { calculateConditions } from "./condition";
import FormInfo from "../../../../components/FormInfo";
const getKey = WeaTools.getKey;
const getLabel = WeaLocaleProvider.getLabel;
@ -39,7 +40,7 @@ class Index extends Component {
conditions: _.map(calculateConditions, item => ({
...item,
items: _.map(item.items, o => {
if (getKey(o) === "salarySobId") {
if (getKey(o) === "salarySobIds") {
return {
...o,
options: _.map(salarySobs, g => ({ key: g.id.toString(), showname: g.name }))
@ -76,6 +77,14 @@ class Index extends Component {
render() {
const { conditions, loading } = this.state;
const { calculateStore: { calculateForm } } = this.props;
const itemRender = {
salarySobIds: (field, textAreaProps, form, formParams) => {
return (<WeaSwitch fieldConfig={{ ...field, ...textAreaProps }} className="multiple_select"
form={form} formParams={formParams}
// onBlur={(v) => v && form.updateFields({ freeAmount: { value: toDecimal_n(v, 2) } })}
/>);
}
};
return (
<WeaDialog
{...this.props} style={{ width: 480, height: 174 }} initLoadCss
@ -83,7 +92,8 @@ class Index extends Component {
<Button type="primary" onClick={this.save} loading={loading}>{getLabel(543233, "保存并进入核算")}</Button>
]}
>
<div className="form-dialog-layout">{getSearchs(calculateForm, conditions, 1, false)}</div>
<FormInfo className="form-dialog-layout" center={false} itemRender={itemRender}
form={calculateForm} formFields={conditions}/>
</WeaDialog>
);
}

View File

@ -39,6 +39,10 @@
.form-dialog-layout {
background: #f6f6f6;
.wea-form-item-wrapper {
display: block;
}
.wea-form-item .wea-form-item-wrapper .wea-field-readonly {
line-height: 28px;
}