Browse Source

统一提交之前更改

v4
蟑螂恶霸 7 months ago
parent
commit
a4606913e9
  1. 14
      src/common/globalRouter.js
  2. 4
      src/config/env.js
  3. 676
      src/views/enforce/enterpriseBaseInfo.vue
  4. 227
      src/views/enforce/enterpriseScanPreview.vue
  5. 20
      src/views/enforce/outsideRegister.vue
  6. 8
      src/views/enforce/sign.vue
  7. 420
      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. 325
      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

14
src/common/globalRouter.js

@ -1,4 +1,8 @@
import { createRouter, createWebHistory, createWebHashHistory } from "vue-router";
import {
createRouter,
createWebHistory,
createWebHashHistory,
} from "vue-router";
let routes = [
{
@ -19,21 +23,20 @@ routes = $globalRouterModules(routes); // 加载模块路由
const $globalRouter = createRouter({
// 企业端u
// history: createWebHashHistory(),
history: createWebHashHistory(),
// 执法端
history: createWebHistory(),
// 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().length > 9) {
// if (to.query[key].toString().lengeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeth > 9) {
// console.log(to.query[key])
// to.query[key] = 0;
// console.log(to.query[key])
@ -67,7 +70,6 @@ $globalRouter.beforeEach((to, from, next) => {
// next(); // 允许路由继续
// }
next(); // 允许路由继续
});
export { $globalRouter };

4
src/config/env.js

@ -2,7 +2,7 @@
// 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";
@ -10,4 +10,4 @@ let baseUrl="http://jdm.szssfj.cn/jdmApi";
export {
baseUrl,
// wsUrl
}
};

676
src/views/enforce/enterpriseBaseInfo.vue

File diff suppressed because it is too large

227
src/views/enforce/enterpriseScanPreview.vue

@ -10,31 +10,60 @@
</header-nav>
</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
></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
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>
<enterpriseBaseInfo
:enterpriseNumber="data.enterpriseNumber"
></enterpriseBaseInfo>
</div>
<div v-if="data.TabId == 1">
<enterpriseWarningInfo
:enterpriseNumber="data.enterpriseNum"></enterpriseWarningInfo>
:enterpriseNumber="data.enterpriseNum"
></enterpriseWarningInfo>
</div>
</div>
</div>
</div>
@ -42,66 +71,66 @@
</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({
const { useCommon } = $globalStore;
const router = useRouter();
//路由参数
const route = useRoute();
let freshMap = reactive({
refreshLoad: false, // 是否刷新
listLoading: false, // 是否加载中
listFinished: false, // 是否加载完成标识
});
const data = reactive({
});
const data = reactive({
enterpriseNumber: "",
warningInfo: {},
enterpriseNum:"",
enterpriseNum: "",
searchParam: {
enterpriseNumber:"",
enterpriseNumber: "",
warnType: 0,
},
status: 0,
TabId: 0,
list: [
{
title: '企业画像',
value: '0'
title: "企业画像",
value: "0",
},
{
title: '执法记录',
value: '1'
title: "执法记录",
value: "1",
},
],
reason: route?.query?.reason,
checkCss: route?.query?.checkCss,
isNoScan: route?.query?.isNoScan,
});
const boutiqueAttr = reactive({
});
const boutiqueAttr = reactive({
columnNum: 4,
itemClass: "boutique_item",
goodsCradclass: "boutique-crad",
}); // 商品卡片展示
}); // 商品卡片展示
const check = (index) => {
const check = (index) => {
console.log("点击切换tab", index);
data.TabId = index;
};
};
// 返回首页
const toEnforceHomeView = () => {
// 返回首页
const toEnforceHomeView = () => {
router.push({
path: "/enforceHome",
});
};
};
const toSign = () => {
const toSign = () => {
router.push({
path: "/sign",
query: {
@ -111,46 +140,48 @@
reason: data.reason,
checkCss: data.checkCss,
isNoScan: data.isNoScan,
}
},
});
};
};
const toEnterpriseBaseInfo = async () => {
const toEnterpriseBaseInfo = async () => {
router.push({
path: "/enterpriseBaseInfo",
query: {
enterpriseNumber: data.enterpriseNumber
}
enterpriseNumber: data.enterpriseNumber,
},
});
};
};
const toEnterpriseWarningInfo = async () => {
const toEnterpriseWarningInfo = async () => {
router.push({
path: "/enterpriseWarningInfo",
query: {
enterpriseNumber: data.enterpriseNumber
}
enterpriseNumber: data.enterpriseNumber,
},
});
};
};
const toRegistrationListView = async () => {
const toRegistrationListView = async () => {
router.push({
path: "/enterprise/registrationList",
});
}
const toComplaintView = async () => {
};
const toComplaintView = async () => {
router.push({
path: "/enterprise/complaint",
});
}
};
// 触底加载
const onLoad = () => {
// 触底加载
const onLoad = () => {
// recommendGoods(true);
};
};
onMounted(() => {
getEnterpriseInformation(route?.query?.enterpriseNumber, success => {
onMounted(() => {
getEnterpriseInformation(
route?.query?.enterpriseNumber,
(success) => {
if (success.success) {
data.searchParam.enterpriseNumber = success.data.enterpriseNumber;
data.searchParam.warnType = 1;
@ -160,17 +191,20 @@
//未加密
data.enterpriseNum = success.data.enterpriseNumber;
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber);
//查询企业历史执法案件
queryEarlyWarning(data.searchParam, success => {
//查询企业历史检查案件
queryEarlyWarning(
data.searchParam,
(success) => {
if (success.data.length > 0) {
data.warningInfo = success.data[0];
}
}, error => {
})
},
(error) => {},
);
}
}, error => {
})
},
(error) => {},
);
// 没看懂这一部分的意义, 但是影响到查询性能了, 先干掉, 并把里面的复制挪到上面去
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber}, success => {
// if (success.data != null && success.data.length > 0) {
@ -178,15 +212,15 @@
// }
// }, error => {
// })
})
// 返回
const goBack = () => {
});
// 返回
const goBack = () => {
router.go(-1);
};
};
</script>
<style lang="less" scoped>
.home {
.home {
display: flex;
flex-direction: column;
height: 100%;
@ -205,23 +239,23 @@
background-color: #fff;
border-radius: 0.27rem;
}
}
}
.tohome {
.tohome {
position: absolute;
top: 1.25%;
right: 5%;
font-size: 0.5rem;
}
}
.tabs {
.tabs {
padding: 3% 3% 0;
width: 94%;
height: 1.25rem;
box-sizing: content-box;
}
}
.tabs ul {
.tabs ul {
display: flex;
width: 100%;
height: 100%;
@ -230,60 +264,60 @@
text-align: center;
align-content: center;
justify-items: center;
}
}
.tabs ul li {
.tabs ul li {
float: left;
width: 50%;
height: 100%;
}
}
.tabs ul li span {
.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.active span {
.tabs ul li.active span {
background: url("../../assets/images/tab_bg1.png") no-repeat;
background-size: 100% 100%;
color: #fff;
}
}
.tabs ul li span.warn-tab {
.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.warn-tab {
.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.level1 {
.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.level2 {
.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.level3 {
.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 {
.addinfo {
position: absolute;
bottom: 3%;
right: 2%;
@ -299,6 +333,5 @@
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

420
src/views/enforceHome.vue

@ -1,5 +1,5 @@
<template>
<!--<Loading class="loading-div" type="spinner" v-show="isLoading" color="#1989fa"/>-->
<!--<Loading class="loading-div" type="spinner" v-show="isLoading" color="#1989fa"/>-->
<div class="home app_content" v-if="!isLoading">
<!-- <div class="home app_content"> -->
<!-- 导航栏 -->
@ -10,18 +10,27 @@
<div class="warp_body">
<div class="logobox"></div>
<div class="noticeContent">
<ul v-if="data.notNull" class="notice_list" :class="data.noticeList.length>1?{notice_top:freshMap.animate}:''">
<li v-for="(item, index) in data.noticeList" :key="index" @click="toNoticeDetail(item) ">
<span>{{item.content}}</span>
<ul
v-if="data.notNull"
class="notice_list"
:class="
data.noticeList.length > 1 ? { notice_top: freshMap.animate } : ''
"
>
<li
v-for="(item, index) in data.noticeList"
:key="index"
@click="toNoticeDetail(item)"
>
<span>{{ item.content }}</span>
<van-icon name="arrow" />
</li>
</ul>
<ul v-else class="notice_list" >
<ul v-else class="notice_list">
<li>近一星期暂无通知消息</li>
</ul>
</div>
<div class="carousel_box" @onLoad="onLoad">
</div>
<div class="carousel_box" @onLoad="onLoad"></div>
<div class="boutique_box">
<!-- <van-cell :border="false" title="精品" /> -->
<div class="boutique_body">
@ -31,7 +40,13 @@
</div> -->
<div class="box-qr-code">
<span class="box-qr-code-text">扫码入企</span>
<div class="link-text"><span @click="toScanCodeView">行政执法<van-icon name="arrow" /></span><span @click="toNonLawView">非行政执法<van-icon name="arrow" /></span></div>
<div class="link-text">
<span @click="toScanCodeView"
>行政执法<van-icon name="arrow" /></span
><span @click="toNonLawView"
>非行政执法<van-icon name="arrow"
/></span>
</div>
</div>
</div>
<div class="boutique_body">
@ -54,41 +69,44 @@
</template>
<script setup name="Home">
import Vconsolefrom from 'vconsole';
import {Loading, showFailToast,showToast, showSuccessToast} from 'vant';
import {getEnterpriseMerchantAuthorization, getSzyptLoginAuth} from '../api/Home';
import {queryEnforcementNotice} from "@/api/enforce";
const isLoading = ref(true);
const {useCommon} = $globalStore;
const router = useRouter();
const route = useRoute();
var carouselList = reactive([]); // 轮播列表
let boutique = reactive([]); // 精品数据
let recommend = reactive([]); // 推荐
let freshMap = reactive({
import Vconsolefrom from "vconsole";
import { Loading, showFailToast, showToast, showSuccessToast } from "vant";
import {
getEnterpriseMerchantAuthorization,
getSzyptLoginAuth,
} from "../api/Home";
import { queryEnforcementNotice } from "@/api/enforce";
const isLoading = ref(true);
const { useCommon } = $globalStore;
const router = useRouter();
const route = useRoute();
var carouselList = reactive([]); // 轮播列表
let boutique = reactive([]); // 精品数据
let recommend = reactive([]); // 推荐
let freshMap = reactive({
refreshLoad: false, // 是否刷新
listLoading: false, // 是否加载中
listFinished: false, // 是否加载完成标识
key: 0,
animate: false
});
animate: false,
});
const noticeList = [];
// 模拟异步数据加载
// setTimeout(() => {
const noticeList = [];
// 模拟异步数据加载
// setTimeout(() => {
// // 如果不是执法用户 则跳转
// router.push(
// {
// path: "/noAccess"
// });
// isLoading.value = false;
// // 如果不是执法用户 则跳转
// router.push(
// {
// path: "/noAccess"
// });
// isLoading.value = false;
// }, 3000);
// }, 3000);
//定时器
let noticeObj = reactive({
//定时器
let noticeObj = reactive({
noticeList: [],
notificationtext: "",
noticeTimer: null,
@ -96,95 +114,96 @@
offset: 0,
step: 3,
speed: 20,
});
});
const data = reactive({
const data = reactive({
noticeList: [],
notNull:true
});
const adviceList = reactive([]);
const boutiqueAttr = reactive({
notNull: true,
});
const adviceList = reactive([]);
const boutiqueAttr = reactive({
columnNum: 4,
itemClass: "boutique_item",
goodsCradclass: "boutique-crad",
}); // 商品卡片展示
}); // 商品卡片展示
//获取轮播
const getCarousel = async () => {
//获取轮播
const getCarousel = async () => {
// const res = await useHome.getCarousel();
// if (res?.code === 20000) {
// carouselList = res?.data;
// }
};
};
//精品
const boutiqueGoods = async () => {
//精品
const boutiqueGoods = async () => {
// const res = await useHome.boutiqueGoods();
// if (res?.code === 20000) {
// boutique = res?.data;
// }
};
var noticeStr = reactive("");
};
var noticeStr = reactive("");
/**扫码入企 */
const toScanCodeView = async () => {
/**扫码入企 */
const toScanCodeView = async () => {
if (useCommon.hasLaw) {
// 执法人员才有权限进入
router.push({path: "/enforce/scanQrCode"});
router.push({ path: "/enforce/scanQrCode" });
} else {
showFailToast('非行政执法人员无法使用该功能');
showFailToast("非行政执法人员无法使用该功能");
}
};
};
/** 非行政执法 */
const toNonLawView = async () => {
/** 非行政执法 */
const toNonLawView = async () => {
// 所有人都有权限进入
router.push({path: "/non-scan"});
};
router.push({ path: "/non-scan" });
};
const toRegistrationListView = async () => {
const toRegistrationListView = async () => {
if (useCommon.hasLaw) {
// 执法人员才有权限进入
router.push({path: "/historyCheck"});
router.push({ path: "/historyCheck" });
} else {
showFailToast('非行政执法人员无法使用该功能');
}
showFailToast("非行政执法人员无法使用该功能");
}
const toComplaintView = async () => {
};
const toComplaintView = async () => {
router.push({
path: "/enterprise/complaint",
});
}
const toAnalyseView = async () => {
/* router.push({path: "/analyse"}); */
};
const toAnalyseView = async () => {
/* router.push({path: "/analyse"}); */
if (useCommon.hasLaw) {
// 执法人员才有权限进入
router.push({path: "/comprehensiveAnalysis"});
router.push({ path: "/comprehensiveAnalysis" });
} else {
showFailToast('非行政执法人员无法使用该功能');
}
showFailToast("非行政执法人员无法使用该功能");
}
const toNoticeView = async () => {
};
const toNoticeView = async () => {
router.push({
path: "/enforce/enforceNotice",
});
}
const toNoticeDetail = async (item) => {
};
const toNoticeDetail = async (item) => {
if (null != item) {
router.push(
{
router.push({
path: "/enforce/enforceNotice",
query: {
type:item.type
}
type: item.type,
},
});
} else {
showFailToast("没有执行计划")
}
}
const queryList = () => {
queryEnforcementNotice({isPublish:1,dateType:4}, success => {
/* if (success.rows.length > 4) {
showFailToast("没有执行计划");
}
};
const queryList = () => {
queryEnforcementNotice(
{ isPublish: 1, dateType: 4 },
(success) => {
/* if (success.rows.length > 4) {
for (let i = 0; i < 5; i++) {
carouselList.push(success.rows[i]);
noticeObj.noticeList.push(success.rows[i].planName)
@ -200,21 +219,21 @@
noticeStr += success.rows[0].planName != null ? success.rows[0].planName + "" : "";
} else { */
carouselList = success.rows;
if(carouselList.length==0){
data.notNull=false
if (carouselList.length == 0) {
data.notNull = false;
}
for (let index = 0; index < success.rows.length; index++) {
const element = success.rows[index];
console.log(element);
// element.planName = element.planYear + element.planName;
if(element.timeType == 'quarter'){
if (element.timeType == "quarter") {
let val = "";
if(element.quarter == "1") val = "一季度";
if(element.quarter == "2") val = "二季度";
if(element.quarter == "3") val = "三季度";
if(element.quarter == "4") val = "四季度";
if (element.quarter == "1") val = "一季度";
if (element.quarter == "2") val = "二季度";
if (element.quarter == "3") val = "三季度";
if (element.quarter == "4") val = "四季度";
element.planName = element.planYear + "年" + val + element.planName;
}else if (element.timeType == 'mouth') {
} else if (element.timeType == "mouth") {
const val = element.mouth + "月";
element.planName = element.planYear + "年" + val + element.planName;
}
@ -222,80 +241,87 @@
noticeObj.noticeList.push(element.planName);
var obj = {
content: element.planName,
id:element.id,
type:element.type
}
data.noticeList.push(obj)
id: element.id,
type: element.type,
};
data.noticeList.push(obj);
}
freshMap.key = 1
freshMap.key = 1;
console.log(carouselList);
console.log(data.noticeList);
// timerObj.timer = setInterval(flushMessage, 4000);
setNotificationMove();
}, error => {
})
}
const flushMessage = () => {
},
(error) => {},
);
};
const flushMessage = () => {
timerObj.value++;
freshMap.key = timerObj.value;
if (carouselList.length == timerObj.value) {
timerObj.value = 0;
}
freshMap.key = timerObj.value;
noticeStr = carouselList[timerObj.value].planName
}
noticeStr = carouselList[timerObj.value].planName;
};
//下拉刷新
const onRefresh = () => {
//下拉刷新
const onRefresh = () => {
freshMap.listFinished = false;
freshMap.listLoading = true;
freshMap.refreshLoad = true;
// Promise.all([getCarousel(), boutiqueGoods(), recommendGoods()]).then(() => {
// freshMap.refreshLoad = false;
// });
};
};
// 触底加载
const onLoad = () => {
// 触底加载
const onLoad = () => {
// recommendGoods(true);
};
};
onMounted(() => {
onMounted(() => {
// new Vconsolefrom();
let fullUrl = window.location.href;
let code = fullUrl.substring(fullUrl.indexOf('code=') + 5, fullUrl.indexOf('&state='));
console.log(useCommon.firstLoad)
let code = fullUrl.substring(
fullUrl.indexOf("code=") + 5,
fullUrl.indexOf("&state="),
);
console.log(useCommon.firstLoad);
isLoading.value = useCommon.firstLoad;
// getSzyptLoginAuth(route?.query?.code,success =>{
getSzyptLoginAuth(code, success => {
getSzyptLoginAuth(
code,
(success) => {
useCommon.SET_USER_ID(success.data.userId);
useCommon.SET_TOKEN(success.data.token);
useCommon.SET_HAS_LAW(success.data.lawOfficer);
useCommon.SET_ORG_ID(success.data.bureauDept.deptId);
// useCommon.SET_HAS_LAW(true);
useCommon.SET_HAS_LAW(true);
// if (useCommon.firstLoad) {
isLoading.value = false;
// }
//设置已经初始化
useCommon.SET_IS_FIRST_LOAD(false)
useCommon.SET_IS_FIRST_LOAD(false);
queryList();
// 如果不是执法用户 则跳转
// if (!success.data.lawOfficer) {
// // router.replace({ path: "/noAccess" });
// }
}, error => {
},
(error) => {
queryList();
})
},
);
setInterval(showNotice, 3000);
// isLoading.value = false;
// queryList();
});
const setNotificationMove = () => {
});
const setNotificationMove = () => {
// 清除定时器
clearInterval(noticeObj.noticeTimer);
const notificationContainer = document.getElementById(
"notification-container"
"notification-container",
);
const notificationWidth = notificationContainer.offsetWidth;
let index = 0;
@ -321,14 +347,16 @@
}
notification.style.transform = `translateX(${noticeObj.offset}px)`;
}, noticeObj.speed);
}
const delayNoticeMove = () => {
};
const delayNoticeMove = () => {
const notification = document.getElementById("notification");
let currentOffset = notification.style.transform;
if (currentOffset) {
currentOffset = currentOffset.split("(")[1];
currentOffset = currentOffset.substring(0, currentOffset.indexOf("px"));
let duration = ((Number(currentOffset) + noticeObj.itemWidth) / noticeObj.step) * noticeObj.speed;
let duration =
((Number(currentOffset) + noticeObj.itemWidth) / noticeObj.step) *
noticeObj.speed;
// 判断当前还有多久滚动完毕 添加一个setTimeout等待滚动结束后重新计时
setTimeout(() => {
this.setNotificationMove();
@ -336,21 +364,19 @@
} else {
this.setNotificationMove();
}
}
const showNotice = () => {
freshMap.animate = true
};
const showNotice = () => {
freshMap.animate = true;
setTimeout(() => {
data.noticeList.push(data.noticeList[0])
data.noticeList.shift()
freshMap.animate = false
}, 500)
}
data.noticeList.push(data.noticeList[0]);
data.noticeList.shift();
freshMap.animate = false;
}, 500);
};
</script>
<style lang="less" scoped>
.home {
.home {
display: flex;
flex-direction: column;
height: 100%;
@ -371,9 +397,7 @@
height: 4rem;
width: 100%;
padding-bottom: 0.27rem;
}
}
.boutique_box {
@ -528,10 +552,9 @@
width: 100%;
}
}
}
}
.streamer {
.streamer {
display: flex;
position: absolute;
top: calc(1% + 10vh);
@ -540,16 +563,16 @@
padding: 0 0.25rem;
width: 90%;
min-height: 1rem;
background-color: rgba(249, 238, 219, .9);
background-color: rgba(249, 238, 219, 0.9);
border-radius: 0.5rem;
color: #c35b01;
font-size: 0.42rem;
line-height: 1.0rem;
line-height: 1rem;
white-space: nowrap;
box-sizing: content-box;
}
}
.noticbox {
.noticbox {
display: flex;
position: absolute;
top: calc(1% + 10vh);
@ -558,27 +581,28 @@
padding: 0 0.25rem;
width: 90%;
min-height: 1rem;
background-color: rgba(249, 238, 219, .9);
background-color: rgba(249, 238, 219, 0.9);
border-radius: 0.5rem;
color: #c35b01;
font-size: 0.42rem;
line-height: 1.0rem;
line-height: 1rem;
white-space: nowrap;
box-sizing: content-box;
}
}
.noticbox {
.noticbox {
top: 33%;
right: 0;
padding: 0 0.2rem;
width: 1.9rem;
min-height: 1rem;
background-color: rgba(249, 238, 219, .7);
background-color: rgba(249, 238, 219, 0.7);
border-radius: 0.5rem 0 0 0.5rem;
color: #000;
}
}
.streamer > i, .noticbox > i {
.streamer > i,
.noticbox > i {
display: inline-block;
position: relative;
top: 0.18rem;
@ -587,31 +611,31 @@
height: 0.6rem;
background: url("../assets/images/icon_notice.png") no-repeat;
background-size: auto 100%;
}
}
.noticbox > i {
.noticbox > i {
top: 0.1rem;
margin: 0 0.2rem 0 0;
width: 0.8rem;
height: 0.8rem;
background: url("../assets/images/icon_notice3.png") no-repeat;
background-size: auto 100%;
}
}
.streamer .marquee {
.streamer .marquee {
display: inline-block;
width: calc(100% - 1rem); /* 或者你想要的宽度 */
overflow: hidden;
white-space: nowrap;
}
}
::v-deep .scroll-text {
::v-deep .scroll-text {
display: inline-block;
padding-left: 100%; /* 初始时隐藏在右侧 */
animation: marquee 5s linear infinite; /* 设置动画 */
}
}
@keyframes marquee {
@keyframes marquee {
0% {
transform: translateX(0);
}
@ -620,9 +644,9 @@
transform: translateX(-100%);
}
/* 动画结束时,文字完全移动到左侧并重新开始 */
}
}
.noticbox span.new {
.noticbox span.new {
display: block;
position: absolute;
top: 0.1rem;
@ -631,9 +655,9 @@
height: 0.2rem;
background: #ff1414;
border-radius: 50%;
}
}
.logobox {
.logobox {
position: relative;
top: 4%;
left: 5%;
@ -642,37 +666,37 @@
height: 10vh;
background: url("../assets/images/logo.png") no-repeat;
background-size: 100% auto;
}
}
.loading-div {
.loading-div {
position: absolute;
top: 45%;
left: 48%;
}
}
.notice-bar-container {
.notice-bar-container {
margin-bottom: 0.27rem;
}
}
.notice-bar-container:last-child {
.notice-bar-container:last-child {
margin-bottom: 0;
}
}
@media screen and (max-width: 380px) {
@media screen and (max-width: 380px) {
.home .warp_body {
background: #c6e6ff url("../assets/images/bg_el.jpg") no-repeat top;
background-size: 100% auto;
}
}
}
@media screen and (min-width: 540px) {
@media screen and (min-width: 540px) {
.home .warp_body {
background: #c6e6ff url("../assets/images/bg_el.jpg") no-repeat top;
background-size: 100% auto;
}
}
}
.noticeContent {
.noticeContent {
position: absolute;
top: calc(2% + 10vh);
right: 3%;
@ -685,13 +709,13 @@
color: #df6104;
box-sizing: border-box;
overflow: hidden;
}
}
.noticeContent ul {
.noticeContent ul {
width: 100%;
}
}
.noticeContent li {
.noticeContent li {
display: flex;
position: relative;
margin: 0.27rem 0 0 0;
@ -702,10 +726,9 @@
height: 0.5rem;
font-size: 0.37rem;
white-space: nowrap;
}
}
.noticeContent li::before {
.noticeContent li::before {
display: inline-block;
position: absolute;
top: 0;
@ -715,43 +738,42 @@
height: 0.5rem;
background: url("../assets/images/icon_notice.png") no-repeat;
background-size: auto 85%;
}
}
.noticeContent li span {
.noticeContent li span {
width: calc(100% - 1.6rem);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
}
.notice_list {
.notice_list {
display: block;
position: absolute;
top: 0;
left: 0;
}
}
.notice_list li i {
.notice_list li i {
float: right;
margin-top: 0.05rem;
}
}
.notice_top {
.notice_top {
transition: all 0.5s;
margin-top: -30px;
}
.link-text {
}
.link-text {
position: absolute;
z-index: 10;
top: 10%;
right: 0.35rem;
font-size: 0.4rem;
color: #666;
}
}
.link-text span {
.link-text span {
position: relative;
display: flex;
align-items: center;
@ -764,19 +786,17 @@
box-shadow: 0 0 0.15rem #c4d7f7;
line-height: 1.5;
text-align: left;
}
}
.link-text span:first-child {
.link-text span:first-child {
background-color: #336bff;
border-color: #336bff;
box-shadow: 0 0 0.15rem #2660f9;
color: #fff;
}
}
.link-text span i.van-icon {
.link-text span i.van-icon {
position: absolute;
right: 0.1rem;
}
}
</style>

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);

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

@ -1,14 +1,14 @@
<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"
<van-field
class="mult-line"
v-model="data.enterpriseInfo.enterpriseNumber"
label="统一社会信用代码"
readonly
@ -41,46 +41,59 @@
/>
<div class="fold-div">
<label>注册地址</label>
<van-text-ellipsis :content="data.enterpriseInfo.enterpriseAddress" rows="2" autosize expand-text="展开" collapse-text="收起" />
<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="收起" />
<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 }">
<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({
// 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}],
{ name: "历史检查案件", val: 1, selected: true },
{ name: "历史处罚案件", val: 2, selected: false },
{ name: "历史强制案件", val: 3, selected: false },
],
show: 1,
searchParam: {},
enterpriseInfo: {},
@ -93,11 +106,11 @@
bad: "#D3D3D3",
popupVisible: false,
popupContent: '',
popupContent: "",
popupVisible2: false,
popupContent2: '',
popupContent2: "",
enterpriseNumberTmp: '',
enterpriseNumberTmp: "",
loading_check: false,
finished_check: false,
@ -113,48 +126,52 @@
finished_force: false,
refreshing_force: false,
curPage_force: 1,
});
});
let searchParam = reactive({
let searchParam = reactive({
enterpriseNumber: "",
// 分页
pageNum: 1,
pageSize: 6,
});
});
const props = defineProps({
const props = defineProps({
enterpriseNumber: {
type: String,
default: "",
},
});
});
//3a0096181c184e5aa56f70923680856d$6e74ceda1463c165fd43eeeadce4f7cd
//初始化参数,获取扫码的企业统一信用编码
onMounted(() => {
//3a0096181c184e5aa56f70923680856d$6e74ceda1463c165fd43eeeadce4f7cd
//初始化参数,获取扫码的企业统一信用编码
onMounted(() => {
nameCorrect();
//查询企业信息
getEnterpriseInformation(route?.query?.enterpriseNumber, success => {
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.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;
var amount = 0.0;
if (null != success.data.registeredCapital) {
amount = Number(success.data.registeredCapital).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
amount = Number(success.data.registeredCapital)
.toFixed(2)
.replace(/\d(?=(\d{3})+\.)/g, "$&,");
}
data.enterpriseInfo.registeredCapital = amount + ' (万元人民币)'
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"){
if (tmpoperatingTermEnd == null || tmpoperatingTermEnd == "undefined") {
tmpoperatingTerm = tmpoperatingTerm + " 至 " + "无固定期限";
}else{
} else {
tmpoperatingTerm = tmpoperatingTerm + " 至 " + tmpoperatingTermEnd;
}
// if (tmpoperatingTerm.indexOf('null') >= 0) {
@ -162,66 +179,61 @@
// }
data.enterpriseInfo.operatingTerm = tmpoperatingTerm;
data.enterpriseInfo.businessScope = success.data.businessScope
data.enterpriseInfo.establishmentTime = format(success.data.establishmentTime, 'yyyy-MM-dd');
data.enterpriseInfo.businessScope = success.data.businessScope;
data.enterpriseInfo.establishmentTime = format(
success.data.establishmentTime,
"yyyy-MM-dd",
);
//查询企业类型
getDict({"dictType": "enterpriseType"}, success => {
getDict(
{ dictType: "enterpriseType" },
(success) => {
if (success.data != null) {
success.data.forEach(res => {
success.data.forEach((res) => {
if (data.enterpriseInfo.enterpriseType === res.dictValue) {
data.enterpriseInfo.enterpriseType = res.dictLabel
data.enterpriseInfo.enterpriseType = res.dictLabel;
}
})
});
}
}, error => {
})
data.enterpriseNumberTmp = success.data.enterpriseNumber
},
(error) => {},
);
data.enterpriseNumberTmp = success.data.enterpriseNumber;
}
}, error => {
})
})
},
(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 {
.address_edit {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background-color: #ebf3fb;
}
}
.warp_body {
.warp_body {
margin: 0 3%;
padding-bottom: 3rem;
width: 94%;
@ -230,48 +242,49 @@ export default {
background-image: linear-gradient(to bottom, #ebf3fb, #fff);
overflow-y: auto;
margin-top: 0.15rem;
}
}
.qy-name, .zf-name {
.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 变成白底 */
.van-popup.van-toast {
/* 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;
}
}
.van-popup.van-toast .van-toast__icon {
.van-popup.van-toast .van-toast__icon {
font-size: var(--van-toast-icon-size) !important;
}
}
.divdsty {
.divdsty {
margin: auto;
width: 100%;
height: 0.25rem;
background-color: #ebf3fb;
border: 0;
}
}
.file-upload {
.file-upload {
position: relative;
min-height: 3.0rem;
min-height: 3rem;
max-height: 6.5rem;
padding: 1rem 0.27rem 0.27rem 0.43rem;
box-sizing: border-box;
}
}
.file-upload-center {
.file-upload-center {
position: absolute;
top: 0.27rem;
left: 0.43rem;
@ -283,19 +296,20 @@ export default {
font-size: 0.32rem;
color: rgb(221, 229, 227);
}
}
}
.file {
.file {
position: relative;
width: 100%;
height: calc(100% - 1.5rem);
}
}
/deep/ .van-uploader__upload, /deep/ .van-uploader__preview-image {
/deep/ .van-uploader__upload,
/deep/ .van-uploader__preview-image {
width: 1.95rem !important;
}
}
.preview-cover {
.preview-cover {
position: absolute;
bottom: 0;
box-sizing: border-box;
@ -305,9 +319,9 @@ export default {
font-size: 0.32rem;
text-align: center;
background: rgba(0, 0, 0, 0.3);
}
}
.goods_box {
.goods_box {
display: flex;
background-color: #fff;
margin: 0.27rem;
@ -348,16 +362,16 @@ export default {
right: 4%;
}
}
}
}
.search-button-list {
.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,7 +385,7 @@ export default {
line-height: 1.75;
}*/
.search-button-list span {
.search-button-list span {
margin: 5% 2% 0;
width: 30%;
height: 90%;
@ -380,17 +394,17 @@ export default {
color: #4c4c4c;
font-size: 0.35rem;
text-align: center;
}
}
.search-button-list span.active {
.search-button-list span.active {
position: relative;
background-color: #fff;
border-color: #fff;
color: #1367fe;
font-weight: 600;
}
}
.search-button-list span.active::after {
.search-button-list span.active::after {
display: block;
content: "";
position: absolute;
@ -401,35 +415,35 @@ export default {
width: 100%;
height: 0.05rem;
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;
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;
color: #000;
font-size: 0.37rem;
}
}
/deep/ .van-cell-group {
/deep/ .van-cell-group {
margin-top: -1px;
}
}
/deep/ .van-button {
/deep/ .van-button {
margin: 2% -2% 3% 4.5%;
padding: 2% 3%;
font-size: 0.3rem;
}
}
/deep/ .van-text-ellipsis {
/deep/ .van-text-ellipsis {
font-size: 0.37rem;
padding: 0.27rem 0.43rem;
}
}
.fold-div {
.fold-div {
position: relative;
display: flex;
padding: 0 0.43rem 0.13rem;
@ -437,51 +451,51 @@ export default {
box-sizing: border-box;
color: rgb(50, 50, 51);
font-size: 0.37rem;
}
}
.fold-div::after {
.fold-div::after {
position: absolute;
left: 0.43rem;
bottom: 0;
width: calc(100% - 0.86rem);
border-bottom: 1px solid #ebedf0;
content: "";
transform: scaleY(.5);
}
transform: scaleY(0.5);
}
.fold-div label {
.fold-div label {
width: 2.6rem;
padding: 0.27rem 0px 0.27rem 0;
}
}
.fold-div .van-text-ellipsis {
.fold-div .van-text-ellipsis {
padding: 0.27rem 0;
width: calc(100% - 2.6rem);
color: #666;
}
}
/deep/ .mult-line .van-field__label {
/deep/ .mult-line .van-field__label {
padding-right: 0.5rem;
line-height: 1.25;
}
}
/deep/ .van-picker-column__item--selected {
/deep/ .van-picker-column__item--selected {
background: #e5eef9;
color: #000;
font-weight: 600;
}
}
/deep/ .van-field .van-field__control {
/deep/ .van-field .van-field__control {
color: #666;
}
}
/deep/ .van-field__label--required:before {
/deep/ .van-field__label--required:before {
margin-left: -0.2rem;
}
}
/***折叠**/
.look_all {
.look_all {
display: flex;
align-items: center;
justify-content: center;
@ -494,9 +508,9 @@ export default {
border-radius: 0.05rem;
/*background: linear-gradient(to top, rgba(255, 255, 255, .9), rgba(255, 255, 255, .35));*/
background: #fff;
}
}
.look_all i {
.look_all i {
margin: 0 0.2rem;
padding: 0.1rem 0.3rem 0;
color: rgba(0, 0, 0, 0.35);
@ -504,24 +518,23 @@ export default {
height: 0.5rem;
/*background: linear-gradient(to bottom, rgba(0, 0, 0, .1), transparent);*/
border-radius: 0.2rem 0.2rem 0 0;
}
}
.new_detail {
.new_detail {
padding-top: 0.3rem;
height: 100%;
transition: height 2s linear;
}
}
.work_detail {
.work_detail {
padding-top: 0.3rem;
height: 0.2rem;
overflow: hidden;
}
}
.new_up {
.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