|
|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
<div class="shop app_content"> |
|
|
<div class="shop app_content"> |
|
|
<!-- 导航栏 --> |
|
|
<!-- 导航栏 --> |
|
|
@ -8,16 +7,16 @@ |
|
|
@goBack="goBack" |
|
|
@goBack="goBack" |
|
|
titelText="二维码管理"></header-nav> |
|
|
titelText="二维码管理"></header-nav> |
|
|
</div>--> |
|
|
</div>--> |
|
|
<van-search |
|
|
<!-- <van-search--> |
|
|
v-model="searchParam.searchValue" |
|
|
<!-- v-model="searchParam.searchValue"--> |
|
|
show-action |
|
|
<!-- show-action--> |
|
|
placeholder="请输入关键字查询" |
|
|
<!-- placeholder="请输入关键字查询"--> |
|
|
@search="onSearch" |
|
|
<!-- @search="onSearch"--> |
|
|
> |
|
|
<!-- >--> |
|
|
<template #action> |
|
|
<!-- <template #action>--> |
|
|
<div @click="onClickButton">搜索</div> |
|
|
<!-- <div @click="onClickButton">搜索</div>--> |
|
|
</template> |
|
|
<!-- </template>--> |
|
|
</van-search> |
|
|
<!-- </van-search>--> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 顶部弹出 --> |
|
|
<!-- 顶部弹出 --> |
|
|
@ -38,9 +37,13 @@ |
|
|
<van-button plain hairline class="search-button" @click="searchDateType(3)" round type="primary" size="mini">本年度</van-button> |
|
|
<van-button plain hairline class="search-button" @click="searchDateType(3)" round type="primary" size="mini">本年度</van-button> |
|
|
<van-button plain hairline class="search-button" @click="searchFilter" round type="primary" size="mini">筛选</van-button> |
|
|
<van-button plain hairline class="search-button" @click="searchFilter" round type="primary" size="mini">筛选</van-button> |
|
|
</div> --> |
|
|
</div> --> |
|
|
<div class="search-button-date"> |
|
|
<div class="search-button-date" style="justify-content: space-between;"> |
|
|
<span class="date-select" @click="selectDate">{{ data.dateSearch }} <van-icon name="play"/></span> |
|
|
<span class="date-select" @click="selectDate">{{ data.dateSearch }} <van-icon name="play"/></span> |
|
|
<div style="border-color: black;" class="van-hairline--bottom"></div> |
|
|
<div style="border-color: black;" class="van-hairline--bottom"></div> |
|
|
|
|
|
<div style="padding-right: 20px;"> |
|
|
|
|
|
<van-button @click="toNewQrCode()" type="primary" |
|
|
|
|
|
size="mini">新二维码</van-button> |
|
|
|
|
|
</div> |
|
|
<!-- <van-button class="search-button" type="primary" size="mini">统计分析</van-button> --> |
|
|
<!-- <van-button class="search-button" type="primary" size="mini">统计分析</van-button> --> |
|
|
<van-popup v-model:show="data.showDatePicker" position="bottom"> |
|
|
<van-popup v-model:show="data.showDatePicker" position="bottom"> |
|
|
<van-date-picker |
|
|
<van-date-picker |
|
|
@ -65,8 +68,11 @@ |
|
|
<van-swipe-cell class="swipe_cell"> |
|
|
<van-swipe-cell class="swipe_cell"> |
|
|
<div class="card_box"> |
|
|
<div class="card_box"> |
|
|
<div class="card_box_span"> |
|
|
<div class="card_box_span"> |
|
|
<p><span class="card_box_label">生成时间:</span>{{ item.generateTime }} <span class="card_box_action"> |
|
|
<p><span class="card_box_label">生成时间:</span>{{ item.generateTime }} <span |
|
|
<!-- <van-button @click="toComplaintView(item.id,item.lawEnforcementIncident)" type="primary" size="mini">投诉</van-button> --> |
|
|
class="card_box_action"> |
|
|
|
|
|
<van-button v-if="item.status == 0" @click="toUnQrCode(item.id)" type="primary" |
|
|
|
|
|
size="mini">失效</van-button> |
|
|
|
|
|
<van-button v-else type="error" size="mini">已失效</van-button> |
|
|
</span></p> |
|
|
</span></p> |
|
|
</div> |
|
|
</div> |
|
|
<!-- <van-divider :style="{ color: '#1989fa', borderColor: '#1989fa',padding: '0 5px' }" /> --> |
|
|
<!-- <van-divider :style="{ color: '#1989fa', borderColor: '#1989fa',padding: '0 5px' }" /> --> |
|
|
@ -75,9 +81,9 @@ |
|
|
<p>{{ item.checkItem }}</p> |
|
|
<p>{{ item.checkItem }}</p> |
|
|
</div> --> |
|
|
</div> --> |
|
|
|
|
|
|
|
|
<div class="card_box_span"> |
|
|
<!-- <div class="card_box_span">--> |
|
|
<p><span class="card_box_label">变更原因:</span> {{ item.reasonsChange }}</p> |
|
|
<!-- <p><span class="card_box_label">变更原因:</span> {{ item.reasonsChange }}</p>--> |
|
|
</div> |
|
|
<!-- </div>--> |
|
|
</div> |
|
|
</div> |
|
|
</van-swipe-cell> |
|
|
</van-swipe-cell> |
|
|
</div> |
|
|
</div> |
|
|
@ -95,12 +101,15 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup name="registrationList"> |
|
|
<script setup name="registrationList"> |
|
|
import { showToast } from "vant"; |
|
|
import {showFailToast, showToast} from "vant"; |
|
|
import {queryHistoryQrCodeList} from '../../api/enterprise'; |
|
|
import {queryHistoryQrCodeList} from '../../api/enterprise'; |
|
|
|
|
|
import {addQrCode, unQrCode} from '../../api/enforce'; |
|
|
import {setGoodsNum} from "@/util/util"; |
|
|
import {setGoodsNum} from "@/util/util"; |
|
|
|
|
|
|
|
|
const {useCommon, useShopCard} = $globalStore; |
|
|
const {useCommon, useShopCard} = $globalStore; |
|
|
|
|
|
|
|
|
const router = useRouter(); |
|
|
const router = useRouter(); |
|
|
|
|
|
const route = useRoute(); |
|
|
let allchecked = ref(false); // 是否全选 |
|
|
let allchecked = ref(false); // 是否全选 |
|
|
let refreshLoad = ref(false); // 是否加载中 |
|
|
let refreshLoad = ref(false); // 是否加载中 |
|
|
let value = ref('') |
|
|
let value = ref('') |
|
|
@ -141,6 +150,7 @@ const data = reactive({ |
|
|
// 设置初始值为当前时间 |
|
|
// 设置初始值为当前时间 |
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
console.log(useCommon.enterpriseNumber); |
|
|
console.log(useCommon.enterpriseNumber); |
|
|
|
|
|
useCommon.enterpriseNumber = route?.query?.enterpriseNumber; |
|
|
// getCard(); |
|
|
// getCard(); |
|
|
searchParam.enterpriseNumber = useCommon.enterpriseNumber; |
|
|
searchParam.enterpriseNumber = useCommon.enterpriseNumber; |
|
|
console.log(useCommon.enterpriseNumber) |
|
|
console.log(useCommon.enterpriseNumber) |
|
|
@ -174,6 +184,31 @@ const onClickButton = () =>{ |
|
|
queryList(); |
|
|
queryList(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const toNewQrCode = () => { |
|
|
|
|
|
console.log("===========") |
|
|
|
|
|
console.log(useCommon.enterpriseNumber) |
|
|
|
|
|
addQrCode(useCommon.enterpriseNumber,success => { |
|
|
|
|
|
console.log(success) |
|
|
|
|
|
if (success.success) { |
|
|
|
|
|
showToast('操作成功'); |
|
|
|
|
|
queryList(); |
|
|
|
|
|
} else { |
|
|
|
|
|
showFailToast('操作失败!'); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const toUnQrCode = (id) => { |
|
|
|
|
|
unQrCode(id, success => { |
|
|
|
|
|
if (success.success) { |
|
|
|
|
|
showToast('操作成功'); |
|
|
|
|
|
queryList(); |
|
|
|
|
|
} else { |
|
|
|
|
|
showFailToast('操作失败!'); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const toDetailView = (id) => { |
|
|
const toDetailView = (id) => { |
|
|
console.log(id) |
|
|
console.log(id) |
|
|
router.push( |
|
|
router.push( |
|
|
@ -219,7 +254,6 @@ const onLoad = () => { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取分类下的商品列表 |
|
|
//获取分类下的商品列表 |
|
|
const getGoodslist = async (onLoad) => { |
|
|
const getGoodslist = async (onLoad) => { |
|
|
// const res = await useClassify.classifyGoods(); |
|
|
// const res = await useClassify.classifyGoods(); |
|
|
@ -330,11 +364,13 @@ const cancelSelectDate = () =>{ |
|
|
width: 100%; |
|
|
width: 100%; |
|
|
padding: 0.27rem 0; |
|
|
padding: 0.27rem 0; |
|
|
flex-direction: column; |
|
|
flex-direction: column; |
|
|
|
|
|
|
|
|
.card_body { |
|
|
.card_body { |
|
|
background-color: #fff; |
|
|
background-color: #fff; |
|
|
border-radius: 0.27rem; |
|
|
border-radius: 0.27rem; |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.card_box_span { |
|
|
.card_box_span { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
@ -347,6 +383,7 @@ const cancelSelectDate = () =>{ |
|
|
margin: 0; |
|
|
margin: 0; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.card_box_action { |
|
|
.card_box_action { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
right: 4%; |
|
|
right: 4%; |
|
|
@ -358,6 +395,7 @@ const cancelSelectDate = () =>{ |
|
|
.shop_footer_body { |
|
|
.shop_footer_body { |
|
|
//height: 101px; |
|
|
//height: 101px; |
|
|
position: relative; |
|
|
position: relative; |
|
|
|
|
|
|
|
|
.footer-one-btn { |
|
|
.footer-one-btn { |
|
|
height: 1.33rem; |
|
|
height: 1.33rem; |
|
|
bottom: 1.34rem; |
|
|
bottom: 1.34rem; |
|
|
@ -372,6 +410,7 @@ const cancelSelectDate = () =>{ |
|
|
padding-left: 0.27rem; |
|
|
padding-left: 0.27rem; |
|
|
margin-top: 0.27rem; |
|
|
margin-top: 0.27rem; |
|
|
align-items: end; |
|
|
align-items: end; |
|
|
|
|
|
|
|
|
.search-button { |
|
|
.search-button { |
|
|
width: 15%; |
|
|
width: 15%; |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
@ -381,6 +420,7 @@ const cancelSelectDate = () =>{ |
|
|
font-size: 0.3rem; |
|
|
font-size: 0.3rem; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.search-button-date { |
|
|
.search-button-date { |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: row; |
|
|
flex-direction: row; |
|
|
@ -390,11 +430,13 @@ const cancelSelectDate = () =>{ |
|
|
.date-select { |
|
|
.date-select { |
|
|
font-size: 0.52rem; |
|
|
font-size: 0.52rem; |
|
|
margin: 3% 0 0 4%; |
|
|
margin: 3% 0 0 4%; |
|
|
|
|
|
|
|
|
i { |
|
|
i { |
|
|
transform: rotate(90deg); |
|
|
transform: rotate(90deg); |
|
|
font-size: 0.4rem; |
|
|
font-size: 0.4rem; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.search-button { |
|
|
.search-button { |
|
|
width: 15%; |
|
|
width: 15%; |
|
|
height: 80%; |
|
|
height: 80%; |
|
|
@ -403,6 +445,7 @@ const cancelSelectDate = () =>{ |
|
|
right: 1%; |
|
|
right: 1%; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/deep/ .van-search__content { |
|
|
/deep/ .van-search__content { |
|
|
height: 0.9rem; |
|
|
height: 0.9rem; |
|
|
border: 1px solid #ececec; |
|
|
border: 1px solid #ececec; |
|
|
|