Commit e4dc38ab by 张权

修改接口,屏蔽类型

1 parent 8422c76c
......@@ -10,13 +10,13 @@ const getExpertList = params => {
})
}
const getMerchantTree = params => {
params.method = 'entmicro.api.common.findMerchantTreeByMerchantNo.list'
const getDepartment = params => {
params.method = 'entmicro.api.department.listDepartmentTree'
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
......@@ -70,4 +70,4 @@ const getMenberType = params => {
})
}
export default { getExpertList, getMerchantTree, saveExpert, delExpert, editExpert, expertDetail, getMenberType }
export default { getExpertList, getDepartment, saveExpert, delExpert, editExpert, expertDetail, getMenberType }
......@@ -194,3 +194,21 @@
.expert-cascader .el-cascader-menu {
max-height: 500px;
}
.my-search-btn {
.el-button--primary.is-plain {
color: #5850ff;
background-color: #fff;
border-color: #5850ff;
}
.el-button--primary.is-plain:hover {
color: #7973ff;
background-color: #fff;
border-color: #7973ff;
}
.el-button--primary.is-plain:active {
color: #3a32e1;
background-color: #fff;
border-color: #3a32e1;
}
}
......@@ -1569,7 +1569,6 @@ export default {
if (!params.sn) {
delete params.sn
}
params.isOss = 0
this.$apis.beforeSale.updateEquityApi(params).then(res => {
this.submit = false
......
......@@ -16,10 +16,10 @@
<div class="expert-wrap">
<glsx-combi-form ref="expertRef" labelWidth="72px" defaultWidth="215px" :formObj="batchListSearch" :formData="expertForm">
<div slot="department">
<el-cascader clearable popper-class="expert-cascader" ref="cascaderRef1" placeholder="请选择商户/门店" @change="getCurMerchant" :show-all-levels="false" v-model="batchListSearch.departmentId" :props="mypropParam1" :options="shopList" size="small" style="width: 215px" separator=" " filterable>
<el-cascader clearable popper-class="expert-cascader" ref="cascaderRef" @change="getCurDepartment" placeholder="请选择商户/门店" :show-all-levels="false" v-model="batchListSearch.departmentId" :props="mypropParam1" :options="departmentList" size="small" style="width: 215px" separator=" " filterable>
<template slot-scope="{ data }">
<el-tooltip popper-class="myToolTipClass" style="border: none" :disabled="data.label.length > 12 ? false : true" class="item" effect="light" :content="data.label" placement="top-end">
<div class="limitText" style="width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ data.label }}</div>
<el-tooltip popper-class="myToolTipClass" style="border: none" :disabled="data.departmentName.length > 12 ? false : true" class="item" effect="light" :content="data.departmentName" placement="top-end">
<div class="limitText" style="width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ data.departmentName }}</div>
</el-tooltip>
</template>
</el-cascader>
......@@ -70,10 +70,10 @@ export default {
return {
imagBaseURL,
shopName: '',
shopList: [],
departmentList: [],
mypropParam1: {
label: 'departmentName',
value: 'id',
label: 'label',
children: 'children',
checkStrictly: true
},
......@@ -187,7 +187,7 @@ export default {
},
computed: {},
created() {
this.getMerchantList()
this.getDepartmentList()
this.isEmptyTable()
// this.getTypeList()
},
......@@ -199,16 +199,10 @@ export default {
},
methods: {
// 获取当前选择的商户
getCurMerchant(val) {
getCurDepartment(val) {
let id = val[val.length - 1]
this.batchListSearch.departmentId = id
// let labels = this.$refs.cascaderRef1.getCheckedNodes()[0].pathLabels
// let curLabel = labels[labels.length - 1]
// this.curTempMerchant = {
// merchantId: id,
// merchantName: curLabel
// }
// this.$refs.cascaderRef1.dropDownVisible = false
this.$refs.cascaderRef.dropDownVisible = false
},
getTypeList() {
this.$apis.expert.getMenberType({}).then(res => {
......@@ -246,9 +240,19 @@ export default {
this.hasData = !!res?.data?.length
})
},
getDepartmentList() {
this.$apis.expert.getDepartment({ id: 1, flag: true }).then(res => {
console.log(res)
this.departmentList = this.traverse(1, res, 'relevanceMerchant')
})
},
getMerchantList() {
this.$apis.expert.getMerchantTree({}).then(res => {
this.shopList = this.traverse(2, res, 'entmicroName', 'merchantAccountLevel')
this.$apis.expert.getMerchantTree({ id: 1, flag: true }).then(res => {
console.log(res)
this.shopList = this.traverse(2, res, 'relevanceMerchant')
// this.$apis.baseInfo.getDepartment({ id: 1, flag: true }).then(res => {
// this.departmentList = this.traverse(1, res, 'relevanceMerchant')
// })
})
},
traverse(type, arr, string1, string2, arr1 = []) {
......
......@@ -273,12 +273,16 @@ export default {
cardType: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
cardNo: [
{
required: true,
validator: (rule, value, callback) => {
return value ? callback() : callback(new Error('请输入证件号码'))
},
trigger: 'change'
}
required: true,
validator: (rule, value, callback) => {
return value ? callback() : callback(new Error('请输入' + (this.editForm.cardType == '1' ? '身份证' : '统一社会信息代码')))
}, trigger: 'change'
},
{
validator: (rule, value, callback) => {
return (/[a-zA-Z0-9]{18}/).test(value) ? callback() : callback(new Error('请输入18位数字或字母'))
}, trigger: 'change'
}
],
customerPhone: [
{ required: true, message: '请输入联系号码', trigger: 'change' },
......@@ -329,7 +333,7 @@ export default {
label: '身份证',
name: 'cardNo',
type: 'input',
maxlength: 30
maxlength: 18
},
{
label: '联系号码',
......@@ -495,23 +499,23 @@ export default {
{
confId: 2,
confName: '企业'
},
{
confId: 3,
confName: '个人(港澳)'
},
{
confId: 4,
confName: '个人(台)'
},
{
confId: 5,
confName: '个人(军官)'
},
{
confId: 6,
confName: '其他'
}
// {
// confId: 3,
// confName: '个人(港澳)'
// },
// {
// confId: 4,
// confName: '个人(台)'
// },
// {
// confId: 5,
// confName: '个人(军官)'
// },
// {
// confId: 6,
// confName: '其他'
// }
],
cardTypeList: [
{
......@@ -521,23 +525,23 @@ export default {
{
confId: 2,
confName: '统一社会信息代码'
},
{
confId: 3,
confName: '港澳返乡证'
},
{
confId: 4,
confName: '台胞证'
},
{
confId: 5,
confName: '军官证'
},
{
confId: 6,
confName: '其他'
}
// {
// confId: 3,
// confName: '港澳返乡证'
// },
// {
// confId: 4,
// confName: '台胞证'
// },
// {
// confId: 5,
// confName: '军官证'
// },
// {
// confId: 6,
// confName: '其他证件'
// }
],
servicePeriodList: [
{
......
<template>
<div class="writeOff">
<GLButton size="small" style="margin-bottom: 10px;" fn="新增核赔" class="el-icon-plus" type="primary" @click="addWriteOff(1)">新增核赔</GLButton>
<div class="contain equity-wrap">
<GLButton size="small" fn="新增核赔" class="el-icon-plus" type="primary" @click="addWriteOff(1)">新增核赔</GLButton>
<div class="search-wrap">
<glsx-combi-form ref="showSearch" labelWidth="120px" defaultWidth="230px" :formObj="batchListSearch" :formData="writeOffForm">
<span slot="footer" class="footer-btns"></span>
<glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="230px" :formObj="batchListSearch" :formData="writeOffForm">
<!-- <span slot="footer" class="footer-btns">
<el-button size="small" type="primary" @click="handleSearch">查询</el-button>
<el-button size="small" @click="handleReset('reset')">重置</el-button>
</span> -->
</glsx-combi-form>
</div>
<div>
<div>
<el-button size="small" type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button>
<el-button size="small" icon="el-icon-refresh" @click="handleReset('reset')">重置</el-button>
</div>
<div class="my-search-btn" style="float: right; margin-right: 0; margin-bottom: 20px">
<el-button plain type="primary" size="small" @click="handleReset('reset')">重置</el-button>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button>
<el-button size="small" @click="handleExport" class="selectBtn">导出</el-button>
</div>
</div>
<div class="contain equity-wrap" style="margin-top: 10px">
<el-button type="primary" size="small" @click="handleExport" style="float: right; margin-right: 0; margin-bottom: 20px" class="selectBtn">导出Excel</el-button>
<GLTable ref="writeOffTable" :pageSizes="sizeList" :searchForm="searchForm" :tableParams="batchTableParams" :getListApi="getListApi" :pageConf="batchPageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<el-button type="text" @click="handleView(scope.scope)">查看</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!