Commit df7b0fa0 by 前端

Merge branch 'ybw_dev_v1.1.0' into 'develop'

合并3.14号发版版本

See merge request !2
2 parents 4c22462f 927971c8
...@@ -60,7 +60,8 @@ const getPriteApi = params => { ...@@ -60,7 +60,8 @@ const getPriteApi = params => {
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'GET', method: 'GET',
data: params, data: params,
sign: true sign: true,
returnAll:true
}) })
} }
...@@ -328,4 +329,27 @@ const aduitOrderApi = params => { ...@@ -328,4 +329,27 @@ 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
})
}
const failHttpByAdmin = params => {
params.method = `scrm.api.equity.service.order.resend.ero.transmission`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: false
})
}
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,failHttpByAdmin }
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" > <el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" @blur="e => handleInputBlur(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span> <span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
<span v-if="item.append" slot="append">{{ item.append }}</span> <span v-if="item.append" slot="append">{{ item.append }}</span>
</el-input> </el-input>
......
...@@ -10,13 +10,13 @@ let routes = [] ...@@ -10,13 +10,13 @@ let routes = []
let router = null let router = null
let instance = null let instance = null
Vue.use(GLTable) Vue.use(GLTable)
// Vue.use(Table) // Vue.use(Table)
// Vue.use(TableColumn) // Vue.use(TableColumn)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, request_brand, sign, secret } = await fetchConfig() const { response, request, request_brand, sign, secret } = await fetchConfig()
// 本地切换域名,不需要Mock上面改动 const => let // 本地切换域名,不需要Mock上面改动 const => let
// request.baseURL = 'https://scrm.test.glsx.com.cn' // request.baseURL = 'https://scrm.dev.glsx.com.cn'
// request_brand.baseURL = 'https://scrm.test.glsx.com.cn' // request_brand.baseURL = 'https://scrm.dev.glsx.com.cn'
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
...@@ -26,9 +26,9 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -26,9 +26,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$defaultStartDate = '2021-07-01' 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 = 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_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 = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '3c50d4be-7211-45c1-a2c6-9792bbb3c0d9' } })
// 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_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '3c50d4be-7211-45c1-a2c6-9792bbb3c0d9' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
subscribe({ messenger }) subscribe({ messenger })
......
...@@ -516,7 +516,6 @@ export default { ...@@ -516,7 +516,6 @@ export default {
watch: { watch: {
'editForm.vehicle.invoicePrice'(newValue, oldValue) { 'editForm.vehicle.invoicePrice'(newValue, oldValue) {
this.editForm.vehicle.invoicePrice = limitPrice(newValue, oldValue, 7, 2, 0, 2000000) this.editForm.vehicle.invoicePrice = limitPrice(newValue, oldValue, 7, 2, 0, 2000000)
this.packageToPrice()
}, },
'editForm.actualSalesPrice'(newValue, oldValue) { 'editForm.actualSalesPrice'(newValue, oldValue) {
this.editForm.actualSalesPrice = limitPrice(newValue, oldValue, 7, 2) this.editForm.actualSalesPrice = limitPrice(newValue, oldValue, 7, 2)
...@@ -976,7 +975,14 @@ export default { ...@@ -976,7 +975,14 @@ export default {
this.updateEquity(params) this.updateEquity(params)
}, },
updateEquity(params) { updateEquity(params) {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.ghBeforeSale.updateEquityApi(params).then(res => { this.$apis.ghBeforeSale.updateEquityApi(params).then(res => {
loading.close();
this.submit = false this.submit = false
if (res.errId == 'A1307') { if (res.errId == 'A1307') {
this.whereToGo('vin') this.whereToGo('vin')
......
<!-- 财务 - 权益订单列表 --> <!-- 财务 - 权益订单列表 -->
<template> <template>
<div class="before-sale"> <div class="before-sale" :class="{noPaddngTop:showPage==2}">
<div class="container finance"> <template v-if="showPage==1">
<div class="number"> <div class="container finance">
<glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="210px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"> <div class="number">
<span slot="footer" class="footer-btns"> <glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="210px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData">
<el-button :size="size" @click="handleReset">重置</el-button> <span slot="footer" class="footer-btns">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" @click="handleExport">导出</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
</span> <el-button :size="size" @click="handleExport">导出</el-button>
</glsx-combi-form> </span>
</div> </glsx-combi-form>
<!-- 表格区域 开始 -->
<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> </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="提示"> <el-dialog :visible.sync="isTipVisible" width="400px" class="tips-dialog" top="30%" title="提示">
<div class="f-size"> <div class="f-size">
<i v-show="editNotify.code == '0'" class="el-icon-success"></i> <i v-show="editNotify.code == '0'" class="el-icon-success"></i>
...@@ -46,6 +51,7 @@ ...@@ -46,6 +51,7 @@
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import glsxCombiForm from '@/components/glsx-combi-form' import glsxCombiForm from '@/components/glsx-combi-form'
import utils from '../../util/util' import utils from '../../util/util'
import introduct from './introduct.vue'
export default { export default {
name: 'financeIndex', name: 'financeIndex',
data() { data() {
...@@ -466,15 +472,20 @@ export default { ...@@ -466,15 +472,20 @@ export default {
confName: '已审核' confName: '已审核'
} }
] ]
} },
showPage:0
} }
}, },
components: { components: {
glsxCombiForm glsxCombiForm,
introduct
}, },
mounted() { mounted() {
if(this.showPage==2){
return
}
this.$apis.ghBeforeSale.getProListApi({}).then(res => { this.$apis.ghBeforeSale.getProListApi({}).then(res => {
this.baseData.goodsStatusList = res this.baseData.goodsStatusList = res
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
...@@ -488,6 +499,14 @@ export default { ...@@ -488,6 +499,14 @@ export default {
} }
}) })
}, },
created(){
const openStatus = localStorage.getItem('preSetStatus')
if (openStatus == 2) {
this.showPage = 2
return
}
this.showPage = 1
},
methods: { methods: {
getMerchantList(merchantId, accountLevel, attrName, listName) { getMerchantList(merchantId, accountLevel, attrName, listName) {
...@@ -618,7 +637,7 @@ export default { ...@@ -618,7 +637,7 @@ export default {
handleAudit(row) { handleAudit(row) {
var txt = row.auditStatus ? '撤销' : '审核通过' var txt = row.auditStatus ? '撤销' : '审核通过'
// this.isTipVisible = !this.isTipVisible // this.isTipVisible = !this.isTipVisible
this.secondConfirm(txt, '是否确认'+ txt +'?', 'beforeSale', 'aduitOrderApi', { contractNo: row.contractNo, auditStatus: row.auditStatus ? 0 : 1 }) this.secondConfirm(txt, '是否确认'+ txt +'?', 'ghBeforeSale', 'aduitOrderApi', { contractNo: row.contractNo, auditStatus: row.auditStatus ? 0 : 1 })
}, },
// 导出 // 导出
...@@ -790,4 +809,7 @@ export default { ...@@ -790,4 +809,7 @@ export default {
} }
} }
} }
.noPaddngTop{
padding-top: 0;
}
</style> </style>
<!-- 店面服务设置 --> <!-- 店面服务设置 -->
<template> <template>
<div class="before-sale edit-equity mall-server"> <div class="before-sale edit-equity mall-server">
<div class="container edit-container mall-server-box"> <template v-if="showPage==1">
<p class="edit-title">{{ title }}</p> <div class="container edit-container mall-server-box">
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <p class="edit-title">{{ title }}</p>
<glsx-combi-form ref="editFormRefBrand" labelWidth="144px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar"> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<template slot="vehicleBrandId"> <glsx-combi-form ref="editFormRefBrand" labelWidth="144px" defaultWidth="215px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:320px;" clearable> <template slot="vehicleBrandId">
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:320px;" clearable>
</el-select> <el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</template> </el-select>
<template slot="vehicleSubBrandId"> </template>
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:320px;" clearable> <template slot="vehicleSubBrandId">
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" /> <el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:320px;" clearable>
</el-select> <el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</template> </el-select>
</glsx-combi-form> </template>
<div style="margin-left: 140px"> </glsx-combi-form>
<p>针对包含“车主生活权益服务”的服务套餐,提供通过扫描小程序码进行领取“车主生活权益服务”。</p> <div style="margin-left: 140px">
<img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" /> <p>针对包含“车主生活权益服务”的服务套餐,提供通过扫描小程序码进行领取“车主生活权益服务”。</p>
<img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" />
</div>
</div> </div>
</div> <!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> -->
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> --> <div class="footer">
<div class="footer"> <el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button> </div>
</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> </div>
</template> </template>
...@@ -75,7 +86,9 @@ export default { ...@@ -75,7 +86,9 @@ export default {
baseData: { baseData: {
carBrandOptions: [], carBrandOptions: [],
carChildOptions: [] carChildOptions: []
} },
showPage:0,
nodataHeight: 0,
} }
}, },
...@@ -84,11 +97,22 @@ export default { ...@@ -84,11 +97,22 @@ export default {
}, },
created() { 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.getAllVehicleBrand()
this.getCarChildList() this.getCarChildList()
}, },
mounted() { mounted() {
if(this.showPage==2){
return
}
this.getHotline() this.getHotline()
// this.getDefaultCarbrand() // this.getDefaultCarbrand()
}, },
...@@ -151,7 +175,7 @@ export default { ...@@ -151,7 +175,7 @@ export default {
} }
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
.before-sale .container { .before-sale .container {
padding: 0 !important; padding: 0 !important;
background: #ffffff; background: #ffffff;
...@@ -246,4 +270,29 @@ export default { ...@@ -246,4 +270,29 @@ export default {
.mall-server-box{ .mall-server-box{
height: 100%; 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> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!