Browse Source

统一提交之前更改

v4
蟑螂恶霸 7 months ago
parent
commit
a4606913e9
  1. 116
      src/common/globalRouter.js
  2. 8
      src/config/env.js
  3. 1688
      src/views/enforce/enterpriseBaseInfo.vue
  4. 553
      src/views/enforce/enterpriseScanPreview.vue
  5. 20
      src/views/enforce/outsideRegister.vue
  6. 8
      src/views/enforce/sign.vue
  7. 1506
      src/views/enforceHome.vue
  8. 1
      src/views/enterprise/complaintDetailView.vue
  9. 6
      src/views/enterprise/registrationEdit.vue
  10. 4
      src/views/login.vue
  11. 929
      src/views/non-law/enterpriseBaseInfo.vue
  12. 8
      src/views/non-law/outsideRegister.vue
  13. 3
      src/views/non-law/sign.vue
  14. 7
      vite-config/index.js

116
src/common/globalRouter.js

@ -1,73 +1,75 @@
import { createRouter, createWebHistory, createWebHashHistory } from "vue-router";
import {
createRouter,
createWebHistory,
createWebHashHistory,
} from "vue-router";
let routes = [
{
path: "/",
// redirect: "/home",
redirect: "/enforceHome",
// redirect: "/login",
name: "App",
},
{
path: "/:pathMatch(.*)*",
name: "404",
component: () => import("@/views/404"),
},
{
path: "/",
// redirect: "/home",
redirect: "/enforceHome",
// redirect: "/login",
name: "App",
},
{
path: "/:pathMatch(.*)*",
name: "404",
component: () => import("@/views/404"),
},
];
routes = $globalRouterModules(routes); // 加载模块路由
const $globalRouter = createRouter({
// 企业端u
// history: createWebHashHistory(),
// 执法端
history: createWebHistory(),
routes,
// 企业端u
history: createWebHashHistory(),
// 执法端
// history: createWebHistory(),
routes,
});
$globalExpandRouter($globalRouter, routes); // 添加路由扩展
$globalRouter.beforeEach((to, from, next) => {
// let pattern3 = new RegExp("^[0-9]*$");
// if (null != to.query) {
// for (let key in to.query) {
// if (pattern3.test(to.query[key])) {
// if (to.query[key].toString().lengeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeth > 9) {
// console.log(to.query[key])
// to.query[key] = 0;
// console.log(to.query[key])
// }
// } else {
// if (to.query[key].toString().length > 33) {
// to.query[key] = "";
// }
// }
// }
// }
//
// if (null != to.params) {
// for (let key in to.params) {
// if (pattern3.test(to.params[key])) {
// if (to.params[key].toString().length > 9) {
// to.params[key] = 0;
// }
// } else {
// if (to.params[key].toString().length > 33) {
// to.params[key] = "";
// }
// }
// }
// }
// let pattern3 = new RegExp("^[0-9]*$");
// if (null != to.query) {
// for (let key in to.query) {
// if (pattern3.test(to.query[key])) {
// if (to.query[key].toString().length > 9) {
// console.log(to.query[key])
// to.query[key] = 0;
// console.log(to.query[key])
// }
// } else {
// if (to.query[key].toString().length > 33) {
// to.query[key] = "";
// }
// }
// }
// }
//
// if (null != to.params) {
// for (let key in to.params) {
// if (pattern3.test(to.params[key])) {
// if (to.params[key].toString().length > 9) {
// to.params[key] = 0;
// }
// } else {
// if (to.params[key].toString().length > 33) {
// to.params[key] = "";
// }
// }
// }
// }
// if (to.path.includes('src')) {
// // 可以重定向或者做其他处理
// next('/'); // 或者 next(from.path) 返回之前的路径
// } else {
// next(); // 允许路由继续
// }
next(); // 允许路由继续
// if (to.path.includes('src')) {
// // 可以重定向或者做其他处理
// next('/'); // 或者 next(from.path) 返回之前的路径
// } else {
// next(); // 允许路由继续
// }
next(); // 允许路由继续
});
export { $globalRouter };

8
src/config/env.js

@ -2,12 +2,12 @@
// let baseUrl="http://139.186.135.156:86";
// let baseUrl="http://10.132.108.1:85";
//正式环境
let baseUrl="http://jdm.szssfj.cn/jdmApi";
let baseUrl = "http://jdm.szssfj.cn/jdmApi";
//测试环境
// let baseUrl="http://jdm.szssfj.cn/jdmTestApi";
// let baseUrl="http://localhost:85";
// let wsUrl='ws://10.76.108.1:9326';
export {
baseUrl,
// wsUrl
}
baseUrl,
// wsUrl
};

1688
src/views/enforce/enterpriseBaseInfo.vue

File diff suppressed because it is too large

553
src/views/enforce/enterpriseScanPreview.vue

