修改相关方企业信息 二维码判定规则

master
853931625@qq.com 2026-03-11 08:47:20 +08:00
parent 5fa8301255
commit 9195a5ad78
7 changed files with 21 additions and 17 deletions

3
.gitignore vendored
View File

@ -11,4 +11,5 @@ npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
.idea .idea
yarn.lock yarn.lock
basicInfo.zip

View File

@ -10,8 +10,8 @@ module.exports = {
javaGitBranch: "<branch-name>", javaGitBranch: "<branch-name>",
// 接口服务地址 // 接口服务地址
API_HOST: "http://192.168.20.100:30140", // API_HOST: "http://192.168.20.100:30140",
// API_HOST: "https://gbs-gateway.qhdsafety.com", API_HOST: "https://gbs-gateway.qhdsafety.com",
}, },
production: { production: {
// 应用后端分支名称,部署上线需要 // 应用后端分支名称,部署上线需要
@ -48,7 +48,7 @@ module.exports = {
// 开发服务 // 开发服务
server: { server: {
// 监听端口号 // 监听端口号
port: "8088", port: "8089",
// 服务地址 // 服务地址
host: "127.0.0.1", host: "127.0.0.1",
// 是否自动打开浏览器 // 是否自动打开浏览器

View File

@ -32,7 +32,7 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"relation-graph": "^2.2.11", "relation-graph": "^2.2.11",
"zy-react-library": "^1.1.24" "zy-react-library": "^1.2.3"
}, },
"devDependencies": { "devDependencies": {
"@antfu/eslint-config": "^5.4.1", "@antfu/eslint-config": "^5.4.1",

View File

@ -2,6 +2,7 @@ import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib";
import { setup } from "@cqsjjb/jjb-dva-runtime"; import { setup } from "@cqsjjb/jjb-dva-runtime";
import { message } from "antd"; import { message } from "antd";
import dayjs from "dayjs"; import dayjs from "dayjs";
import { getFileUrlFromServer } from "zy-react-library/utils";
import "dayjs/locale/zh-cn"; import "dayjs/locale/zh-cn";
import "../blessed_by_buddha"; import "../blessed_by_buddha";
@ -12,9 +13,10 @@ dayjs.locale("zh-cn");
setJJBCommonAntdMessage(message); setJJBCommonAntdMessage(message);
const app = setup(); const app = setup();
getFileUrlFromServer();
window.mapLongitude = "119.69457721306945"; window.mapLongitude = "119.69457721306945";
window.mapLatitude = "39.940504336846665"; window.mapLatitude = "39.940504336846665";
window.mapBaiDuKey = "OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr";
// 非底座环境运行 // 非底座环境运行
if (!window.__POWERED_BY_QIANKUN__) { if (!window.__POWERED_BY_QIANKUN__) {

View File

@ -417,7 +417,11 @@ function AddModalComponent(props) {
children: info.postName, children: info.postName,
}, },
{ {
label: "用户名(手机号)", label: "姓名",
children: info.name,
},
{
label: "手机号",
children: ( children: (
<div> <div>
@ -440,11 +444,6 @@ function AddModalComponent(props) {
</div> </div>
), ),
}, },
{
label: "姓名",
children: info.name,
},
{ {
label: "人员类型", label: "人员类型",
children: info.personnelTypeName, children: info.personnelTypeName,

View File

@ -146,8 +146,10 @@ function CorpInfo(props) {
const allRequiredFilled = REQUIRED_FIELDS.every((field) => { const allRequiredFilled = REQUIRED_FIELDS.every((field) => {
const val = data[field]; const val = data[field];
return val != null && val !== "" && !(typeof val === "number"); // 允许0值但排除null、undefined和空字符串
return val != null && val !== "";
}); });
setCanShowQrCode(allRequiredFilled && hasLicenseFile); setCanShowQrCode(allRequiredFilled && hasLicenseFile);
const values = { const values = {

View File

@ -491,10 +491,10 @@ function AddModalComponent(props) {
label: "所属岗位", label: "所属岗位",
children: info.postName, children: info.postName,
}, },
{ // {
label: "用户名", // label: "用户名",
children: info.username, // children: info.username,
}, // },
{ {
label: "姓名", label: "姓名",
children: info.name, children: info.name,