Commit 23d9a28c by 杨北旺

feat:广汇erp权益订单列表优化

1 parent 4c22462f
......@@ -60,7 +60,8 @@ const getPriteApi = params => {
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
sign: true,
returnAll:true
})
}
......@@ -328,4 +329,16 @@ const aduitOrderApi = params => {
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, delImgApi, getSalesPersonApi }
const judgeSetting = params => {
params.method = `scrm.api.equity.service.merchant.config.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, delImgApi, getSalesPersonApi,judgeSetting }
......@@ -15,8 +15,8 @@ Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig()
// 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.test.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn'
request.baseURL = 'https://scrm.dev.glsx.com.cn'
request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......@@ -24,10 +24,10 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$defaultStartDate = '2021-07-01'
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-2441e617-62cb-4712-b3ae-a1d47bf9a14a-rop' } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-2441e617-62cb-4712-b3ae-a1d47bf9a14a-rop' } })
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
// Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'scrm-base-5a2eda5a-fc4d-4ac8-92d3-a8468cc1f0f6-rop' } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: 'scrm-base-5a2eda5a-fc4d-4ac8-92d3-a8468cc1f0f6-rop' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
<!-- 财务 - 权益订单列表 -->
<template>
<div class="before-sale">
<div class="container finance">
<div class="number">
<glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="210px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData">
<span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" @click="handleExport">导出</el-button>
</span>
</glsx-combi-form>
</div>
<!-- 表格区域 开始 -->
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleAudit(scope.scope)">{{scope.scope.auditStatus ? '撤销' : '财务已收款'}}</el-button> -->
<el-button v-if="[2].includes(scope.scope.orderStatus) && !scope.scope.auditStatus" type="text" @click="handleAudit(scope.scope)">财务已收款</el-button>
<el-button v-else type="text">-</el-button>
<div class="before-sale" :class="{noPaddngTop:showPage==2}">
<template v-if="showPage==1">
<div class="container finance">
<div class="number">
<glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="210px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData">
<span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" @click="handleExport">导出</el-button>
</span>
</glsx-combi-form>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<!-- 表格区域 开始 -->
<GLTable ref="equityRef" :pageSizes="sizeList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="table-btns" slot-scope="scope">
<!-- <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleAudit(scope.scope)">{{scope.scope.auditStatus ? '撤销' : '财务已收款'}}</el-button> -->
<el-button v-if="[2].includes(scope.scope.orderStatus) && !scope.scope.auditStatus" type="text" @click="handleAudit(scope.scope)">财务已收款</el-button>
<el-button v-else type="text">-</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
</template>
<template v-if="showPage==2">
<introduct></introduct>
</template>
<el-dialog :visible.sync="isTipVisible" width="400px" class="tips-dialog" top="30%" title="提示">
<div class="f-size">
<i v-show="editNotify.code == '0'" class="el-icon-success"></i>
......@@ -46,6 +51,7 @@
import * as dayjs from 'dayjs'
import glsxCombiForm from '@/components/glsx-combi-form'
import utils from '../../util/util'
import introduct from './introduct.vue'
export default {
name: 'financeIndex',
data() {
......@@ -466,15 +472,20 @@ export default {
confName: '已审核'
}
]
}
},
showPage:0
}
},
components: {
glsxCombiForm
glsxCombiForm,
introduct
},
mounted() {
if(this.showPage==2){
return
}
this.$apis.ghBeforeSale.getProListApi({}).then(res => {
this.baseData.goodsStatusList = res
this.getOptionsList('searchFormData')
......@@ -488,6 +499,14 @@ export default {
}
})
},
created(){
const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) {
this.showPage = 2
return
}
this.showPage = 1
},
methods: {
getMerchantList(merchantId, accountLevel, attrName, listName) {
......@@ -790,4 +809,7 @@ export default {
}
}
}
.noPaddngTop{
padding-top: 0;
}
</style>
<!-- 店面服务设置 -->
<template>
<div class="before-sale edit-equity mall-server">
<div class="container edit-container mall-server-box">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="144px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:320px;" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:320px;" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
</glsx-combi-form>
<div style="margin-left: 140px">
<p>针对包含“车主生活权益服务”的服务套餐,提供通过扫描小程序码进行领取“车主生活权益服务”。</p>
<img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" />
<template v-if="showPage==1">
<div class="container edit-container mall-server-box">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="144px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:320px;" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:320px;" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
</glsx-combi-form>
<div style="margin-left: 140px">
<p>针对包含“车主生活权益服务”的服务套餐,提供通过扫描小程序码进行领取“车主生活权益服务”。</p>
<img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" />
</div>
</div>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div class="footer">
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<div class="footer">
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div>
</template>
<template v-if="showPage==2">
<div class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通售前权益服务</span>
<span class="nodata_tip_2">合作开通后,您方可在此页设置店面的服务热线和默认提单车辆品牌等。</span>
</div>
</div>
</template>
</div>
</template>
......@@ -75,7 +86,9 @@ export default {
baseData: {
carBrandOptions: [],
carChildOptions: []
}
},
showPage:0,
nodataHeight: 0,
}
},
......@@ -84,11 +97,22 @@ export default {
},
created() {
let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight * 0.8
const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) {
this.showPage = 2
return
}
this.showPage = 1
this.getAllVehicleBrand()
this.getCarChildList()
},
mounted() {
if(this.showPage==2){
return
}
this.getHotline()
// this.getDefaultCarbrand()
},
......@@ -151,7 +175,7 @@ export default {
}
}
</script>
<style scoped>
<style lang="scss" scoped>
.before-sale .container {
padding: 0 !important;
background: #ffffff;
......@@ -246,4 +270,29 @@ export default {
.mall-server-box{
height: 100%;
}
.nodata_widget {
margin-top: 17px;
.wrapper {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
.nodata_tip_1 {
font-size: 18px;
font-weight: 500;
color: #3a3a3a;
margin-top: 48px;
}
.nodata_tip_2 {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
margin-top: 9px;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!