From 6757c2013698849b5fd6bcfc98a8b3a13f94e661 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Fri, 15 Mar 2024 19:00:38 +0800
Subject: [PATCH] 更新
---
subPackage/workbench/views/editCscj.vue | 63 ----
subPackage/workbench/views/editExamine.vue | 30 +-
subPackage/article/signature.vue | 4
subPackage/workbench/components/formItem.vue | 27 -
subPackage/workbench/views/tradingList.vue | 330 ++++++++++++++++++++++++++++++
pages.json | 11
subPackage/workbench/views/examine.vue | 154 +++++++++++--
subPackage/workbench/views/cscj.vue | 21 +
subPackage/workbench/views/audit.vue | 14
9 files changed, 523 insertions(+), 131 deletions(-)
diff --git a/pages.json b/pages.json
index 62ab20a..ac68a4a 100644
--- a/pages.json
+++ b/pages.json
@@ -457,7 +457,7 @@
{
"path": "views/audit",
"style": {
- "navigationBarTitleText": "标签事件",
+ "navigationBarTitleText": "",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
@@ -645,6 +645,15 @@
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle": "black"
}
+ },
+ {
+ "path": "views/tradingList",
+ "style": {
+ "navigationBarTitleText": "二手交易",
+ "enablePullDownRefresh": false,
+ "navigationBarBackgroundColor": "#fff",
+ "navigationBarTextStyle": "black"
+ }
}
]
},
diff --git a/subPackage/article/signature.vue b/subPackage/article/signature.vue
index 18ee543..677216f 100644
--- a/subPackage/article/signature.vue
+++ b/subPackage/article/signature.vue
@@ -53,7 +53,7 @@
lineWidth: 3, //签名时线宽
textColor: '#007AFF' //签名文字颜色
},
- imgUrl: '',
+ imgUrl: '', //签名临时路径
header: {},
uploadConfig: {
url: prodUrl + "/blade-resource/oss/endpoint/put-file",
@@ -129,7 +129,7 @@
confirmValidationCode() {
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
- prePage.$vm.voteRequest(this.imgUrl);
+ prePage.$vm.voteRequest(this.imgSrc);
this.isShowPopup = false;
uni.navigateBack({
delta: 2
diff --git a/subPackage/workbench/components/formItem.vue b/subPackage/workbench/components/formItem.vue
index d9c8b6d..477acda 100644
--- a/subPackage/workbench/components/formItem.vue
+++ b/subPackage/workbench/components/formItem.vue
@@ -16,9 +16,7 @@
<u-form-item label="微信号" class="form-item">
<u--input v-model="form.wxAccount" border="none" placeholder="请填写微信号"></u--input>
</u-form-item>
- <!-- <u-form-item label="年龄" class="form-item">
- <u--input v-model="form.age" border="none" placeholder="请填写年龄"></u--input>
- </u-form-item> -->
+
<u-form-item @click="showGenderPicker = true" class="form-item" label="性别" prop="legalGender">
<u--input border="none" v-model="genderValue" disabled disabledColor="#ffffff" placeholder="请选择性别">
</u--input>
@@ -29,27 +27,21 @@
</u--input>
<u-icon slot="right" name="arrow-right"></u-icon>
</u-form-item>
- <!-- <u-form-item label="工作单位" class="form-item">
- <u--input v-model="form.employer" border="none" placeholder="请填写工作单位"></u--input>
- </u-form-item> -->
<u-form-item label="岗位性质" class="form-item">
<u--input v-model="form.jobNature" border="none" placeholder="请填写岗位性质"></u--input>
</u-form-item>
<u-form-item label="户籍地址" class="form-item">
<u--input v-model="form.registeredAddress" border="none" placeholder="请填写户籍地址"></u--input>
</u-form-item>
-
- <!-- <view class="item pic">
- <view class="box-title f-28" style="padding:10rpx 0;">
- 从业人员照片
+ <u-form-item label="从业人员照片" class="form-item" labelPosition="top" labelWidth="100">
+ <view style="padding:20rpx 0 0;">
+ <u-upload :fileList="form.employerImg" :previewFullImage="uploadConfig.previewFullImage"
+ :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple"
+ :maxCount="uploadConfig.maxCount" :capture="uploadConfig.capture"
+ uploadIcon="/static/icon/upload.png" @afterRead="afterReadImgs" @delete="deleteImages">
+ </u-upload>
</view>
- <u-upload :fileList="form.employerImg" :previewFullImage="uploadConfig.previewFullImage"
- :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" :maxCount="uploadConfig.maxCount"
- :capture="uploadConfig.capture" uploadIcon="/static/icon/upload.png" @afterRead="afterReadImgs"
- @delete="deleteImages">
- </u-upload>
- </view> -->
-
+ </u-form-item>
</u-form>
<u-picker :defaultIndex="nationTypeListIndex" :closeOnClickOverlay="true" :show="showNationPicker"
:columns="[nationTypeList]" @close="showNationPicker = false" @cancel="showNationPicker = false"
@@ -155,7 +147,6 @@
async afterReadImgs(event) {
this.showLoading()
let lists = [].concat(event.file)
- console.log(this.form)
let fileListLen = this.form.employerImg.length
lists.map((item) => {
this.form.employerImg.push({
diff --git a/subPackage/workbench/views/audit.vue b/subPackage/workbench/views/audit.vue
index 85451f6..f851718 100644
--- a/subPackage/workbench/views/audit.vue
+++ b/subPackage/workbench/views/audit.vue
@@ -96,6 +96,10 @@
console.log(option);
if (option.reportType) {
this.reportType = option.reportType;
+ if (option.from == "task") {
+ this.tabIndex = 2;
+ this.currentStatus = 1;
+ }
if (option.reportType == 1) {
uni.setNavigationBarTitle({
title: "取保候审"
@@ -108,6 +112,7 @@
uni.setNavigationBarTitle({
title: "二手交易"
})
+
}
}
@@ -116,10 +121,7 @@
title: "场所任务"
})
}
- if (option.from == "task") {
- this.tabIndex = 2;
- this.currentStatus = 1;
- }
+
if (option.code) {
this.houseCode = option.code;
}
@@ -127,6 +129,10 @@
},
onShow() {
+ if (this.reportType == 5) {
+ this.tabList.splice(1, 1);
+ this.tabIndex = 1;
+ }
this.resetParams();
this.getList()
},
diff --git a/subPackage/workbench/views/cscj.vue b/subPackage/workbench/views/cscj.vue
index 712bf2b..315b317 100644
--- a/subPackage/workbench/views/cscj.vue
+++ b/subPackage/workbench/views/cscj.vue
@@ -254,18 +254,18 @@
</u-form>
- <view class="practitioner" style="padding:20rpx 30rpx 0;">
- <box-title title="从业人员信息"></box-title>
+ <view class="practitioner">
+ <view style="padding:20rpx 30rpx;">
+ <box-title title="从业人员信息"></box-title>
+ </view>
<view class="info" v-for="(item, index) in personNum" :key="index">
- <view class="title">人员信息-#{{ index*1 + 1 }}</view>
+ <view class="title" style="text-align:center;">人员信息-#{{ index*1 + 1 }}</view>
<formItem ref="formItemRef"></formItem>
</view>
-
<view class="" style="padding:20rpx 0;" v-if="personNum == 0 && currentId">
未完善
</view>
-
- <view class="add-person" v-if="!currentId">
+ <view class="add-person" style="padding:20rpx 30rpx;" v-if="!currentId">
<u-button type="success" plain @click="addPerson">再加一人</u-button>
</view>
</view>
@@ -1013,15 +1013,16 @@
this.$refs.formItemRef[index].nationTypeIndex = obj.index;
}
- if (item.gender) {
+ if (item.gender !== "" || item.gender != null) {
let obj = this.$getIndex(this.$refs.formItemRef[index]
.gender, item.gender, "value", "name")
this.$refs.formItemRef[index].genderValue = obj.name;
this.$refs.formItemRef[index].genderIndex = obj.index;
}
- if (item.employerImg) {
- this.$refs.formItemRef[index].employerImg = this.$setImageUrl(item
- .employerImg, 2)
+ if (item.employerImg == "" || item.employerImg == null) {
+ item.employerImg = [];
+ } else {
+ item.employerImg = this.$setImageUrl(item.employerImg, 2)
}
this.$refs.formItemRef[index].form = item
diff --git a/subPackage/workbench/views/editCscj.vue b/subPackage/workbench/views/editCscj.vue
index afa2c4e..82b8b03 100644
--- a/subPackage/workbench/views/editCscj.vue
+++ b/subPackage/workbench/views/editCscj.vue
@@ -163,58 +163,12 @@
placeholder="请输入">
</u--input>
</u-form-item>
- <!-- <u-form-item @click="showGenderPicker = true" class="form-item" labelWidth="100" label="性别"
- prop="legalGender">
- <u--input border="none" v-model="genderValue" disabled disabledColor="#ffffff"
- placeholder="请选择性别">
- </u--input>
- <u-icon slot="right" name="arrow-right"></u-icon>
- </u-form-item>
- <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
- label="年龄:" prop="legalAge">
- <u--input border="none" type="number" v-model="form.placeExtEntity.legalAge" placeholder="请输入">
- </u--input>
- </u-form-item>
- <u-form-item @click="showNationPicker = true" class="form-item" labelWidth="100" label="民族"
- prop="ethnicity">
- <u--input border="none" v-model="nationValue" disabled disabledColor="#ffffff"
- placeholder="请选择民族">
- </u--input>
- <u-icon slot="right" name="arrow-right"></u-icon>
- </u-form-item> -->
<u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
label="手机号:" prop="legalTel">
<u--input border="none" type="number" v-model="form.placeExtEntity.legalTel" placeholder="请输入">
</u--input>
</u-form-item>
- <!-- <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
- label="微信号:" prop="legalWxAccount">
- <u--input border="none" v-model="form.placeExtEntity.legalWxAccount" placeholder="请输入">
- </u--input>
- </u-form-item> -->
- <!-- <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
- label="工作单位:" prop="employer">
- <u--input border="none" v-model="form.placeExtEntity.employer" placeholder="请输入">
- </u--input>
- </u-form-item> -->
- <!-- <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
- label="岗位性质:" prop="legalJobNature">
- <u--input border="none" v-model="form.placeExtEntity.legalJobNature" placeholder="请输入">
- </u--input>
- </u-form-item>
- <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
- label="户籍地址:" prop="legalRegisteredAddress">
- <u--textarea border="none" v-model="form.placeExtEntity.legalRegisteredAddress"
- placeholder="请输入">
- </u--textarea>
- </u-form-item>
- <u-form-item class="form-item" labelWidth="100" :required="isRequired" :disabled="isDisabled"
- label="居住地址:" prop="legalTempAddress">
- <u--textarea border="none" type="idcard" v-model="form.placeExtEntity.legalTempAddress"
- placeholder="请输入">
- </u--textarea>
- </u-form-item> -->
</view>
@@ -231,13 +185,15 @@
</u-form>
<view class="practitioner">
- <box-title title="从业人员信息"></box-title>
+ <view style="padding:20rpx 30rpx;">
+ <box-title title="从业人员信息"></box-title>
+ </view>
<view class="info" v-for="(item, index) in personNum" :key="index">
- <view class="title">人员信息-#{{ index*1 + 1 }}</view>
+ <view class="title" style="text-align: center;">人员信息-#{{ index*1 + 1 }}</view>
<formItem ref="formItemRef"></formItem>
</view>
- <view class="add-person">
+ <view class="add-person" style="padding:20rpx 30rpx;">
<u-button type="success" plain @click="addPerson">再加一人</u-button>
</view>
</view>
@@ -977,15 +933,16 @@
this.$refs.formItemRef[index].nationTypeIndex = obj.index;
}
- if (item.gender) {
+ if (item.gender !== "" || item.gender != null) {
let obj = this.$getIndex(this.$refs.formItemRef[index]
.gender, item.gender, "value", "name")
this.$refs.formItemRef[index].genderValue = obj.name;
this.$refs.formItemRef[index].genderIndex = obj.index;
}
- if (item.employerImg) {
- this.$refs.formItemRef[index].employerImg = this.$setImageUrl(item
- .employerImg, 2)
+ if (item.employerImg == "" || item.employerImg == null) {
+ item.employerImg = [];
+ } else {
+ item.employerImg = this.$setImageUrl(item.employerImg, 2)
}
this.$refs.formItemRef[index].form = item
diff --git a/subPackage/workbench/views/editExamine.vue b/subPackage/workbench/views/editExamine.vue
index 7261900..adc1cca 100644
--- a/subPackage/workbench/views/editExamine.vue
+++ b/subPackage/workbench/views/editExamine.vue
@@ -140,13 +140,15 @@
</view>
</view>
<view class="practitioner">
- <box-title title="从业人员信息"></box-title>
+ <view style="padding:20rpx 30rpx;">
+ <box-title title="从业人员信息"></box-title>
+ </view>
<view class="info" v-for="(item, index) in personNum" :key="index">
<view class="title">人员信息-#{{ index*1 + 1 }}</view>
<formItem ref="formItemRef"></formItem>
</view>
- <view class="add-person">
+ <view class="add-person" style="padding:20rpx 30rpx;" v-if="!currentId">
<u-button type="success" plain @click="addPerson">再加一人</u-button>
</view>
</view>
@@ -434,23 +436,17 @@
this.$refs.formItemRef[index].nationTypeIndex = obj.index;
}
- if (item.gender) {
+ if (item.gender !== "" || item.gender != null) {
let obj = this.$getIndex(this.$refs.formItemRef[index].gender, item
.gender, "value", "name")
this.$refs.formItemRef[index].genderValue = obj.name;
this.$refs.formItemRef[index].genderIndex = obj.index;
}
if (item.employerImg == "" || item.employerImg == null) {
- console.log(222222)
- this.$refs.formItemRef[index].employerImg = []
+ item.employerImg = [];
} else {
- this.$refs.formItemRef[index].employerImg = this.$setImageUrl(item
- .employerImg, 2)
+ item.employerImg = this.$setImageUrl(item.employerImg, 2)
}
-
-
- console.log(this.$refs.formItemRef[index].form);
-
this.$refs.formItemRef[index].form = item
})
})
@@ -537,12 +533,12 @@
this.$refs.formItemRef.forEach(item => {
console.log("item====>", item);
item.form.placeId = this.form.placeId
- // if (item.form.employerImg == null) {
- // item.form.employerImg = "";
- // } else {
- // item.form.employerImg = this.$formattingUrls(item.form.employerImg);
- // }
- item.form.employerImg = "";
+ if (item.form.employerImg == null) {
+ item.form.employerImg = "";
+ } else {
+ item.form.employerImg = this.$formattingUrls(item.form.employerImg);
+ }
+ // item.form.employerImg = "";
placePractitioner.push(item.form)
})
this.form.placePractitioner = placePractitioner
diff --git a/subPackage/workbench/views/examine.vue b/subPackage/workbench/views/examine.vue
index ade901c..b0bb44a 100644
--- a/subPackage/workbench/views/examine.vue
+++ b/subPackage/workbench/views/examine.vue
@@ -28,24 +28,7 @@
<view class="personnel bgc-ff">
<box-title title="房东信息" class="box-title"></box-title>
<view class="info">
- <view class="info-box">
- <view class="content">
- <text>姓名</text>
- <text>{{ item.landlordName || '未完善' }}</text>
- </view>
- <view class="content">
- <text>电话号码</text>
- <text>{{ item.landlordPhone || '未完善' }}</text>
- </view>
- <view class="content">
- <text>微信号</text>
- <text>{{ item.landlordWxAccount || '未完善' }}</text>
- </view>
- <view class="content">
- <text>身份证号</text>
- <text>{{ item.landlordIdCard || '未完善' }}</text>
- </view>
- </view>
+ <lineItem :dataInfo="landlordData"></lineItem>
</view>
</view>
<view class="personnel">
@@ -74,13 +57,14 @@
<text>{{ item.idCard || '未完善' }}</text>
</view>
<view class="content">
- <text>年龄</text>
- <text>{{ item.age || '未完善' }}</text>
+ <text>性别</text>
+ <text>{{ item.gender || '未完善' }}</text>
</view>
- <!-- <view class="content">
- <text>工作单位</text>
- <text>{{ item.employer || '未完善' }}</text>
- </view> -->
+ <view class="content">
+ <text>民族</text>
+ <text>{{ item.ethnicity || '未完善' }}</text>
+ </view>
+
<view class="content">
<text>岗位性质</text>
<text>{{ item.jobNature || '未完善' }}</text>
@@ -92,6 +76,21 @@
<view class="content">
<text>户籍地址</text>
<text>{{ item.registeredAddress || '未完善' }}</text>
+ </view>
+
+ <view class="content" v-if="!item.employerImg.length">
+ <text>从业人员照片</text>
+ <text>未完善</text>
+ </view>
+
+ <view v-if="item.employerImg.length" class="mt-20" style="margin-left:10rpx;">
+ <view class="f-28">
+ 从业人员照片
+ </view>
+ <view class="images-box" v-for="(i,k) in item.employerImg" :key="k"
+ @click="preViewImg(i,item.employerImg)">
+ <u-image width="80" height="80" :src="i"></u-image>
+ </view>
</view>
</view>
</view>
@@ -152,6 +151,10 @@
import {
minioBaseUrl
} from "@/common/setting.js"
+ import {
+ bizDictionary,
+ bizDictionaryTree
+ } from '@/api/system/dict.js'
export default {
components: {
boxTitle,
@@ -213,7 +216,40 @@
defaultPlaceholder: '待审核',
isShowModal: false,
confirmFlag: 1,
- confirmNotion: ""
+ confirmNotion: "",
+ nationTypeList: [],
+ nationValue: "",
+ gender: [{ //性别
+ value: 1,
+ name: '男',
+ },
+ {
+ value: 0,
+ name: '女',
+ }
+ ],
+ genderValue: "",
+ landlordData: [{
+ label: '姓名',
+ name: "landlordName",
+ value: '未完善'
+ },
+ {
+ label: '手机号',
+ name: "landlordPhone",
+ value: '未完善'
+ },
+ {
+ label: '身份证号',
+ name: "landlordIdCard",
+ value: '未完善'
+ },
+ {
+ label: '微信号',
+ name: "landlordWxAccount",
+ value: '未完善'
+ },
+ ]
}
},
onLoad(option) {
@@ -225,11 +261,44 @@
placeId,
id
}
+
},
onShow() {
this.setDefaultValue()
},
methods: {
+
+
+
+ // 获取业务字典
+ getBizDict(callback) {
+ // const param = {
+ // code: "nationType"
+ // }
+ // const res = await bizDictionary(param)
+ // res.data.forEach(e => {
+ // list.push({
+ // name: e.dictValue,
+ // value: Number(e.dictKey)
+ // })
+ // })
+
+
+
+ bizDictionary({
+ code: "nationType"
+ }).then(res => {
+ let list = []
+ res.data.forEach(e => {
+ list.push({
+ name: e.dictValue,
+ value: Number(e.dictKey)
+ })
+ })
+ callback(list);
+ })
+ },
+
async setDefaultValue() {
const {
code,
@@ -263,11 +332,44 @@
this.basicData.forEach(item => {
item.value = data[item.name] || '未完善'
})
+
+ this.landlordData.forEach(item => {
+ item.value = data[item.name] || '未完善'
+ })
+
+
console.log(data);
let columns = this.columns[0]
this.defaultColumns = columns.findIndex(item => item.status == data.confirmFlag)
this.defaultPlaceholder = columns[this.defaultColumns].name
- this.placePersonList = data.placePractitioner
+ let placePractitioner = data.placePractitioner;
+ for (let i of placePractitioner) {
+ i.employerImg = this.$setImageUrl(i.employerImg)
+ if (i.gender) {
+ let {
+ index,
+ name
+ } = this.$getIndex(this.gender, i.gender, "value",
+ "name");
+ i.gender = name;
+ }
+
+ if (i.ethnicity) {
+ this.getBizDict(resp => {
+ let {
+ index,
+ name
+ } = this.$getIndex(resp, i.ethnicity, "value",
+ "name");
+ i.ethnicity = name;
+ })
+ }
+
+
+ }
+ this.placePersonList = placePractitioner
+
+
},
async checkPlaceExt() {
let data = {
diff --git a/subPackage/workbench/views/tradingList.vue b/subPackage/workbench/views/tradingList.vue
new file mode 100644
index 0000000..08be69b
--- /dev/null
+++ b/subPackage/workbench/views/tradingList.vue
@@ -0,0 +1,330 @@
+<template>
+ <view>
+ <u-sticky>
+ <view class="bgc-ff">
+ <view class="tab">
+ <u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}"
+ :activeStyle="{color:'#017BFC'}">
+ </u-tabs>
+ <view class="search flex j-c-s-b a-i-c">
+ <view class="tab-filter flex j-c-c a-i-c" @click="showDateModal">
+ <text class="f-28">时间筛选</text>
+ <u-icon name="arrow-down"></u-icon>
+ </view>
+ <u-search placeholder="请输入需要查询信息的名称" v-model="keyword" :clearabled="true" :showAction="true"
+ :animation="true" @search="searchConfirm" @clear="clearConfirm"></u-search>
+ </view>
+ </view>
+ </view>
+ </u-sticky>
+
+ <view class="list">
+ <view class="list-item bgc-ff mb-20" v-for="(i,k) in list" :key="k"
+ @click="navTo(i.id,i.reportType,i.status,i.type)">
+ <view class="item-title flex a-i-c j-c-s-b mb-20">
+ <text class="f-32 fw">{{i.name}}</text>
+ <u-tag v-if="i.status == 4" text="待完成" type="warning" plain plainFill></u-tag>
+ <u-tag v-if="i.status == 1" text="待审批" type="warning" plain plainFill></u-tag>
+ <u-tag v-if="i.status == 2" text="审核通过" type="success" plain plainFill></u-tag>
+ <u-tag v-if="i.status == 3" text="审核拒绝" type="error" plain plainFill></u-tag>
+ </view>
+ <view class="item-row flex a-i-c j-c-s-b">
+ <text class="f-28">时间</text>
+ <text class="f-28 c-66">{{i.createTime}}</text>
+ </view>
+ <view class="item-row flex a-i-c j-c-s-b">
+ <text class="f-28">地址</text>
+ <text class="address f-28 c-66">{{i.addressName || ""}}</text>
+ </view>
+ </view>
+ </view>
+ <u-toast ref="uToast"></u-toast>
+ <u-loadmore :status="loadingStatus" loadmoreText="开始加载" loadingText="数据加载中" nomoreText="没有更多了" line />
+
+ <date-range-modal ref="dateRane" @comfirm="handleComfirmDate" @rest="handleRestDate" />
+ </view>
+</template>
+
+<script>
+ import {
+ getAuditReportingList
+ } from "@/api/reporting/reporting"
+ import dateRangeModal from '@/components/dateRangeModal/modal.vue';
+ export default {
+ components: {
+ dateRangeModal
+ },
+ data() {
+ return {
+ tabList: [
+
+ {
+ name: "全部",
+ status: "",
+ },
+ // {
+ // name: "待完成",
+ // status: 4,
+ // },
+ {
+ name: "待审核",
+ status: 1
+ },
+ {
+ name: "审核通过",
+ status: 2
+ },
+ {
+ name: "已拒绝",
+ status: 3
+ }
+ ],
+ tabIndex: 0,
+ currentStatus: "",
+ list: [],
+ loadingStatus: 'nomore',
+ currentPage: 1,
+ frequency: '',
+ reportType: "",
+ selectDate: [],
+ houseCode: "",
+ keyword: ""
+ }
+ },
+
+ onLoad(option) {
+ console.log(option);
+ // if (option.reportType) {
+ // this.reportType = option.reportType;
+ // if (option.reportType == 1) {
+ // uni.setNavigationBarTitle({
+ // title: "取保候审"
+ // })
+ // } else if (option.reportType == 2) {
+ // uni.setNavigationBarTitle({
+ // title: "消防自查"
+ // })
+ // } else if (option.reportType == 5) {
+ // uni.setNavigationBarTitle({
+ // title: "二手交易"
+ // })
+ // }
+ // }
+
+ if (option.from == "index") {
+ uni.setNavigationBarTitle({
+ title: "场所任务"
+ })
+ }
+ if (option.from == "task") {
+ this.tabIndex = 2;
+ this.currentStatus = 1;
+ }
+ if (option.code) {
+ this.houseCode = option.code;
+ }
+ // this.getList()
+ },
+
+ onShow() {
+ this.resetParams();
+ this.getList()
+ },
+
+ onReachBottom() {
+ this.currentPage++
+ this.getList()
+ },
+
+ methods: {
+ searchConfirm() {
+ this.resetParams()
+ this.getList()
+ },
+ clearConfirm() {
+ this.keyword = ''
+ this.searchConfirm()
+ },
+ changeTab(e) {
+ this.tabIndex = e.index;
+ this.currentStatus = e.status;
+ this.resetParams();
+ this.getList();
+ },
+ resetParams() {
+ this.list = [];
+ this.currentPage = 1;
+ },
+ getList() {
+ this.$nextTick(() => {
+ this.loadingStatus = 'loadingmore'
+ this.$refs.uToast.show({
+ type: 'loading',
+ message: '正在加载',
+ duration: 9999999
+ })
+ })
+ let params = {
+ current: this.currentPage,
+ size: 20,
+ status: this.currentStatus,
+ frequency: this.frequency
+ }
+ if (this.selectDate.length) {
+ params.startTime = this.selectDate[0]
+ params.endTime = this.selectDate[1]
+ }
+ if (this.houseCode) {
+ params.houseCode = this.houseCode;
+ }
+
+ if (this.reportType) {
+ params.reportType = this.reportType
+ }
+ if (this.keyword) {
+ params.name = this.keyword;
+ }
+
+ getAuditReportingList(params).then(res => {
+ if (res.code != 200) {
+ uni.showToast({
+ title: '数据请求失败',
+ icon: 'error'
+ })
+ return
+ }
+ let records = res.data.records;
+ this.list = [...this.list, ...records]
+ this.$nextTick(() => {
+ this.$refs.uToast.isShow = false
+ })
+ this.loadingStatus = 'nomore'
+ })
+ },
+ navTo(id, reportType, status, type) {
+ if (status == 4) {
+ if (reportType == 8) {
+ this.navToDetail(reportType, id, type)
+ } else {
+ if (uni.getStorageSync("activeRole").roleName == "民警") {
+ this.navToDetail(reportType, id, type)
+ } else {
+ this.navToEdit(reportType, id, type);
+ }
+ }
+ } else {
+ this.navToDetail(reportType, id, type)
+ }
+ },
+
+ navToEdit(reportType, id, type) {
+ // if (reportType == 1) {
+ // this.$u.func.globalNavigator(`/subPackage/label/bail?id=${id}`)
+ // } else if (reportType == 2 || type == 7) {
+ // this.$u.func.globalNavigator(`/subPackage/label/hotel?id=${id}`)
+ // } else if (reportType == 3 || reportType == 4 || reportType == 5) {
+ // this.$u.func.globalNavigator(`/subPackage/label/form?id=${id}`)
+ // } else if (reportType == 6) {
+ // this.$u.func.globalNavigator(`/subPackage/label/school?id=${id}`)
+ // }
+
+ if (reportType == 1) {
+ this.$u.func.globalNavigator(`/subPackage/label/bail?id=${id}`)
+ } else if (reportType == 2) {
+ this.$u.func.globalNavigator(`/subPackage/label/check?id=${id}`)
+ } else if (reportType == 5) {
+ this.$u.func.globalNavigator(`/subPackage/label/form?id=${id}`)
+ }
+ },
+
+ navToDetail(reportType, id, type) {
+ // if (reportType == 1) {
+ // this.$u.func.globalNavigator(`bailReportDetail?id=${id}`)
+ // } else if (reportType == 2 || type == 7) {
+ // this.$u.func.globalNavigator(`hotelReportDetail?id=${id}`)
+ // } else if (reportType == 3 || reportType == 4 || reportType == 5) {
+ // this.$u.func.globalNavigator(`labelReportDetail?id=${id}`)
+ // } else if (reportType == 6) {
+ // this.$u.func.globalNavigator(`schoolReportDetail?id=${id}`)
+ // } else {
+ // this.$u.func.globalNavigator(`checkReform?id=${id}`)
+ // }
+
+ if (reportType == 1) {
+ this.$u.func.globalNavigator(`bailReportDetail?id=${id}`)
+ } else if (reportType == 2) {
+ this.$u.func.globalNavigator(`selfCheckDetail?id=${id}`)
+ } else if (reportType == 5) {
+ this.$u.func.globalNavigator(`labelReportDetail?id=${id}`)
+ } else {
+ this.$u.func.globalNavigator(`checkReform?id=${id}`)
+ }
+
+
+ },
+
+ showDateModal() {
+ this.$refs.dateRane.open();
+ },
+
+ handleRestDate() {
+ this.selectDate = [];
+ this.resetParams();
+ this.getList()
+ },
+ handleComfirmDate(val) {
+ this.selectDate = val;
+ this.resetParams();
+ this.getList()
+ }
+
+ }
+ }
+</script>
+
+<style lang="scss">
+ page {
+ background-color: #F5F5F5;
+ }
+
+
+
+ .tab {
+ // width: 100%;
+
+ }
+
+ .search {
+ padding: 20rpx 20rpx;
+ }
+
+ // .tab /deep/.u-tabs__wrapper__nav__item {
+ // flex: 1;
+ // }
+ .tab-filter {
+ padding: 0 20rpx;
+ }
+
+ .list {
+ margin: 20rpx 30rpx 0;
+ }
+
+ .list-item {
+ padding: 0 30rpx 20rpx;
+ border-radius: 8rpx;
+
+ .item-title {
+ padding: 30rpx 0;
+ border-bottom: 1px solid #F5F5F5;
+ }
+
+ .item-row {
+ padding: 10rpx 0;
+
+ .address {
+ width: 65%;
+ text-align: right;
+ }
+ }
+ }
+</style>
\ No newline at end of file
--
Gitblit v1.9.3