Commit a28a078d by 张立顺

修改权益配置

1 parent fab14410
......@@ -7,8 +7,8 @@
<div class="operate_wrap">
<span class="table_title">合同列表</span>
<div class="operate_btn">
<GLButton type="primary" fn="批量更换" plain :size="size" @click="batchChangeTmpl">批量更换</GLButton>
<GLButton type="primary" fn="批量初始化" plain :size="size" @click="batchInitTmpl">批量初始化</GLButton>
<el-button type="primary" fn="批量更换" plain :size="size" @click="batchChangeTmpl">批量更换</el-button>
<el-button type="primary" fn="批量初始化" plain :size="size" @click="batchInitTmpl">批量初始化</el-button>
<el-button type="primary" plain :size="size" @click="handleExport">导出</el-button>
</div>
</div>
......@@ -34,10 +34,10 @@
</template>
<script>
const throttle = function(fn, time) {
const throttle = function (fn, time) {
let timer = null
time = time || 1000
return function(...args) {
return function (...args) {
if (timer) {
return
}
......@@ -96,7 +96,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '更换合同'
},
......@@ -109,7 +109,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '模板初始化'
},
......@@ -313,7 +313,7 @@ export default {
},
// 导出
handleExport: throttle(function() {
handleExport: throttle(function () {
var params = this.getParams()
this.$apis.contractManager.exportContractApi(params).then(res => {
// window.open(res)
......
......@@ -40,7 +40,7 @@ export default {
tabPaneList: [
{ name: '1', label: '产品合同' },
{ name: '2', label: '商品合同' },
{ name: '3', label: '套餐合同'}
{ name: '3', label: '套餐合同' }
]
}
},
......
......@@ -32,10 +32,10 @@
</template>
<script>
const throttle = function(fn, time) {
const throttle = function (fn, time) {
let timer = null
time = time || 1000
return function(...args) {
return function (...args) {
if (timer) {
return
}
......@@ -95,7 +95,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '更换合同'
},
......@@ -108,7 +108,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '模板初始化'
},
......@@ -121,7 +121,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '套餐详情'
},
......@@ -326,7 +326,7 @@ export default {
},
// 导出
handleExport: throttle(function() {
handleExport: throttle(function () {
var params = this.getParams()
this.$apis.contractManager.exportProdPackageApi(params).then(res => {
// window.open(res)
......
......@@ -7,7 +7,7 @@
<div class="operate_wrap">
<span class="table_title">合同列表</span>
<div class="operate_btn">
<GLButton type="primary" fn="批量更换" plain :size="size" @click="batchChangeTmpl">批量更换</GLButton>
<el-button type="primary" fn="批量更换" plain :size="size" @click="batchChangeTmpl">批量更换</el-button>
<el-button type="primary" :size="size" @click="handleExport">导出</el-button>
</div>
</div>
......@@ -83,10 +83,10 @@
</template>
<script>
const throttle = function(fn, time) {
const throttle = function (fn, time) {
let timer = null
time = time || 1000
return function(...args) {
return function (...args) {
if (timer) {
return
}
......@@ -421,7 +421,7 @@ export default {
getBaseData() {
this.$apis.contractManager.getSkuCategoryListApi({}).then(res => {
// 整理数据
let temp = res.map(item => ({optionId: item, optionLabel: item}))
let temp = res.map(item => ({ optionId: item, optionLabel: item }))
this.baseData.skuTypeList = temp
this.getOptionsList('searchFormData')
})
......@@ -528,7 +528,7 @@ export default {
this.checkedRow.push(v)
}
})
this.parentCheckedRow.push({spuId: row?.spuId})
this.parentCheckedRow.push({ spuId: row?.spuId })
} else {
row.parentSelect = false
row?.skuPackageList?.forEach(v => {
......@@ -556,10 +556,10 @@ export default {
this.parentCheckedRow = this.parentCheckedRow.filter(item => item.spuId !== scope.spuId)
} else {
scope.parentSelect = true
this.parentCheckedRow.push({spuId: scope?.spuId})
this.parentCheckedRow.push({ spuId: scope?.spuId })
}
},
// 批量变更合同
batchChangeTmpl() {
const data = this.checkedRow || []
......@@ -666,7 +666,7 @@ export default {
},
// 导出
handleExport: throttle(function() {
handleExport: throttle(function () {
var params = this.getParams()
this.$apis.contractManager.exportProdContractApi(params).then(res => {
// window.open(res)
......@@ -807,7 +807,7 @@ export default {
.m-r-l-20 {
margin: 0 20px;
}
/deep/ .el-select__tags-text{
/deep/ .el-select__tags-text {
display: inline-block;
max-width: 110px;
overflow: hidden;
......
......@@ -2,7 +2,7 @@
<template>
<div>
<div class="header_btn_widget flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<el-button size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</el-button>
</div>
<div class="header_info_widget">
<span class="el-icon-warning"></span>
......@@ -19,9 +19,9 @@
<el-button plain style="float: right; margin-bottom: 10px" size="small" @click="exportList">导出</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="searchParams" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="batchPageConf">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton>
<GLButton v-if="[1, 3, 4].includes(scope.scope.status)" fn="查看" type="text" @click="handleEdit(2, scope.scope)">查看</GLButton>
<GLButton v-if="[2].includes(scope.scope.status)" fn="重新提交" type="text" @click="handleEdit(3, scope.scope)">重新提交</GLButton> -->
<!-- <el-button v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</el-button>
<el-button v-if="[1, 3, 4].includes(scope.scope.status)" fn="查看" type="text" @click="handleEdit(2, scope.scope)">查看</el-button>
<el-button v-if="[2].includes(scope.scope.status)" fn="重新提交" type="text" @click="handleEdit(3, scope.scope)">重新提交</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
......@@ -79,12 +79,12 @@ export default {
orderCount: {},
buttonList: [
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '去处理'
},
condition: row => {
return [15,0].includes(row.scope.status)
return [15, 0].includes(row.scope.status)
},
attrs: {
type: 'text',
......@@ -95,12 +95,12 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '查看'
},
condition: row => {
return [1, 3, 4, 17,2,14,16].includes(row.scope.status)
return [1, 3, 4, 17, 2, 14, 16].includes(row.scope.status)
},
attrs: {
type: 'text',
......@@ -109,9 +109,9 @@ export default {
listeners: {
click: row => this.handleEdit(2, row.scope)
}
},
}
// {
// type: 'GLButton',
// type: 'el-button',
// name: row => {
// return '重新提交'
// },
......@@ -135,7 +135,7 @@ export default {
searchText: '',
status: '',
commitDate: '',
equitySource:1
equitySource: 1
},
searchParams: {},
searchFormData: [
......@@ -192,7 +192,7 @@ export default {
return cellValue.reporterName || '-'
}
},
{
{
label: '车牌号',
prop: 'vehicleLicensePlate',
width: 160,
......@@ -342,7 +342,7 @@ export default {
searchText: '',
status: '',
commitDate: '',
equitySource:1
equitySource: 1
}
this.getTableData()
},
......@@ -365,7 +365,7 @@ export default {
this.$refs.equityRef.refreshTable()
},
exportList() {
const parmas = { ...this.getParams(),equitySource:1 }
const parmas = { ...this.getParams(), equitySource: 1 }
this.$apis.claims.exportClaimsData(parmas).then(data => {
var a = document.createElement('a')
a.setAttribute('id', 'exportToExport')
......
......@@ -51,7 +51,7 @@
</span>
</el-dialog>
<GLDialog class="dialog_wrap" :hasFooter="false" title="修改记录" mode="mid" :visible.sync="updateDetailVisible" :before-close="handleClose" @onOk="onOk">
<div style="text-align: center;" v-if="!updateList.length">暂无修改记录</div>
<div style="text-align: center" v-if="!updateList.length">暂无修改记录</div>
<template v-else>
<div class="step-item" v-for="(item, index) in updateList" :key="index">
<span class="circle"></span>
......@@ -79,7 +79,7 @@ export default {
newKey: new Date(),
buttonList: [
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '查看'
},
......@@ -110,7 +110,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '编辑'
},
......@@ -126,7 +126,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '修改'
},
......@@ -157,7 +157,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '重新提单'
},
......
......@@ -2,7 +2,7 @@
<template>
<div>
<!-- <div class="header_btn_widget flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<el-button size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</el-button>
</div> -->
<div class="header_info_widget">
<span class="el-icon-warning"></span>
......@@ -26,9 +26,9 @@
<div class="table_top_line flex_scb">
<span>核赔订单列表</span>
<div class="table_top_btn flex_sc">
<GLButton size="small" fn="订单详情" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<GLButton size="small" plain fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</GLButton>
<GLButton size="small" plain fn="批量审核" type="primary" @click="batchAudit">批量审核通过</GLButton>
<el-button size="small" fn="订单详情" type="primary" @click="handleEdit(1)">新增核赔</el-button>
<el-button size="small" plain fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</el-button>
<el-button size="small" plain fn="批量审核" type="primary" @click="batchAudit">批量审核通过</el-button>
<el-button plain size="small" @click="exportList">导出</el-button>
</div>
</div>
......@@ -272,7 +272,7 @@ export default {
orderCount: {},
buttonList: [
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '定损审核'
},
......@@ -288,7 +288,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '核赔审核'
},
......@@ -304,7 +304,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '运营经理审核'
},
......@@ -396,7 +396,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '重新提交'
},
......@@ -412,7 +412,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '去处理'
},
......@@ -766,7 +766,7 @@ export default {
},
historybuttonList: [
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '详情'
},
......
......@@ -2,7 +2,7 @@
<template>
<div>
<!-- <div class="header_btn_widget flex_sc">
<GLButton size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<el-button size="small" fn="订单详情" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增核赔</el-button>
</div> -->
<div class="header_info_widget">
<span class="el-icon-warning"></span>
......@@ -19,9 +19,9 @@
<div class="table_top_line flex_scb">
<span>核赔订单列表</span>
<div class="table_top_btn flex_sc">
<GLButton size="small" fn="订单详情" type="primary" @click="handleEdit(1)">新增核赔</GLButton>
<GLButton size="small" plain fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</GLButton>
<GLButton size="small" plain fn="批量审核" type="primary" @click="batchAudit">批量审核通过</GLButton>
<el-button size="small" fn="订单详情" type="primary" @click="handleEdit(1)">新增核赔</el-button>
<el-button size="small" plain fn="跟进人配置" type="primary" @click="handleConfig">跟进人配置</el-button>
<el-button size="small" plain fn="批量审核" type="primary" @click="batchAudit">批量审核通过</el-button>
<el-button plain size="small" @click="exportList">导出</el-button>
</div>
</div>
......@@ -32,9 +32,9 @@
<span v-if="statusMap[scope.scope.status || 0]">{{ statusMap[scope.scope.status || 0].name }}</span>
</div>
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <GLButton v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</GLButton>
<GLButton v-if="[1, 3, 4].includes(scope.scope.status)" fn="查看" type="text" @click="handleEdit(2, scope.scope)">查看</GLButton>
<GLButton v-if="[2].includes(scope.scope.status)" fn="重新提交" type="text" @click="handleEdit(3, scope.scope)">重新提交</GLButton> -->
<!-- <el-button v-if="[0].includes(scope.scope.status)" fn="去处理" type="text" @click="handleEdit(4, scope.scope)">去处理</el-button>
<el-button v-if="[1, 3, 4].includes(scope.scope.status)" fn="查看" type="text" @click="handleEdit(2, scope.scope)">查看</el-button>
<el-button v-if="[2].includes(scope.scope.status)" fn="重新提交" type="text" @click="handleEdit(3, scope.scope)">重新提交</el-button> -->
<GLTableButton :buttonList="buttonList" :buttonItem="scope" :buttonNum="3"></GLTableButton>
</div>
</GLTable>
......@@ -135,7 +135,7 @@ export default {
orderCount: {},
buttonList: [
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '定损审核'
},
......@@ -151,7 +151,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '去处理'
},
......@@ -187,7 +187,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '重新提交'
},
......@@ -203,7 +203,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '运营经理审核'
},
......@@ -219,7 +219,7 @@ export default {
}
},
{
type: 'GLButton',
type: 'el-button',
name: row => {
return '核赔审核'
},
......
<template>
<div class="equity-wrap">
<GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton>
<el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button>
<!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> -->
<div class="equity-wrap contain merchant-select">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData" @handleOk="selConfig" @handleRest="selConfig('reset')"></GLCombiForm>
<div class="row-btns">
<!-- <el-button size="small" @click="toggleAll">全选</el-button> -->
<!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> -->
<div style="float: right;" class="primary_plain_btn">
<div style="float: right" class="primary_plain_btn">
<el-button size="small" plain @click="batchOpenSale()">批量开通驻店零售</el-button>
<el-button size="small" plain @click="batchOperation(1)">批量开通</el-button>
<el-button size="small" @click="batchOperation(2)">批量关闭</el-button>
......@@ -16,7 +16,7 @@
</div>
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
<span slot="operate" slot-scope="scope">
<GLButton fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton>
<el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button>
<!-- <el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button> -->
</span>
<span slot="openFlag" slot-scope="scope">
......@@ -57,7 +57,7 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
flag: true,
searchForm: {
openFlag : ''
openFlag: ''
},
searchSelectObj: {
idOrName: {
......@@ -65,7 +65,7 @@ export default {
value: ''
}
},
searchFormData: [
searchFormData: [
{
type: 'selectInput',
selectName: 'idOrName',
......@@ -136,7 +136,7 @@ export default {
value: '0'
}
],
tableParams: {
tableParams: {
listName: 'list',
mutiSelectName: 'configIndex',
mutiSelectUniqueKey: 'id',
......@@ -144,7 +144,7 @@ export default {
tableColumns: [
{
label: '商户名称',
prop: 'merchantName',
prop: 'merchantName'
},
{
label: '商户号',
......@@ -198,22 +198,20 @@ export default {
selectStatus: false
}
},
mounted() {
},
created(){
mounted() {},
created() {
this.diffHost()
},
methods: {
// 区分滴加和广汇
diffHost(){
let href = window.location.host;
diffHost() {
let href = window.location.host
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if (href == gxurl1 || href == gxurl2) {
this.showGh = true
}else{
} else {
this.showGh = false
}
},
......@@ -251,7 +249,7 @@ export default {
},
selConfig(e) {
this.searchForm = {
openFlag : this.searchForm.openFlag
openFlag: this.searchForm.openFlag
}
if (e == 'reset') {
this.searchForm = {
......@@ -267,9 +265,9 @@ export default {
this.searchForm[this.searchSelectObj.idOrName.attr] = this.searchSelectObj.idOrName.value
this.$refs.table.refreshTable()
},
batchOpenSale(){
batchOpenSale() {
const data = this.$refs.table?.mutiSelectArr?.[this.tableParams.mutiSelectName] || []
if(!data?.length) return this.$message.error('请选择需要开通的商户')
if (!data?.length) return this.$message.error('请选择需要开通的商户')
this.$confirm('确定批量开通驻店零售吗', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -277,8 +275,8 @@ export default {
callback: action => {
if (action == 'confirm') {
const ids = data.map(item => item.id)
this.$apis.openconfig.batchOpenSaleModeApi({ids, saleMode: 2}).then(res => {
if(res){
this.$apis.openconfig.batchOpenSaleModeApi({ ids, saleMode: 2 }).then(res => {
if (res) {
this.$message.success('操作成功')
this.$refs.table.refreshTable()
}
......
<template>
<div class="equity-wrap">
<GLButton fn="广汇开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton>
<el-button fn="广汇开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button>
<!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> -->
<div class="equity-wrap contain merchant-select">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="85px" label-position="right">
......@@ -35,7 +35,7 @@
</div>
<GLTable v-if="flag" ref="table" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :getListApi="getConfigList" :beforeSearchFn="check">
<span slot="operate" slot-scope="scope">
<GLButton fn="广汇修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</GLButton>
<el-button fn="广汇修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button>
<!-- <el-button fn="修改配置" type="text" @click="jump(scope.scope.merchantId)">修改配置</el-button> -->
</span>
<span slot="openFlag" slot-scope="scope">
......@@ -108,7 +108,7 @@ export default {
value: '0'
}
],
tableParams: {
tableParams: {
listName: 'list',
mutiSelectName: 'configIndex',
mutiSelectUniqueKey: 'id',
......@@ -162,22 +162,20 @@ export default {
selectStatus: false
}
},
mounted() {
},
created(){
mounted() {},
created() {
this.diffHost()
},
methods: {
// 区分滴加和广汇
diffHost(){
let href = window.location.host;
diffHost() {
let href = window.location.host
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if (href == gxurl1 || href == gxurl2) {
this.showGh = true
}else{
} else {
this.showGh = false
}
},
......@@ -199,7 +197,7 @@ export default {
if (e == 'add') {
this.$router.push({ path: '/config/addConfigOfGh', query: { $title: encodeURI('开通配置') } })
} else {
let query = { $title: encodeURI('修改配置') }
let query = { $title: encodeURI('修改配置') }
query.merchantId = e
console.log(query, 'query')
this.$router.push({ path: '/config/addConfigOfGh', query })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!