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 => {
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
sign: true,
returnAll:true
})
}
......@@ -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 @@
</span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<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.append" slot="append">{{ item.append }}</span>
</el-input>
......
......@@ -10,13 +10,13 @@ let routes = []
let router = null
let instance = null
Vue.use(GLTable)
// Vue.use(Table)
// Vue.use(TableColumn)
// Vue.use(Table)
// Vue.use(TableColumn)
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
......@@ -26,9 +26,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
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.$setGlobalState = globalState.actions.setGlobalState
// 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: '3c50d4be-7211-45c1-a2c6-9792bbb3c0d9' } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
subscribe({ messenger })
......
......@@ -516,7 +516,6 @@ export default {
watch: {
'editForm.vehicle.invoicePrice'(newValue, oldValue) {
this.editForm.vehicle.invoicePrice = limitPrice(newValue, oldValue, 7, 2, 0, 2000000)
this.packageToPrice()
},
'editForm.actualSalesPrice'(newValue, oldValue) {
this.editForm.actualSalesPrice = limitPrice(newValue, oldValue, 7, 2)
......@@ -976,7 +975,14 @@ export default {
this.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 => {
loading.close();
this.submit = false
if (res.errId == 'A1307') {
this.whereToGo('vin')
......
<!-- 财务 - 权益订单列表 -->
<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) {
......@@ -618,7 +637,7 @@ export default {
handleAudit(row) {
var txt = row.auditStatus ? '撤销' : '审核通过'
// 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 {
}
}
}
.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!