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

8
src/config/env.js

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

20
src/views/enforce/outsideRegister.vue

@ -37,21 +37,19 @@
<van-field <van-field
v-model="submitData.legalPerson" v-model="submitData.legalPerson"
label="法定代表人" label="法定代表人"
placeholder="必填 法定代表人姓名" placeholder="请填写法定代表人姓名"
required
:rules="[{ required: true, message: '必填项' }]"
/> />
<van-field <van-field
v-model="submitData.enterpriseTel" v-model="submitData.enterpriseTel"
label="联系电话" label="联系电话"
placeholder="选填 联系电话" placeholder="请填写联系电话(手机号)"
:rules="[{ validator: (val) => !val || /^1[3-9]\d{9}$/.test(val), message: '请输入正确的手机号' }]" :rules="[{ validator: (val) => !val || /^1[3-9]\d{9}$/.test(val), message: '请输入正确的手机号' }]"
/> />
<van-field <van-field
v-model="submitData.enterpriseTypeText" v-model="submitData.enterpriseTypeText"
label="企业类型" label="企业类型"
placeholder="选填 企业类型" placeholder="请填写企业类型"
readonly readonly
required required
:rules="[{ required: true, message: '必填项' }]" :rules="[{ required: true, message: '必填项' }]"
@ -71,18 +69,14 @@
<van-field <van-field
v-model="submitData.registeredCapital" v-model="submitData.registeredCapital"
label="注册资本" label="注册资本"
placeholder="注册资本" placeholder="请填写注册资本"
required
:rules="[{ required: true, message: '必填项' }]"
/> />
<van-field <van-field
v-model="submitData.establishmentTime" v-model="submitData.establishmentTime"
label="成立日期" label="成立日期"
placeholder="成立日期" placeholder="请填写成立日期"
is-link is-link
readonly readonly
required
:rules="[{ required: true, message: '必填项' }]"
@click="selectDate" @click="selectDate"
/> />
<van-popup v-model:show="data.showDatePicker" position="bottom"> <van-popup v-model:show="data.showDatePicker" position="bottom">
@ -122,9 +116,7 @@
<van-field <van-field
v-model="submitData.enterpriseAddress" v-model="submitData.enterpriseAddress"
label="注册地址" label="注册地址"
required placeholder="请填写注册地址"
:rules="[{ required: true, message: '必填项' }]"
placeholder="注册地址"
/> />
<!--<div class="fold-div"><label>注册地址</label> <!--<div class="fold-div"><label>注册地址</label>
<van-text-ellipsis :content="submitData.enterpriseAddress" rows="2" autosize expand-text="展开" collapse-text="收起" /> <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.bureauDeptName = success.data.bureauDept.deptName;
submitData.bureauDeptId = success.data.bureauDept.deptId; submitData.bureauDeptId = success.data.bureauDept.deptId;
// submitData.bureauDeptName = '司法局';
// submitData.bureauDeptId = '20210922212955057-A601-27251E588';
} }
}, error => { }, error => {
@ -871,7 +873,8 @@
} }
const tmpSave = () => { const tmpSave = () => {
if (submitData.lawCertificateNumText.length <= 0 if (submitData.enterpriseNumber.length <= 0
|| submitData.lawCertificateNumText.length <= 0
|| submitData.bureauDeptName.length <= 0 || submitData.bureauDeptName.length <= 0
// || submitData.lawFieldText.length <= 0 // || submitData.lawFieldText.length <= 0
|| submitData.checkCategoryText.length <= 0 || submitData.checkCategoryText.length <= 0
@ -933,7 +936,8 @@
} }
const submit = (type) => { const submit = (type) => {
if (submitData.lawCertificateNumText.length <= 0 if (submitData.enterpriseNumber.length <= 0
|| submitData.lawCertificateNumText.length <= 0
|| submitData.bureauDeptName.length <= 0 || submitData.bureauDeptName.length <= 0
// || submitData.lawFieldText.length <= 0 // || submitData.lawFieldText.length <= 0
|| submitData.checkCategoryText.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; data.isSelect = route?.query?.isSelect;
submitData.comOrOpi = route?.query?.comOrOpi; submitData.comOrOpi = route?.query?.comOrOpi;
complaintInfoById({id:route?.query?.id},success =>{ complaintInfoById({id:route?.query?.id},success =>{
console.log("---->>>>: ", success);
submitData.authorization = success.data.authorization; submitData.authorization = success.data.authorization;
if (submitData.authorization == 0) { if (submitData.authorization == 0) {
data.has_authorization = false; 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.lawEnforcement = success.data.dept.deptName;
submitData.lawEnforcementId = success.data.dept.deptId; submitData.lawEnforcementId = success.data.dept.deptId;
//局级部门 //局级部门
submitData.bureauDeptName = success.data.bureauDept.deptName; // submitData.bureauDeptName = success.data.bureauDept.deptName;
submitData.bureauDeptId = success.data.bureauDept.deptId; // submitData.bureauDeptId = success.data.bureauDept.deptId;
submitData.bureauDeptName = '司法局';
submitData.bureauDeptId = '20210922212955057-A601-27251E588';
} }
},error=>{ },error=>{

4
src/views/login.vue

@ -45,9 +45,9 @@
testLogin({"secretName": loginParam.secretName, "secretKey": values.secretKey}, success => { testLogin({"secretName": loginParam.secretName, "secretKey": values.secretKey}, success => {
if (success.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_PHONENUMBER(success.data.phonenumber.toString());
useCommon.SET_USER_ID(success.data.userId); useCommon.SET_USER_ID(success.data.userId);

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

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

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

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

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

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

7
vite-config/index.js

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

Loading…
Cancel
Save