You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
652 lines
18 KiB
652 lines
18 KiB
<template>
|
|
<div class="shop app_content">
|
|
<!-- 导航栏 -->
|
|
<!-- <div class="header_body">
|
|
<header-nav
|
|
:slefBack="true"
|
|
@goBack="goBack"
|
|
:titelText="`行政检查信息查询`"
|
|
>
|
|
</header-nav>
|
|
|
|
</div>-->
|
|
<van-search
|
|
v-model="searchParam.searchValue"
|
|
show-action
|
|
placeholder="请输入关键字查询"
|
|
@search="onSearch"
|
|
clearable="true"
|
|
clear-icon="clear"
|
|
clear-trigger="always"
|
|
>
|
|
<template #action>
|
|
<div @click="onClickButton">搜索</div>
|
|
</template>
|
|
</van-search>
|
|
<div class="search-button-date">
|
|
<span class="date-select" v-show="data.dateShow" @click="selectDate">{{ data.dateSearch }}</span>
|
|
|
|
<div style="border-color: black;" class="van-hairline--bottom"></div>
|
|
<!-- <van-button class="search-button" type="primary" size="mini">统计分析</van-button> -->
|
|
<van-popup v-model:show="data.showDatePicker" position="bottom">
|
|
<van-date-picker
|
|
title="选择月度"
|
|
v-model="data.currentDate"
|
|
:min-date="data.minDate"
|
|
:max-date="data.maxDate"
|
|
:columns-type="data.columnsType"
|
|
@confirm="onDateConfirm"
|
|
@cancel="cancelSelectDate"
|
|
/>
|
|
</van-popup>
|
|
</div>
|
|
<div class="warning-rule">
|
|
<span><van-icon name="warning-o" /></span><span>行政执法检查事项投诉有效期为检查次日起<b><i>5</i></b>个自然日内。</span>
|
|
</div>
|
|
<!-- 中间 -->
|
|
<div class="shop-center">
|
|
<van-pull-refresh v-model="data.refreshing" @refresh="onRefresh">
|
|
<van-list v-model:loading="data.loading" :finished="data.finished" finished-text="没有更多了" @load="onLoad">
|
|
<div class="goods_box" v-for="(item, index) in data?.dataList" :key="index">
|
|
<van-swipe-cell class="swipe_cell">
|
|
<div class="card_box">
|
|
<div class="card_box_span">
|
|
<p>检查时间:{{ item.createTime }} <span class="card_box_action"></span></p>
|
|
<div class="act-btn">
|
|
<!-- <span class="card_box_action"></span>-->
|
|
<span class="joint-mark">联</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div @click="toDetailView(item.id)">
|
|
<div class="van-hairline--bottom"></div>
|
|
<div class="card_box_span card-title">
|
|
<p>{{ item.lawEnforcementItemText }}</p>
|
|
</div>
|
|
|
|
<div class="card_box_span">
|
|
<p><label class="card_box_label">执法部门:</label> <span>{{ item.bureauDeptName }}</span></p>
|
|
</div>
|
|
<!-- <div class="card_box_span">
|
|
<p><label class="card_box_label">执法人员:</label> <span>{{ item.lawEnforcer }}</span></p>
|
|
</div>
|
|
<div class="card_box_span" v-for="(item, index) in item.lawEnforcer2List">
|
|
<p><label class="card_box_label">执法人员:</label> <span>{{ item }}</span></p>
|
|
</div>-->
|
|
<div class="card_box_span">
|
|
<p>
|
|
<label class="card_box_label">执法人员:</label>
|
|
<div>
|
|
<div>{{ item.lawEnforcer }}</div>
|
|
<div v-for="(item, index) in item.lawEnforcer2List">{{ item }}</div>
|
|
</div>
|
|
</p>
|
|
</div>
|
|
<div class="card_box_span">
|
|
<p><label class="card_box_label">检查类别:</label> {{ item.checkCategoryText }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="btn-list">
|
|
<a @click.stop="toComplaintView(item.id,item.lawEnforcementItem,item.lawEnforcementItemText)">
|
|
<van-icon name="warning-o"/>
|
|
投诉</a>
|
|
|
|
</div>
|
|
|
|
<div class="card_box_action" v-if="item.comOrOpi == 0">
|
|
<!-- <span><van-button @click="toComplaint(item.id, item.lawEnforcementItemText)" type="primary"-->
|
|
<!-- size="mini">建议</van-button></span>-->
|
|
</div>
|
|
</div>
|
|
</van-swipe-cell>
|
|
</div>
|
|
</van-list>
|
|
</van-pull-refresh>
|
|
</div>
|
|
|
|
<!-- 底部 -->
|
|
<!-- <div class="shop_footer_body">
|
|
<footer-nav></footer-nav>
|
|
</div> -->
|
|
</div>
|
|
</template>
|
|
|
|
<script setup name="registrationList">
|
|
import { queryListWithFiveDay } from '@/api/enterprise';
|
|
import {queryLinkage, queryLinkageById, queryLinkageDictByValueAndParentId} from "@/api/linkage";
|
|
import {setGoodsNum} from "@/util/util";
|
|
|
|
const {useCommon, useShopCard} = $globalStore;
|
|
|
|
const router = useRouter();
|
|
let allchecked = ref(false); // 是否全选
|
|
let refreshLoad = ref(false); // 是否加载中
|
|
let value = ref('')
|
|
let totalPrice = ref(0); // 总钱数
|
|
|
|
let searchParam = reactive({
|
|
// 分页
|
|
pageNum: 1,
|
|
pageSize: 6,
|
|
//执法事件
|
|
lawEnforcementIncident: "",
|
|
//执法部门
|
|
lawEnforcement: "",
|
|
//搜索框
|
|
searchValue: ref(''),
|
|
//时间类型
|
|
dateType: null,
|
|
// 是否提交
|
|
isSubmit: 1,
|
|
//是否投诉
|
|
isComplaint: null,
|
|
//企业统一信用码
|
|
enterpriseNumber: ref(useCommon.enterpriseNumber),
|
|
//时间搜索
|
|
dateSearch: "",
|
|
dataScopeId: useCommon.userId
|
|
});
|
|
|
|
const data = reactive({
|
|
cartList: [],
|
|
dataList: [],
|
|
dateSearch: ref(),
|
|
showDatePicker: false,
|
|
currentDate: ref(['2024', '01']),
|
|
minDate: new Date(2020, 0, 1),
|
|
maxDate: new Date(2125, 5, 1),
|
|
columnsType: ['year', 'month'],
|
|
ga_columns: [],
|
|
dateShow: false,
|
|
checkNum: null,
|
|
loading: false,
|
|
finished: false,
|
|
refreshing: false,
|
|
curPage: 1,
|
|
});
|
|
|
|
// 设置初始值为当前时间
|
|
onMounted(() => {
|
|
// getCard();
|
|
searchParam.enterpriseNumber = useCommon.enterpriseNumber;
|
|
// queryList();
|
|
data.dateSearch = nowDate(new Date());
|
|
});
|
|
const getLinkageByParentIdToItem = (parentId) => {
|
|
// 查询检查要求字典信息
|
|
queryLinkage({"parentId": parentId}, success => {
|
|
for (var i = 0; i < success.length; i++) {
|
|
data.ga_columns.push({text: success[i].title, value: success[i].id, id: success[i].id})
|
|
}
|
|
// queryList();
|
|
searchDateType(null);
|
|
}, error => {
|
|
});
|
|
}
|
|
const queryList = () => {
|
|
// searchParam.enterpriseNumber = "92440300MACQUM2M9D";
|
|
//TODO 临时注释
|
|
if (searchParam.enterpriseNumber == '' || searchParam.enterpriseNumber == null) {
|
|
console.log("该用户没有关联企业!");
|
|
return;
|
|
}
|
|
searchParam.pageNum = (data.curPage - 1) * searchParam.pageSize;
|
|
//未投诉数据
|
|
searchParam.isComplaint = 0;
|
|
queryListWithFiveDay(searchParam, success => {
|
|
console.log("---- ",success.rows);
|
|
data.curPage++;
|
|
data.loading = false; // 查出结果停止加载
|
|
if (success.total <= data.dataList.length) {
|
|
// 查到最后没数据
|
|
data.finished = true;
|
|
return;
|
|
}
|
|
// data.dataList = success.data;
|
|
data.dataList.push(...success.rows);
|
|
}, error => {
|
|
|
|
})
|
|
}
|
|
const setLinkageItem = (id, item) => {
|
|
queryLinkageById({"id": id}, success => {
|
|
item.lawEnforcementItem = success.title
|
|
}, error => {
|
|
});
|
|
}
|
|
const onSearch = (val) => {
|
|
data.curPage = 1;
|
|
data.dataList = [];
|
|
onRefresh();
|
|
// queryRegistrationList(
|
|
// {
|
|
// "searchValue": searchParam.searchText
|
|
// }
|
|
// , success => {
|
|
// console.log(success)
|
|
// data.dataList = success.data;
|
|
// }, error => {
|
|
//
|
|
// })
|
|
};
|
|
const onClickButton = () => {
|
|
data.curPage = 1;
|
|
data.dataList = [];
|
|
onRefresh();
|
|
}
|
|
|
|
/**
|
|
* 企业投诉页面
|
|
* @param {*} id
|
|
* @param {*} name
|
|
*/
|
|
const toComplaintView = (id, name, text) => {
|
|
console.log(id, name)
|
|
router.push({
|
|
path: "/enterprise/complaint",
|
|
query: {
|
|
id: id,
|
|
lawEnforcementIncident: name,
|
|
lawEnforcementItemText: text,
|
|
isSelect: false
|
|
}
|
|
});
|
|
}
|
|
/** 企业评价页面 */
|
|
const toEvaluate = (id, checkItem) => {
|
|
console.log(checkItem);
|
|
router.push({
|
|
path: "/evaluate",
|
|
query: {
|
|
isSelect: false,
|
|
id: id,
|
|
lawEnforcementItemText: checkItem,
|
|
}
|
|
});
|
|
}
|
|
/**
|
|
* 查看执法登记详情
|
|
* @param {} id
|
|
* @param {*} name
|
|
*/
|
|
const toDetailView = (id) => {
|
|
console.log(id)
|
|
router.push(
|
|
{
|
|
path: "/registrationDetail",
|
|
query: {
|
|
id: id,
|
|
}
|
|
});
|
|
}
|
|
onActivated(() => {
|
|
});
|
|
|
|
onDeactivated(() => {
|
|
|
|
});
|
|
|
|
const countWorkdays = (startDate) => {
|
|
let workdays = 0;
|
|
endDate = new Date();
|
|
for (let date = new Date(startDate); date <= endDate; date.setDate(date.getDate() + 1)) {
|
|
if (date.getDay() % 6 !== 0) { // 假设周末是6 (星期六) 和 0 (星期日)
|
|
workdays++;
|
|
}
|
|
}
|
|
return workdays;
|
|
}
|
|
|
|
// 返回
|
|
const goBack = () => {
|
|
router.go(-1);
|
|
};
|
|
|
|
let resetScroll = ref(0); // 滚动记录
|
|
let isLodding = ref(true); // 是否加载中
|
|
let freshMap = reactive({
|
|
refreshLoad: false, // 是否刷新
|
|
listLoading: false, // 是否加载中
|
|
listFinished: false, // 是否加载完成标识
|
|
});
|
|
|
|
//下拉刷新
|
|
const onRefresh = () => {
|
|
// 清空列表数据
|
|
data.dataList = [];
|
|
data.finished = false;
|
|
|
|
// 重新加载数据
|
|
// 将 loading 设置为 true,表示处于加载状态
|
|
data.loading = true;
|
|
onLoad();
|
|
};
|
|
// 触底加载
|
|
const onLoad = () => {
|
|
setTimeout(() => {
|
|
if (data.refreshing) {
|
|
data.refreshing = false;
|
|
}
|
|
queryList();
|
|
}, 1000);
|
|
};
|
|
|
|
|
|
//获取分类下的商品列表
|
|
const getGoodslist = async (onLoad) => {
|
|
// const res = await useClassify.classifyGoods();
|
|
// if (res?.code === 20000) {
|
|
// goodsList = onLoad ? goodsList.concat(res?.data) : res?.data;
|
|
// freshMap.refreshLoad = false;
|
|
// freshMap.listLoading = false;
|
|
// freshMap.listFinished = res?.listFinished;
|
|
// if (goodsList.length > 50) {
|
|
// freshMap.listFinished = true;
|
|
// }
|
|
// }
|
|
freshMap.refreshLoad = false;
|
|
freshMap.listLoading = false;
|
|
freshMap.listFinished = true;
|
|
isLodding.value = false;
|
|
};
|
|
|
|
const selectDate = () => {
|
|
data.checkNum = 9;
|
|
data.showDatePicker = true;
|
|
}
|
|
|
|
const onDateConfirm = (value) => {
|
|
data.dateSearch = value.selectedValues[0] + "/" + value.selectedValues[1]
|
|
data.showDatePicker = false;
|
|
//搜索数据
|
|
searchParam.dateSearch = value.selectedValues[0] + "-" + value.selectedValues[1]
|
|
searchParam.dateType = null;
|
|
data.dateShow = true;
|
|
|
|
data.curPage = 1;
|
|
data.dataList = [];
|
|
onRefresh();
|
|
}
|
|
const nowDate = (time) => {
|
|
var year = time.getFullYear(); // 年
|
|
var month = (time.getMonth() + 1).toString().padStart(2, '0'); // 月
|
|
var date = time.getDate().toString().padStart(2, '0'); // 日
|
|
var hour = time.getHours().toString().padStart(2, '0'); // 时
|
|
var minute = time.getMinutes().toString().padStart(2, '0'); // 分
|
|
var second = time.getSeconds().toString().padStart(2, '0'); // 秒
|
|
return (
|
|
year + "/" + month
|
|
)
|
|
}
|
|
|
|
|
|
const searchDateType = (val) => {
|
|
data.checkNum = val;
|
|
searchParam.dateType = val;
|
|
searchParam.isComplaint = null;
|
|
searchParam.dateSearch = null;
|
|
if (val == null) {
|
|
searchParam.dateSearch = null;
|
|
}
|
|
data.dateShow = false;
|
|
|
|
data.curPage = 1;
|
|
data.dataList = [];
|
|
onRefresh();
|
|
}
|
|
const searchComplaint = (val) => {
|
|
searchParam.isComplaint = val;
|
|
searchParam.dateType = null;
|
|
|
|
data.curPage = 1;
|
|
data.dataList = [];
|
|
onRefresh();
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.shop {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background-color: #ebf3fb;
|
|
|
|
.header_body {
|
|
height: 1.33rem;
|
|
}
|
|
|
|
.shop-center {
|
|
flex: 1;
|
|
overflow-y: scroll;
|
|
position: relative;
|
|
|
|
.goods_box {
|
|
display: flex;
|
|
background-color: #fff;
|
|
margin: 0.27rem;
|
|
border-radius: 0.2rem;
|
|
|
|
.swipe_cell {
|
|
width: 100%;
|
|
}
|
|
|
|
.card_box {
|
|
display: flex;
|
|
width: 100%;
|
|
padding: 0.1rem 0 0.2rem;
|
|
flex-direction: column;
|
|
|
|
.card_body {
|
|
background-color: #fff;
|
|
border-radius: 0.27rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.card_box_span {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 2% 0;
|
|
padding: 0 3%;
|
|
color: #666;
|
|
font-size: 0.35rem;
|
|
line-height: 1.5;
|
|
|
|
p {
|
|
display: flex;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.card_box_action {
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.shop_footer_body {
|
|
//height: 101px;
|
|
position: relative;
|
|
|
|
.footer-one-btn {
|
|
height: 1.33rem;
|
|
bottom: 1.34rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.search-button-list {
|
|
height: 0.7rem;
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding-left: 0.27rem;
|
|
margin-top: 0.27rem;
|
|
align-items: end;
|
|
|
|
.search-button {
|
|
width: 15%;
|
|
height: 90%;
|
|
background: #ebebeb;
|
|
border-color: #ebebeb;
|
|
color: #999;
|
|
font-size: 0.3rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.search-button.active {
|
|
background-color: #d9e6fd;
|
|
border-color: #75a5fb;
|
|
color: #1367fe;
|
|
}
|
|
}
|
|
|
|
.search-button-date {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: end;
|
|
position: relative;
|
|
|
|
.date-select {
|
|
margin: 3% 0 0 4%;
|
|
color: #c1bfbf;
|
|
font-size: 0.52rem;
|
|
|
|
i {
|
|
transform: rotate(90deg);
|
|
font-size: 0.4rem;
|
|
}
|
|
}
|
|
|
|
.search-button {
|
|
position: absolute;
|
|
top: 1%;
|
|
right: 3%;
|
|
width: 15%;
|
|
height: 100%;
|
|
font-size: 0.3rem;
|
|
}
|
|
}
|
|
|
|
.trbtn {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 4%;
|
|
height: 90%;
|
|
}
|
|
|
|
.trbtn_e {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 16%;
|
|
height: 90%;
|
|
color: antiquewhite
|
|
}
|
|
|
|
/deep/ .van-hairline--bottom {
|
|
margin: -1% 0 3% 0;
|
|
height: 0;
|
|
background-color: transparent;
|
|
border: 1px;
|
|
}
|
|
|
|
/deep/ .card_box_span:first-child p {
|
|
color: #c1bfbf !important;
|
|
}
|
|
|
|
.card-title p {
|
|
display: block !important;
|
|
color: #000;
|
|
font-size: 0.40rem;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.card_box_label {
|
|
color: #323233;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/deep/ .van-search__content {
|
|
height: 0.9rem;
|
|
border: 1px solid #ececec;
|
|
border-radius: 0.15rem 0 0 0.15rem;
|
|
}
|
|
|
|
/deep/ .van-search__action {
|
|
margin: 0 3% 0 0;
|
|
width: 10%;
|
|
height: 0.9rem;
|
|
background: #1367fe;
|
|
border: 0.01rem solid #1367fe;
|
|
border-radius: 0 0.15rem 0.15rem 0;
|
|
color: #fff;
|
|
text-align: center;
|
|
line-height: 0.9rem;
|
|
}
|
|
|
|
.btn-list {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
margin: 0.3rem 3% 0;
|
|
width: 94%;
|
|
border-top: 1px solid #f4f5f6;
|
|
}
|
|
|
|
.btn-list a {
|
|
margin: 3% 3% 1%;
|
|
font-size: 0.35rem;
|
|
color: #1367fe;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-list a i {
|
|
margin: 0 0.12rem;
|
|
font-size: 0.4rem;
|
|
}
|
|
|
|
.warning-rule {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 2% 0.27rem 1%;
|
|
padding: 0.2rem;
|
|
border-radius: 0.27rem;
|
|
background-color: #fff4e8;
|
|
color: #fb710b;
|
|
font-size: 0.3rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.warning-rule i {
|
|
margin: 0 0.1rem;
|
|
color: #f50;
|
|
font-size: 0.35rem;
|
|
}
|
|
|
|
.act-btn {
|
|
display: flex;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.joint-mark {
|
|
display: inline-block;
|
|
margin: 0 0.25rem 0 0;
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
background: #2d94fa;
|
|
border-radius: 50%;
|
|
color: #fff;
|
|
font-size: 0.3rem;
|
|
line-height: 1.75;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|