Commit e4dc38ab by 张权

修改接口,屏蔽类型

1 parent 8422c76c
...@@ -10,13 +10,13 @@ const getExpertList = params => { ...@@ -10,13 +10,13 @@ const getExpertList = params => {
}) })
} }
const getMerchantTree = params => { const getDepartment = params => {
params.method = 'entmicro.api.common.findMerchantTreeByMerchantNo.list' params.method = 'entmicro.api.department.listDepartmentTree'
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
...@@ -70,4 +70,4 @@ const getMenberType = params => { ...@@ -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 @@ ...@@ -194,3 +194,21 @@
.expert-cascader .el-cascader-menu { .expert-cascader .el-cascader-menu {
max-height: 500px; 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 { ...@@ -1569,7 +1569,6 @@ export default {
if (!params.sn) { if (!params.sn) {
delete params.sn delete params.sn
} }
params.isOss = 0
this.$apis.beforeSale.updateEquityApi(params).then(res => { this.$apis.beforeSale.updateEquityApi(params).then(res => {
this.submit = false this.submit = false
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
<div class="expert-wrap"> <div class="expert-wrap">
<glsx-combi-form ref="expertRef" labelWidth="72px" defaultWidth="215px" :formObj="batchListSearch" :formData="expertForm"> <glsx-combi-form ref="expertRef" labelWidth="72px" defaultWidth="215px" :formObj="batchListSearch" :formData="expertForm">
<div slot="department"> <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 }"> <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"> <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.label }}</div> <div class="limitText" style="width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ data.departmentName }}</div>
</el-tooltip> </el-tooltip>
</template> </template>
</el-cascader> </el-cascader>
...@@ -70,10 +70,10 @@ export default { ...@@ -70,10 +70,10 @@ export default {
return { return {
imagBaseURL, imagBaseURL,
shopName: '', shopName: '',
shopList: [], departmentList: [],
mypropParam1: { mypropParam1: {
label: 'departmentName',
value: 'id', value: 'id',
label: 'label',
children: 'children', children: 'children',
checkStrictly: true checkStrictly: true
}, },
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
}, },
computed: {}, computed: {},
created() { created() {
this.getMerchantList() this.getDepartmentList()
this.isEmptyTable() this.isEmptyTable()
// this.getTypeList() // this.getTypeList()
}, },
...@@ -199,16 +199,10 @@ export default { ...@@ -199,16 +199,10 @@ export default {
}, },
methods: { methods: {
// 获取当前选择的商户 // 获取当前选择的商户
getCurMerchant(val) { getCurDepartment(val) {
let id = val[val.length - 1] let id = val[val.length - 1]
this.batchListSearch.departmentId = id this.batchListSearch.departmentId = id
// let labels = this.$refs.cascaderRef1.getCheckedNodes()[0].pathLabels this.$refs.cascaderRef.dropDownVisible = false
// let curLabel = labels[labels.length - 1]
// this.curTempMerchant = {
// merchantId: id,
// merchantName: curLabel
// }
// this.$refs.cascaderRef1.dropDownVisible = false
}, },
getTypeList() { getTypeList() {
this.$apis.expert.getMenberType({}).then(res => { this.$apis.expert.getMenberType({}).then(res => {
...@@ -246,9 +240,19 @@ export default { ...@@ -246,9 +240,19 @@ export default {
this.hasData = !!res?.data?.length 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() { getMerchantList() {
this.$apis.expert.getMerchantTree({}).then(res => { this.$apis.expert.getMerchantTree({ id: 1, flag: true }).then(res => {
this.shopList = this.traverse(2, res, 'entmicroName', 'merchantAccountLevel') 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 = []) { traverse(type, arr, string1, string2, arr1 = []) {
......
...@@ -273,12 +273,16 @@ export default { ...@@ -273,12 +273,16 @@ export default {
cardType: [{ required: true, message: '请选择证件类型', trigger: 'change' }], cardType: [{ required: true, message: '请选择证件类型', trigger: 'change' }],
cardNo: [ cardNo: [
{ {
required: true, required: true,
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
return value ? callback() : callback(new Error('请输入证件号码')) return value ? callback() : callback(new Error('请输入' + (this.editForm.cardType == '1' ? '身份证' : '统一社会信息代码')))
}, }, trigger: 'change'
trigger: 'change' },
} {
validator: (rule, value, callback) => {
return (/[a-zA-Z0-9]{18}/).test(value) ? callback() : callback(new Error('请输入18位数字或字母'))
}, trigger: 'change'
}
], ],
customerPhone: [ customerPhone: [
{ required: true, message: '请输入联系号码', trigger: 'change' }, { required: true, message: '请输入联系号码', trigger: 'change' },
...@@ -329,7 +333,7 @@ export default { ...@@ -329,7 +333,7 @@ export default {
label: '身份证', label: '身份证',
name: 'cardNo', name: 'cardNo',
type: 'input', type: 'input',
maxlength: 30 maxlength: 18
}, },
{ {
label: '联系号码', label: '联系号码',
...@@ -495,23 +499,23 @@ export default { ...@@ -495,23 +499,23 @@ export default {
{ {
confId: 2, confId: 2,
confName: '企业' 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: [ cardTypeList: [
{ {
...@@ -521,23 +525,23 @@ export default { ...@@ -521,23 +525,23 @@ export default {
{ {
confId: 2, confId: 2,
confName: '统一社会信息代码' 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: [ servicePeriodList: [
{ {
......
<template> <template>
<div class="writeOff"> <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"> <div class="contain equity-wrap">
<GLButton size="small" fn="新增核赔" class="el-icon-plus" type="primary" @click="addWriteOff(1)">新增核赔</GLButton>
<div class="search-wrap"> <div class="search-wrap">
<glsx-combi-form ref="showSearch" labelWidth="120px" defaultWidth="230px" :formObj="batchListSearch" :formData="writeOffForm"> <glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="230px" :formObj="batchListSearch" :formData="writeOffForm">
<span slot="footer" class="footer-btns"></span> <!-- <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> </glsx-combi-form>
</div> </div>
<div> <div class="my-search-btn" style="float: right; margin-right: 0; margin-bottom: 20px">
<div> <el-button plain type="primary" size="small" @click="handleReset('reset')">重置</el-button>
<el-button size="small" type="primary" icon="el-icon-search" @click="handleSearch">查询</el-button> <el-button size="small" type="primary" @click="handleSearch">查询</el-button>
<el-button size="small" icon="el-icon-refresh" @click="handleReset('reset')">重置</el-button> <el-button size="small" @click="handleExport" class="selectBtn">导出</el-button>
</div>
</div> </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"> <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"> <div class="table-btns" slot="table-btns" slot-scope="scope">
<el-button type="text" @click="handleView(scope.scope)">查看</el-button> <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!