From b49da32f7f04a7c45b84958856daf79cd239b0e0 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 23 May 2024 19:13:15 +0800
Subject: [PATCH] E呼即办审核
---
subPackage/workbench/views/counterfraudReportDetail.vue | 2
subPackage/search/index.vue | 10 +++--
subPackage/workbench/components/actionBtn.vue | 78 +++++++++++++++++++++++++++++++++++++-
3 files changed, 82 insertions(+), 8 deletions(-)
diff --git a/subPackage/search/index.vue b/subPackage/search/index.vue
index 4c5773c..144e0b2 100644
--- a/subPackage/search/index.vue
+++ b/subPackage/search/index.vue
@@ -11,10 +11,10 @@
<view class="flex">
<text class="search-content f-28">{{i.title}}</text>
<view class="search-tag f-26 c-main">
- {{i.typeName}}
+ {{i.relationship == 18 ? '租户':i.typeName}}
</view>
</view>
- <view v-if="i.typeName === '住户' && i.content" class="search-address f-20 ">
+ <view v-if=" i.content" class="search-address f-20 ">
{{i.content}}
</view>
</view>
@@ -57,7 +57,9 @@
searchKey: this.keyword,
indexName: "jczz"
}).then(res => {
- this.$refs.paging.complete(res.data.records);
+ let data = res.data.records
+
+ this.$refs.paging.complete(data);
})
},
@@ -140,7 +142,7 @@
.search-address {
padding: 0 10rpx;
- height: 40rpx;
+ // height: 40rpx;
line-height: 40rpx;
border-radius: 8rpx;
margin: 5rpx 0;
diff --git a/subPackage/workbench/components/actionBtn.vue b/subPackage/workbench/components/actionBtn.vue
index d1a7c78..12a8b7e 100644
--- a/subPackage/workbench/components/actionBtn.vue
+++ b/subPackage/workbench/components/actionBtn.vue
@@ -1,7 +1,8 @@
<template>
<view class="">
<view class="footer flex a-i-c j-c-s-b">
- <button class="footer-btn" @click="submit(2)">通过</button>
+ <button v-if="dataItem.type === 1" class="footer-btn" @click="submit(2)">通过</button>
+ <button v-if="dataItem.type === 2" class="footer-btn" @click="submitTwo(2)">通过</button>
<button class="footer-btn" @click="open()">驳回</button>
</view>
<u-modal :show="isShowModal" title="备注" :showConfirmButton="false">
@@ -13,19 +14,64 @@
</view>
</view>
</u-modal>
+
+ <u-modal :show="isShowModalTwo" title="备注" :showConfirmButton="false">
+ <view class="modal-content">
+ <u-search placeholder="请输入场所名称" :clearabled="true" @blur="searchPlace()" v-model="placeName"></u-search>
+ <!-- <u-search placeholder="请输入需要查询信息的姓名" v-model="placeName" :clearabled="true" :showAction="true"
+ :animation="true" @search="searchPlace"></u-search> -->
+
+ <!-- <view v-for="(item,index) in placeList" :key="index">
+ <view :class="item.isSelect ? '':''" @click="selectChang(item)">
+ {{item.placeName +'----场所地址:'+item.location}}
+ </view>
+ </view> -->
+
+ <u-radio-group v-model="houseCode" placement="column" @change="groupChange">
+ <u-radio :customStyle="{marginBottom: '8px'}" v-for="(item, index) in placeList" :key="index"
+ :label="item.placeName +'----场所地址:'+item.location" :name="item.houseCode" @change="radioChange">
+ </u-radio>
+ </u-radio-group>
+
+ <view class="modal-btn flex j-c-s-b a-i-c" slot="confirmButton">
+ <button class="modal-btn-item c-main f-30" @click="isShowModalTwo = false">取消</button>
+ <button class="modal-btn-item bgc-main f-30 c-ff" @click="submit(2)">确定</button>
+ </view>
+ </view>
+ </u-modal>
+
</view>
</template>
<script>
+ import {
+ getLocationRecord
+ } from "@/api/place/place";
+
export default {
name: "auditAction",
data() {
return {
isShowModal: false,
- remark: ""
+ isShowModalTwo: false,
+ remark: "",
+ placeName: '',
+ houseCode: '',
+ dataItem: {},
+ placeList: []
}
},
+ props: ['dataItem'],
+
methods: {
+
+ groupChange(n) {
+ this.houseCode = n
+ console.log('groupChange', n);
+ },
+ radioChange(n) {
+ console.log('radioChange', n);
+ },
open() {
this.isShowModal = true;
},
@@ -33,10 +79,36 @@
this.isShowModal = false;
},
+ submitTwo(type) {
+ console.log("*****111*******", JSON.stringify(this.dataItem))
+ this.isShowModalTwo = true
+ },
+
+
+ searchPlace() {
+ if (!this.placeName) {
+ return
+ }
+ getLocationRecord({
+ roleName: 'admin',
+ current: 1,
+ size: 30,
+ isPerfect: 2,
+ placeName: this.placeName,
+ isNine: 1
+ }).then(res => {
+ this.placeList = res.data.records;
+ this.placeList.forEach(item => {
+ item.isSelect = false
+ })
+ })
+ },
+
submit(type) {
let data = {
type,
- remark: this.remark
+ remark: this.remark,
+ houseCode: this.houseCode
}
if (type == 3 && !this.remark) {
diff --git a/subPackage/workbench/views/counterfraudReportDetail.vue b/subPackage/workbench/views/counterfraudReportDetail.vue
index 9b76fe5..ce2fb98 100644
--- a/subPackage/workbench/views/counterfraudReportDetail.vue
+++ b/subPackage/workbench/views/counterfraudReportDetail.vue
@@ -108,7 +108,7 @@
<view class="blank"></view>
<!-- <footer-btn @click="submitInfo" v-if="roleType == 2 && (info.status == 4 || info.status == 3)" /> -->
- <audit-action v-if="roleType == 1 && info.status == 1" @handle="submitAudit" />
+ <audit-action :dataItem="info" v-if="roleType == 1 && info.status == 1" @handle="submitAudit" />
<footer-btn v-if="roleType == 2 && info.status == 3" text="重新提交" @click="navTo" />
</view>
</template>
--
Gitblit v1.9.3