Browse Source

统一提交之前更改

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

2
src/config/env.js

@ -10,4 +10,4 @@ let baseUrl="http://jdm.szssfj.cn/jdmApi";
export {
baseUrl,
// wsUrl
}
};

408
src/views/enforce/enterpriseBaseInfo.vue

@ -7,7 +7,6 @@
<!-- 中间 -->
<!-- <div class="warp_body">-->
<van-form @failed="onFailed" @submit="submit">
<van-cell-group>
<!-- <div class="qy-name">企业信息</div>-->
@ -16,7 +15,8 @@
label="企业名称"
readonly
/>
<van-field class="mult-line"
<van-field
class="mult-line"
v-model="data.enterpriseInfo.enterpriseNumber"
label="统一社会信用代码"
readonly
@ -53,19 +53,34 @@
<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 }"
>
<!-- <span>{{words}}</span>-->
<van-icon v-if="!is_show" name="arrow-down" />
<van-icon v-else name="arrow-up" />
</div>
</van-cell-group>
<van-divider class="divdsty" />
@ -77,29 +92,53 @@
<!-- @click="searchDateType(item)"-->
<!-- :style="item.selected == true ? 'background-color:#1989fa;color:#ffffff':'background-color:#e3e0e0;color:#4c4c4c'">{{item.name}}-->
<!-- </span>-->
<span v-for="(item, index) in data?.optionList" :key="index" plain hairline
<span
v-for="(item, index) in data?.optionList"
:key="index"
plain
hairline
@click="searchDateType(item)"
:class="item.selected == true ? 'active':''">{{item.name}}
:class="item.selected == true ? 'active' : ''"
>{{ item.name }}
</span>
</div>
<div class="refresh_content" v-if="data?.checkDataList.length && data?.show == 1">
<van-pull-refresh v-model="data.refreshing_check" @refresh="onRefresh_check">
<van-list v-model:loading="data.loading_check" :finished="data.finished_check" finished-text="没有更多了" @load="onLoad_check">
<div class="goods_box" v-for="(item, index) in data?.checkDataList" :key="index">
<div
class="refresh_content"
v-if="data?.checkDataList.length && data?.show == 1"
>
<van-pull-refresh
v-model="data.refreshing_check"
@refresh="onRefresh_check"
>
<van-list
v-model:loading="data.loading_check"
:finished="data.finished_check"
finished-text="没有更多了"
@load="onLoad_check"
>
<div
class="goods_box"
v-for="(item, index) in data?.checkDataList"
:key="index"
>
<van-swipe-cell class="swipe_cell">
<div class="card_box">
<div class="card_box_span">
<p>{{ item.c601002 }}</p>
</div>
<div class="card_box_span">
<p><span class="card_box_label">执法日期:</span>
<p>
<span class="card_box_label">执法日期:</span>
<!-- {{formattedTimeYYYYmmdd(item.c601005)}}, {{ item.lawEnforcerTwo }}</p>-->
{{formattedTimeYYYYmmdd(item.c601005)}}</p>
{{ formattedTimeYYYYmmdd(item.c601005) }}
</p>
</div>
<div class="card_box_span">
<p v-if="item.c601015 == '01'"><span class="card_box_label">执法结果:</span> 合格
<p v-if="item.c601015 == '01'">
<span class="card_box_label">执法结果:</span> 合格
</p>
<p v-if="item.c601015 == '02'"><span class="card_box_label">执法结果:</span> 不合格
<p v-if="item.c601015 == '02'">
<span class="card_box_label">执法结果:</span> 不合格
</p>
</div>
</div>
@ -108,30 +147,55 @@
</van-list>
</van-pull-refresh>
</div>
<div class="refresh_content" v-if="data?.forceDataList.length && data?.show == 2">
<van-pull-refresh v-model="data.refreshing_force" @refresh="onRefresh_force">
<van-list v-model:loading="data.loading_force" :finished="data.finished_force" finished-text="没有更多了" @load="onLoad_force">
<div class="goods_box" v-for="(item, index) in data?.forceDataList" :key="index">
<div
class="refresh_content"
v-if="data?.forceDataList.length && data?.show == 2"
>
<van-pull-refresh
v-model="data.refreshing_force"
@refresh="onRefresh_force"
>
<van-list
v-model:loading="data.loading_force"
:finished="data.finished_force"
finished-text="没有更多了"
@load="onLoad_force"
>
<div
class="goods_box"
v-for="(item, index) in data?.forceDataList"
:key="index"
>
<van-swipe-cell class="swipe_cell">
<div class="card_box">
<div class="card_box_span">
<p>{{ item.c201002 }}</p>
</div>
<div class="card_box_span">
<p><span class="card_box_label">执法主体:</span>{{ item.c201003 }}</p>
<p>
<span class="card_box_label">执法主体:</span
>{{ item.c201003 }}
</p>
</div>
<div class="card_box_span">
<p><span class="card_box_label">处罚种类:</span> {{ item.cfzl }}</p>
<p>
<span class="card_box_label">处罚种类:</span>
{{ item.cfzl }}
</p>
</div>
<div class="card_box_span">
<p v-if="item.c206010 == '01'"><span class="card_box_label">处罚决定:</span>给予处罚
<p v-if="item.c206010 == '01'">
<span class="card_box_label">处罚决定:</span>给予处罚
</p>
<p v-if="item.c206010 == '02'"><span class="card_box_label">处罚决定:</span>不予处罚
<p v-if="item.c206010 == '02'">
<span class="card_box_label">处罚决定:</span>不予处罚
</p>
</div>
<div class="card_box_span">
<p><span class="card_box_label">处罚日期:</span>
{{formattedTimeYYYYmmdd(item.c206013)}}</p>
<p>
<span class="card_box_label">处罚日期:</span>
{{ formattedTimeYYYYmmdd(item.c206013) }}
</p>
</div>
</div>
</van-swipe-cell>
@ -139,10 +203,25 @@
</van-list>
</van-pull-refresh>
</div>
<div class="refresh_content" v-if="data?.punishDataList.length && data?.show == 3">
<van-pull-refresh v-model="data.refreshing_punish" @refresh="onRefresh_punish">
<van-list v-model:loading="data.loading_punish" :finished="data.finished_punish" finished-text="没有更多了" @load="onLoad_punish">
<div class="goods_box" v-for="(item, index) in data?.punishDataList" :key="index">
<div
class="refresh_content"
v-if="data?.punishDataList.length && data?.show == 3"
>
<van-pull-refresh
v-model="data.refreshing_punish"
@refresh="onRefresh_punish"
>
<van-list
v-model:loading="data.loading_punish"
:finished="data.finished_punish"
finished-text="没有更多了"
@load="onLoad_punish"
>
<div
class="goods_box"
v-for="(item, index) in data?.punishDataList"
:key="index"
>
<van-swipe-cell class="swipe_cell">
<div class="card_box">
<div class="card_box_span">
@ -150,16 +229,23 @@
<p v-if="item.c301002 == '无'">************</p>
</div>
<div class="card_box_span">
<p><span class="card_box_label">强制种类:</span>
<p>
<span class="card_box_label">强制种类:</span>
<span v-if="item.c302002 == ''"></span>
{{ item.c302002 }}</p>
{{ item.c302002 }}
</p>
</div>
<div class="card_box_span">
<p><span class="card_box_label">强制措施:</span> {{ item.c302001 }}</p>
<p>
<span class="card_box_label">强制措施:</span>
{{ item.c302001 }}
</p>
</div>
<div class="card_box_span">
<p><span class="card_box_label">批准时间:</span>
{{formattedTimeYYYYmmdd(item.c302007)}}</p>
<p>
<span class="card_box_label">批准时间:</span>
{{ formattedTimeYYYYmmdd(item.c302007) }}
</p>
</div>
</div>
</van-swipe-cell>
@ -168,31 +254,48 @@
</van-pull-refresh>
</div>
</van-cell-group>
</van-form>
</div>
<Popup :visible="data.popupVisible" :content="data.popupContent" @close="closePopup" @reciveData="reciveData"/>
<Popup :visible="data.popupVisible2" :content="data.popupContent2" @close="closePopup" @reciveData="reciveData2"/>
<Popup
:visible="data.popupVisible"
:content="data.popupContent"
@close="closePopup"
@reciveData="reciveData"
/>
<Popup
:visible="data.popupVisible2"
:content="data.popupContent2"
@close="closePopup"
@reciveData="reciveData2"
/>
<!-- </div>-->
</template>
<script setup name="register">
import {showSuccessToast} from 'vant';
import 'vant/es/toast/style';
import {addEnforcementRegistration, queryUserInfo, queryRegistrationList} from '@/api/enforce'
import {getEnterpriseInformation, queryXzjcjbxxList, queryQZAJList, queryCFAJList} from '@/api/enterprise'
import {getDict} from '@/api/Home'
import { showSuccessToast } from "vant";
import "vant/es/toast/style";
import {
addEnforcementRegistration,
queryUserInfo,
queryRegistrationList,
} from "@/api/enforce";
import {
getEnterpriseInformation,
queryXzjcjbxxList,
queryQZAJList,
queryCFAJList,
} from "@/api/enterprise";
import { getDict } from "@/api/Home";
import { reactive, ref } from "vue";
import { formattedTimeYYYYmmdd } from "@/util/util";
import {format} from 'date-fns';
import { format } from "date-fns";
import { uploadFile } from "@/util/fileUpload";
//用户筛选弹窗
import Popup from './userFilter.vue';
import {nameCorrect}from'../../util/fileUpload'
import Popup from "./userFilter.vue";
import { nameCorrect } from "../../util/fileUpload";
const {useMy} = $globalStore
const { useMy } = $globalStore;
const router = useRouter();
//路由参数
@ -200,9 +303,10 @@
let queryaddressId = ref("");
const data = reactive({
optionList: [
{name: "历史执法案件", val: 1, selected: true},
{ name: "历史检查案件", val: 1, selected: true },
{ name: "历史处罚案件", val: 2, selected: false },
{name: "历史强制案件", val: 3, selected: false}],
{ name: "历史强制案件", val: 3, selected: false },
],
show: 1,
searchParam: {},
enterpriseInfo: {},
@ -215,11 +319,11 @@
bad: "#D3D3D3",
popupVisible: false,
popupContent: '',
popupContent: "",
popupVisible2: false,
popupContent2: '',
popupContent2: "",
enterpriseNumberTmp: '',
enterpriseNumberTmp: "",
loading_check: false,
finished_check: false,
@ -251,49 +355,54 @@
},
});
const searchDateType = (item) => {
if (item.selected === false) {
data.optionList.forEach(item => {
item.selected = false
})
item.selected = true
data.show = item.val
}
data.optionList.forEach((item) => {
item.selected = false;
});
item.selected = true;
data.show = item.val;
}
};
const queryList = () => {
queryEnforcementInspectionProgramList(searchParam, success => {
console.log(success)
queryEnforcementInspectionProgramList(
searchParam,
(success) => {
console.log(success);
data.dataList = success.data;
freshMap.refreshLoad = false;
freshMap.listLoading = false;
freshMap.listFinished = true;
isLodding.value = false;
}, error => {
})
}
},
(error) => {},
);
};
//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;
@ -307,36 +416,39 @@
// }
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 => {
})
},
(error) => {},
);
data.enterpriseNumberTmp = success.data.enterpriseNumber
data.enterpriseNumberTmp = success.data.enterpriseNumber;
// 获取历史执法案件列表
// 获取历史检查案件列表
queryList_check(success.data.enterpriseNumber);
// 获取历史强制案件列表
queryList_punish(success.data.enterpriseNumber);
// 获取历史处罚案件列表
queryList_force(success.data.enterpriseNumber);
}
}, error => {
})
})
},
(error) => {},
);
});
// 返回
const goBack = () => {
@ -344,42 +456,42 @@
};
const toDetailView = (id) => {
console.log(id)
router.push(
{
console.log(id);
router.push({
path: "/registrationDetail",
query: {
id: id,
}
},
});
}
};
const showPopup = () => {
data.popupVisible = true;
}
};
const showPopup2 = () => {
data.popupVisible2 = true;
}
};
const closePopup = () => {
data.popupVisible = false;
data.popupVisible2 = false;
}
};
const reciveData = (item) => {
submitData.lawEnforcerTwo = item.userName;
submitData.lawEnforcerIdTwo = item.userId;
}
};
const reciveData2 = (item) => {
submitData.subsidiaryer = item.userName;
submitData.subsidiaryerId = item.userId;
}
};
// 获取历史执法案件列表
// 获取历史检查案件列表
const queryList_check = (enterpriseNumber) => {
searchParam.enterpriseNumber = enterpriseNumber;
searchParam.pageNum = (data.curPage_check - 1) * searchParam.pageSize;
queryXzjcjbxxList(searchParam, res => {
console.log("历史执法案件---", res.rows)
queryXzjcjbxxList(
searchParam,
(res) => {
console.log("历史检查案件---", res.rows);
data.curPage_check++;
data.loading_check = false; // 查出结果停止加载
if (res.total <= data.checkDataList.length) {
@ -389,9 +501,9 @@
}
// data.checkDataList = res.data;
data.checkDataList.push(...res.rows);
}, error => {
});
},
(error) => {},
);
};
//下拉刷新
const onRefresh_check = () => {
@ -419,8 +531,10 @@
const queryList_force = (enterpriseNumber) => {
searchParam.enterpriseNumber = enterpriseNumber;
searchParam.pageNum = (data.curPage_force - 1) * searchParam.pageSize;
queryCFAJList(searchParam, res => {
console.log("历史处罚案件---", res.rows)
queryCFAJList(
searchParam,
(res) => {
console.log("历史处罚案件---", res.rows);
data.curPage_force++;
data.loading_force = false; // 查出结果停止加载
if (res.total <= data.forceDataList.length) {
@ -429,8 +543,8 @@
return;
}
// data.punishDataList = res.data;
res.rows.forEach(res => {
var obj = {}
res.rows.forEach((res) => {
var obj = {};
var textArr = [];
obj = res;
@ -449,13 +563,13 @@
obj.cfzl = textArr.join(",");
data.forceDataList.push(obj);
})
});
// data.forceDataList = res.data;
// data.forceDataList.push(...res.rows);
}, error => {
})
}
},
(error) => {},
);
};
//下拉刷新
const onRefresh_force = () => {
data.curPage_force = 1;
@ -482,8 +596,10 @@
const queryList_punish = (enterpriseNumber) => {
searchParam.enterpriseNumber = enterpriseNumber;
searchParam.pageNum = (data.curPage_punish - 1) * searchParam.pageSize;
queryQZAJList(searchParam, res => {
console.log("历史强制案件---", res.rows)
queryQZAJList(
searchParam,
(res) => {
console.log("历史强制案件---", res.rows);
data.curPage_punish++;
data.loading_punish = false; // 查出结果停止加载
if (res.total <= data.punishDataList.length) {
@ -491,17 +607,17 @@
data.finished_punish = true;
return;
}
res.rows.forEach(res => {
var obj = {}
res.rows.forEach((res) => {
var obj = {};
obj = res;
obj.cfzl = "罚款";
data.punishDataList.push(obj);
})
});
// data.punishDataList.push(...res.rows);
}, error => {
})
}
},
(error) => {},
);
};
//下拉刷新
const onRefresh_punish = () => {
data.curPage_punish = 1;
@ -523,30 +639,23 @@
queryList_punish(data.enterpriseNumberTmp);
}, 1000);
};
</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>
@ -569,7 +678,8 @@ export default {
margin-top: 0.15rem;
}
.qy-name, .zf-name {
.qy-name,
.zf-name {
margin: 0 0.27rem;
font-size: 0.42rem;
height: 1.2rem;
@ -602,7 +712,7 @@ export default {
.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;
@ -628,7 +738,8 @@ export default {
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;
}
@ -783,7 +894,7 @@ export default {
width: calc(100% - 0.86rem);
border-bottom: 1px solid #ebedf0;
content: "";
transform: scaleY(.5);
transform: scaleY(0.5);
}
.fold-div label {
@ -860,5 +971,4 @@ export default {
bottom: 0.1rem;
}
/***/
</style>

109
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 }">
<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>
<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,13 +71,13 @@
</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();
@ -71,12 +100,12 @@
TabId: 0,
list: [
{
title: '企业画像',
value: '0'
title: "企业画像",
value: "0",
},
{
title: '执法记录',
value: '1'
title: "执法记录",
value: "1",
},
],
reason: route?.query?.reason,
@ -111,7 +140,7 @@
reason: data.reason,
checkCss: data.checkCss,
isNoScan: data.isNoScan,
}
},
});
};
@ -119,8 +148,8 @@
router.push({
path: "/enterpriseBaseInfo",
query: {
enterpriseNumber: data.enterpriseNumber
}
enterpriseNumber: data.enterpriseNumber,
},
});
};
@ -128,8 +157,8 @@
router.push({
path: "/enterpriseWarningInfo",
query: {
enterpriseNumber: data.enterpriseNumber
}
enterpriseNumber: data.enterpriseNumber,
},
});
};
@ -137,12 +166,12 @@
router.push({
path: "/enterprise/registrationList",
});
}
};
const toComplaintView = async () => {
router.push({
path: "/enterprise/complaint",
});
}
};
// 触底加载
const onLoad = () => {
@ -150,7 +179,9 @@
};
onMounted(() => {
getEnterpriseInformation(route?.query?.enterpriseNumber, success => {
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,7 +212,7 @@
// }
// }, error => {
// })
})
});
// 返回
const goBack = () => {
router.go(-1);
@ -300,5 +334,4 @@
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

158
src/views/enforceHome.vue

@ -10,8 +10,18 @@
<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) ">
<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>
@ -20,8 +30,7 @@
<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,9 +69,12 @@
</template>
<script setup name="Home">
import Vconsolefrom from 'vconsole';
import {Loading, showFailToast,showToast, showSuccessToast} from 'vant';
import {getEnterpriseMerchantAuthorization, getSzyptLoginAuth} from '../api/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);
@ -71,7 +89,7 @@
listLoading: false, // 是否加载中
listFinished: false, // 是否加载完成标识
key: 0,
animate: false
animate: false,
});
const noticeList = [];
@ -100,7 +118,7 @@
const data = reactive({
noticeList: [],
notNull:true
notNull: true,
});
const adviceList = reactive([]);
const boutiqueAttr = reactive({
@ -132,7 +150,7 @@
// 执法人员才有权限进入
router.push({ path: "/enforce/scanQrCode" });
} else {
showFailToast('非行政执法人员无法使用该功能');
showFailToast("非行政执法人员无法使用该功能");
}
};
@ -147,43 +165,44 @@
// 执法人员才有权限进入
router.push({ path: "/historyCheck" });
} else {
showFailToast('非行政执法人员无法使用该功能');
}
showFailToast("非行政执法人员无法使用该功能");
}
};
const toComplaintView = async () => {
router.push({
path: "/enterprise/complaint",
});
}
};
const toAnalyseView = async () => {
/* router.push({path: "/analyse"}); */
if (useCommon.hasLaw) {
// 执法人员才有权限进入
router.push({ path: "/comprehensiveAnalysis" });
} else {
showFailToast('非行政执法人员无法使用该功能');
}
showFailToast("非行政执法人员无法使用该功能");
}
};
const toNoticeView = async () => {
router.push({
path: "/enforce/enforceNotice",
});
}
};
const toNoticeDetail = async (item) => {
if (null != item) {
router.push(
{
router.push({
path: "/enforce/enforceNotice",
query: {
type:item.type
}
type: item.type,
},
});
} else {
showFailToast("没有执行计划")
}
showFailToast("没有执行计划");
}
};
const queryList = () => {
queryEnforcementNotice({isPublish:1,dateType:4}, success => {
queryEnforcementNotice(
{ isPublish: 1, dateType: 4 },
(success) => {
/* if (success.rows.length > 4) {
for (let i = 0; i < 5; i++) {
carouselList.push(success.rows[i]);
@ -201,20 +220,20 @@
} else { */
carouselList = success.rows;
if (carouselList.length == 0) {
data.notNull=false
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 = "四季度";
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;
}
@ -223,19 +242,19 @@
var obj = {
content: element.planName,
id: element.id,
type:element.type
}
data.noticeList.push(obj)
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 => {
})
}
},
(error) => {},
);
};
const flushMessage = () => {
timerObj.value++;
freshMap.key = timerObj.value;
@ -243,8 +262,8 @@
timerObj.value = 0;
}
freshMap.key = timerObj.value;
noticeStr = carouselList[timerObj.value].planName
}
noticeStr = carouselList[timerObj.value].planName;
};
//下拉刷新
const onRefresh = () => {
@ -264,29 +283,36 @@
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();
@ -295,7 +321,7 @@
// 清除定时器
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 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,17 +364,15 @@
} else {
this.setNotificationMove();
}
}
};
const showNotice = () => {
freshMap.animate = true
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>
@ -371,9 +397,7 @@
height: 4rem;
width: 100%;
padding-bottom: 0.27rem;
}
}
.boutique_box {
@ -530,7 +554,6 @@
}
}
.streamer {
display: flex;
position: absolute;
@ -540,11 +563,11 @@
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;
}
@ -558,11 +581,11 @@
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;
}
@ -573,12 +596,13 @@
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;
@ -702,7 +726,6 @@
height: 0.5rem;
font-size: 0.37rem;
white-space: nowrap;
}
.noticeContent li::before {
@ -737,7 +760,6 @@
margin-top: 0.05rem;
}
.notice_top {
transition: all 0.5s;
margin-top: -30px;
@ -773,10 +795,8 @@
color: #fff;
}
.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);

