|
@@ -8,19 +8,19 @@
|
|
<uni-datetime-picker v-model="data.range" type="daterange" @change="onDateSelect" style="flex: 1" class="yishou-date-box"/>
|
|
<uni-datetime-picker v-model="data.range" type="daterange" @change="onDateSelect" style="flex: 1" class="yishou-date-box"/>
|
|
</view>
|
|
</view>
|
|
<view class="zjzgs-body-box">
|
|
<view class="zjzgs-body-box">
|
|
- <view class="zjzgs-num-box">
|
|
|
|
- <view class="zjzgs-title">爱家家政公司</view>
|
|
|
|
|
|
+ <view class="zjzgs-num-box" v-for="item in data.list" :key="item.jzId">
|
|
|
|
+ <view class="zjzgs-title">{{ item.jzName }}</view>
|
|
<view class="num-item-box">
|
|
<view class="num-item-box">
|
|
- <view>家政人员数量:10</view>
|
|
|
|
- <view class="num-btn">详情</view>
|
|
|
|
|
|
+ <view>家政人员数量:{{ item.userCount }}</view>
|
|
|
|
+ <view class="num-btn" @click="checkUser(item)">详情</view>
|
|
</view>
|
|
</view>
|
|
<view class="num-item-box">
|
|
<view class="num-item-box">
|
|
- <view>申请办证数量:100</view>
|
|
|
|
- <view class="num-btn">详情</view>
|
|
|
|
|
|
+ <view>申请办证数量:{{ item.applyCount }}</view>
|
|
|
|
+ <view class="num-btn" @click="checkApplyCert(item)">详情</view>
|
|
</view>
|
|
</view>
|
|
<view class="num-item-box">
|
|
<view class="num-item-box">
|
|
- <view>已办证数量:200</view>
|
|
|
|
- <view class="num-btn">详情</view>
|
|
|
|
|
|
+ <view>已办证数量:{{ item.certCount }}</view>
|
|
|
|
+ <view class="num-btn" @click="checkCert(item)">详情</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -28,10 +28,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
|
+import * as httpApi from "@/api/zijiazhenggongsi"
|
|
import {
|
|
import {
|
|
reactive,
|
|
reactive,
|
|
ref
|
|
ref
|
|
} from "vue";
|
|
} from "vue";
|
|
|
|
+
|
|
const data = reactive({
|
|
const data = reactive({
|
|
list: [], // 办证列表
|
|
list: [], // 办证列表
|
|
startDate: '',
|
|
startDate: '',
|
|
@@ -43,6 +45,31 @@
|
|
url: `/pages/admin/ShouYe/shouye`
|
|
url: `/pages/admin/ShouYe/shouye`
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ function onDateSelect(data1) {
|
|
|
|
+ getZigongsiList(data1)
|
|
|
|
+ }
|
|
|
|
+ function getZigongsiList() {
|
|
|
|
+ httpApi.getZiJiazhengGongsiList({
|
|
|
|
+ endDate: data.range[1],
|
|
|
|
+ startDate: data.range[0]
|
|
|
|
+ }).then(res => {
|
|
|
|
+ console.log('res',res)
|
|
|
|
+ data.list = res.data;
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+function checkUser(item) {}
|
|
|
|
+function checkApplyCert(item) {
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: `pages/admin/zijiazheng/banzhengshuliang?listIds=${item.applyList.join(',')}`
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+function checkCert(item) {
|
|
|
|
+ uni.redirectTo({
|
|
|
|
+ url: `pages/admin/zijiazheng/banzhengshuliang?listIds=${item.certList.join(',')}`
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style>
|
|
<style>
|