添加经营范围字段 调整保险信息位置

master
853931625@qq.com 2026-06-15 15:50:23 +08:00
parent 734b265041
commit 306e8193f9
5 changed files with 120 additions and 117 deletions

View File

@ -56,6 +56,7 @@ function XgfUserInfo(props) {
});
res.data.userImg = userImg;
res.data.cardImg = cardImg;
res.data.socSecurity = socSecurity;
res.data.empInsurance = empInsurance;
res.data.insurance = insurance;
@ -216,37 +217,33 @@ function XgfUserInfo(props) {
},
]}
column={2}
labelStyle={{
width: 200,
}}
contentStyle={{
width: "300px",
}}
styles={{ label: { width: 200 }, content: { width: 500 } }}
/>
<Divider orientation="left">社保信息</Divider>
<Descriptions
bordered
items={[
{
label: "是否参加三级安全培训",
children: info.isLevelThree === 1 ? "是" : "否",
span: 2,
},
{
label: "是否特殊工种",
children: info.isSpecialJob === 1 ? "是" : "否",
span: 2,
},
{
label: "是否为部门负责人",
children: info.isDepaRrtmentHead === 1 ? "是" : "否",
span: 2,
},
{
label: "是否参加三级安全培训",
children: info.isLevelThree === 1 ? "是" : "否",
},
{
label: "是否签订劳动合同",
children: info.isSignLabor === 1 ? "是" : "否",
span: 4,
span: 2,
},
...(
info.isPay === 1
@ -266,7 +263,7 @@ function XgfUserInfo(props) {
span: 4,
},
...(
info.isSocia === 1
info.isSocial === 1
? [
{
label: "社会保障号码",
@ -308,7 +305,7 @@ function XgfUserInfo(props) {
? [
{
label: "商业保险单号",
children: info.isPayNumber,
children: info.payNumber,
},
{
label: "保险图片",
@ -335,12 +332,7 @@ function XgfUserInfo(props) {
),
]}
column={2}
labelStyle={{
width: 200,
}}
contentStyle={{
width: "300px",
}}
styles={{ label: { width: 200 }, content: { width: 500 } }}
/>
</div>
</Modal>

View File

@ -217,6 +217,22 @@ function View(props) {
// children: info.totalAssets,
// },
{
label: "相关方类型",
children: getLabelName({
status: info.type,
list: ENTERPRISE_TYPE,
}),
},
{
label: "创建单位",
children: info.tenantName,
},
{
label: "经营范围",
children: info.natureBusiness,
},
{
label: "企业二维码",
children: (
@ -230,17 +246,6 @@ function View(props) {
</Button>
),
},
{
label: "相关方类型",
children: getLabelName({
status: info.type,
list: ENTERPRISE_TYPE,
}),
},
{
label: "创建单位",
children: info.tenantName,
},
// {
// label: "选取形式",
// children: info.selectfromList,

View File

@ -16,7 +16,6 @@ import {
PHONE,
UNIFIED_SOCIAL_CREDIT_CODE,
} from "zy-react-library/regular";
import { getLabelName } from "zy-react-library/utils";
import { NS_ENTERPRISE } from "~/enumerate/namespace";
import { useDebounce } from "~/utils";
@ -35,33 +34,34 @@ const REQUIRED_FIELDS = [
"employees",
"depositBank",
"depositBankAccount",
"natureBusiness",
// "regcapital",
// "totalAssets",
// "licenseStart",
// "licenseEnd",
];
const ENTERPRISE_STATUS = [
{
bianma: "filialstate01",
name: "在产",
},
{
bianma: "filialstate02",
name: "在建",
},
{
bianma: "filialstate03",
name: "代建",
},
{
bianma: "filialstate04",
name: "停产",
},
{
bianma: "filialstate05",
name: "破产",
},
];
// const ENTERPRISE_STATUS = [
// {
// bianma: "filialstate01",
// name: "在产",
// },
// {
// bianma: "filialstate02",
// name: "在建",
// },
// {
// bianma: "filialstate03",
// name: "代建",
// },
// {
// bianma: "filialstate04",
// name: "停产",
// },
// {
// bianma: "filialstate05",
// name: "破产",
// },
// ];
// const WHETHER_ENUM = [
// {
// bianma: 1,
@ -89,10 +89,10 @@ function CorpInfo(props) {
const [canShowQrCode, setCanShowQrCode] = useState(false);
const [keyId, setKeyId] = useState({});
const [scaleData, setScaleData] = useState([]);
const [ecoTypeData, setEcoTypeData] = useState([]);
const [industryData, setIndustryData] = useState([]);
const [cityData, setCityData] = useState([]);
// const [scaleData, setScaleData] = useState([]);
// const [ecoTypeData, setEcoTypeData] = useState([]);
// const [industryData, setIndustryData] = useState([]);
// const [cityData, setCityData] = useState([]);
const [info, setInfoData] = useState([]);
const [codeValue, setCodeValue] = useState("");
const [corpNameValue, setCorpNameValue] = useState("");
@ -167,46 +167,46 @@ function CorpInfo(props) {
single: false,
files: deleteHiddenImageFiles,
});
values.ecoTypeName = getLabelName({
status: values.ecoType,
list: ecoTypeData,
idKey: "dictValue",
nameKey: "dictLabel",
});
values.scaleName = getLabelName({
status: values.scale,
list: scaleData,
idKey: "dictValue",
nameKey: "dictLabel",
});
values.corpStateName = getLabelName({
status: values.corpState,
list: ENTERPRISE_STATUS,
// values.ecoTypeName = getLabelName({
// status: values.ecoType,
// list: ecoTypeData,
// idKey: "dictValue",
// nameKey: "dictLabel",
// });
// values.scaleName = getLabelName({
// status: values.scale,
// list: scaleData,
// idKey: "dictValue",
// nameKey: "dictLabel",
// });
// values.corpStateName = getLabelName({
// status: values.corpState,
// list: ENTERPRISE_STATUS,
//
// });
});
if (cityData.length > 0) {
values.province = cityData[0].value;
values.provinceName = cityData[0].label;
values.city = cityData[1] && cityData[1].value;
values.cityName = cityData[1] && cityData[1].label;
values.country = cityData[2] && cityData[2].value;
values.countryName = cityData[2] && cityData[2].label;
values.street = cityData[3] && cityData[3].value;
values.streetName = cityData[3] && cityData[3].label;
values.village = cityData[4] && cityData[4].value;
values.villageName = cityData[4] && cityData[4].label;
}
if (industryData.length > 0) {
values.corpType = industryData[0].dict_value;
values.corpTypeName = industryData[0].dict_label;
values.corpType2 = industryData[1] && industryData[1].dict_value;
values.corpType2Name = industryData[1] && industryData[1].dict_label;
values.corpType3 = industryData[2] && industryData[2].dict_value;
values.corpType3Name = industryData[2] && industryData[2].dict_label;
values.corpType4 = industryData[3] && industryData[3].dict_value;
values.corpType4Name = industryData[3] && industryData[3].dict_label;
}
// if (cityData.length > 0) {
// values.province = cityData[0].value;
// values.provinceName = cityData[0].label;
// values.city = cityData[1] && cityData[1].value;
// values.cityName = cityData[1] && cityData[1].label;
// values.country = cityData[2] && cityData[2].value;
// values.countryName = cityData[2] && cityData[2].label;
// values.street = cityData[3] && cityData[3].value;
// values.streetName = cityData[3] && cityData[3].label;
// values.village = cityData[4] && cityData[4].value;
// values.villageName = cityData[4] && cityData[4].label;
// }
// if (industryData.length > 0) {
// values.corpType = industryData[0].dict_value;
// values.corpTypeName = industryData[0].dict_label;
// values.corpType2 = industryData[1] && industryData[1].dict_value;
// values.corpType2Name = industryData[1] && industryData[1].dict_label;
// values.corpType3 = industryData[2] && industryData[2].dict_value;
// values.corpType3Name = industryData[2] && industryData[2].dict_label;
// values.corpType4 = industryData[3] && industryData[3].dict_value;
// values.corpType4Name = industryData[3] && industryData[3].dict_label;
// }
await uploadFile({
single: false,
files: values.licenseFile,
@ -469,10 +469,15 @@ function CorpInfo(props) {
// name: "totalAssets",
// render: FORM_ITEM_RENDER_ENUM.NUMBER,
// },
{
label: "经营范围",
name: "natureBusiness",
render: FORM_ITEM_RENDER_ENUM.TEXTAREA,
},
{
label: "营业执照",
name: "licenseFile",
render: (
<Upload
onGetRemoveFile={(file) => {
@ -484,11 +489,7 @@ function CorpInfo(props) {
/>
),
},
// {
// label: "营业执照有效期",
// name: "license",
// render: FORM_ITEM_RENDER_ENUM.DATE_RANGE,
// },
{
name: "qrCode",
label: "企业二维码",

View File

@ -752,7 +752,7 @@ function Add(props) {
items: WHETHER_ENUM,
componentProps: {
onChange: () => {
form.setFieldValue("isPayNumber", undefined);
form.setFieldValue("payNumber", undefined);
form.setFieldValue("insurance", undefined);
},
},
@ -760,7 +760,7 @@ function Add(props) {
},
{
name: "isPayNumber",
name: "payNumber",
label: "商业保险单号",
dependencies: ["isPay"],
hidden: formValues => !(formValues.isPay === 1),

View File

@ -218,6 +218,22 @@ function View(props) {
// children: info.totalAssets,
// },
{
label: "相关方类型",
children: getLabelName({
status: info.type,
list: ENTERPRISE_TYPE,
}),
},
{
label: "创建单位",
children: info.tenantName,
},
{
label: "经营范围",
children: info.natureBusiness,
},
{
label: "企业二维码",
children: (
@ -231,17 +247,6 @@ function View(props) {
</Button>
),
},
{
label: "相关方类型",
children: getLabelName({
status: info.type,
list: ENTERPRISE_TYPE,
}),
},
{
label: "创建单位",
children: info.tenantName,
},
// {
// label: "选取形式",
// children: info.selectfromList,