Commit aa9b847a by swl

gx

parent d5a03aef
No preview for this file type
const domain = { const domain = {
dev: "http://192.168.3.143:8881", // 姚镇接口 // dev: "http://192.168.3.87:8881", // 姚镇接口
// dev: "http://192.168.100.16:8881", // 姚镇接口
// dev: "http://192.168.100.16:8881", // 姚镇接口 // dev: "http://192.168.100.16:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 姚镇接口
// dev: "http://81.69.231.72:8881", // 测试接口 // dev: "http://81.69.231.72:8881", // 测试接口
// dev: "https://exam.smart-zj.cn:9100/smartExam/", // /新正式接口 dev: "https://exam.smart-zj.cn:9100/smartExam/", // /新正式接口
}; };
// 腾讯地图 key // 腾讯地图 key
const map = { const map = {
......
...@@ -7,10 +7,10 @@ const config = { ...@@ -7,10 +7,10 @@ const config = {
// proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址 // proxy: "https://exam.smart-zj.cn:9100/exam/", // 新线上地址
// proxy: "http://81.69.231.72:8881", // 测试地址 // proxy: "http://81.69.231.72:8881", // 测试地址
// 192.168.3.143 // 192.168.3.143
proxy: "http://192.168.3.143:8881", //本地 // proxy: "http://192.168.3.87:8881", //本地
// proxy: "http://192.168.100.16:8881", //本地// // proxy: "http://192.168.100.16:8881", //本地//
// proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs proxy: "https://exam.smart-zj.cn:9100/smartExam", // 新正式接口zs
// proxy: "http://81.69.231.72:9089/", // 测试地址 // proxy: "http://81.69.231.72:9089/", // 测试地址
// proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址 // proxy1: "http://81.69.231.72:8881/admin-api", // 测试地址
// proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口 // proxy1: "https://exam.smart-zj.cn:9100/smartExam/admin-api", // 新正式接口
......
...@@ -16,6 +16,19 @@ ...@@ -16,6 +16,19 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="办事类型" v-if="
this.realEstateArea != '丹阳市' && this.realEstateArea != '句容市'
">
<el-select v-model="searchForm.handlingType" placeholder="请选择办事类型" @change="onSubmit" size="medium">
<el-option label="全部" value="">
</el-option>
<el-option label="网上办理" value="1">
</el-option>
<el-option label="线下办理" value="2">
</el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button> <el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item> </el-form-item>
...@@ -33,6 +46,13 @@ ...@@ -33,6 +46,13 @@
<div class="table-wrapper"> <div class="table-wrapper">
<table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination" <table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination"
@Jump="jumpPage"> @Jump="jumpPage">
<el-table-column slot="handlingType" label="办事类型" align="center" v-if="
this.realEstateArea != '丹阳市' && this.realEstateArea != '句容市'
">
<template slot-scope="scope">
{{ scope.row.handlingType == 1 ? '网上办理' : '线下办理' }}
</template>
</el-table-column>
<el-table-column slot="departmentName" label="实施主体" align="center"> <el-table-column slot="departmentName" label="实施主体" align="center">
<template> <template>
{{ {{
...@@ -53,7 +73,6 @@ ...@@ -53,7 +73,6 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="mini" round @click="view(scope.row)">查看</el-button> <el-button type="primary" size="mini" round @click="view(scope.row)">查看</el-button>
<el-button type="primary" size="mini" round @click="record(scope.row)">记录</el-button> <el-button type="primary" size="mini" round @click="record(scope.row)">记录</el-button>
<!-- 申请的单子有通过拒绝--> <!-- 申请的单子有通过拒绝-->
<el-button v-if=" <el-button v-if="
scope.row.state == 1 && searchForm.departmentCode == '10000027' scope.row.state == 1 && searchForm.departmentCode == '10000027'
...@@ -402,6 +421,8 @@ export default { ...@@ -402,6 +421,8 @@ export default {
state: "", state: "",
departmentCode: "", departmentCode: "",
checkArealEstateArea: "", checkArealEstateArea: "",
handlingType: ''
}, },
stateList1: [ stateList1: [
...@@ -465,6 +486,11 @@ export default { ...@@ -465,6 +486,11 @@ export default {
width: 150, width: 150,
}, },
{ {
key: "handlingType",
label: "办事类型",
type: 'slot'
},
{
key: "guideName", key: "guideName",
label: "事项名称", label: "事项名称",
width: 150, width: 150,
...@@ -650,6 +676,8 @@ export default { ...@@ -650,6 +676,8 @@ export default {
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea, checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea, checkArealEstateArea: this.searchForm.checkArealEstateArea,
handlingType: this.searchForm.handlingType
}; };
queryMultipleListDeedTax(parmas).then((res) => { queryMultipleListDeedTax(parmas).then((res) => {
this.loading = false; this.loading = false;
......
...@@ -20,6 +20,19 @@ ...@@ -20,6 +20,19 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="办事类型" v-if="
this.realEstateArea != '丹阳市' && this.realEstateArea != '句容市'
">
<el-select v-model="searchForm.handlingType" placeholder="请选择办事类型" @change="onSubmit" size="medium">
<el-option label="全部" value="">
</el-option>
<el-option label="网上办理" value="1">
</el-option>
<el-option label="线下办理" value="2">
</el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button> <el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item> </el-form-item>
...@@ -42,6 +55,13 @@ ...@@ -42,6 +55,13 @@
<div class="table-wrapper"> <div class="table-wrapper">
<table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination" <table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination"
@Jump="jumpPage"> @Jump="jumpPage">
<el-table-column slot="handlingType" label="办事类型" align="center" v-if="
this.realEstateArea != '丹阳市' && this.realEstateArea != '句容市'
">
<template slot-scope="scope">
{{ scope.row.handlingType == 1 ? '网上办理' : '线下办理' }}
</template>
</el-table-column>
<el-table-column slot="departmentName" label="实施主体" align="center"> <el-table-column slot="departmentName" label="实施主体" align="center">
<template> <template>
{{ this.$route.query.departmentName }} {{ this.$route.query.departmentName }}
...@@ -352,6 +372,7 @@ export default { ...@@ -352,6 +372,7 @@ export default {
state: "", state: "",
departmentCode: "", departmentCode: "",
checkArealEstateArea: "", checkArealEstateArea: "",
handlingType: ''
}, },
stateList: [ stateList: [
{ {
...@@ -436,6 +457,11 @@ export default { ...@@ -436,6 +457,11 @@ export default {
width: 150, width: 150,
}, },
{ {
key: "handlingType",
label: "办事类型",
type: 'slot'
},
{
key: "guideName", key: "guideName",
label: "事项名称", label: "事项名称",
width: 150, width: 150,
...@@ -615,10 +641,11 @@ export default { ...@@ -615,10 +641,11 @@ export default {
}, },
}, },
methods: { methods: {
init() { init() {
this.tableData = []; this.tableData = [];
this.loading = true; this.loading = true;
let parmas = { let params = {
name: this.searchForm.name, name: this.searchForm.name,
phone: this.searchForm.phone, phone: this.searchForm.phone,
state: this.searchForm.state, state: this.searchForm.state,
...@@ -627,8 +654,9 @@ export default { ...@@ -627,8 +654,9 @@ export default {
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
checkArea: this.realEstateArea, checkArea: this.realEstateArea,
checkArealEstateArea: this.searchForm.checkArealEstateArea, checkArealEstateArea: this.searchForm.checkArealEstateArea,
handlingType: this.searchForm.handlingType
}; };
queryMultipleListDeedTaxFromInitDepartment(parmas).then((res) => { queryMultipleListDeedTaxFromInitDepartment(params).then((res) => {
this.loading = false; this.loading = false;
// console.log(res.data) // console.log(res.data)
if (res.success) { if (res.success) {
......
...@@ -126,6 +126,7 @@ ...@@ -126,6 +126,7 @@
}} }}
</p> </p>
</div> </div>
<!-- 新增功能end --> <!-- 新增功能end -->
<div class="cell"> <div class="cell">
<p class="label">事项类型</p> <p class="label">事项类型</p>
...@@ -139,6 +140,7 @@ ...@@ -139,6 +140,7 @@
}} }}
</p> </p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">事项名称</p> <p class="label">事项名称</p>
<p class="value">{{ viewDetail.guideName }}</p> <p class="value">{{ viewDetail.guideName }}</p>
...@@ -180,6 +182,10 @@ ...@@ -180,6 +182,10 @@
<p class="value">{{ viewDetail.address }}</p> <p class="value">{{ viewDetail.address }}</p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">办理时间</p>
<p class="value">{{ viewDetail.processingTime }}</p>
</div>
<div class="cell">
<p class="label">不动产权证号</p> <p class="label">不动产权证号</p>
<p class="value">{{ viewDetail.realEstateCard }}</p> <p class="value">{{ viewDetail.realEstateCard }}</p>
</div> </div>
...@@ -251,6 +257,26 @@ ...@@ -251,6 +257,26 @@
</el-image> </el-image>
</p> </p>
</div> </div>
<div v-if="viewDetail.housingType == 3">
<div class="name">更多不动产权信息</div>
<div v-for="(item, index) in viewDetail.realEstateTitleList" :key="index">
<div class="cell">
<p class="label">不动产权证书</p>
<p class="value">
<el-image v-for="(it, ind) in item.picture" :key="ind" style="width: 100px; height: 100px" :src="it"
:z-index="7777777" :preview-src-list="[it]">
</el-image>
</p>
</div>
<div class="cell">
<p class="label">不动产权证号</p>
<p class="value">{{ item.realEstateCard }}</p>
</div>
</div>
</div>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false"> <el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false">
...@@ -638,6 +664,13 @@ export default { ...@@ -638,6 +664,13 @@ export default {
return this.viewDetail.labour.push(item); return this.viewDetail.labour.push(item);
} }
}); });
this.viewDetail.realEstateTitleList = res.data.realEstateTitleList && res.data.realEstateTitleList.map(item => {
return {
picture: [item.picture],
realEstateCard: item.realEstateCard
}
})
this.viewShow = true; this.viewShow = true;
}); });
}, },
......
...@@ -138,6 +138,11 @@ ...@@ -138,6 +138,11 @@
<p class="label">工作单位</p> <p class="label">工作单位</p>
<p class="value">{{ unitName }}</p> <p class="value">{{ unitName }}</p>
</div> </div>
<div class="cell">
<p class="label">办理时间</p>
<p class="value">{{ viewDetail.processingTime }}</p>
</div>
<div class="cell"> <div class="cell">
<p class="label">事项名称</p> <p class="label">事项名称</p>
<p class="value">{{ viewDetail.guideName }}</p> <p class="value">{{ viewDetail.guideName }}</p>
...@@ -238,6 +243,28 @@ ...@@ -238,6 +243,28 @@
</el-image> </el-image>
</p> </p>
</div> </div>
<div v-if="viewDetail.housingType == 3">
<div class="name">更多不动产权信息</div>
<div v-for="(item, index) in viewDetail.realEstateTitleList" :key="index">
<div class="cell">
<p class="label">不动产权证书</p>
<p class="value">
<el-image v-for="(it, ind) in item.picture" :key="ind" style="width: 100px; height: 100px" :src="it"
:z-index="7777777" :preview-src-list="[it]">
</el-image>
</p>
</div>
<div class="cell">
<p class="label">不动产权证号</p>
<p class="value">{{ item.realEstateCard }}</p>
</div>
</div>
</div>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false"> <el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false">
...@@ -306,6 +333,7 @@ ...@@ -306,6 +333,7 @@
<div class="content" style="display: flex; justify-content: center" v-if="fileUrlList.length == 0"> <div class="content" style="display: flex; justify-content: center" v-if="fileUrlList.length == 0">
<el-empty :image-size="50"></el-empty> <el-empty :image-size="50"></el-empty>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
...@@ -519,7 +547,6 @@ export default { ...@@ -519,7 +547,6 @@ export default {
}, },
methods: { methods: {
viewUrl(row) { viewUrl(row) {
console.log(row);
queryAttacheFile({ code: row.code }).then((res) => { queryAttacheFile({ code: row.code }).then((res) => {
console.log(res); console.log(res);
if (res.success) { if (res.success) {
...@@ -537,8 +564,7 @@ export default { ...@@ -537,8 +564,7 @@ export default {
]; ];
return fileType != "jpg" && fileType != "jpeg" && fileType != "png"; return fileType != "jpg" && fileType != "jpeg" && fileType != "png";
}); });
console.log(this.pictureUrlList);
console.log(this.fileUrlList);
this.showUrl = true; this.showUrl = true;
} else { } else {
this.$message.error(res.msg || "查询失败"); this.$message.error(res.msg || "查询失败");
...@@ -723,6 +749,12 @@ export default { ...@@ -723,6 +749,12 @@ export default {
return this.viewDetail.labour.push(item); return this.viewDetail.labour.push(item);
} }
}); });
this.viewDetail.realEstateTitleList = res.data.realEstateTitleList && res.data.realEstateTitleList.map(item => {
return {
picture: [item.picture],
realEstateCard: item.realEstateCard
}
})
this.viewShow = true; this.viewShow = true;
}); });
}, },
......
...@@ -165,6 +165,10 @@ ...@@ -165,6 +165,10 @@
<p class="value">{{ viewDetail.address }}</p> <p class="value">{{ viewDetail.address }}</p>
</div> </div>
<div class="cell"> <div class="cell">
<p class="label">办理时间</p>
<p class="value">{{ viewDetail.processingTime }}</p>
</div>
<div class="cell">
<p class="label">不动产权证号</p> <p class="label">不动产权证号</p>
<p class="value">{{ viewDetail.realEstateCard }}</p> <p class="value">{{ viewDetail.realEstateCard }}</p>
</div> </div>
...@@ -236,6 +240,28 @@ ...@@ -236,6 +240,28 @@
</el-image> </el-image>
</p> </p>
</div> </div>
<div v-if="viewDetail.housingType == 3">
<div class="name">更多不动产权信息</div>
<div v-for="(item, index) in viewDetail.realEstateTitleList" :key="index">
<div class="cell">
<p class="label">不动产权证书</p>
<p class="value">
<el-image v-for="(it, ind) in item.picture" :key="ind" style="width: 100px; height: 100px" :src="it"
:z-index="7777777" :preview-src-list="[it]">
</el-image>
</p>
</div>
<div class="cell">
<p class="label">不动产权证号</p>
<p class="value">{{ item.realEstateCard }}</p>
</div>
</div>
</div>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false"> <el-dialog title="操作记录" :visible.sync="recordShow" width="800px" :close-on-press-escape="false">
...@@ -553,6 +579,12 @@ export default { ...@@ -553,6 +579,12 @@ export default {
return this.viewDetail.labour.push(item); return this.viewDetail.labour.push(item);
} }
}); });
this.viewDetail.realEstateTitleList = res.data.realEstateTitleList && res.data.realEstateTitleList.map(item => {
return {
picture: [item.picture],
realEstateCard: item.realEstateCard
}
})
this.viewShow = true; this.viewShow = true;
}); });
}, },
......
<template> <template>
<div> <div>
<div class="search-wrapper"> <div class="search-wrapper">
<el-form <el-form :inline="true" :model="searchForm" class="search_form" style="text-align: left">
:inline="true"
:model="searchForm"
class="search_form"
style="text-align: left"
>
<el-form-item label="名称"> <el-form-item label="名称">
<el-input <el-input v-model="searchForm.name" placeholder="请输入店铺名称" clearable></el-input>
v-model="searchForm.name"
placeholder="请输入店铺名称"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话"> <el-form-item label="电话">
<el-input <el-input v-model="searchForm.phone" placeholder="请输入电话" clearable></el-input>
v-model="searchForm.phone"
placeholder="请输入电话"
clearable
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="类型"> <el-form-item label="类型">
<el-cascader <el-cascader :options="menuOptions" clearable filterable placeholder="请选择类型"
:options="menuOptions" @change="menuChange"></el-cascader>
clearable
filterable
placeholder="请选择类型"
@change="menuChange"
></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="入驻类型"> <el-form-item label="入驻类型">
<el-select <el-select v-model="searchForm.type" clearable placeholder="请选择入驻类型" size="medium" @change="onSubmit">
v-model="searchForm.type"
clearable
placeholder="请选择入驻类型"
size="medium"
@change="onSubmit"
>
<el-option label="全部" value=""> </el-option> <el-option label="全部" value=""> </el-option>
<el-option label="商家入驻" value="0"> </el-option> <el-option label="商家入驻" value="0"> </el-option>
<el-option label="上报地点" value="1"> </el-option> <el-option label="上报地点" value="1"> </el-option>
...@@ -76,34 +52,20 @@ ...@@ -76,34 +52,20 @@
</el-tabs> --> </el-tabs> -->
<div class="table-wrapper"> <div class="table-wrapper">
<table-template <table-template :tableData="tableData" :tableColumns="tableColumns" :loading="loading" :pagination="pagination"
:tableData="tableData" @Jump="jumpPage">
:tableColumns="tableColumns" <el-table-column slot="type" label="入驻类型" align="center" width="120px">
:loading="loading"
:pagination="pagination"
@Jump="jumpPage"
>
<el-table-column
slot="type"
label="入驻类型"
align="center"
width="120px"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag v-if="
v-if="
scope.row.type == 0 || scope.row.type == 0 ||
scope.row.type == 1 || scope.row.type == 1 ||
scope.row.type == 2 scope.row.type == 2
" " :type="scope.row.type == 1
:type="
scope.row.type == 1
? 'success' ? 'success'
: scope.row.type == 2 : scope.row.type == 2
? 'warning' ? 'warning'
: '' : ''
" ">{{
>{{
scope.row.type == 0 scope.row.type == 0
? "商家入驻" ? "商家入驻"
: scope.row.type == 1 : scope.row.type == 1
...@@ -111,62 +73,42 @@ ...@@ -111,62 +73,42 @@
: scope.row.type == 2 : scope.row.type == 2
? "上报网红墙" ? "上报网红墙"
: "" : ""
}}</el-tag }}</el-tag>
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column slot="categoryName" label="类型" align="center" width="120px">
slot="state"
label="审核状态"
align="center"
width="120px"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag {{ scope.row.categoryName }}
v-if=" </template>
</el-table-column>
<el-table-column slot="state" label="审核状态" align="center" width="120px">
<template slot-scope="scope">
<el-tag v-if="
scope.row.state == 0 || scope.row.state == 0 ||
scope.row.state == 1 || scope.row.state == 1 ||
scope.row.state == 4 scope.row.state == 4
" " :type="scope.row.state == 4
:type="
scope.row.state == 4
? 'danger' ? 'danger'
: scope.row.state == 1 : scope.row.state == 1
? 'success' ? 'success'
: '' : ''
" ">{{ scope.row.stateName }}</el-tag>
>{{ scope.row.stateName }}</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column slot="delFlag" label="启用状态" align="center" width="120px">
slot="delFlag"
label="启用状态"
align="center"
width="120px"
>
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag v-if="scope.row.delFlag == 0 || scope.row.delFlag == 1" :type="scope.row.delFlag == 1
v-if="scope.row.delFlag == 0 || scope.row.delFlag == 1"
:type="
scope.row.delFlag == 1
? 'danger' ? 'danger'
: scope.row.delFlag == 0 : scope.row.delFlag == 0
? 'success' ? 'success'
: '' : ''
" ">{{ scope.row.flagName }}</el-tag>
>{{ scope.row.flagName }}</el-tag
>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column slot="icon" label="照片" align="center"> <el-table-column slot="icon" label="照片" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-image <el-image v-if="scope.row.pictureList" style="width: 30px; height: 30px"
v-if="scope.row.pictureList" :src="scope.row.pictureList && scope.row.pictureList[0].url" :preview-src-list="scope.row.previewSrcList">
style="width: 30px; height: 30px"
:src="scope.row.pictureList && scope.row.pictureList[0].url"
:preview-src-list="scope.row.previewSrcList"
>
</el-image> </el-image>
<div v-else>暂无图片</div> <div v-else>暂无图片</div>
</template> </template>
...@@ -174,19 +116,10 @@ ...@@ -174,19 +116,10 @@
<el-table-column fixed="right" label="操作" width="350" align="center"> <el-table-column fixed="right" label="操作" width="350" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="primary" size="mini" round @click="view(scope.row)" <el-button type="primary" size="mini" round @click="view(scope.row)">查看</el-button>
>查看</el-button <el-button type="success" size="mini" round @click="edit(scope.row)">编辑</el-button>
> <el-button @click="delFlagHandle(scope.row)" :type="scope.row.delFlag == 0 ? 'warning' : 'success'"
<el-button type="success" size="mini" round @click="edit(scope.row)" size="mini" round slot="reference">{{ scope.row.delFlag == 0 ? "禁用" : "启用" }}
>编辑</el-button
>
<el-button
@click="delFlagHandle(scope.row)"
:type="scope.row.delFlag == 0 ? 'warning' : 'success'"
size="mini"
round
slot="reference"
>{{ scope.row.delFlag == 0 ? "禁用" : "启用" }}
</el-button> </el-button>
<!-- <el-button type="danger" size="mini" round @click="del(scope.row)" <!-- <el-button type="danger" size="mini" round @click="del(scope.row)"
>删除</el-button >删除</el-button
...@@ -195,26 +128,10 @@ ...@@ -195,26 +128,10 @@
</el-table-column> </el-table-column>
</table-template> </table-template>
</div> </div>
<el-dialog <el-dialog :title="type == 'view' ? '详情' : '编辑'" :visible.sync="dialogVisible" width="40%" destroy-on-close>
:title="type == 'view' ? '详情' : '编辑'" <el-form :model="detail" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm formData">
:visible.sync="dialogVisible"
width="40%"
destroy-on-close
>
<el-form
:model="detail"
:rules="rules"
ref="ruleForm"
label-width="120px"
class="demo-ruleForm formData"
>
<el-form-item label="名称" prop="name"> <el-form-item label="名称" prop="name">
<el-input <el-input v-model="detail.name" clearable placeholder="请输入名称" :disabled="type == 'view'"></el-input>
v-model="detail.name"
clearable
placeholder="请输入名称"
:disabled="type == 'view'"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="入驻类型" prop="type"> <el-form-item label="入驻类型" prop="type">
<el-radio-group v-model="detail.type" disabled> <el-radio-group v-model="detail.type" disabled>
...@@ -223,61 +140,25 @@ ...@@ -223,61 +140,25 @@
<el-radio :label="2">上报网红墙</el-radio> <el-radio :label="2">上报网红墙</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="类型" prop="categoryIds"> <el-form-item label="类型" prop="categoryIdList">
<el-cascader <el-cascader :disabled="type == 'view'" style="width: 100%" :props="props" :options="menuOptions" clearable
:disabled="type == 'view'" filterable v-model="detail.categoryIdList" @change="categoryChange" placeholder="请选择类型"></el-cascader>
style="width: 100%"
:options="menuOptions"
clearable
filterable
v-model="detail.categoryIds"
@change="categoryChange"
placeholder="请选择类型"
></el-cascader>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="经营范围和内容" prop="otherInfo" v-if="detail.otherInfo">
label="经营范围和内容" <el-input v-model="detail.otherInfo" clearable placeholder="请输入经营范围和内容" :disabled="type == 'view'"></el-input>
prop="otherInfo"
v-if="detail.otherInfo"
>
<el-input
v-model="detail.otherInfo"
clearable
placeholder="请输入经营范围和内容"
:disabled="type == 'view'"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="详细地址" prop="address"> <el-form-item label="详细地址" prop="address">
<el-input <el-input v-model="detail.address" clearable placeholder="请输入详细地址" :disabled="type == 'view'"></el-input>
v-model="detail.address"
clearable
placeholder="请输入详细地址"
:disabled="type == 'view'"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="区" prop="district"> <el-form-item label="区" prop="district">
<el-input <el-input v-model="detail.district" placeholder="请输入区" clearable disabled></el-input>
v-model="detail.district"
placeholder="请输入区"
clearable
disabled
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="电话" prop="phone"> <el-form-item label="电话" prop="phone">
<el-input <el-input v-model="detail.phone" placeholder="请输入电话" clearable :disabled="type == 'view'"></el-input>
v-model="detail.phone"
placeholder="请输入电话"
clearable
:disabled="type == 'view'"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="营业时间" prop="businessHours"> <el-form-item label="营业时间" prop="businessHours">
<el-input <el-input v-model="detail.businessHours" clearable placeholder="例如:周一至周五 9:00-23:00"
v-model="detail.businessHours" :disabled="type == 'view'"></el-input>
clearable
placeholder="例如:周一至周五 9:00-23:00"
:disabled="type == 'view'"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="创建时间" prop="createTime"> <el-form-item label="创建时间" prop="createTime">
<el-input v-model="detail.createTime" clearable disabled></el-input> <el-input v-model="detail.createTime" clearable disabled></el-input>
...@@ -289,57 +170,32 @@ ...@@ -289,57 +170,32 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="审核状态" prop="state"> <el-form-item label="审核状态" prop="state">
<el-tag <el-tag v-if="detail.state == 0 || detail.state == 1 || detail.state == 4" :type="detail.state == 4 ? 'danger' : detail.state == 1 ? 'success' : ''
v-if="detail.state == 0 || detail.state == 1 || detail.state == 4" ">{{
:type="
detail.state == 4 ? 'danger' : detail.state == 1 ? 'success' : ''
"
>{{
detail.state == 4 detail.state == 4
? "审核拒绝" ? "审核拒绝"
: detail.state == 1 : detail.state == 1
? "审核通过" ? "审核通过"
: "未审核" : "未审核"
}}</el-tag }}</el-tag>
>
</el-form-item> </el-form-item>
<el-form-item label="门面照片"> <el-form-item label="门面照片">
<file-upload <file-upload :data.sync="shopImg" :limit="1" :disable="type == 'view'"></file-upload>
:data.sync="shopImg"
:limit="1"
:disable="type == 'view'"
></file-upload>
</el-form-item> </el-form-item>
<el-form-item label="左右店铺"> <el-form-item label="左右店铺">
<file-upload <file-upload :data.sync="besideImg" :limit="2" :disable="type == 'view'"></file-upload>
:data.sync="besideImg"
:limit="2"
:disable="type == 'view'"
></file-upload>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer" v-if="type == 'view'"> <span slot="footer" class="dialog-footer" v-if="type == 'view'">
<el-button <el-button type="success" round slot="reference" v-if="detail.state == 0" :disabled="detail.state != 0"
type="success" @click="reviewHandle('pass', detail)">通过
round
slot="reference"
v-if="detail.state == 0"
:disabled="detail.state != 0"
@click="reviewHandle('pass', detail)"
>通过
</el-button> </el-button>
<el-button <el-button type="danger" round slot="reference" v-if="detail.state == 0" :disabled="detail.state != 0"
type="danger" @click="reviewHandle('refuse', detail)">拒绝
round
slot="reference"
v-if="detail.state == 0"
:disabled="detail.state != 0"
@click="reviewHandle('refuse', detail)"
>拒绝
</el-button> </el-button>
<!-- <el-button @click="dialogVisible = false">取 消</el-button> <!-- <el-button @click="dialogVisible = false">取 消</el-button>
...@@ -348,9 +204,7 @@ ...@@ -348,9 +204,7 @@
> --> > -->
</span> </span>
<span slot="footer" class="dialog-footer" v-else> <span slot="footer" class="dialog-footer" v-else>
<el-button type="primary" round @click="dialogVisible = false" <el-button type="primary" round @click="dialogVisible = false">取 消</el-button>
>取 消</el-button
>
<el-button type="success" round @click="editConfirm">确 定</el-button> <el-button type="success" round @click="editConfirm">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
...@@ -376,6 +230,8 @@ export default { ...@@ -376,6 +230,8 @@ export default {
components: { tableTemplate, FileUpload }, components: { tableTemplate, FileUpload },
data() { data() {
return { return {
props: { multiple: true },
dialogVisible: false, dialogVisible: false,
detail: {}, detail: {},
searchForm: { searchForm: {
...@@ -402,9 +258,11 @@ export default { ...@@ -402,9 +258,11 @@ export default {
type: "slot", type: "slot",
}, },
{ {
key: "category", key: "categoryName",
label: "类型", label: "类型",
width: 120, width: 120,
type: "slot",
}, },
{ {
key: "district", key: "district",
...@@ -462,7 +320,7 @@ export default { ...@@ -462,7 +320,7 @@ export default {
address: [ address: [
{ required: true, message: "请输入详细地址", trigger: "blur" }, { required: true, message: "请输入详细地址", trigger: "blur" },
], ],
categoryIds: [ categoryIdList: [
{ required: true, message: "请选择类型", trigger: "blur" }, { required: true, message: "请选择类型", trigger: "blur" },
], ],
}, },
...@@ -502,11 +360,12 @@ export default { ...@@ -502,11 +360,12 @@ export default {
urlType: 1, urlType: 1,
}); });
}); });
console.log(arr, arr1);
let params = { let params = {
address: this.detail.address, address: this.detail.address,
businessHours: this.detail.businessHours, businessHours: this.detail.businessHours,
categoryId: this.detail.categoryIds[1], categoryIdList: this.detail.categoryIdList.map(item => item[1]),
// category: this.detail.categoryIdList.map(item => item.categoryName).join('/'),
name: this.detail.name, name: this.detail.name,
phone: this.detail.phone, phone: this.detail.phone,
pictureList: [...arr, ...arr1], pictureList: [...arr, ...arr1],
...@@ -580,6 +439,9 @@ export default { ...@@ -580,6 +439,9 @@ export default {
? res.data.list.map((item) => { ? res.data.list.map((item) => {
return { return {
...item, ...item,
categoryName: item.categoryList.map(item => {
return item.categoryName
}).join('/'),
stateName: stateName:
item.state == 0 item.state == 0
? "未审核" ? "未审核"
...@@ -697,7 +559,8 @@ export default { ...@@ -697,7 +559,8 @@ export default {
applyDetail(row.id).then((res) => { applyDetail(row.id).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.detail = res.data; this.detail = res.data;
this.detail.categoryIds = this.filterTree(res.data.categoryId); this.detail.categoryIdList = res.data.categoryList.map(item => [item.menuId, item.categoryId])
// this.detail.categoryIds = this.filterTree(res.data.categoryId);
let arr = []; let arr = [];
let arr1 = []; let arr1 = [];
res.data.pictureList?.forEach((item) => { res.data.pictureList?.forEach((item) => {
...@@ -727,7 +590,9 @@ export default { ...@@ -727,7 +590,9 @@ export default {
applyDetail(row.id).then((res) => { applyDetail(row.id).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.detail = res.data; this.detail = res.data;
this.detail.categoryIds = this.filterTree(res.data.categoryId); this.detail.categoryIdList = res.data.categoryList.map(item => [item.menuId, item.categoryId])
// this.detail.categoryIds = this.filterTree(res.data.categoryId);
let arr = []; let arr = [];
let arr1 = []; let arr1 = [];
res.data.pictureList?.forEach((item) => { res.data.pictureList?.forEach((item) => {
...@@ -850,9 +715,11 @@ export default { ...@@ -850,9 +715,11 @@ export default {
position: relative; position: relative;
overflow: hidden; overflow: hidden;
} }
.avatar-uploader .el-upload:hover { .avatar-uploader .el-upload:hover {
border-color: #409eff; border-color: #409eff;
} }
.avatar-uploader-icon { .avatar-uploader-icon {
font-size: 28px; font-size: 28px;
color: #8c939d; color: #8c939d;
...@@ -861,6 +728,7 @@ export default { ...@@ -861,6 +728,7 @@ export default {
line-height: 178px; line-height: 178px;
text-align: center; text-align: center;
} }
.avatar { .avatar {
width: 178px; width: 178px;
height: 178px; height: 178px;
......
const env = process.env.NODE_ENV === "production"; const env = process.env.NODE_ENV === "production";
// const publicPath = env ? "/manage-h5/" : "/"; //正式 const publicPath = env ? "/manage-h5/" : "/"; //正式
const publicPath = env ? "/smartExam-h5/" : "/"; //测试 // const publicPath = env ? "/smartExam-h5/" : "/"; //测试
module.exports = { module.exports = {
publicPath, publicPath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment