feat(fieldRole): rm useless field config

This commit is contained in:
ywk 2025-04-08 14:52:26 +08:00
parent 4043413956
commit 980144a648
10 changed files with 2510 additions and 2532 deletions

View File

@ -23,5 +23,5 @@ ENV = 'development'
#VUE_APP_BASE_API = 'http://192.168.31.159:8080'
#测试
VUE_APP_BASE_API = 'http://a1.hzs413.com/prod-api'
VUE_APP_BASE_API = 'http://60.205.203.247/prod-api'
# VUE_APP_BASE_API = 'http://127.0.0.1:8080'

View File

@ -558,71 +558,71 @@ export const constantRoutes = [
// }
// ]
// },
{
path: 'markerSpace',
name: 'markerSpace',
meta: { title: '创客发起人' },
component: ParentView,
redirect: 'markerSpace/index',
children: [
{
path: 'markerSpaceList',
name: 'markerSpaceList',
component: () => import('@/views/information/markerSpace/index'),
meta: { title: '创客发起人' }
},
{
path: 'detail',
name: 'detail',
component: () => import('@/views/information/markerSpace/detail'),
meta: { title: '创客空间详情' },
hidden: true
},
{
path: 'ckkjZxqc',
name: 'CkkjZxqc',
component: () => import('@/views/information/markerSpace/ckkjZxqc'),
meta: { title: '创客空间详情' },
hidden: true
},
{
path: 'ckkjOnline',
name: 'CkkjOnline',
component: () => import('@/views/information/markerSpace/ckkjOnline'),
meta: { title: '创客空间详情' },
hidden: true
}
]
},
{
path: 'superStudio',
name: 'superStudio',
meta: { title: '超级工作室' },
component: ParentView,
redirect: 'superStudio/index',
children: [
{
path: 'superStudioList',
name: 'superStudioList',
component: () => import('@/views/information/superStudio/index'),
meta: { title: '超级工作室' }
},
{
path: 'detail',
name: 'detail',
component: () => import('@/views/information/superStudio/detail'),
meta: { title: '超级工作室详情' },
hidden: true
},
{
path: 'cjgzsQc',
name: 'CjgzsQc',
component: () => import('@/views/information/superStudio/cjgzsQc'),
meta: { title: '超级工作室详情' },
hidden: true
}
]
},
// {
// path: 'markerSpace',
// name: 'markerSpace',
// meta: { title: '创客发起人' },
// component: ParentView,
// redirect: 'markerSpace/index',
// children: [
// {
// path: 'markerSpaceList',
// name: 'markerSpaceList',
// component: () => import('@/views/information/markerSpace/index'),
// meta: { title: '创客发起人' }
// },
// {
// path: 'detail',
// name: 'detail',
// component: () => import('@/views/information/markerSpace/detail'),
// meta: { title: '创客空间详情' },
// hidden: true
// },
// {
// path: 'ckkjZxqc',
// name: 'CkkjZxqc',
// component: () => import('@/views/information/markerSpace/ckkjZxqc'),
// meta: { title: '创客空间详情' },
// hidden: true
// },
// {
// path: 'ckkjOnline',
// name: 'CkkjOnline',
// component: () => import('@/views/information/markerSpace/ckkjOnline'),
// meta: { title: '创客空间详情' },
// hidden: true
// }
// ]
// },
// {
// path: 'superStudio',
// name: 'superStudio',
// meta: { title: '超级工作室' },
// component: ParentView,
// redirect: 'superStudio/index',
// children: [
// {
// path: 'superStudioList',
// name: 'superStudioList',
// component: () => import('@/views/information/superStudio/index'),
// meta: { title: '超级工作室' }
// },
// {
// path: 'detail',
// name: 'detail',
// component: () => import('@/views/information/superStudio/detail'),
// meta: { title: '超级工作室详情' },
// hidden: true
// },
// {
// path: 'cjgzsQc',
// name: 'CjgzsQc',
// component: () => import('@/views/information/superStudio/cjgzsQc'),
// meta: { title: '超级工作室详情' },
// hidden: true
// }
// ]
// },
{
path: 'dealer',
name: 'dealer',
@ -3367,7 +3367,7 @@ export const constantRoutes = [
hidden: true
},
{
path: 'superStudioGift',
path: 'addMenuRole',
name: 'AaddMenuRole',
component: () => import('@/views/system/addMenuRole/index'),
meta: { title: '新增权限' },

View File

@ -2,51 +2,51 @@
<div class="page1">
<topBar
v-if="topList.length > 0"
:topList="topList"
:top-list="topList"
:moren="moren"
></topBar>
/>
<div class="thetopbox">
<el-form ref="form" :model="queryParams" label-width="100px">
<el-row>
<el-col :span="4">
<el-form-item :label="'会员编号'" prop="memberCode">
<el-input clearable v-model="queryParams.memberCode"></el-input>
<el-input v-model="queryParams.memberCode" clearable />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'会员姓名'" prop="name">
<el-input clearable v-model="queryParams.memberName"></el-input>
<el-input v-model="queryParams.memberName" clearable />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'结算等级'" prop="pkRegisterGrade">
<el-select
v-model="queryParams.pkRegisterGrade"
clearable
:placeholder="'请选择'"
v-model="queryParams.pkRegisterGrade"
>
<el-option
v-for="item in gradeRangList"
:key="item.pkId"
:label="item.gradeName"
:value="item.pkId"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'真实奖衔'" prop="pkAwards">
<el-select
v-model="queryParams.pkAwards"
clearable
:placeholder="'请选择'"
v-model="queryParams.pkAwards"
>
<el-option
v-for="item in awardsList"
:key="item.pkId"
:label="item.awardsName"
:value="item.pkId"
></el-option>
/>
</el-select>
<!-- <el-input clearable v-model="queryParams.pkAwards"></el-input> -->
</el-form-item>
@ -54,32 +54,32 @@
<el-col :span="4">
<el-form-item :label="'隶属体系'" prop="vertexId">
<el-select
v-model="queryParams.vertexId"
clearable
:placeholder="'请选择'"
v-model="queryParams.vertexId"
>
<el-option
v-for="item in vertexList"
:key="item.pkId"
:label="item.vertexName"
:value="item.pkId"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'隶属团队'" prop="teamId">
<el-select
v-model="queryParams.teamId"
clearable
:placeholder="'请选择'"
v-model="queryParams.teamId"
>
<el-option
v-for="item in memberTeamList"
:key="item.pkId"
:label="item.teamName"
:value="item.pkId"
></el-option>
/>
</el-select>
</el-form-item>
</el-col>
@ -87,43 +87,42 @@
<el-row>
<el-col :span="4">
<el-form-item :label="'变更次数'" prop="code">
<el-input clearable v-model="queryParams.editNumber"></el-input>
<el-input v-model="queryParams.editNumber" clearable />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'联系方式'" prop="code">
<el-input clearable v-model="queryParams.phone"></el-input>
<el-input v-model="queryParams.phone" clearable />
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'服务中心编号'" prop="centerMemberCode">
<el-input
clearable
v-model="queryParams.centerMemberCode"
></el-input>
clearable
/>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="'服务中心姓名'" prop="centerMemberName">
<el-input
clearable
v-model="queryParams.centerMemberName"
></el-input>
clearable
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item :label="'创建日期'" prop="code">
<el-date-picker
v-model="queryParams.time1"
@change="changeTime1"
type="datetimerange"
range-separator="——"
:start-placeholder="'开始日期'"
:end-placeholder="'结束日期'"
value-format="yyyy-MM-dd HH:mm:ss"
:unlink-panels="true"
>
</el-date-picker>
@change="changeTime1"
/>
</el-form-item>
</el-col>
</el-row>
@ -133,7 +132,6 @@
<el-col :span="8">
<el-form-item :label="'支付日期'" prop="code">
<el-date-picker
@change="changeTime2"
v-model="queryParams.time2"
type="datetimerange"
range-separator="——"
@ -141,8 +139,8 @@
:end-placeholder="'结束日期'"
value-format="yyyy-MM-dd HH:mm:ss"
:unlink-panels="true"
>
</el-date-picker>
@change="changeTime2"
/>
</el-form-item>
</el-col>
</el-row>
@ -152,15 +150,14 @@
<el-col :span="4">
<div class="searchbox">
<el-button class="searchbtn" @click="getBusinessList">
{{ '搜索' }}</el-button
>
{{ '搜索' }}</el-button>
<el-button @click="reChongzhi"> {{ '重置' }}</el-button>
</div>
</el-col>
<div class="openClose" @click="changeActive">
<i
:class="isActive ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
></i>
/>
<div>{{ isActive ? '点击收起' : '点击展开' }}</div>
</div>
</el-row>
@ -169,16 +166,14 @@
<div class="maintop">
<div class="mainbtn">
<el-button
size="small"
@click="handleImport"
class="thebtn1"
v-hasButtons="['BasicBusinessImport']"
size="small"
class="thebtn1"
@click="handleImport"
>
{{ '导入' }}</el-button
>
{{ '导入' }}</el-button>
<el-button size="small" class="thebtn2" @click="importTemplate">
{{ '下载模板' }}</el-button
>
{{ '下载模板' }}</el-button>
</div>
</div>
<div class="main">
@ -191,20 +186,19 @@
:row-class-name="tableRowClassName"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column type="selection" width="55" />
<el-table-column
align="center"
prop="memberCode"
:label="'会员编号'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="newMemberName"
:label="'变更会员姓名'"
>
<template slot-scope="scope">
<el-input v-model="scope.row.newMemberName"></el-input>
<el-input v-model="scope.row.newMemberName" />
</template>
</el-table-column>
<el-table-column
@ -214,78 +208,67 @@
:label="'变更联系方式'"
>
<template slot-scope="scope">
<el-input clearable v-model="scope.row.newPhone"></el-input>
<el-input v-model="scope.row.newPhone" clearable />
</template>
</el-table-column>
<el-table-column
align="center"
prop="memberName"
:label="'会员姓名'"
>
</el-table-column>
<el-table-column align="center" prop="phone" :label="'联系方式'">
</el-table-column>
<el-table-column align="center" prop="pkRegisterGradeVal" :label="'结算等级'">
</el-table-column>
/>
<el-table-column align="center" prop="phone" :label="'联系方式'" />
<el-table-column align="center" prop="pkRegisterGradeVal" :label="'结算等级'" />
<el-table-column
align="center"
prop="pkAwardsVal"
:label="'真实奖衔'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="vertexName"
:label="'隶属体系'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="teamName"
:label="'隶属团队'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="centerMemberCode"
:label="'服务中心编号'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="centerMemberName"
:label="'服务中心姓名'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="creationTime"
:label="'创建日期'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="payTime"
:label="'支付日期'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="editNumber"
:label="'变更次数'"
>
</el-table-column>
/>
</el-table>
</div>
</div>
<div class="main">
<div
class="main_content"
v-for="(item, index) in handleBusinessList"
:key="index"
class="main_content"
>
<el-form ref="form" :model="form" label-width="130px">
<!-- <el-checkbox-group v-model="item.wowList">
@ -295,15 +278,14 @@
<el-checkbox-group
v-if="item.buttonType == 1"
:max="1"
v-model="item.businessValueList"
:max="1"
>
<el-checkbox
v-for="aitem in item.enumEntityList"
:key="aitem.value"
:label="aitem.value"
>{{ aitem.label }}</el-checkbox
>
>{{ aitem.label }}</el-checkbox>
</el-checkbox-group>
<!-- 多选 -->
@ -315,17 +297,16 @@
v-for="aitem in item.enumEntityList"
:key="aitem.value"
:label="aitem.value"
>{{ aitem.label }}</el-checkbox
>
>{{ aitem.label }}</el-checkbox>
</el-checkbox-group>
<!-- 输入框 -->
<el-input
v-if="item.buttonType == 3"
v-model="item.businessValueList[0]"
type="number"
style="width: 150px"
v-model="item.businessValueList[0]"
>
<i slot="suffix">%</i>
</el-input>
@ -339,13 +320,12 @@
<div style="margin: 0 auto">
<el-button class="thebtn"> {{ '取消' }}</el-button>
<el-button
v-hasButtons="['BasicBusinessConfirm']"
type="primary"
class="thebtn"
@click="saveDate"
v-hasButtons="['BasicBusinessConfirm']"
>
{{ '确认' }}</el-button
>
{{ '确认' }}</el-button>
</div>
</div>
<el-dialog
@ -367,24 +347,20 @@
align="center"
prop="memberCode"
:label="'会员编号'"
>
</el-table-column>
/>
<el-table-column
align="center"
prop="errorMsg"
:label="'报错信息'"
>
</el-table-column>
/>
</el-table>
</div>
<div class="footer" style="text-align: center">
<div style="margin: 0 auto">
<el-button class="thebtn" @click="errorShow = false">
{{ '取消' }}</el-button
>
{{ '取消' }}</el-button>
<el-button type="primary" class="thebtn" @click="errorShow = false">
{{ '确认' }}</el-button
>
{{ '确认' }}</el-button>
</div>
</div>
</el-dialog>
@ -409,17 +385,16 @@
:auto-upload="false"
drag
>
<i class="el-icon-upload"></i>
<i class="el-icon-upload" />
<div class="el-upload__text">
{{ '将文件拖到此处,或' }}
<em>{{ '点击上传' }}</em>
</div>
<div class="el-upload__tip" slot="tip">
<div slot="tip" class="el-upload__tip">
<el-link type="info" style="font-size: 12px" @click="importTemplate">
{{ '下载模板' }}</el-link
>
{{ '下载模板' }}</el-link>
</div>
<div class="el-upload__tip" style="color: red" slot="tip">
<div slot="tip" class="el-upload__tip" style="color: red">
{{ '提示仅允许导入“xls”或“xlsx”格式文件' }}
</div>
</el-upload>
@ -436,35 +411,35 @@
</template>
<script>
import topBar from "@/components/topBar/checked";
import { getToken } from "@/utils/auth";
import { getRouters } from "@/api/settle";
import topBar from '@/components/topBar/checked'
import { getToken } from '@/utils/auth'
import { getRouters } from '@/api/settle'
import {
getHandleBusinessEnum,
getBusinessList,
businessCheck,
} from "@/api/business";
import { getAwardsListChiose,getgradeRanglist } from "@/api/level";
import { getvertexValue, getmemberTeamList } from "@/api/financialCase";
businessCheck
} from '@/api/business'
import { getAwardsListChiose, getgradeRanglist } from '@/api/level'
import { getvertexValue, getmemberTeamList } from '@/api/financialCase'
export default {
name: "Jcyw",
name: 'Jcyw',
components: {
topBar,
topBar
},
data() {
return {
moren: "jcyw",
moren: 'jcyw',
topList: [
{
name: '基础业务',
path: "jcyw",
url: "BasicBusiness",
path: 'jcyw',
url: 'BasicBusiness'
},
{
name: '订单业务',
path: "ddyw",
url: "OrderBusiness",
},
path: 'ddyw',
url: 'OrderBusiness'
}
// {
// name: "",
// path: "shyw",
@ -477,21 +452,21 @@ export default {
multipleSelection: [],
wowList: [],
queryParams: {
memberCode: "",
memberName: "",
pkAwards: "",
vertexId: "",
teamId: "",
editNumber: "",
phone: "",
centerMemberCode: "",
centerMemberName: "",
startDate: "",
endDate: "",
startDatePay: "",
endDatePay: "",
memberCode: '',
memberName: '',
pkAwards: '',
vertexId: '',
teamId: '',
editNumber: '',
phone: '',
centerMemberCode: '',
centerMemberName: '',
startDate: '',
endDate: '',
startDatePay: '',
endDatePay: '',
time1: [],
time2: [],
time2: []
},
tableData: [],
//
@ -508,24 +483,24 @@ export default {
//
open: false,
//
title: "",
title: '',
//
isUploading: false,
//
updateSupport: 0,
//
headers: { Authorization: "Bearer " + getToken() },
headers: { Authorization: 'Bearer ' + getToken() },
//
url:
process.env.VUE_APP_BASE_API +
"/member/manage/handle-business/importData",
},
};
'/member/manage/handle-business/importData'
}
}
},
created() {
this.getBusinessList();
this.getHandleBusinessEnum();
this.getUserRoute();
this.getBusinessList()
this.getHandleBusinessEnum()
this.getUserRoute()
},
methods: {
//
@ -534,168 +509,168 @@ export default {
res.data.forEach((item) => {
this.topList.forEach((items) => {
if (item.routeName == items.url) {
this.$set(items, "changed", true);
this.$set(items, 'changed', true)
}
});
});
});
})
})
})
},
checkRadio(value) {},
//
//
importTemplate() {
this.download(
"/member/manage/handle-business/download-template",
'/member/manage/handle-business/download-template',
{},
`${'基础业务办理'}-${new Date().getTime()}.xlsx`
);
)
},
/** 导入按钮操作 */
handleImport() {
this.upload.title = '基础业务';
this.upload.open = true;
this.upload.title = '基础业务'
this.upload.open = true
},
//
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
this.upload.isUploading = true
},
//
handleFileSuccess(response, file, fileList) {
var fileName = response.fileName;
if (fileName != undefined && fileName != "") {
var fileName = response.fileName
if (fileName != undefined && fileName != '') {
}
if (response.code == 200) {
this.tableData = response.data;
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.tableData = response.data
this.upload.open = false
this.upload.isUploading = false
this.$refs.upload.clearFiles()
this.$alert(response.msg, '导入结果', {
dangerouslyUseHTMLString: true,
});
dangerouslyUseHTMLString: true
})
} else if (response.code == 504) {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
var errorMsg = response.data.map(item => item.memberCode).join(',');
this.upload.open = false
this.upload.isUploading = false
this.$refs.upload.clearFiles()
var errorMsg = response.data.map(item => item.memberCode).join(',')
this.$alert(errorMsg + response.msg, '导入结果', {
dangerouslyUseHTMLString: true,
});
dangerouslyUseHTMLString: true
})
} else {
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
this.upload.open = false
this.upload.isUploading = false
this.$refs.upload.clearFiles()
this.$alert(response.msg, '导入结果', {
dangerouslyUseHTMLString: true,
});
dangerouslyUseHTMLString: true
})
}
},
//
handleExceed() {
this.upload.isUploading = false;
this.msgInfo('仅可上传一个文件哦');
this.upload.isUploading = false
this.msgInfo('仅可上传一个文件哦')
},
//
submitFileForm() {
this.$refs.upload.submit();
this.$refs.upload.submit()
},
//
//
saveDate() {
// console.log("🌈", this.handleBusinessList);
if (this.multipleSelection.length > 0) {
businessCheck({
businessMemberList: this.multipleSelection,
handleBusinessList: this.handleBusinessList,
handleBusinessList: this.handleBusinessList
}).then((res) => {
if (res.code == 200) {
this.$message({
message: res.msg,
type: "success",
});
type: 'success'
})
this.$router.push({
path: "/information/business/shyw",
path: '/information/business/shyw',
query: {
data: JSON.stringify(res.data),
handleBusinessList: JSON.stringify(this.handleBusinessList),
},
});
handleBusinessList: JSON.stringify(this.handleBusinessList)
}
})
} else if (res.code == 504 && res.data) {
this.errorShow = true;
this.errorData = res.data;
this.errorShow = true
this.errorData = res.data
}
});
})
} else {
this.$message({
message: '至少选择一条数据',
type: "warning",
});
type: 'warning'
})
}
},
changeTime1(val) {
this.queryParams.startDate = val[0];
this.queryParams.endDate = val[1];
this.queryParams.startDate = val[0]
this.queryParams.endDate = val[1]
},
changeTime2(val) {
this.queryParams.startDatePay = val[0];
this.queryParams.endDatePay = val[1];
this.queryParams.startDatePay = val[0]
this.queryParams.endDatePay = val[1]
},
getBusinessList() {
getBusinessList(this.queryParams).then((res) => {
this.tableData = res.rows;
});
this.tableData = res.rows
})
},
getHandleBusinessEnum() {
//
//
getHandleBusinessEnum().then((res) => {
res.data.forEach((ele) => {
ele.businessValueList = [];
ele.wowList = [];
});
this.handleBusinessList = res.data;
});
getgradeRanglist().then((res) => {
this.gradeRangList = res.data;
});
ele.businessValueList = []
ele.wowList = []
})
this.handleBusinessList = res.data
})
getgradeRanglist().then((res) => {
this.gradeRangList = res.data
})
getAwardsListChiose().then((res) => {
this.awardsList = res.rows;
});
this.awardsList = res.rows
})
getmemberTeamList().then((res) => {
this.memberTeamList = res.rows;
});
this.memberTeamList = res.rows
})
getvertexValue().then((res) => {
this.vertexList = res.data;
});
this.vertexList = res.data
})
},
//
changeActive() {
this.isActive = !this.isActive;
this.isActive = !this.isActive
},
//
//
reChongzhi() {
this.queryParams = {
memberCode: "",
memberName: "",
memberCode: '',
memberName: '',
time1: [],
time2: [],
};
this.getBusinessList();
time2: []
}
this.getBusinessList()
},
handleSelectionChange(val) {
this.multipleSelection = val;
this.multipleSelection = val
},
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 == 1) {
return "warning-row";
return 'warning-row'
} else if (rowIndex % 2 == 0) {
return "success-row";
return 'success-row'
}
return "";
},
},
};
return ''
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -112,8 +112,8 @@
prop="licenseAddress"
>
<el-cascader
:disabled="disableds"
v-model="address"
:disabled="disableds"
class="area"
:options="areaData"
:placeholder="'请选择省市区'"
@ -155,7 +155,7 @@
</el-form-item>
</div>
<div style="display: flex">
<el-form-item :label="'详细地址'" prop="storeProvince">
<el-form-item :label="'详细地址'" prop="storeProvince">
<el-cascader
v-model="address1"
class="area"
@ -250,7 +250,7 @@
<div style="display: flex">
<div class="idCard">
<div v-if="typeNext==0">
<!-- <el-upload
<!-- <el-upload
ref="upload"
:disabled="disableds"
:class="[hideUploadAdd == true ? 'hide' : '']"
@ -277,21 +277,21 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.legalCardFront"> -->
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardFront"
:preview-src-list="[table.legalCardFront]">
</el-image>
<div>{{table.legalCardFrontDate}}</div>
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardFront"
:preview-src-list="[table.legalCardFront]"
/>
<div>{{ table.legalCardFrontDate }}</div>
</div>
</div>
</div>
<imageUpload v-else v-model="table.legalCardFront" />
</div>
<imageUpload v-else v-model="table.legalCardFront" />
<!-- </el-upload> -->
</div>
<div class="idCard" style="margin-left: 99px">
<div class="idCard" style="margin-left: 99px">
<div v-if="typeNext==0">
<!-- <el-upload
<!-- <el-upload
ref="upload"
:disabled="disableds"
:class="[hideUploadAdd == true ? 'hide' : '']"
@ -318,16 +318,16 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.legalCardBack"> -->
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardBack"
:preview-src-list="[table.legalCardBack]">
</el-image>
<div>{{table.legalCardBackDate}}</div>
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardBack"
:preview-src-list="[table.legalCardBack]"
/>
<div>{{ table.legalCardBackDate }}</div>
</div>
</div>
</div>
<imageUpload v-else v-model="table.legalCardBack" />
<imageUpload v-else v-model="table.legalCardBack" />
<!-- </el-upload> -->
</div>
</div>
@ -336,7 +336,7 @@
</div>
<div class="upload-list">
<div v-if="typeNext==0">
<!-- <el-upload
<!-- <el-upload
ref="upload"
:disabled="disableds"
:class="[hideUploadAdd == true ? 'hide' : '']"
@ -364,45 +364,50 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.license"> -->
<el-image
style="width:128px; height:128px"
:src="table.license"
:preview-src-list="[table.license]">
</el-image>
<div>{{table.licenseDate}}</div>
<el-image
style="width:128px; height:128px"
:src="table.license"
:preview-src-list="[table.license]"
/>
<div>{{ table.licenseDate }}</div>
</div>
</div>
</div>
<imageUpload v-else v-model="table.license" />
</div>
<imageUpload v-else v-model="table.license" />
<!-- </el-upload> -->
</div>
<div style="display: flex;margin-top:30px">
<el-form-item label="上传已签字的经销商协议" />
</div>
<div class="upload-list">
<div style="display: flex; margin-right: 20px;flex-wrap: wrap;width: 800px">
<div v-show="typeNext==0"
v-for="(item, index) in table.storeAgreementList"
style="margin-bottom:10px;"
class="img-ss imgWidth">
<el-image
style="width: 128px; height:128px"
:src="item"
:preview-src-list="[item]">
</el-image>
<div v-if="table.storeAgreementDateList!=undefined" >{{table.storeAgreementDateList[index]}}</div>
</div>
<ImageUploads v-if="typeNext==1" listType='picture-card'
v-model="storeAgreementListObj"></ImageUploads>
</div>
</div>
<div class="upload-list">
<div style="display: flex; margin-right: 20px;flex-wrap: wrap;width: 800px">
<div
v-for="(item, index) in table.storeAgreementList"
v-show="typeNext==0"
style="margin-bottom:10px;"
class="img-ss imgWidth"
>
<el-image
style="width: 128px; height:128px"
:src="item"
:preview-src-list="[item]"
/>
<div v-if="table.storeAgreementDateList!=undefined">{{ table.storeAgreementDateList[index] }}</div>
</div>
<ImageUploads
v-if="typeNext==1"
v-model="storeAgreementListObj"
list-type="picture-card"
/>
</div>
</div>
</el-form>
</div>
</div>
<div class='display'>
<div v-if="typeNext==1" class="button-m" @click="toOnline">确定</div>
<div v-if="status == 0 && status_flag==true" @click="returnHref" class="button-s" disabled=""> {{ '返回' }}</div></div>
<div class="display">
<div v-if="typeNext==1" class="button-m" @click="toOnline">确定</div>
<div v-if="status == 0 && status_flag==true" class="button-s" disabled="" @click="returnHref"> {{ '返回' }}</div></div>
</div>
</div>
</div>
@ -427,20 +432,20 @@ import { dealerDetails, markerSpace, markerSpaceDetail } from '@/api/settle.js'
import { findAllArea } from '@/api/product.js'
import ImageUpload from '@/components/ImageUpload'
import ImageUploads from '@/components/ImageUploads'
import {isLocals} from "@/utils/numberToCurrency";
import { isLocals } from '@/utils/numberToCurrency'
export default {
name: 'Bzpz',
components: {
topBar,
ImageUpload,
ImageUploads,
ImageUploads
},
filters: {
isAgree(val) {
isAgree(val) {
if (!val) {
return '允许';
return '允许'
} else {
return '禁止';
return '禁止'
}
}
},
@ -467,12 +472,12 @@ export default {
digList: [
{
value: 0,
label: '允许',
label: '允许'
},
{
value: 1,
label: '禁止',
},
label: '禁止'
}
],
menuList: [
{
@ -617,9 +622,9 @@ export default {
{ name: '修改地址', url: '/' },
{ name: '订单自提', url: '/' },
{ name: '户籍变更', url: '/' },
{ name: '经销商认证', url: '/dealer' },
{ name: '超级工作室认证', url: '/superStudio' },
{ name: '创客空间认证', url: '/markerSpace' }
{ name: '经销商认证', url: '/dealer' }
// { name: '', url: '/superStudio' },
// { name: '', url: '/markerSpace' }
],
status_flag: true,
text: '提交认证',
@ -744,9 +749,9 @@ export default {
cause: '', //
creatTime: '', //
checkTime: '', //
storeAgreementListObj:[],
typeNext:0,
allData:{}
storeAgreementListObj: [],
typeNext: 0,
allData: {}
}
},
mounted() {
@ -754,43 +759,41 @@ export default {
// this.getData()
//
// this.getDataList()
if(this.$route.query.data) {
let obj = {
data:JSON.parse(this.$route.query.data)[0]
if (this.$route.query.data) {
const obj = {
data: JSON.parse(this.$route.query.data)[0]
}
this.typeNext = 0
this.getDatas(obj)
}else{
} else {
const geturl = window.location.href
const getqyinfo = geturl.split('?')[1]
const getqys = new URLSearchParams('?' + getqyinfo)
const code = getqys.get('code')
this.storeCode = code
// 1
this.typeNext = getqys.get('index')||0
this.getUserStatus(code)
const getqyinfo = geturl.split('?')[1]
const getqys = new URLSearchParams('?' + getqyinfo)
const code = getqys.get('code')
this.storeCode = code
// 1
this.typeNext = getqys.get('index') || 0
this.getUserStatus(code)
}
this.getAllArea()
},
methods: {
toOnline(){
this.table.storeAgreementList= this.storeAgreementListObj.map((item)=>item.url)
let obj= Object.assign(
{
storeCode:this.storeCode,
},this.allData,this.table)
this.$router.push({
path: 'JxsQc',
query: {
data: JSON.stringify([obj]),
approvalBusiness: 163,
typeNext:this.typeNext
}
})
},
toOnline() {
this.table.storeAgreementList = this.storeAgreementListObj.map((item) => item.url)
const obj = Object.assign(
{
storeCode: this.storeCode
}, this.allData, this.table)
this.$router.push({
path: 'JxsQc',
query: {
data: JSON.stringify([obj]),
approvalBusiness: 163,
typeNext: this.typeNext
}
})
},
returnHref() {
this.$router.go(-1)
// this.$router.push('/information/dealer/dealerList')
},
@ -799,73 +802,72 @@ this.$router.push({
this.areaData = res.data
})
},
getDatas(res){
getDatas(res) {
this.creatTime = res.data.applyTime
if (res.data.approveTime) {
this.checkTime = res.data.approveTime
if (res.data.approveTime) {
this.checkTime = res.data.approveTime
}
const arr = []
const arr1 = []
if (res.data.storeProvince) {
arr1.push(res.data.storeProvince.toString())
arr1.push(res.data.storeCity.toString())
if (res.data.storeCounty) {
arr1.push(res.data.storeCounty.toString())
}
const arr = []
const arr1 = []
if (res.data.storeProvince) {
arr1.push(res.data.storeProvince.toString())
arr1.push(res.data.storeCity.toString())
if (res.data.storeCounty) {
arr1.push(res.data.storeCounty.toString())
}
}
if (res.data.licenseProvince) {
arr.push(res.data.licenseProvince.toString())
arr.push(res.data.licenseCity.toString())
if (res.data.licenseCounty) {
arr.push(res.data.licenseCounty.toString())
}
if (res.data.licenseProvince) {
arr.push(res.data.licenseProvince.toString())
arr.push(res.data.licenseCity.toString())
if (res.data.licenseCounty) {
arr.push(res.data.licenseCounty.toString())
}
}
this.address = arr //
this.address1 = arr1 //
console.error(this.address1)
this.storeLevelVal = res.data.storeLevelVal
this.memberCode = res.data.memberCode
this.memberName = res.data.memberName
this.table = {
storeType: res.data.storeType,
storeName: res.data.storeName, //
// storeLevelVal: res.data.storeLevelVal, //
licenseName: res.data.licenseName, //
creditCode: res.data.creditCode, //
legalName: res.data.legalName, //
legalIdCard: res.data.legalIdCard, //
licenseProvince: res.data.licenseProvince, //
licenseCity: res.data.licenseCity, //
licenseCounty: res.data.licenseCounty, //
licenseAddress: res.data.licenseAddress, //
storePerson: res.data.storePerson, //
storePhone: res.data.storePhone, //
pkBank: res.data.bankName, //
bankAccount: res.data.bankAccount, //
storeProvince: res.data.storeProvince, //
storeCity: res.data.storeCity, //
storeCounty: res.data.storeCounty, //
storeAddress: res.data.storeAddress, //
storeSign: res.data.storeSign ? res.data.storeSign : '', //
legalCardFront: res.data.legalCardFront, //
legalCardBack: res.data.legalCardBack, //
license: res.data.license, //
legalCardFrontDate: res.data.legalCardFrontDate, //
legalCardBackDate: res.data.legalCardBackDate, //
licenseDate: res.data.licenseDate, //
storeAgreementDateList: res.data.storeAgreementDateList, //
storeAgreementList: res.data.storeAgreementList, //
bankBranch: res.data.bankBranch //
}
let arrly = []
res.data.storeAgreementList.forEach((item,index)=>{
arrly.push({
name:index,
url:item
}
this.address = arr //
this.address1 = arr1 //
console.error(this.address1)
this.storeLevelVal = res.data.storeLevelVal
this.memberCode = res.data.memberCode
this.memberName = res.data.memberName
this.table = {
storeType: res.data.storeType,
storeName: res.data.storeName, //
// storeLevelVal: res.data.storeLevelVal, //
licenseName: res.data.licenseName, //
creditCode: res.data.creditCode, //
legalName: res.data.legalName, //
legalIdCard: res.data.legalIdCard, //
licenseProvince: res.data.licenseProvince, //
licenseCity: res.data.licenseCity, //
licenseCounty: res.data.licenseCounty, //
licenseAddress: res.data.licenseAddress, //
storePerson: res.data.storePerson, //
storePhone: res.data.storePhone, //
pkBank: res.data.bankName, //
bankAccount: res.data.bankAccount, //
storeProvince: res.data.storeProvince, //
storeCity: res.data.storeCity, //
storeCounty: res.data.storeCounty, //
storeAddress: res.data.storeAddress, //
storeSign: res.data.storeSign ? res.data.storeSign : '', //
legalCardFront: res.data.legalCardFront, //
legalCardBack: res.data.legalCardBack, //
license: res.data.license, //
legalCardFrontDate: res.data.legalCardFrontDate, //
legalCardBackDate: res.data.legalCardBackDate, //
licenseDate: res.data.licenseDate, //
storeAgreementDateList: res.data.storeAgreementDateList, //
storeAgreementList: res.data.storeAgreementList, //
bankBranch: res.data.bankBranch //
}
const arrly = []
res.data.storeAgreementList.forEach((item, index) => {
arrly.push({
name: index,
url: item
})
})
this.storeAgreementListObj = arrly
})
this.storeAgreementListObj = arrly
},
getUserStatus(code) {
api.dealerDetails({ storeCode: code }).then((res) => {
@ -940,14 +942,14 @@ this.$router.push({
// imageLounge2: res.data.imageLounge2, // 2
bankBranch: res.data.bankBranch //
}
let arrly = []
res.data.storeAgreementList.forEach((item,index)=>{
const arrly = []
res.data.storeAgreementList.forEach((item, index) => {
arrly.push({
name:index,
url:item
name: index,
url: item
})
})
})
this.$nextTick(()=>{
this.$nextTick(() => {
this.storeAgreementListObj = arrly
this.$forceUpdate()
})
@ -1113,7 +1115,7 @@ this.$router.push({
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams
this.$confirm( '是否确认导出所有数据项?', '警告', {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'

File diff suppressed because it is too large Load Diff

View File

@ -122,8 +122,8 @@
prop="licenseAddress"
>
<el-cascader
:disabled="disableds"
v-model="address"
:disabled="disableds"
class="area"
:options="areaData"
:placeholder="'请选择省市区'"
@ -165,7 +165,7 @@
</el-form-item>
</div>
<div style="display: flex">
<el-form-item :label="'详细地址'" prop="storeProvince">
<el-form-item :label="'详细地址'" prop="storeProvince">
<el-cascader
v-model="address1"
class="area"
@ -324,17 +324,17 @@
class="img-ss card"
@click.stop="dialogFormVisible = false"
>
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardFront"
:preview-src-list="[table.legalCardFront]">
</el-image>
<div>{{table.legalCardFrontDate}}</div>
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardFront"
:preview-src-list="[table.legalCardFront]"
/>
<div>{{ table.legalCardFrontDate }}</div>
</div>
</div>
</div>
<imageUpload v-else v-model="table.legalCardFront" />
<imageUpload v-else v-model="table.legalCardFront" />
<!-- </el-upload> -->
</div>
<div class="idCard" style="margin-left: 99px">
@ -366,16 +366,16 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.legalCardBack"> -->
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardBack"
:preview-src-list="[table.legalCardBack]">
</el-image>
<div>{{table.legalCardBackDate}}</div>
<el-image
style="width: 362px; height: 211px"
:src="table.legalCardBack"
:preview-src-list="[table.legalCardBack]"
/>
<div>{{ table.legalCardBackDate }}</div>
</div>
</div>
</div>
<imageUpload v-else v-model="table.legalCardBack" />
<imageUpload v-else v-model="table.legalCardBack" />
<!-- </el-upload> -->
</div>
</div>
@ -412,39 +412,44 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.license"> -->
<el-image
style="width: 128px; height:128px"
:src="table.license"
:preview-src-list="[table.license]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.license"
:preview-src-list="[table.license]"
/>
<div>{{table.licenseDate}}</div>
<div>{{ table.licenseDate }}</div>
</div>
</div>
</div>
<imageUpload v-else v-model="table.license" />
<imageUpload v-else v-model="table.license" />
<!-- </el-upload> -->
</div>
<div style="display: flex;margin-top:30px">
<el-form-item label="上传已签字的超级工作室协议" />
</div>
<div class="upload-list">
<div style="display: flex; margin-right: 20px;flex-wrap: wrap;width: 800px">
<div v-show="typeNext==0"
v-for="(item, index) in table.storeAgreementList"
style="margin-bottom:10px;"
class="img-ss imgWidth">
<el-image
style="width: 128px; height:128px"
:src="item"
:preview-src-list="[item]">
</el-image>
<div v-if="table.storeAgreementDateList!=undefined" >{{table.storeAgreementDateList[index]}}</div>
</div>
<ImageUploads v-if="typeNext==1" listType='picture-card'
v-model="storeAgreementListObj"></ImageUploads>
<div style="display: flex; margin-right: 20px;flex-wrap: wrap;width: 800px">
<div
v-for="(item, index) in table.storeAgreementList"
v-show="typeNext==0"
style="margin-bottom:10px;"
class="img-ss imgWidth"
>
<el-image
style="width: 128px; height:128px"
:src="item"
:preview-src-list="[item]"
/>
<div v-if="table.storeAgreementDateList!=undefined">{{ table.storeAgreementDateList[index] }}</div>
</div>
<ImageUploads
v-if="typeNext==1"
v-model="storeAgreementListObj"
list-type="picture-card"
/>
</div>
</div>
<div style="display: flex;margin-top:30px">
<el-form-item label="门店视频(3/3)" />
@ -607,11 +612,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageDoorhead1"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageDoorhead1"
:preview-src-list="[table.imageDoorhead1]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageDoorhead1"
:preview-src-list="[table.imageDoorhead1]"
/>
</div>
</div>
</el-upload>
@ -646,11 +651,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageExperience1"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageExperience1"
:preview-src-list="[table.imageExperience1]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageExperience1"
:preview-src-list="[table.imageExperience1]"
/>
</div>
</div>
</el-upload>
@ -685,11 +690,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageMeeting1"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageMeeting1"
:preview-src-list="[table.imageMeeting1]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageMeeting1"
:preview-src-list="[table.imageMeeting1]"
/>
</div>
</div>
</el-upload>
@ -724,11 +729,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageProduct1"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageProduct1"
:preview-src-list="[table.imageProduct1]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageProduct1"
:preview-src-list="[table.imageProduct1]"
/>
</div>
</div>
</el-upload>
@ -763,11 +768,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageLounge1"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageLounge1"
:preview-src-list="[table.imageLounge1]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageLounge1"
:preview-src-list="[table.imageLounge1]"
/>
</div>
</div>
</el-upload>
@ -804,11 +809,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageDoorhead2"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageDoorhead2"
:preview-src-list="[table.imageDoorhead2]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageDoorhead2"
:preview-src-list="[table.imageDoorhead2]"
/>
</div>
</div>
</el-upload>
@ -843,11 +848,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageExperience2"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageExperience2"
:preview-src-list="[table.imageExperience2]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageExperience2"
:preview-src-list="[table.imageExperience2]"
/>
</div>
</div>
</el-upload>
@ -882,11 +887,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageMeeting2"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageMeeting2"
:preview-src-list="[table.imageMeeting2]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageMeeting2"
:preview-src-list="[table.imageMeeting2]"
/>
</div>
</div>
</el-upload>
@ -921,11 +926,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageProduct2"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageProduct2"
:preview-src-list="[table.imageProduct2]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageProduct2"
:preview-src-list="[table.imageProduct2]"
/>
</div>
</div>
</el-upload>
@ -960,11 +965,11 @@
@click.stop="dialogFormVisible = false"
>
<!-- <img :src="table.imageLounge2"> -->
<el-image
style="width: 128px; height:128px"
:src="table.imageLounge2"
:preview-src-list="[table.imageLounge2]">
</el-image>
<el-image
style="width: 128px; height:128px"
:src="table.imageLounge2"
:preview-src-list="[table.imageLounge2]"
/>
</div>
</div>
</el-upload>
@ -974,10 +979,10 @@
</el-form>
</div>
</div>
<div class='display'>
<div v-if="typeNext==1" class="button-m" @click="toOnline">确定</div>
<div v-if="status == 0 && status_flag==true" @click="returnHref" class="button-s" disabled=""> {{ '返回' }}</div></div>
<div class="display">
<div v-if="typeNext==1" class="button-m" @click="toOnline">确定</div>
<div v-if="status == 0 && status_flag==true" class="button-s" disabled="" @click="returnHref"> {{ '返回' }}</div></div>
</div>
</div>
</div>
@ -998,13 +1003,13 @@ import { getcountryAllList } from '@/api/exchangerate'
import { bonusSource } from '@/api/bonus'
import * as del from '@/api/delivery'
import { getAwardsListChiose } from '@/api/level'
import {markerSpace, markerSpaceDetail, superStudioDetails} from '@/api/settle.js'
import { markerSpace, markerSpaceDetail, superStudioDetails } from '@/api/settle.js'
import ImageUpload from '@/components/ImageUpload'
import ImageUploads from '@/components/ImageUploads'
import UpDataImg from '@/components/upDataImg'
import { findAllArea } from '@/api/product.js'
import {isLocals} from "@/utils/numberToCurrency";
import { getToken } from "@/utils/auth";
import { isLocals } from '@/utils/numberToCurrency'
import { getToken } from '@/utils/auth'
export default {
name: 'Bzpz',
@ -1015,20 +1020,20 @@ export default {
UpDataImg
},
filters: {
isAgree(val) {
isAgree(val) {
if (!val) {
return '允许';
return '允许'
} else {
return '禁止';
return '禁止'
}
}
},
data() {
return {
headers: {
Authorization: getToken(),
Authorization: getToken()
},
uploadImgUrl: process.env.VUE_APP_BASE_API + "/system/upload", //
uploadImgUrl: process.env.VUE_APP_BASE_API + '/system/upload', //
awardsList: [],
kdzcList: [
{
@ -1050,12 +1055,12 @@ export default {
digList: [
{
value: 0,
label: '允许',
label: '允许'
},
{
value: 1,
label: '禁止',
},
label: '禁止'
}
],
menuList: [
{
@ -1095,7 +1100,7 @@ export default {
},
{
id: 6,
text:'拓展封顶' + `(${isLocals()})`,
text: '拓展封顶' + `(${isLocals()})`,
checked: false,
prop: 'firstBuyAmountDollar'
},
@ -1200,9 +1205,9 @@ export default {
{ name: '修改地址', url: '/' },
{ name: '订单自提', url: '/' },
{ name: '户籍变更', url: '/' },
{ name: '经销商认证', url: '/dealer' },
{ name: '超级工作室认证', url: '/superStudio' },
{ name: '创客空间认证', url: '/markerSpace' }
{ name: '经销商认证', url: '/dealer' }
// { name: '', url: '/superStudio' },
// { name: '', url: '/markerSpace' }
],
status_flag: true,
text: '提交认证',
@ -1322,10 +1327,10 @@ export default {
]
},
regionParams: {
label: "name",
value: "id",
children: "children",
expandTrigger: "hover",
label: 'name',
value: 'id',
children: 'children',
expandTrigger: 'hover'
},
storeLevelVal: '',
memberCode: '',
@ -1333,9 +1338,9 @@ export default {
cause: '', //
creatTime: '', //
checkTime: '', //
typeNext:0,
storeCode:0,
allData:{}
typeNext: 0,
storeCode: 0,
allData: {}
}
},
mounted() {
@ -1343,43 +1348,41 @@ export default {
// this.getData()
//
// this.getDataList()
if(this.$route.query.data) {
let obj = {
data:JSON.parse(this.$route.query.data)[0]
if (this.$route.query.data) {
const obj = {
data: JSON.parse(this.$route.query.data)[0]
}
this.typeNext = 0
this.getDatas(obj)
}else{
} else {
const geturl = window.location.href
const getqyinfo = geturl.split('?')[1]
const getqys = new URLSearchParams('?' + getqyinfo)
const code = getqys.get('code')
this.storeCode = code
// 1
this.typeNext = getqys.get('index')||0
this.getUserStatus(code)
const getqyinfo = geturl.split('?')[1]
const getqys = new URLSearchParams('?' + getqyinfo)
const code = getqys.get('code')
this.storeCode = code
// 1
this.typeNext = getqys.get('index') || 0
this.getUserStatus(code)
}
this.getAllArea()
},
methods: {
toOnline(){
this.table.storeAgreementList= this.storeAgreementListObj.map((item)=>item.url)
let obj= Object.assign(
{
storeCode:this.storeCode,
},this.allData,this.table)
toOnline() {
this.table.storeAgreementList = this.storeAgreementListObj.map((item) => item.url)
const obj = Object.assign(
{
storeCode: this.storeCode
}, this.allData, this.table)
this.$router.push({
path: 'cjgzsQc',
query: {
data: JSON.stringify([obj]),
approvalBusiness: 162,
typeNext:this.typeNext
typeNext: this.typeNext
}
})
},
returnHref() {
this.$router.go(-1)
// this.$router.push('/information/superStudio/superStudioList')
},
@ -1388,89 +1391,88 @@ export default {
this.areaData = res.data
})
},
getDatas(res){
getDatas(res) {
this.creatTime = res.data.applyTime
if (res.data.approveTime) {
this.checkTime = res.data.approveTime
if (res.data.approveTime) {
this.checkTime = res.data.approveTime
}
const arr = []
const arr1 = []
if (res.data.storeProvince) {
arr1.push(res.data.storeProvince.toString())
arr1.push(res.data.storeCity.toString())
if (res.data.storeCounty) {
arr1.push(res.data.storeCounty.toString())
}
const arr = []
const arr1 = []
if (res.data.storeProvince) {
arr1.push(res.data.storeProvince.toString())
arr1.push(res.data.storeCity.toString())
if (res.data.storeCounty) {
arr1.push(res.data.storeCounty.toString())
}
}
if (res.data.licenseProvince) {
arr.push(res.data.licenseProvince.toString())
arr.push(res.data.licenseCity.toString())
if (res.data.licenseCounty) {
arr.push(res.data.licenseCounty.toString())
}
if (res.data.licenseProvince) {
arr.push(res.data.licenseProvince.toString())
arr.push(res.data.licenseCity.toString())
if (res.data.licenseCounty) {
arr.push(res.data.licenseCounty.toString())
}
}
this.address = arr //
this.address1 = arr1 //
this.storeLevelVal = res.data.storeLevelVal
this.memberCode = res.data.memberCode
this.memberName = res.data.memberName
}
this.address = arr //
this.address1 = arr1 //
this.storeLevelVal = res.data.storeLevelVal
this.memberCode = res.data.memberCode
this.memberName = res.data.memberName
this.table = {
storeType: res.data.storeType,
storeName: res.data.storeName, //
// storeLevelVal: res.data.storeLevelVal, //
licenseName: res.data.licenseName, //
creditCode: res.data.creditCode, //
legalName: res.data.legalName, //
legalIdCard: res.data.legalIdCard, //
licenseProvince: res.data.licenseProvince, //
licenseCity: res.data.licenseCity, //
licenseCounty: res.data.licenseCounty, //
licenseAddress: res.data.licenseAddress, //
storePerson: res.data.storePerson, //
storePhone: res.data.storePhone, //
pkBank: res.data.bankName, //
bankAccount: res.data.bankAccount, //
storeProvince: res.data.storeProvince, //
storeCity: res.data.storeCity, //
storeCounty: res.data.storeCounty, //
storeAddress: res.data.storeAddress, //
storeSign: res.data.storeSign ? res.data.storeSign : '', //
legalCardFront: res.data.legalCardFront, //
legalCardBack: res.data.legalCardBack, //
license: res.data.license, //
legalCardFrontDate: res.data.legalCardFrontDate, //
legalCardBackDate: res.data.legalCardBackDate, //
licenseDate: res.data.licenseDate, //
storeAgreementDateList: res.data.storeAgreementDateList, //
storeAgreementList:res.data.storeAgreementList, //
videoDoorhead: res.data.videoDoorhead, //
videoStore: res.data.videoStore, //
videoProduct: res.data.videoProduct, //
imageDoorhead1: res.data.imageDoorhead1, // 1
imageDoorhead2: res.data.imageDoorhead2, // 2
imageExperience1: res.data.imageExperience1, // 1
imageExperience2: res.data.imageExperience2, // 2
imageMeeting1: res.data.imageMeeting1, // 1
imageMeeting2: res.data.imageMeeting2, // 2
imageProduct1: res.data.imageProduct1, // 1
imageProduct2: res.data.imageProduct2, // 2
imageLounge1: res.data.imageLounge1, // 1
imageLounge2: res.data.imageLounge2, // 2
bankBranch: res.data.bankBranch //
}
let arrly = []
res.data.storeAgreementList.forEach((item,index)=>{
arrly.push({
name:index,
url:item
this.table = {
storeType: res.data.storeType,
storeName: res.data.storeName, //
// storeLevelVal: res.data.storeLevelVal, //
licenseName: res.data.licenseName, //
creditCode: res.data.creditCode, //
legalName: res.data.legalName, //
legalIdCard: res.data.legalIdCard, //
licenseProvince: res.data.licenseProvince, //
licenseCity: res.data.licenseCity, //
licenseCounty: res.data.licenseCounty, //
licenseAddress: res.data.licenseAddress, //
storePerson: res.data.storePerson, //
storePhone: res.data.storePhone, //
pkBank: res.data.bankName, //
bankAccount: res.data.bankAccount, //
storeProvince: res.data.storeProvince, //
storeCity: res.data.storeCity, //
storeCounty: res.data.storeCounty, //
storeAddress: res.data.storeAddress, //
storeSign: res.data.storeSign ? res.data.storeSign : '', //
legalCardFront: res.data.legalCardFront, //
legalCardBack: res.data.legalCardBack, //
license: res.data.license, //
legalCardFrontDate: res.data.legalCardFrontDate, //
legalCardBackDate: res.data.legalCardBackDate, //
licenseDate: res.data.licenseDate, //
storeAgreementDateList: res.data.storeAgreementDateList, //
storeAgreementList: res.data.storeAgreementList, //
videoDoorhead: res.data.videoDoorhead, //
videoStore: res.data.videoStore, //
videoProduct: res.data.videoProduct, //
imageDoorhead1: res.data.imageDoorhead1, // 1
imageDoorhead2: res.data.imageDoorhead2, // 2
imageExperience1: res.data.imageExperience1, // 1
imageExperience2: res.data.imageExperience2, // 2
imageMeeting1: res.data.imageMeeting1, // 1
imageMeeting2: res.data.imageMeeting2, // 2
imageProduct1: res.data.imageProduct1, // 1
imageProduct2: res.data.imageProduct2, // 2
imageLounge1: res.data.imageLounge1, // 1
imageLounge2: res.data.imageLounge2, // 2
bankBranch: res.data.bankBranch //
}
const arrly = []
res.data.storeAgreementList.forEach((item, index) => {
arrly.push({
name: index,
url: item
})
})
this.storeAgreementListObj = arrly
})
this.storeAgreementListObj = arrly
},
getUserStatus(code) {
api.superStudioDetails({ storeCode: code }).then((res) => {
api.superStudioDetails({ storeCode: code }).then((res) => {
this.allData = res.data
this.creatTime = res.data.applyTime
if (res.data.approveTime) {
@ -1499,7 +1501,7 @@ export default {
this.memberName = res.data.memberName
this.table = {
storeType: res.data.storeType,
storeName: res.data.storeName, //
storeName: res.data.storeName, //
// storeLevelVal: res.data.storeLevelVal, //
licenseName: res.data.licenseName, //
creditCode: res.data.creditCode, //
@ -1541,14 +1543,14 @@ export default {
imageLounge2: res.data.imageLounge2, // 2
bankBranch: res.data.bankBranch //
}
let arrly = []
res.data.storeAgreementList.forEach((item,index)=>{
const arrly = []
res.data.storeAgreementList.forEach((item, index) => {
arrly.push({
name:index,
url:item
name: index,
url: item
})
})
})
this.$nextTick(()=>{
this.$nextTick(() => {
this.storeAgreementListObj = arrly
this.$forceUpdate()
})
@ -1714,7 +1716,7 @@ export default {
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams
this.$confirm( '是否确认导出所有数据项?', '警告', {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@ -2141,8 +2143,8 @@ video {
}
}
::v-deep .idCardUp .el-image{
width: 362px!important;
height: 211px!important;
width: 362px!important;
height: 211px!important;
}
.mask{
margin: 0 auto;

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
</div>
<div class="main">
<div class="table_a">
<div class="change_l">{{'角色'}}</div>
<div class="change_l">{{ '角色' }}</div>
<!-- {{roleAllList}}-->
<div class="table_b">
<div class="change_i">
@ -43,14 +43,13 @@
:value="item.userId"
:label="item.nickName"
@change="checkClickD($event,index)"
>
</el-checkbox>
/>
</div>
</div>
</div>
<div class="table_a fx_s">
<div class="change_l" style="width: 400px;height: 100%">{{'菜单'}}</div>
<div class="change_l" style="width: 400px;height: 100%">{{ '菜单' }}</div>
<div class="table_b">
<div class="change_i" style="display: block;padding: 0;border-bottom: none;width: 1520px;overflow-x: auto">
<div v-for="(item, index) in menuAllList" class="flex-s" style="display: block">
@ -66,7 +65,7 @@
/>
</div>
<div>
<div v-for="(items,indexs) in item.children" >
<div v-for="(items,indexs) in item.children">
<div style="display: flex">
<div class="class3">
<el-checkbox
@ -207,11 +206,11 @@ export default {
roleAllList: [],
menuAllList: []
},
moren: 'superStudioGift',
moren: 'addMenuRole',
topList: [
{
name: '后台菜单权限',
path: 'superStudioGift'
path: 'addMenuRole'
}
]
}
@ -362,7 +361,7 @@ export default {
api.menuDetails(url).then((res) => {
console.error(res.data)
this.userList.forEach((item, index) => {
if(item.userId==res.data.userId){
if (item.userId == res.data.userId) {
item.changed = true
}
})

View File

@ -2,7 +2,7 @@
<template>
<div class="page">
<div class="contain">
<topBar v-if="topList.length > 0" :top-list="topList" :moren="moren"/>
<topBar v-if="topList.length > 0" :top-list="topList" :moren="moren" />
<div class="thetopbox">
<el-form ref="form" :model="queryParams" label-width="80px">
<el-row>
@ -20,7 +20,7 @@
</el-col>
<el-col :span="4">
<el-form-item :label="'管理名称'">
<el-input v-model="queryParams.nickName" clearable/>
<el-input v-model="queryParams.nickName" clearable />
</el-form-item>
</el-col>
<el-col :span="4" style="margin-left: 0px">
@ -93,7 +93,7 @@
:span-method="objectSpanMethod"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55"/>
<el-table-column type="selection" width="55" />
<el-table-column
align="center"
prop="roleIdVal"
@ -127,12 +127,12 @@
>
<template slot-scope="scope">
<el-button
v-show="user.userName == 'admin'"
type="text"
size="small"
class="button-s"
style="color: #c73030"
@click="toLogin(scope.row)"
v-show="user.userName == 'admin'"
>登录
</el-button>
@ -184,12 +184,12 @@
<script>
import topBar from '@/components/topBarRole'
import * as api from '@/api/notice'
import {Message} from 'element-ui'
import {getRouters} from '@/api/settle'
import {freeLogin} from "@/api/manage";
import {setToken} from "@/utils/auth";
import {login} from "@/api/user";
import {mapGetters} from "vuex";
import { Message } from 'element-ui'
import { getRouters } from '@/api/settle'
import { freeLogin } from '@/api/manage'
import { setToken } from '@/utils/auth'
import { login } from '@/api/user'
import { mapGetters } from 'vuex'
export default {
name: 'Qxpz',
@ -202,12 +202,12 @@ export default {
forms: '',
rules: {
nickName: [
{required: true, message: '请输入管理姓名', trigger: 'blur'}
],
{ required: true, message: '请输入管理姓名', trigger: 'blur' }
]
},
table: {
nickName: '',
status: '',
status: ''
},
moren: 'limitsList',
topList: [
@ -248,7 +248,7 @@ export default {
this.getUserRoute()
},
computed: {
...mapGetters(["user"]),
...mapGetters(['user'])
},
methods: {
getUserRoute() {
@ -282,17 +282,17 @@ export default {
},
addRules() {
this.$router.push({
path: '/system/limits/superStudioGift'
path: '/system/limits/addMenuRole'
})
},
updateShow(item) {
this.$router.push({
path: '/system/limits/superStudioGift?id=' + item.userId
path: '/system/limits/addMenuRole?id=' + item.userId
})
},
updateShows(item) {
this.$router.push({
path: '/system/limits/superStudioGift?id=' + item.userId + '&check=1'
path: '/system/limits/addMenuRole?id=' + item.userId + '&check=1'
})
},
delRole(item) {
@ -375,7 +375,7 @@ export default {
handleSelectionChange(val) {
this.multipleSelection = val
},
objectSpanMethod({row, column, rowIndex, columnIndex}) {
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
// if (columnIndex === 0) {
// if (rowIndex % 2 === 0) {
// return {
@ -390,7 +390,7 @@ export default {
// }
// }
},
tableRowClassName({row, rowIndex}) {
tableRowClassName({ row, rowIndex }) {
if (rowIndex % 2 === 1) {
return 'warning-row'
} else if (rowIndex % 2 === 0) {

View File

@ -56,14 +56,14 @@
<div class="main">
<div class="maintop">
<div class="mainbtn">
<el-button size="small" class="thebtn1" @click="addRules" v-has-buttons="['RoleAdd']">{{'添加'}}</el-button>
<el-button size="small" style="background-color: #FFAD41;margin-left: 10px" class="thebtn2" @click="exports" v-has-buttons="['RoleExport']"> {{ '导出' }}</el-button>
<el-button v-has-buttons="['RoleAdd']" size="small" class="thebtn1" @click="addRules">{{ '添加' }}</el-button>
<el-button v-has-buttons="['RoleExport']" size="small" style="background-color: #FFAD41;margin-left: 10px" class="thebtn2" @click="exports"> {{ '导出' }}</el-button>
</div>
</div>
<div class="maintable">
<el-table
:data="tableData"
v-loading="loading"
:data="tableData"
style="width: 100%"
height="710px"
:header-cell-style="{ background: '#EEEEEE' }"
@ -80,25 +80,25 @@
<el-table-column align="center" prop="" :label="'操作'" fixed="right" width="300">
<template slot-scope="scope">
<el-button
v-has-buttons="['RoleUpdate']"
class="button-s"
type="text"
size="small"
style="color: #FFAD41;"
@click="updateShow(scope.row, tableData)"
v-has-buttons="['RoleUpdate']"
>
{{ '修改' }}
</el-button>
<!-- <el-button-->
<!-- v-hasButtons="['roleMenu']"-->
<!-- class="button-s"-->
<!-- type="text"-->
<!-- size="small"-->
<!-- style="color: #48B2FD;"-->
<!-- @click="checkShow(scope.row, tableData)"-->
<!-- >-->
<!-- 菜单权限-->
<!-- </el-button>-->
<!-- <el-button-->
<!-- v-hasButtons="['roleMenu']"-->
<!-- class="button-s"-->
<!-- type="text"-->
<!-- size="small"-->
<!-- style="color: #48B2FD;"-->
<!-- @click="checkShow(scope.row, tableData)"-->
<!-- >-->
<!-- 菜单权限-->
<!-- </el-button>-->
<el-button
v-hasButtons="['roleFile']"
class="button-s"
@ -112,7 +112,7 @@
<!-- <el-button type="text" size="small" class="button-s" style="color: #48B2FD" >-->
<!-- 数据权限-->
<!-- </el-button>-->
<el-button type="text" size="small" class="button-s" style="color: #c73030" @click="delRole(scope.row, tableData)" v-has-buttons="['RoleDelete']">
<el-button v-has-buttons="['RoleDelete']" type="text" size="small" class="button-s" style="color: #c73030" @click="delRole(scope.row, tableData)">
{{ '删除' }}
</el-button>
</template>
@ -252,7 +252,7 @@ export default {
statusList: [{ 'name': '正常', 'id': '0' }, { 'name': '停用', 'id': '1' }],
menuOptions: [],
tableData: [],
loading:false,
loading: false,
total: 0,
types: '',
formId: ''
@ -268,7 +268,7 @@ export default {
methods: {
checkShow(item) {
this.$router.push({
path: '/system/limits/superStudioGift?id=' + item.roleId
path: '/system/limits/addMenuRole?id=' + item.roleId
})
},
checkShow1(item) {