@ -1,7 +1,7 @@
<template>
<div class="home app_content">
<!-- 导航栏 -->
<!-- <div class="header_body">
<div class="home app_content">
<!-- 导航栏 -->
<!-- <div class="header_body">
<header-nav
:slefBack="true"
@goBack="goBack"
@ -10,295 +10,328 @@
</header-nav>
</div>-->
<span class="tohome" @click="toEnforceHomeView"><i class="van-badge__wrapper van-icon van-icon-wap-home-o"></i></span>
<!-- 中间 -->
<div class="warp_body">
<div class="white-body">
<div class="tabs">
<ul>
<li v-for='(item,index) in data.list' @click='check(index)'
:class="{ active: index === data.TabId }">
<span v-if="index === 0"> {{item.title}}</span>
<span v-else-if="index === 1 && data.warningInfo.warningLevel ==0" class="warn-tab"> {{item.title}}</span>
<span v-else-if="index === 1 && data.warningInfo.warningLevel==1" class="warn-tab level1"> {{item.title}}</span>
<span v-else-if="index === 1 && data.warningInfo.warningLevel==2" class="warn-tab level2"> {{item.title}}</span>
<span v-else-if="index === 1 && data.warningInfo.warningLevel==3" class="warn-tab level3"> {{item.title}}</span>
<span v-else-if="index === 1" class="warn-tab"> {{item.title}}</span>
</li>
</ul>
</div>
<div v-if="data.TabId == 0">
<enterpriseBaseInfo :enterpriseNumber="data.enterpriseNumber"></enterpriseBaseInfo>
</div>
<div v-if="data.TabId == 1">
<enterpriseWarningInfo
:enterpriseNumber="data.enterpriseNum"></enterpriseWarningInfo>
</div>
</div>
<span class="tohome" @click="toEnforceHomeView"
><i class="van-badge__wrapper van-icon van-icon-wap-home-o"></i
></span>
<!-- 中间 -->
<div class="warp_body">
<div class="white-body">
<div class="tabs">
<ul>
<li
v-for="(item, index) in data.list"
@click="check(index)"
:class="{ active: index === data.TabId }"
>
<span v-if="index === 0"> {{ item.title }}</span>
<span
v-else-if="index === 1 && data.warningInfo.warningLevel == 0"
class="warn-tab"
>
{{ item.title }}</span
>
<span
v-else-if="index === 1 && data.warningInfo.warningLevel == 1"
class="warn-tab level1"
>
{{ item.title }}</span
>
<span
v-else-if="index === 1 && data.warningInfo.warningLevel == 2"
class="warn-tab level2"
>
{{ item.title }}</span
>
<span
v-else-if="index === 1 && data.warningInfo.warningLevel == 3"
class="warn-tab level3"
>
{{ item.title }}</span
>
<span v-else-if="index === 1" class="warn-tab">
{{ item.title }}</span
>
</li>
</ul>
</div>
<div v-if="data.TabId == 0">
<enterpriseBaseInfo
:enterpriseNumber="data.enterpriseNumber"
></enterpriseBaseInfo>
</div>
<div v-if="data.TabId == 1">
<enterpriseWarningInfo
:enterpriseNumber="data.enterpriseNum"
></enterpriseWarningInfo>
</div>
</div>
</div>
<div class="addinfo" @click="toSign">登记</div>
</div>
<div class="addinfo" @click="toSign">登记</div>
</template>
<script setup name="Home">
import {getEnterpriseMerchantAuthorization} from '@/api/Home';
import {queryEarlyWarning} from '../../api/enforce';
import {getEnterpriseInformation} from '../../api/enterprise'
import enterpriseBaseInfo from './enterpriseBaseInfo.vue'
import enterpriseWarningInfo from './enterpriseWarningInfo.vue'
import { getEnterpriseMerchantAuthorization } from "@/api/Home";
import { queryEarlyWarning } from "../../api/enforce";
import { getEnterpriseInformation } from "../../api/enterprise";
import enterpriseBaseInfo from "./enterpriseBaseInfo.vue";
import enterpriseWarningInfo from "./enterpriseWarningInfo.vue";
import {Tab, Tabs} from 'vant';
import { Tab, Tabs } from "vant";
const {useCommon} = $globalStore;
const router = useRouter();
//路由参数
const route = useRoute();
let freshMap = reactive({
refreshLoad: false, // 是否刷新
listLoading: false, // 是否加载中
listFinished: false, // 是否加载完成标识
});
const data = reactive({
enterpriseNumber: "",
warningInfo: {},
enterpriseNum:"",
searchParam: {
enterpriseNumber:"",
warnType: 0,
},
status: 0,
TabId: 0,
list: [
{
title: '企业画像',
value: '0'
},
{
title: '执法记录',
value: '1'
},
],
reason: route?.query?.reason,
checkCss: route?.query?.checkCss,
isNoScan: route?.query?.isNoScan,
});
const boutiqueAttr = reactive({
columnNum: 4,
itemClass: "boutique_item",
goodsCradclass: "boutique-crad",
}); // 商品卡片展示
const { useCommon } = $globalStore;
const router = useRouter();
//路由参数
const route = useRoute();
let freshMap = reactive({
refreshLoad: false, // 是否刷新
listLoading: false, // 是否加载中
listFinished: false, // 是否加载完成标识
});
const data = reactive({
enterpriseNumber: "",
warningInfo: {},
enterpriseNum: "",
searchParam: {
enterpriseNumber: "",
warnType: 0,
},
status: 0,
TabId: 0,
list: [
{
title: "企业画像",
value: "0",
},
{
title: "执法记录",
value: "1",
},
],
reason: route?.query?.reason,
checkCss: route?.query?.checkCss,
isNoScan: route?.query?.isNoScan,
});
const boutiqueAttr = reactive({
columnNum: 4,
itemClass: "boutique_item",
goodsCradclass: "boutique-crad",
}); // 商品卡片展示
const check = (index) => {
console.log("点击切换tab", index);
data.TabId = index;
};
const check = (index) => {
console.log("点击切换tab", index);
data.TabId = index;
};
// 返回首页
const toEnforceHomeView = () => {
router.push({
path: "/enforceHome",
});
};
// 返回首页
const toEnforceHomeView = () => {
router.push({
path: "/enforceHome",
});
};
const toSign = () => {
router.push({
path: "/sign",
query: {
enterpriseNumber: data.enterpriseNumber,
// isNoScan: false,
const toSign = () => {
router.push({
path: "/sign",
query: {
enterpriseNumber: data.enterpriseNumber,
// isNoScan: false,
reason: data.reason,
checkCss: data.checkCss,
isNoScan: data.isNoScan,
}
});
};
reason: data.reason,
checkCss: data.checkCss,
isNoScan: data.isNoScan,
},
});
};
const toEnterpriseBaseInfo = async () => {
router.push({
path: "/enterpriseBaseInfo",
query: {
enterpriseNumber: data.enterpriseNumber
}
});
};
const toEnterpriseBaseInfo = async () => {
router.push({
path: "/enterpriseBaseInfo",
query: {
enterpriseNumber: data.enterpriseNumber,
},
});
};
const toEnterpriseWarningInfo = async () => {
router.push({
path: "/enterpriseWarningInfo",
query: {
enterpriseNumber: data.enterpriseNumber
}
});
};
const toEnterpriseWarningInfo = async () => {
router.push({
path: "/enterpriseWarningInfo",
query: {
enterpriseNumber: data.enterpriseNumber,
},
});
};
const toRegistrationListView = async () => {
router.push({
path: "/enterprise/registrationList",
});
}
const toComplaintView = async () => {
router.push({
path: "/enterprise/complaint",
});
}
const toRegistrationListView = async () => {
router.push({
path: "/enterprise/registrationList",
});
};
const toComplaintView = async () => {
router.push({
path: "/enterprise/complaint",
});
};
// 触底加载
const onLoad = () => {
// recommendGoods(true);
};
// 触底加载
const onLoad = () => {
// recommendGoods(true);
};
onMounted(() => {
getEnterpriseInformation(route?.query?.enterpriseNumber, success => {
if (success.success) {
data.searchParam.enterpriseNumber = success.data.enterpriseNumber;
data.searchParam.warnType = 1;
//加密统一信用代码数据
// data.enterpriseNumber = success.data.salt; // 之前因为统一信用码重复, 所以用的盐, 现在设了唯一键了.
data.enterpriseNumber = success.data.enterpriseNumber;
//未加密
data.enterpriseNum = success.data.enterpriseNumber;
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber);
//查询企业历史执法案件
queryEarlyWarning(data.searchParam, success => {
if (success.data.length > 0) {
data.warningInfo = success.data[0];
}
}, error => {
})
onMounted(() => {
getEnterpriseInformation(
route?.query?.enterpriseNumber,
(success) => {
if (success.success) {
data.searchParam.enterpriseNumber = success.data.enterpriseNumber;
data.searchParam.warnType = 1;
//加密统一信用代码数据
// data.enterpriseNumber = success.data.salt; // 之前因为统一信用码重复, 所以用的盐, 现在设了唯一键了.
data.enterpriseNumber = success.data.enterpriseNumber;
//未加密
data.enterpriseNum = success.data.enterpriseNumber;
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber);
//查询企业历史检查案件
queryEarlyWarning(
data.searchParam,
(success) => {
if (success.data.length > 0) {
data.warningInfo = success.data[0];
}
}, error => {
})
// 没看懂这一部分的意义, 但是影响到查询性能了, 先干掉, 并把里面的复制挪到上面去
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber}, success => {
// if (success.data != null && success.data.length > 0) {
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber);
// }
// }, error => {
// })
})
// 返回
const goBack = () => {
router.go(-1);
};
},
(error) => {},
);
}
},
(error) => {},
);
// 没看懂这一部分的意义, 但是影响到查询性能了, 先干掉, 并把里面的复制挪到上面去
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber}, success => {
// if (success.data != null && success.data.length > 0) {
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber);
// }
// }, error => {
// })
});
// 返回
const goBack = () => {
router.go(-1);
};
</script>
<style lang="less" scoped>
.home {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background-color: #ebf3fb;
.warp_body {
position: relative;
background-image: linear-gradient(to bottom, #ebf3fb, transparent);
}
.home {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background-color: #ebf3fb;
.white-body {
margin: 0 3%;
width: 94%;
min-height: 100vh;
background-color: #fff;
border-radius: 0.27rem;
}
}
.warp_body {
position: relative;
background-image: linear-gradient(to bottom, #ebf3fb, transparent);
}
.tohome {
position: absolute;
top: 1.25%;
right: 5%;
font-size: 0.5rem;
}
.white-body {
margin: 0 3%;
width: 94%;
min-height: 100vh;
background-color: #fff;
border-radius: 0.27rem;
}
}
.tabs {
padding: 3% 3% 0;
width: 94%;
height: 1.25rem;
box-sizing: content-box;
}
.tohome {
position: absolute;
top: 1.25%;
right: 5%;
font-size: 0.5rem;
}
.tabs ul {
display: flex;
width: 100%;
height: 100%;
font-size: 0.4rem;
line-height: 1.25rem;
text-align: center;
align-content: center;
justify-items: center;
}
.tabs {
padding: 3% 3% 0;
width: 94%;
height: 1.25rem;
box-sizing: content-box;
}
.tabs ul li {
float: left;
width: 50%;
height: 100%;
}
.tabs ul {
display: flex;
width: 100%;
height: 100%;
font-size: 0.4rem;
line-height: 1.25rem;
text-align: center;
align-content: center;
justify-items: center;
}
.tabs ul li span {
display: block;
width: 100%;
height: 100%;
color: #4aa1f9;
background: url("../../assets/images/tab_bg1_1.png") no-repeat;
background-size: 100% 100%;
}
.tabs ul li {
float: left;
width: 50%;
height: 100%;
}
.tabs ul li.active span {
background: url("../../assets/images/tab_bg1.png") no-repeat;
background-size: 100% 100%;
color: #fff;
}
.tabs ul li span {
display: block;
width: 100%;
height: 100%;
color: #4aa1f9;
background: url("../../assets/images/tab_bg1_1.png") no-repeat;
background-size: 100% 100%;
}
.tabs ul li span.warn-tab {
margin-left: -2%;
background: url("../../assets/images/tab_bg.png") no-repeat;
background-size: 100% 100%;
}
.tabs ul li.active span {
background: url("../../assets/images/tab_bg1.png") no-repeat;
background-size: 100% 100%;
color: #fff;
}
.tabs ul li.active span.warn-tab {
background: url("../../assets/images/tab_bg_1.png") no-repeat;
background-size: 100% 100%;
color: #fff;
}
.tabs ul li span.warn-tab {
margin-left: -2%;
background: url("../../assets/images/tab_bg.png") no-repeat;
background-size: 100% 100%;
}
.tabs ul li span.level1 {
background: url("../../assets/images/tab_shine_red.gif") no-repeat !important;
background-size: 100% 100% !important;
color: #fff !important;
}
.tabs ul li.active span.warn-tab {
background: url("../../assets/images/tab_bg_1.png") no-repeat;
background-size: 100% 100%;
color: #fff;
}
.tabs ul li span.level2 {
background: url("../../assets/images/tab_shine_org.gif") no-repeat !important;
background-size: 100% 100% !important;
color: #fff !important;
}
.tabs ul li span.level1 {
background: url("../../assets/images/tab_shine_red.gif") no-repeat !important;
background-size: 100% 100% !important;
color: #fff !important;
}
.tabs ul li span.level3 {
background: url("../../assets/images/tab_shine_yel.gif") no-repeat !important;
background-size: 100% 100% !important;
color: #fff !important;
}
.tabs ul li span.level2 {
background: url("../../assets/images/tab_shine_org.gif") no-repeat !important;
background-size: 100% 100% !important;
color: #fff !important;
}
.addinfo {
position: absolute;
bottom: 3%;
right: 2%;
z-index: 99999;
width: 1.5rem;
height: 1.5rem;
background-color: #1367fe;
border-radius: 50%;
box-shadow: 0 0 0.27rem #1367fe;
color: #fff;
font-size: 0.4rem;
text-align: center;
vertical-align: middle;
padding-top: 0.45rem;
box-sizing: border-box;
}
.tabs ul li span.level3 {
background: url("../../assets/images/tab_shine_yel.gif") no-repeat !important;
background-size: 100% 100% !important;
color: #fff !important;
}
.addinfo {
position: absolute;
bottom: 3%;
right: 2%;
z-index: 99999;
width: 1.5rem;
height: 1.5rem;
background-color: #1367fe;
border-radius: 50%;
box-shadow: 0 0 0.27rem #1367fe;
color: #fff;
font-size: 0.4rem;
text-align: center;
vertical-align: middle;
padding-top: 0.45rem;
box-sizing: border-box;
}
</style>

20
src/views/enforce/outsideRegister.vue

@ -37,21 +37,19 @@
<van-field
v-model="submitData.legalPerson"
label="法定代表人"
placeholder="必填 法定代表人姓名"
required
:rules="[{ required: true, message: '必填项' }]"
placeholder="请填写法定代表人姓名"
/>
<van-field
v-model="submitData.enterpriseTel"
label="联系电话"
placeholder="选填 联系电话"
placeholder="请填写联系电话(手机号)"
:rules="[{ validator: (val) => !val || /^1[3-9]\d{9}$/.test(val), message: '请输入正确的手机号' }]"
/>
<van-field
v-model="submitData.enterpriseTypeText"
label="企业类型"
placeholder="选填 企业类型"
placeholder="请填写企业类型"
readonly
required
:rules="[{ required: true, message: '必填项' }]"
@ -71,18 +69,14 @@
<van-field
v-model="submitData.registeredCapital"
label="注册资本"
placeholder="注册资本"
required
:rules="[{ required: true, message: '必填项' }]"
placeholder="请填写注册资本"
/>
<van-field
v-model="submitData.establishmentTime"
label="成立日期"
placeholder="成立日期"
placeholder="请填写成立日期"
is-link
readonly
required
:rules="[{ required: true, message: '必填项' }]"
@click="selectDate"
/>
<van-popup v-model:show="data.showDatePicker" position="bottom">
@ -122,9 +116,7 @@
<van-field
v-model="submitData.enterpriseAddress"
label="注册地址"
required
:rules="[{ required: true, message: '必填项' }]"
placeholder="注册地址"
placeholder="请填写注册地址"
/>
<!--<div class="fold-div"><label>注册地址</label>
<van-text-ellipsis :content="submitData.enterpriseAddress" rows="2" autosize expand-text="展开" collapse-text="收起" />

8
src/views/enforce/sign.vue

@ -646,6 +646,8 @@
//局级部门
submitData.bureauDeptName = success.data.bureauDept.deptName;
submitData.bureauDeptId = success.data.bureauDept.deptId;
// submitData.bureauDeptName = '司法局';
// submitData.bureauDeptId = '20210922212955057-A601-27251E588';
}
}, error => {
@ -871,7 +873,8 @@
}
const tmpSave = () => {
if (submitData.lawCertificateNumText.length <= 0
if (submitData.enterpriseNumber.length <= 0
|| submitData.lawCertificateNumText.length <= 0
|| submitData.bureauDeptName.length <= 0
// || submitData.lawFieldText.length <= 0
|| submitData.checkCategoryText.length <= 0
@ -933,7 +936,8 @@
}
const submit = (type) => {
if (submitData.lawCertificateNumText.length <= 0
if (submitData.enterpriseNumber.length <= 0
|| submitData.lawCertificateNumText.length <= 0
|| submitData.bureauDeptName.length <= 0
// || submitData.lawFieldText.length <= 0
|| submitData.checkCategoryText.length <= 0

1506
src/views/enforceHome.vue

File diff suppressed because it is too large

1
src/views/enterprise/complaintDetailView.vue

@ -298,6 +298,7 @@
data.isSelect = route?.query?.isSelect;
submitData.comOrOpi = route?.query?.comOrOpi;
complaintInfoById({id:route?.query?.id},success =>{
console.log("---->>>>: ", success);
submitData.authorization = success.data.authorization;
if (submitData.authorization == 0) {
data.has_authorization = false;

6
src/views/enterprise/registrationEdit.vue

@ -657,8 +657,10 @@ import {showFailToast, showSuccessToast} from 'vant';
submitData.lawEnforcement = success.data.dept.deptName;
submitData.lawEnforcementId = success.data.dept.deptId;
//局级部门
submitData.bureauDeptName = success.data.bureauDept.deptName;
submitData.bureauDeptId = success.data.bureauDept.deptId;
// submitData.bureauDeptName = success.data.bureauDept.deptName;
// submitData.bureauDeptId = success.data.bureauDept.deptId;
submitData.bureauDeptName = '司法局';
submitData.bureauDeptId = '20210922212955057-A601-27251E588';
}
},error=>{

4
src/views/login.vue

@ -45,9 +45,9 @@
testLogin({"secretName": loginParam.secretName, "secretKey": values.secretKey}, success => {
if (success.success) {
//企业端
// router.push({ name: "Home" });
router.push({ name: "Home" });
//执法端
router.push({name: "enforceHome"});
// router.push({name: "enforceHome"});
//设置全局变量
useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString());
useCommon.SET_USER_ID(success.data.userId);

929
src/views/non-law/enterpriseBaseInfo.vue

@ -1,363 +1,377 @@
<template>
<div class="address_edit">
<van-form @failed="onFailed" @submit="submit">
<van-cell-group>
<van-field
v-model="data.enterpriseInfo.enterpriseName"
label="企业名称"
readonly
/>
<van-field class="mult-line"
v-model="data.enterpriseInfo.enterpriseNumber"
label="统一社会信用代码"
readonly
/>
<div :class="is_show ? 'new_detail' : 'work_detail'">
<van-field
v-model="data.enterpriseInfo.legalPerson"
label="法定代表人"
readonly
/>
<van-field
v-model="data.enterpriseInfo.enterpriseType"
label="企业类型"
readonly
/>
<van-field
v-model="data.enterpriseInfo.registeredCapital"
label="注册资本"
readonly
/>
<van-field
v-model="data.enterpriseInfo.establishmentTime"
label="成立日期"
readonly
/>
<van-field
v-model="data.enterpriseInfo.operatingTerm"
label="经营期限"
readonly
/>
<div class="fold-div">
<label>注册地址</label>
<van-text-ellipsis :content="data.enterpriseInfo.enterpriseAddress" rows="2" autosize expand-text="展开" collapse-text="收起" />
</div>
<div class="fold-div">
<label>经营范围</label>
<van-text-ellipsis :content="data.enterpriseInfo.businessScope" rows="2" autosize expand-text="展开" collapse-text="收起" />
</div>
</div>
<div class="look_all" @click="is_show=!is_show" :class="{ new_up: !is_show }">
<van-icon v-if="!is_show" name="arrow-down" />
<van-icon v-else name="arrow-up" />
</div>
</van-cell-group>
</van-form>
</div>
<div class="address_edit">
<van-form @failed="onFailed" @submit="submit">
<van-cell-group>
<van-field
v-model="data.enterpriseInfo.enterpriseName"
label="企业名称"
readonly
/>
<van-field
class="mult-line"
v-model="data.enterpriseInfo.enterpriseNumber"
label="统一社会信用代码"
readonly
/>
<div :class="is_show ? 'new_detail' : 'work_detail'">
<van-field
v-model="data.enterpriseInfo.legalPerson"
label="法定代表人"
readonly
/>
<van-field
v-model="data.enterpriseInfo.enterpriseType"
label="企业类型"
readonly
/>
<van-field
v-model="data.enterpriseInfo.registeredCapital"
label="注册资本"
readonly
/>
<van-field
v-model="data.enterpriseInfo.establishmentTime"
label="成立日期"
readonly
/>
<van-field
v-model="data.enterpriseInfo.operatingTerm"
label="经营期限"
readonly
/>
<div class="fold-div">
<label>注册地址</label>
<van-text-ellipsis
:content="data.enterpriseInfo.enterpriseAddress"
rows="2"
autosize
expand-text="展开"
collapse-text="收起"
/>
</div>
<div class="fold-div">
<label>经营范围</label>
<van-text-ellipsis
:content="data.enterpriseInfo.businessScope"
rows="2"
autosize
expand-text="展开"
collapse-text="收起"
/>
</div>
</div>
<div
class="look_all"
@click="is_show = !is_show"
:class="{ new_up: !is_show }"
>
<van-icon v-if="!is_show" name="arrow-down" />
<van-icon v-else name="arrow-up" />
</div>
</van-cell-group>
</van-form>
</div>
</template>
<script setup name="register">
// import {showSuccessToast} from 'vant';
import 'vant/es/toast/style';
// import {addEnforcementRegistration, queryUserInfo, queryRegistrationList} from '@/api/enforce'
import {getEnterpriseInformation} from '@/api/enterprise'
import {getDict} from '@/api/Home'
import {reactive} from "vue";
import {format} from 'date-fns';
import {nameCorrect}from'../../util/fileUpload'
const {useMy} = $globalStore
const router = useRouter();
//路由参数
const route = useRoute();
const data = reactive({
optionList: [
{name: "历史执法案件", val: 1, selected: true},
{name: "历史处罚案件", val: 2, selected: false},
{name: "历史强制案件", val: 3, selected: false}],
show: 1,
searchParam: {},
enterpriseInfo: {},
checkDataList: [],
punishDataList: [],
forceDataList: [],
showLawEnforcerFlag: false,
currentPage: 1,
good: "#7FFFD4",
bad: "#D3D3D3",
popupVisible: false,
popupContent: '',
popupVisible2: false,
popupContent2: '',
enterpriseNumberTmp: '',
loading_check: false,
finished_check: false,
refreshing_check: false,
curPage_check: 1,
loading_punish: false,
finished_punish: false,
refreshing_punish: false,
curPage_punish: 1,
loading_force: false,
finished_force: false,
refreshing_force: false,
curPage_force: 1,
});
let searchParam = reactive({
enterpriseNumber: "",
// 分页
pageNum: 1,
pageSize: 6,
});
const props = defineProps({
enterpriseNumber: {
type: String,
default: "",
},
});
//3a0096181c184e5aa56f70923680856d$6e74ceda1463c165fd43eeeadce4f7cd
//初始化参数,获取扫码的企业统一信用编码
onMounted(() => {
nameCorrect();
//查询企业信息
getEnterpriseInformation(route?.query?.enterpriseNumber, success => {
// getEnterpriseInformation(props?.enterpriseNumber,success =>{
if (null != success.data) {
console.log(success);
data.enterpriseInfo.enterpriseName = success.data.enterpriseName
data.enterpriseInfo.enterpriseNumber = success.data.enterpriseNumber
data.enterpriseInfo.enterpriseType = success.data.companyOrgType
data.enterpriseInfo.enterpriseAddress = success.data.enterpriseAddress
data.enterpriseInfo.legalPerson = nameCorrect(success.data.legalPerson)
// data.enterpriseInfo.registeredCapital = success.data.registeredCapital +' (人民币/元)'
var amount = 0.00;
if (null != success.data.registeredCapital) {
amount = Number(success.data.registeredCapital).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
}
data.enterpriseInfo.registeredCapital = amount + ' (万元人民币)'
// data.enterpriseInfo.operatingTerm = success.data.operatingTerm
var tmpoperatingTerm = success.data.operatingTerm;
var tmpoperatingTermEnd = success.data.operatingTermEnd;
if(tmpoperatingTermEnd == null || tmpoperatingTermEnd == "undefined"){
tmpoperatingTerm = tmpoperatingTerm + " 至 " + "无固定期限";
}else{
tmpoperatingTerm = tmpoperatingTerm + " 至 " + tmpoperatingTermEnd;
// import {showSuccessToast} from 'vant';
import "vant/es/toast/style";
// import {addEnforcementRegistration, queryUserInfo, queryRegistrationList} from '@/api/enforce'
import { getEnterpriseInformation } from "@/api/enterprise";
import { getDict } from "@/api/Home";
import { reactive } from "vue";
import { format } from "date-fns";
import { nameCorrect } from "../../util/fileUpload";
const { useMy } = $globalStore;
const router = useRouter();
//路由参数
const route = useRoute();
const data = reactive({
optionList: [
{ name: "历史检查案件", val: 1, selected: true },
{ name: "历史处罚案件", val: 2, selected: false },
{ name: "历史强制案件", val: 3, selected: false },
],
show: 1,
searchParam: {},
enterpriseInfo: {},
checkDataList: [],
punishDataList: [],
forceDataList: [],
showLawEnforcerFlag: false,
currentPage: 1,
good: "#7FFFD4",
bad: "#D3D3D3",
popupVisible: false,
popupContent: "",
popupVisible2: false,
popupContent2: "",
enterpriseNumberTmp: "",
loading_check: false,
finished_check: false,
refreshing_check: false,
curPage_check: 1,
loading_punish: false,
finished_punish: false,
refreshing_punish: false,
curPage_punish: 1,
loading_force: false,
finished_force: false,
refreshing_force: false,
curPage_force: 1,
});
let searchParam = reactive({
enterpriseNumber: "",
// 分页
pageNum: 1,
pageSize: 6,
});
const props = defineProps({
enterpriseNumber: {
type: String,
default: "",
},
});
//3a0096181c184e5aa56f70923680856d$6e74ceda1463c165fd43eeeadce4f7cd
//初始化参数,获取扫码的企业统一信用编码
onMounted(() => {
nameCorrect();
//查询企业信息
getEnterpriseInformation(
route?.query?.enterpriseNumber,
(success) => {
// getEnterpriseInformation(props?.enterpriseNumber,success =>{
if (null != success.data) {
console.log(success);
data.enterpriseInfo.enterpriseName = success.data.enterpriseName;
data.enterpriseInfo.enterpriseNumber = success.data.enterpriseNumber;
data.enterpriseInfo.enterpriseType = success.data.companyOrgType;
data.enterpriseInfo.enterpriseAddress = success.data.enterpriseAddress;
data.enterpriseInfo.legalPerson = nameCorrect(success.data.legalPerson);
// data.enterpriseInfo.registeredCapital = success.data.registeredCapital +' (人民币/元)'
var amount = 0.0;
if (null != success.data.registeredCapital) {
amount = Number(success.data.registeredCapital)
.toFixed(2)
.replace(/\d(?=(\d{3})+\.)/g, "$&,");
}
data.enterpriseInfo.registeredCapital = amount + " (万元人民币)";
// data.enterpriseInfo.operatingTerm = success.data.operatingTerm
var tmpoperatingTerm = success.data.operatingTerm;
var tmpoperatingTermEnd = success.data.operatingTermEnd;
if (tmpoperatingTermEnd == null || tmpoperatingTermEnd == "undefined") {
tmpoperatingTerm = tmpoperatingTerm + " 至 " + "无固定期限";
} else {
tmpoperatingTerm = tmpoperatingTerm + " 至 " + tmpoperatingTermEnd;
}
// if (tmpoperatingTerm.indexOf('null') >= 0) {
// tmpoperatingTerm = tmpoperatingTerm.substring(0, tmpoperatingTerm.indexOf('null')) + " 无固定期限";
// }
data.enterpriseInfo.operatingTerm = tmpoperatingTerm;
data.enterpriseInfo.businessScope = success.data.businessScope;
data.enterpriseInfo.establishmentTime = format(
success.data.establishmentTime,
"yyyy-MM-dd",
);
//查询企业类型
getDict(
{ dictType: "enterpriseType" },
(success) => {
if (success.data != null) {
success.data.forEach((res) => {
if (data.enterpriseInfo.enterpriseType === res.dictValue) {
data.enterpriseInfo.enterpriseType = res.dictLabel;
}
// if (tmpoperatingTerm.indexOf('null') >= 0) {
// tmpoperatingTerm = tmpoperatingTerm.substring(0, tmpoperatingTerm.indexOf('null')) + " 无固定期限";
// }
data.enterpriseInfo.operatingTerm = tmpoperatingTerm;
data.enterpriseInfo.businessScope = success.data.businessScope
data.enterpriseInfo.establishmentTime = format(success.data.establishmentTime, 'yyyy-MM-dd');
//查询企业类型
getDict({"dictType": "enterpriseType"}, success => {
if (success.data != null) {
success.data.forEach(res => {
if (data.enterpriseInfo.enterpriseType === res.dictValue) {
data.enterpriseInfo.enterpriseType = res.dictLabel
}
})
}
}, error => {
})
data.enterpriseNumberTmp = success.data.enterpriseNumber
});
}
}, error => {
})
})
},
(error) => {},
);
data.enterpriseNumberTmp = success.data.enterpriseNumber;
}
},
(error) => {},
);
});
</script>
<script>
export default {
data()
{
data() {
return {
is_show: true
}
is_show: true,
};
},
computed: {
words()
{
if (this.is_show === false)
return '展开'
else if (this.is_show === true)
return '收起'
else if (this.is_show === '')
return null
else
return null
}
words() {
if (this.is_show === false) return "展开";
else if (this.is_show === true) return "收起";
else if (this.is_show === "") return null;
else return null;
},
},
}
};
</script>
<style lang="less" scoped>
.address_edit {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background-color: #ebf3fb;
}
.warp_body {
margin: 0 3%;
padding-bottom: 3rem;
width: 94%;
height: 100%;
//border-radius: 0.25rem;
background-image: linear-gradient(to bottom, #ebf3fb, #fff);
overflow-y: auto;
margin-top: 0.15rem;
}
.qy-name, .zf-name {
margin: 0 0.27rem;
font-size: 0.42rem;
height: 1.2rem;
background-color: white;
font-weight: 600;
line-height: 3.5;
}
.address_edit {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background-color: #ebf3fb;
}
/* vant4的 Toast 和 Popup 样式冲突,会导致 Toast 变成白底 */
.van-popup.van-toast {
background: var(--van-toast-background) !important;
box-sizing: content-box !important;
/* 下面3条css,影响不大 */
transition: all var(--van-duration-fast) !important;
width: var(--van-toast-default-width) !important;
max-width: var(--van-toast-max-width) !important;
}
.warp_body {
margin: 0 3%;
padding-bottom: 3rem;
width: 94%;
height: 100%;
//border-radius: 0.25rem;
background-image: linear-gradient(to bottom, #ebf3fb, #fff);
overflow-y: auto;
margin-top: 0.15rem;
}
.van-popup.van-toast .van-toast__icon {
font-size: var(--van-toast-icon-size) !important;
}
.qy-name,
.zf-name {
margin: 0 0.27rem;
font-size: 0.42rem;
height: 1.2rem;
background-color: white;
font-weight: 600;
line-height: 3.5;
}
.divdsty {
margin: auto;
width: 100%;
height: 0.25rem;
background-color: #ebf3fb;
border: 0;
}
/* vant4的 Toast 和 Popup 样式冲突,会导致 Toast 变成白底 */
.van-popup.van-toast {
background: var(--van-toast-background) !important;
box-sizing: content-box !important;
/* 下面3条css,影响不大 */
transition: all var(--van-duration-fast) !important;
width: var(--van-toast-default-width) !important;
max-width: var(--van-toast-max-width) !important;
}
.file-upload {
position: relative;
min-height: 3.0rem;
max-height: 6.5rem;
padding: 1rem 0.27rem 0.27rem 0.43rem;
box-sizing: border-box;
}
.van-popup.van-toast .van-toast__icon {
font-size: var(--van-toast-icon-size) !important;
}
.file-upload-center {
position: absolute;
top: 0.27rem;
left: 0.43rem;
width: 90%;
height: 0.65rem;
font-size: 0.37rem;
span {
font-size: 0.32rem;
color: rgb(221, 229, 227);
}
}
.divdsty {
margin: auto;
width: 100%;
height: 0.25rem;
background-color: #ebf3fb;
border: 0;
}
.file {
position: relative;
width: 100%;
height: calc(100% - 1.5rem);
}
.file-upload {
position: relative;
min-height: 3rem;
max-height: 6.5rem;
padding: 1rem 0.27rem 0.27rem 0.43rem;
box-sizing: border-box;
}
/deep/ .van-uploader__upload, /deep/ .van-uploader__preview-image {
width: 1.95rem !important;
}
.file-upload-center {
position: absolute;
top: 0.27rem;
left: 0.43rem;
width: 90%;
height: 0.65rem;
font-size: 0.37rem;
span {
font-size: 0.32rem;
color: rgb(221, 229, 227);
}
}
.preview-cover {
position: absolute;
bottom: 0;
box-sizing: border-box;
width: 100%;
padding: 4px;
color: #fff;
font-size: 0.32rem;
text-align: center;
background: rgba(0, 0, 0, 0.3);
}
.file {
position: relative;
width: 100%;
height: calc(100% - 1.5rem);
}
.goods_box {
display: flex;
background-color: #fff;
margin: 0.27rem;
border-radius: 0.27rem;
.swipe_cell {
margin: 0 0 1% 0;
width: 100%;
box-shadow: 0 0 0.1rem #e7e7e7;
border-radius: 0.15rem;
}
/deep/ .van-uploader__upload,
/deep/ .van-uploader__preview-image {
width: 1.95rem !important;
}
.card_box {
display: flex;
width: 100%;
padding: 0.27rem 0;
flex-direction: column;
border-bottom: 1px solid #f3f4f5;
.card_body {
background-color: #fff;
border-radius: 0.27rem;
flex: 1;
}
.preview-cover {
position: absolute;
bottom: 0;
box-sizing: border-box;
width: 100%;
padding: 4px;
color: #fff;
font-size: 0.32rem;
text-align: center;
background: rgba(0, 0, 0, 0.3);
}
.card_box_span {
display: flex;
align-items: center;
margin: 1% 0;
padding: 0 3%;
color: #666;
font-size: 0.35rem;
line-height: 1.5;
}
.goods_box {
display: flex;
background-color: #fff;
margin: 0.27rem;
border-radius: 0.27rem;
.swipe_cell {
margin: 0 0 1% 0;
width: 100%;
box-shadow: 0 0 0.1rem #e7e7e7;
border-radius: 0.15rem;
}
.card_box {
display: flex;
width: 100%;
padding: 0.27rem 0;
flex-direction: column;
border-bottom: 1px solid #f3f4f5;
.card_body {
background-color: #fff;
border-radius: 0.27rem;
flex: 1;
}
.card_box_action {
position: absolute;
right: 4%;
}
}
.card_box_span {
display: flex;
align-items: center;
margin: 1% 0;
padding: 0 3%;
color: #666;
font-size: 0.35rem;
line-height: 1.5;
}
.search-button-list {
display: flex;
margin: 0 3% -1px;
height: 1rem;
padding: 0 0 3% 0;
.card_box_action {
position: absolute;
right: 4%;
}
}
}
.search-button-list {
display: flex;
margin: 0 3% -1px;
height: 1rem;
padding: 0 0 3% 0;
}
/*.search-button-list span {
/*.search-button-list span {
display: inline-block;
position: relative;
margin: 3% 1%;
@ -371,157 +385,156 @@ export default {
line-height: 1.75;
}*/
.search-button-list span {
margin: 5% 2% 0;
width: 30%;
height: 90%;
background: #fff;
border-color: #fff;
color: #4c4c4c;
font-size: 0.35rem;
text-align: center;
}
.search-button-list span {
margin: 5% 2% 0;
width: 30%;
height: 90%;
background: #fff;
border-color: #fff;
color: #4c4c4c;
font-size: 0.35rem;
text-align: center;
}
.search-button-list span.active {
position: relative;
background-color: #fff;
border-color: #fff;
color: #1367fe;
font-weight: 600;
}
.search-button-list span.active {
position: relative;
background-color: #fff;
border-color: #fff;
color: #1367fe;
font-weight: 600;
}
.search-button-list span.active::after {
display: block;
content: "";
position: absolute;
z-index: 10;
left: 50%;
top: 70%;
transform: translate(-50%, -50%);
width: 100%;
height: 0.05rem;
background-color: #1367fe;
}
.search-button-list span.active::after {
display: block;
content: "";
position: absolute;
z-index: 10;
left: 50%;
top: 70%;
transform: translate(-50%, -50%);
width: 100%;
height: 0.05rem;
background-color: #1367fe;
}
.goods_box .swipe_cell .card_box .card_box_span p {
margin: 0;
color: #999;
}
.goods_box .swipe_cell .card_box .card_box_span p {
margin: 0;
color: #999;
}
.goods_box .swipe_cell .card_box .card_box_span:first-child p {
//height: 0.65rem;
color: #000;
font-size: 0.37rem;
}
.goods_box .swipe_cell .card_box .card_box_span:first-child p {
//height: 0.65rem;
color: #000;
font-size: 0.37rem;
}
/deep/ .van-cell-group {
margin-top: -1px;
}
/deep/ .van-cell-group {
margin-top: -1px;
}
/deep/ .van-button {
margin: 2% -2% 3% 4.5%;
padding: 2% 3%;
font-size: 0.3rem;
}
/deep/ .van-button {
margin: 2% -2% 3% 4.5%;
padding: 2% 3%;
font-size: 0.3rem;
}
/deep/ .van-text-ellipsis {
font-size: 0.37rem;
padding: 0.27rem 0.43rem;
}
/deep/ .van-text-ellipsis {
font-size: 0.37rem;
padding: 0.27rem 0.43rem;
}
.fold-div {
position: relative;
display: flex;
padding: 0 0.43rem 0.13rem;
width: 100%;
box-sizing: border-box;
color: rgb(50, 50, 51);
font-size: 0.37rem;
}
.fold-div {
position: relative;
display: flex;
padding: 0 0.43rem 0.13rem;
width: 100%;
box-sizing: border-box;
color: rgb(50, 50, 51);
font-size: 0.37rem;
}
.fold-div::after {
position: absolute;
left: 0.43rem;
bottom: 0;
width: calc(100% - 0.86rem);
border-bottom: 1px solid #ebedf0;
content: "";
transform: scaleY(.5);
}
.fold-div::after {
position: absolute;
left: 0.43rem;
bottom: 0;
width: calc(100% - 0.86rem);
border-bottom: 1px solid #ebedf0;
content: "";
transform: scaleY(0.5);
}
.fold-div label {
width: 2.6rem;
padding: 0.27rem 0px 0.27rem 0;
}
.fold-div label {
width: 2.6rem;
padding: 0.27rem 0px 0.27rem 0;
}
.fold-div .van-text-ellipsis {
padding: 0.27rem 0;
width: calc(100% - 2.6rem);
color: #666;
}
.fold-div .van-text-ellipsis {
padding: 0.27rem 0;
width: calc(100% - 2.6rem);
color: #666;
}
/deep/ .mult-line .van-field__label {
padding-right: 0.5rem;
line-height: 1.25;
}
/deep/ .mult-line .van-field__label {
padding-right: 0.5rem;
line-height: 1.25;
}
/deep/ .van-picker-column__item--selected {
background: #e5eef9;
color: #000;
font-weight: 600;
}
/deep/ .van-picker-column__item--selected {
background: #e5eef9;
color: #000;
font-weight: 600;
}
/deep/ .van-field .van-field__control {
color: #666;
}
/deep/ .van-field .van-field__control {
color: #666;
}
/deep/ .van-field__label--required:before {
margin-left: -0.2rem;
}
/deep/ .van-field__label--required:before {
margin-left: -0.2rem;
}
/***折叠**/
.look_all {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 0.75rem;
font-size: 0.3rem;
color: #666;
cursor: pointer;
user-select: none;
border-radius: 0.05rem;
/*background: linear-gradient(to top, rgba(255, 255, 255, .9), rgba(255, 255, 255, .35));*/
background: #fff;
}
.look_all {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 0.75rem;
font-size: 0.3rem;
color: #666;
cursor: pointer;
user-select: none;
border-radius: 0.05rem;
/*background: linear-gradient(to top, rgba(255, 255, 255, .9), rgba(255, 255, 255, .35));*/
background: #fff;
}
.look_all i {
margin: 0 0.2rem;
padding: 0.1rem 0.3rem 0;
color: rgba(0, 0, 0, 0.35);
font-size: 0.4rem;
height: 0.5rem;
/*background: linear-gradient(to bottom, rgba(0, 0, 0, .1), transparent);*/
border-radius: 0.2rem 0.2rem 0 0;
}
.look_all i {
margin: 0 0.2rem;
padding: 0.1rem 0.3rem 0;
color: rgba(0, 0, 0, 0.35);
font-size: 0.4rem;
height: 0.5rem;
/*background: linear-gradient(to bottom, rgba(0, 0, 0, .1), transparent);*/
border-radius: 0.2rem 0.2rem 0 0;
}
.new_detail {
padding-top: 0.3rem;
height: 100%;
transition: height 2s linear;
}
.new_detail {
padding-top: 0.3rem;
height: 100%;
transition: height 2s linear;
}
.work_detail {
padding-top: 0.3rem;
height: 0.2rem;
overflow: hidden;
}
.work_detail {
padding-top: 0.3rem;
height: 0.2rem;
overflow: hidden;
}
.new_up {
position: absolute;
bottom: 0.1rem;
}
.new_up {
position: absolute;
bottom: 0.1rem;
}
/***/
</style>

8
src/views/non-law/outsideRegister.vue

@ -32,15 +32,15 @@
/>
<van-field
v-model="submitData.legalPerson"
label="法定代表人"
label="法定代表人12"
placeholder="必填 法定代表人姓名"
required
:rules="[{ required: true, message: '必填项' }]"
/>
<van-field
v-model="submitData.legalPerson"
v-model="submitData.enterpriseTel"
label="联系电话"
placeholder="选填 联系电话"
placeholder="请填写联系电话(手机号)"
:rules="[{ validator: (val) => !val || /^1[3-9]\d{9}$/.test(val), message: '请输入正确的手机号' }]"
/>
@ -181,6 +181,8 @@ const submitData = reactive({
enterpriseAddress:"",
//法人
legalPerson:"",
// 联系电话
enterpriseTel:"",
//成立日期
establishmentTime:"",
//注册资本

3
src/views/non-law/sign.vue

@ -400,6 +400,9 @@
// 执法主体
submitData.bureauDeptName = success.data.bureauDept.deptName;
submitData.bureauDeptId = success.data.bureauDept.deptId;
// 执法主体
// submitData.bureauDeptName = '司法局';
// submitData.bureauDeptId = '20210922212955057-A601-27251E588';
}
}, error => {})

7
vite-config/index.js

@ -44,7 +44,14 @@ const baseCfg = (viteEnv = {}) => {
},
build: {
outDir: "dist",
sourcemap: false, // 生产环境关闭 source map,防止源代码泄露
minify: "terser", // esbuild 打包更快,但是不能去除 console.log,去除 console 使用 terser 模式
terserOptions: {
compress: {
drop_console: true, // 移除 console
drop_debugger: true, // 移除 debugger
},
},
rollupOptions: {
output: {
chunkFileNames: "js/[name]-[hash].js", // 引入文件名的名称

Loading…
Cancel
Save