149
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 "vant/es/toast/style";
// import {addEnforcementRegistration, queryUserInfo, queryRegistrationList} from '@/api/enforce'
import {getEnterpriseInformation} from '@/api/enterprise'
import {getDict} from '@/api/Home'
import { getEnterpriseInformation } from "@/api/enterprise";
import { getDict } from "@/api/Home";
import { reactive } from "vue";
import {format} from 'date-fns';
import {nameCorrect}from'../../util/fileUpload'
import { format } from "date-fns";
import { nameCorrect } from "../../util/fileUpload";
const {useMy} = $globalStore
const { useMy } = $globalStore;
const router = useRouter();
//路由参数
const route = useRoute();
const data = reactive({
optionList: [
{name: "历史执法案件", val: 1, selected: true},
{ name: "历史检查案件", val: 1, selected: true },
{ name: "历史处罚案件", val: 2, selected: false },
{name: "历史强制案件", val: 3, 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,
@ -134,21 +147,25 @@
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;
@ -162,54 +179,49 @@
// }
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>
@ -232,7 +244,8 @@ export default {
margin-top: 0.15rem;
}
.qy-name, .zf-name {
.qy-name,
.zf-name {
margin: 0 0.27rem;
font-size: 0.42rem;
height: 1.2rem;
@ -265,7 +278,7 @@ export default {
.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;
@ -291,7 +304,8 @@ export default {
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;
}
@ -446,7 +460,7 @@ export default {
width: calc(100% - 0.86rem);
border-bottom: 1px solid #ebedf0;
content: "";
transform: scaleY(.5);
transform: scaleY(0.5);
}
.fold-div label {
@ -523,5 +537,4 @@ export default {
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