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="add-benefit"> <template v-if="showPage==2">
<!-- <el-button fn="新增权益" :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button> --> <introduct></introduct>
<GLButton :size="size" fn="新增权益" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增权益</GLButton> </template>
<div class="top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div> <template v-if="showPage==1">
</div> <div class="add-benefit">
<div class="container"> <!-- <el-button fn="新增权益" :size="size" type="primary" class="el-icon-plus" @click="handleEdit(1)">新增权益</el-button> -->
<div class="number"> <GLButton :size="size" fn="新增权益" icon="el-icon-plus" type="primary" @click="handleEdit(1)">新增权益</GLButton>
<glsx-combi-form ref="showSearch" labelWidth="100px" defaultWidth="210px" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"> <div class="top-tips"><span class="el-icon-warning"></span>请注意:订单列表还有{{countNoData}}单未上传客户凭证等资料,若发生事故无法获得补偿,请尽快在列表操作-上传资料中完善。</div>
<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> </div>
<div class="container">
<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"> <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"> <div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="[2, 4, 5].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton> <GLButton v-if="[2, 4, 5,7,8,9,10,11].includes(scope.scope.orderStatus)" fn="查看" type="text" @click="handleEdit(5, scope.scope)">查看</GLButton>
<!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> --> <!-- <el-button v-if="[2, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(5, scope.scope)">查看</el-button> -->
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button> <el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" type="text" @click="handlePdf(scope.scope)">打印</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button> <el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" style="position: relative;" type="text" @click="handleUpload(scope.scope)">上传资料<span v-show="scope.scope.dataPerfection == 0" class="circule-tips"></span></el-button>
<!-- <el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> --> <!-- <el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
<!-- <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button> --> <!-- <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button> -->
<GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton> <GLButton v-if="[0].includes(scope.scope.orderStatus)" fn="编辑" type="text" @click="handleEdit(2, scope.scope)">编辑</GLButton>
<GLButton v-if="[2].includes(scope.scope.orderStatus)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton> <GLButton v-if="[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint)" fn="修改" type="text" @click="handleEdit(3, scope.scope)">修改</GLButton>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button> <el-button v-if="[2,8,10,11].includes(scope.scope.orderStatus)" type="text" @click="handleBack(scope.scope)">退单</el-button>
<GLButton v-if="[3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton> <GLButton v-if="[1,3, 4, 5].includes(scope.scope.orderStatus)" fn="重新提单" type="text" @click="handleEdit(4, scope.scope)">重新提单</GLButton>
<!-- <el-button v-if="[3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(4, scope.scope)">重新提单</el-button> --> <el-button v-if="userInfo.admin" type="text" @click="showFailModal(scope.scope)">失败</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div>
<pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog>
<glsx-dialog class="upload-dialog" title="上传资料" :isVisible.sync="isFileVisible" width="710px" :noCancel="noCancel" btnOkLabel="关闭" @confirmDialog="handleUploadFileClose" @closeDialog="handleUploadFileClose">
<div class="upload-wrap" style="height: 284px; overflow-y: scroll;">
<glsx-combi-form labelWidth="300px" :isBlock="isBlock" @handleImgDelete="handleDelImg(arguments)" ref="uploadFormRef" formRef="uploadChildRef" :formRules="uploadRule" :formObj.sync="uploadForm" :formData="uploadFormData">
<span class="upload-slot" slot="uploadSlot" slot-scope="item">
上传
<input class="upload-input" type="file" :id="item.scope.name + 'file'" :ref="item.scope.name+'file'" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
</span>
</glsx-combi-form>
</div>
</glsx-dialog>
<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>
<i v-show="editNotify.code != '0'" class="el-icon-error"></i>
<span>{{editNotify.code == '0' ? '操作成功' : editNotify.message}}</span>
</div>
</el-dialog>
<el-dialog :visible.sync="isSecondVisible" width="400px" class="tips-dialog" top="30%" :title="secondObj.title">
<div class="f-size">
<i class="el-icon-warning"></i>
<span>{{secondObj.txt}}</span>
</div> </div>
<span slot="footer" class="dialog-footer"> <pdf-dialog :isVisible="isPdfVisible" title="合同" :pdfUrl="pdfUrl" @closeDialog="handlePdfClose"></pdf-dialog>
<el-button :size="size" @click="handleSecondCancel">取 消</el-button> <glsx-dialog class="upload-dialog" title="上传资料" :isVisible.sync="isFileVisible" width="750px" :noCancel="noCancel" btnOkLabel="关闭" @confirmDialog="handleUploadFileClose" @closeDialog="handleUploadFileClose">
<el-button :size="size" type="primary" @click="handleSecondConfirm">确 定</el-button> <div class="upload-wrap" style="height: 284px; overflow-y: scroll;">
</span> <glsx-combi-form labelWidth="300px" :isBlock="isBlock" @handleImgDelete="handleDelImg(arguments)" ref="uploadFormRef" formRef="uploadChildRef" :formRules="uploadRule" :formObj.sync="uploadForm" :formData="uploadFormData">
</el-dialog> <span class="upload-slot" slot="uploadSlot" slot-scope="item">
上传
<input class="upload-input" type="file" :id="item.scope.name + 'file'" :ref="item.scope.name+'file'" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
</span>
</glsx-combi-form>
</div>
</glsx-dialog>
<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>
<i v-show="editNotify.code != '0'" class="el-icon-error"></i>
<span>{{editNotify.code == '0' ? '操作成功' : editNotify.message}}</span>
</div>
</el-dialog>
<el-dialog :visible.sync="isSecondVisible" width="400px" class="tips-dialog" top="30%" :title="secondObj.title">
<div class="f-size">
<i class="el-icon-warning"></i>
<span>{{secondObj.txt}}</span>
</div>
<span slot="footer" class="dialog-footer">
<el-button :size="size" @click="handleSecondCancel">取 消</el-button>
<el-button :size="size" type="primary" @click="handleSecondConfirm">确 定</el-button>
</span>
</el-dialog>
<el-dialog :visible.sync="isShowFail" width="400px" class="tips-dialog" title="失败原因">
<div class="dialog_modal">
<span class="dialog_title">失败原因</span>
<el-select v-model="failValue" clearable placeholder="请选择">
<el-option
v-for="item in failList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
<span slot="footer" class="dialog-footer">
<el-button :size="size" @click="handleFailCancel">取 消</el-button>
<el-button :size="size" type="primary" @click="handleFailConfirm">确 定</el-button>
</span>
</el-dialog>
</template>
</div> </div>
</template> </template>
...@@ -73,10 +95,25 @@ import glsxCombiForm from '@/components/glsx-combi-form' ...@@ -73,10 +95,25 @@ import glsxCombiForm from '@/components/glsx-combi-form'
import glsxDialog from '@/components/glsx-dialog' import glsxDialog from '@/components/glsx-dialog'
import pdfDialog from './pdfDialog' import pdfDialog from './pdfDialog'
import utils from '../../util/util' import utils from '../../util/util'
import introduct from "./introduct.vue"
export default { export default {
name: 'equityList', name: 'equityList',
data() { data() {
return { return {
failValue:'',
failList:[{
value: 1,
label: 'ERP出单失败'
},{
value: 2,
label: 'ERP修改失败'
},{
value: 3,
label: 'ERP退单失败'
},],
isShowFail:false,
showPage:0,
openCostPrice:0,//是否展示门店成本
size: 'small', size: 'small',
noCancel: true, noCancel: true,
isBlock: true, isBlock: true,
...@@ -270,203 +307,7 @@ export default { ...@@ -270,203 +307,7 @@ export default {
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: false, tableOption: false,
tableColumns: [ tableColumns: []
{
label: '车主姓名',
prop: 'customerName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '合同号',
prop: 'contractNo',
width: '200px',
formatter: cellValue => {
return [2, 4, 5].includes(cellValue.orderStatus) ? (cellValue.contractNo || '-') : '-'
}
},
{
label: '提单成功时间',
prop: 'successDate',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '新车开票日期',
prop: 'billingDate',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD') : '-'
}
},
{
label: '店面名称',
prop: 'merchantName',
width: '200px',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
},
{
label: '车品牌',
prop: 'vehicleBrandName',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.vehicleBrandName || '-'
}
},
{
label: '车系',
prop: 'vehicleSeriesName',
line: 1,
width: '160px',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
}
},
{
label: '车架',
prop: 'vin',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.vin || '-'
}
},
{
label: '电话',
prop: 'customerPhone',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '产品名称',
prop: 'packageName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.packageName || '-'
}
},
{
label: '实际销售价',
prop: 'actualSalesPrice',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
}
},
{
label: '服务期限',
prop: 'servicePeriod',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-'
}
},
{
label: '生效时间',
prop: 'effectiveDate',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '-'
}
},
{
label: '状态',
prop: 'orderStatus',
width: '100px',
line: 1,
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
}
},
{
label: '审核状态',
prop: 'auditStatus',
width: '100px',
line: 1,
formatter: cellValue => {
var auditStatusTxt = '-'
if([2, 4, 5].includes(cellValue.orderStatus)) {
auditStatusTxt = this.baseData.auditStatusList.map(item => item.confId).includes(cellValue.auditStatus) ? this.baseData.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName : '-'
}
return auditStatusTxt
}
},
{
label: '审核人',
prop: 'auditBy',
width: '140px',
line: 1,
formatter: cellValue => {
return cellValue.auditBy || '-'
}
},
{
label: '门店编码',
prop: 'sap',
line: 1,
formatter: cellValue => {
return cellValue.sap || '-'
}
},
{
label: '实际销售人员',
prop: 'actualSalesPerson',
width: '160',
line: 1,
formatter: cellValue => {
return cellValue.actualSalesPerson || '-'
}
},
{
label: '大区',
prop: 'provinceMerchantName',
width: '200',
formatter: cellValue => {
return cellValue.provinceMerchantName || '-'
}
},
{
label: '片区',
prop: 'cityMerchantName',
width: '200',
formatter: cellValue => {
return cellValue.cityMerchantName || '-'
}
},
{
label: '操作人',
prop: 'updatedBy',
width: '140px',
line: 1,
formatter: cellValue => {
return cellValue.updatedBy || '-'
}
},
{
label: '操作',
prop: '',
width: '200px',
fixed: 'right',
addHtml: 'table-btns'
}
]
}, },
sizeList: [5, 10, 20, 30, 40], sizeList: [5, 10, 20, 30, 40],
pageConf: { pageSize: 'pageCount', pageNum: 'pageSize', totalCount: 'total' }, pageConf: { pageSize: 'pageCount', pageNum: 'pageSize', totalCount: 'total' },
...@@ -483,6 +324,10 @@ export default { ...@@ -483,6 +324,10 @@ export default {
confName: '待提单' confName: '待提单'
}, },
{ {
confId: 1,
confName: 'ERP出单失败'
},
{
confId: 2, confId: 2,
confName: '提单成功' confName: '提单成功'
}, },
...@@ -497,7 +342,27 @@ export default { ...@@ -497,7 +342,27 @@ export default {
{ {
confId: 5, confId: 5,
confName: '已过期' confName: '已过期'
} },
{
confId: 7,
confName: '退单审核中'
},
{
confId: 8,
confName: 'ERP退单失败'
},
{
confId: 9,
confName: 'ERP修改审核中'
},
{
confId: 10,
confName: '修改成功'
},
{
confId: 11,
confName: 'ERP修改失败'
},
], ],
dataPerfectionList: [ dataPerfectionList: [
{ {
...@@ -519,42 +384,74 @@ export default { ...@@ -519,42 +384,74 @@ export default {
confName: '已审核' confName: '已审核'
} }
] ]
} },
isAdmin:false
} }
}, },
components: { components: {
glsxCombiForm, glsxCombiForm,
glsxDialog, glsxDialog,
pdfDialog pdfDialog,
introduct
},
created(){
this.isOpenSettin()
}, },
mounted() { mounted() {
this.editNotify = this.$route.params
if(this.isFirst && this.editNotify.hasOwnProperty('code')) { // this.editNotify = this.$route.params
this.isFirst = false // if(this.isFirst && this.editNotify.hasOwnProperty('code')) {
this.isTipVisible = true // this.isFirst = false
clearTimeout(this.timer) // this.isTipVisible = true
this.timer = setTimeout(() => { // clearTimeout(this.timer)
this.isTipVisible = false // this.timer = setTimeout(() => {
}, this.editNotify.code == '0' ? 1500 : 3000) // this.isTipVisible = false
} // }, this.editNotify.code == '0' ? 1500 : 3000)
this.$apis.ghBeforeSale.getProListApi({}).then(res => { // }
this.baseData.goodsStatusList = res // this.$apis.ghBeforeSale.getProListApi({}).then(res => {
this.getOptionsList('searchFormData') // this.baseData.goodsStatusList = res
}) // this.getOptionsList('searchFormData')
this.getCountNoData() // })
this.$apis.ghBeforeSale.getUserInfoApi({}).then(res => { // this.getCountNoData()
this.userInfo = res // this.$apis.ghBeforeSale.getUserInfoApi({}).then(res => {
if(res.merchantAccountLevel != 4) { // this.userInfo = res
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1]) // if(res.merchantAccountLevel != 4) {
this.searchFormData[idx].isHide = false // var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName) // this.searchFormData[idx].isHide = false
} // this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}) // }
// })
}, },
methods: { methods: {
// 根据是否开通配置来是否请求数据
controlHttp(){
if(this.showPage==2){
return
}
this.editNotify = this.$route.params
if(this.isFirst && this.editNotify.hasOwnProperty('code')) {
this.isFirst = false
this.isTipVisible = true
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.isTipVisible = false
}, this.editNotify.code == '0' ? 1500 : 3000)
}
this.$apis.ghBeforeSale.getProListApi({}).then(res => {
this.baseData.goodsStatusList = res
this.getOptionsList('searchFormData')
})
this.getCountNoData()
this.$apis.ghBeforeSale.getUserInfoApi({}).then(res => {
this.userInfo = res
if(res.merchantAccountLevel != 4) {
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData[idx].isHide = false
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
}
})
},
handleUploadChange(e, item){ handleUploadChange(e, item){
this.$refs.uploadFormRef.handleUploadChange(e, item.scope) this.$refs.uploadFormRef.handleUploadChange(e, item.scope)
}, },
...@@ -680,7 +577,7 @@ export default { ...@@ -680,7 +577,7 @@ export default {
}, },
handleSecondConfirm() { handleSecondConfirm() {
this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => { this.$apis.ghBeforeSale[this.secondObj.apiName](this.secondObj.apiParams).then(res => {
// this.handleSecondCancel() // this.handleSecondCancel()
// this.isTipVisible = true // this.isTipVisible = true
this.$message({ this.$message({
...@@ -732,21 +629,42 @@ export default { ...@@ -732,21 +629,42 @@ export default {
// 打印 // 打印
handlePdf(row) { handlePdf(row) {
if (!row.auditStatus) { if (!row.auditStatus) {
const h = this.$createElement // const h = this.$createElement
this.isTipVisible = true // this.isTipVisible = true
this.editNotify = { // this.editNotify = {
code: '-1', // code: '-1',
message: '财务未审核,合同无法打印' // message: '财务未审核,合同无法打印'
} // }
clearTimeout(this.timer) // clearTimeout(this.timer)
this.timer = setTimeout(() => { // this.timer = setTimeout(() => {
this.isTipVisible = false // this.isTipVisible = false
}, this.editNotify.code == '0' ? 1500 : 3000) // }, this.editNotify.code == '0' ? 1500 : 3000)
// return true
this.$confirm('财务未审核,合同无法打印', {
confirmButtonText: '确定',
showCancelButton:false
})
return true return true
} }
this.handlePdfClose() const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.ghBeforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => { this.$apis.ghBeforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => {
this.pdfUrl = res const {code,data,message} = res
if(code==0){
this.pdfUrl = data
this.handlePdfClose()
this.handleSearch()
}else{
this.$message({
message:message,
type: 'error'
})
}
loading.close();
}) })
}, },
...@@ -783,7 +701,7 @@ export default { ...@@ -783,7 +701,7 @@ export default {
name: item.attachmentCode, name: item.attachmentCode,
type: 'upload', type: 'upload',
limitSize: 20, limitSize: 20,
maxPhotoNum: 9, maxPhotoNum: 4,
suffixSlot:'uploadSlot', suffixSlot:'uploadSlot',
handleUpload: (e, file, targetItem) => { handleUpload: (e, file, targetItem) => {
const imgFile = e.target.result const imgFile = e.target.result
...@@ -809,6 +727,9 @@ export default { ...@@ -809,6 +727,9 @@ export default {
}, },
handleUploadFileClose() { handleUploadFileClose() {
this.isFileVisible = !this.isFileVisible this.isFileVisible = !this.isFileVisible
if(!this.isFileVisible){
this.handleSearch()
}
}, },
handleUpload(row) { handleUpload(row) {
this.$apis.ghBeforeSale.getOrderAttrApi({ packageCode: row.packageCode }).then(res => { this.$apis.ghBeforeSale.getOrderAttrApi({ packageCode: row.packageCode }).then(res => {
...@@ -836,7 +757,7 @@ export default { ...@@ -836,7 +757,7 @@ export default {
}) })
return true return true
} }
this.secondConfirm('退单', '是否确认退单?', 'beforeSale', 'backOrderApi', { contractNo: row.contractNo, merchantId: row.merchantId }) this.secondConfirm('退单', '是否确认退单?', 'ghBeforeSale', 'backOrderApi', { contractNo: row.contractNo, merchantId: row.merchantId })
}, },
// 导出 // 导出
...@@ -914,8 +835,520 @@ export default { ...@@ -914,8 +835,520 @@ export default {
break; break;
} }
return title return title
} },
} // 判断是否开通
isOpenSettin() {
localStorage.removeItem('preSetStatus')
const { merchantId } = this.$globalState.session
this.$apis.ghBeforeSale.judgeSetting({ merchantId,channel:2 }).then(res => {
// data != null 且data.openFlag == 1 为开通,其他的都是未开通
const { code, data } = res
if (code == 0 && data != null && data.openFlag == 1) {
this.tableColData(data.openCostPrice)
this.showPage = 1
} else {
this.showPage = 2
}
this.controlHttp(this.showPage)
localStorage.setItem('preSetStatus', this.showPage)
})
},
// 表格列的数据
tableColData(status){
const tableColumns = [
{
label: '车主姓名',
prop: 'customerName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '合同号',
prop: 'contractNo',
width: '200px',
formatter: cellValue => {
return [2, 4, 5,7,8,9,10,11].includes(cellValue.orderStatus) ? (cellValue.contractNo || '-') : '-'
}
},
{
label: '提单成功时间',
prop: 'successDate',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '新车开票日期',
prop: 'billingDate',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD') : '-'
}
},
{
label: '店面名称',
prop: 'merchantName',
width: '200px',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
},
{
label: '车品牌',
prop: 'vehicleBrandName',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.vehicleBrandName || '-'
}
},
{
label: '车系',
prop: 'vehicleSeriesName',
line: 1,
width: '160px',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
}
},
{
label: '车架',
prop: 'vin',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.vin || '-'
}
},
{
label: '电话',
prop: 'customerPhone',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '产品名称',
prop: 'packageName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.packageName || '-'
}
},
{
label: '实际销售价',
prop: 'actualSalesPrice',
width: '160px',
formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
}
},
{
label: '服务期限',
prop: 'servicePeriod',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-'
}
},
{
label: '生效时间',
prop: 'effectiveDate',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '-'
}
},
{
label: '状态',
prop: 'orderStatus',
width: '120px',
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
}
},
{
label: '状态描述',
prop: 'erpErrorMsg',
width: '300px',
formatter: cellValue => {
return cellValue.erpErrorMsg ? cellValue.erpErrorMsg: '-'
}
},
{
label: '审核状态',
prop: 'auditStatus',
width: '100px',
line: 1,
formatter: cellValue => {
var auditStatusTxt = '-'
if([2, 4, 5,7,8,9,10,11].includes(cellValue.orderStatus)) {
auditStatusTxt = this.baseData.auditStatusList.map(item => item.confId).includes(cellValue.auditStatus) ? this.baseData.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName : '-'
}
return auditStatusTxt
}
},
{
label: '审核日期',
prop: 'auditDate',
width: '200px',
formatter: cellValue => {
return cellValue.auditDate ? dayjs(cellValue.auditDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '审核人',
prop: 'auditBy',
width: '140px',
line: 1,
formatter: cellValue => {
return cellValue.auditBy || '-'
}
},
{
label: '首续保',
prop: 'insuranceType',
width: '110px',
formatter: cellValue => {
return cellValue.insuranceType=='i'?'无忧卡首保':'无忧卡续保'
}
},
{
label: '价格区间',
prop: 'pricePeriod',
width: '160px',
formatter: cellValue => {
return cellValue.pricePeriod ? cellValue.pricePeriod : '-'
}
},
{
label: '门店编码',
prop: 'sap',
line: 1,
formatter: cellValue => {
return cellValue.sap || '-'
}
},
{
label: '实际销售人员',
prop: 'actualSalesPerson',
width: '160',
line: 1,
formatter: cellValue => {
return cellValue.actualSalesPerson || '-'
}
},
{
label: '大区',
prop: 'provinceMerchantName',
width: '200',
formatter: cellValue => {
return cellValue.provinceMerchantName || '-'
}
},
{
label: '片区',
prop: 'cityMerchantName',
width: '200',
formatter: cellValue => {
return cellValue.cityMerchantName || '-'
}
},
{
label: '操作人',
prop: 'updatedBy',
width: '140px',
line: 1,
formatter: cellValue => {
return cellValue.updatedBy || '-'
}
},
{
label: '操作',
prop: '',
width: '200px',
fixed: 'right',
addHtml: 'table-btns'
}
]
const tableColumnsCost = [
{
label: '车主姓名',
prop: 'customerName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '合同号',
prop: 'contractNo',
width: '200px',
formatter: cellValue => {
return [2, 4, 5,7,8,9,10,11].includes(cellValue.orderStatus) ? (cellValue.contractNo || '-') : '-'
}
},
{
label: '提单成功时间',
prop: 'successDate',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '新车开票日期',
prop: 'billingDate',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD') : '-'
}
},
{
label: '店面名称',
prop: 'merchantName',
width: '200px',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
},
{
label: '车品牌',
prop: 'vehicleBrandName',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.vehicleBrandName || '-'
}
},
{
label: '车系',
prop: 'vehicleSeriesName',
line: 1,
width: '160px',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
}
},
{
label: '车架',
prop: 'vin',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.vin || '-'
}
},
{
label: '电话',
prop: 'customerPhone',
width: '160px',
line: 1,
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '产品名称',
prop: 'packageName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.packageName || '-'
}
},
{
label: '实际销售价',
prop: 'actualSalesPrice',
width: '160px',
formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
}
},
{
label: '门店成本',
prop: 'costPrice',
width: '160px',
formatter: cellValue => {
return cellValue.costPrice ? (cellValue.costPrice / 100).toFixed(2) : '-'
}
},
{
label: '服务期限',
prop: 'servicePeriod',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-'
}
},
{
label: '生效时间',
prop: 'effectiveDate',
width: '200px',
line: 1,
formatter: cellValue => {
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '-'
}
},
{
label: '状态',
prop: 'orderStatus',
width: '120px',
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
}
},
{
label: '状态描述',
prop: 'erpErrorMsg',
width: '200px',
formatter: cellValue => {
return cellValue.erpErrorMsg ? cellValue.erpErrorMsg: '-'
}
},
{
label: '审核状态',
prop: 'auditStatus',
width: '100px',
line: 1,
formatter: cellValue => {
var auditStatusTxt = '-'
if([2, 4, 5,7,8,9,10,11].includes(cellValue.orderStatus)) {
auditStatusTxt = this.baseData.auditStatusList.map(item => item.confId).includes(cellValue.auditStatus) ? this.baseData.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName : '-'
}
return auditStatusTxt
}
},
{
label: '审核日期',
prop: 'auditDate',
width: '200px',
formatter: cellValue => {
return cellValue.auditDate ? dayjs(cellValue.auditDate).format('YYYY-MM-DD HH:mm:ss') : '-'
}
},
{
label: '审核人',
prop: 'auditBy',
width: '140px',
line: 1,
formatter: cellValue => {
return cellValue.auditBy || '-'
}
},
{
label: '首续保',
prop: 'insuranceType',
width: '110px',
formatter: cellValue => {
return cellValue.insuranceType=='i'?'无忧卡首保':'无忧卡续保'
}
},
{
label: '价格区间',
prop: 'pricePeriod',
width: '160px',
formatter: cellValue => {
return cellValue.pricePeriod ? cellValue.pricePeriod : '-'
}
},
{
label: '门店编码',
prop: 'sap',
line: 1,
formatter: cellValue => {
return cellValue.sap || '-'
}
},
{
label: '实际销售人员',
prop: 'actualSalesPerson',
width: '160',
line: 1,
formatter: cellValue => {
return cellValue.actualSalesPerson || '-'
}
},
{
label: '大区',
prop: 'provinceMerchantName',
width: '200',
formatter: cellValue => {
return cellValue.provinceMerchantName || '-'
}
},
{
label: '片区',
prop: 'cityMerchantName',
width: '200',
formatter: cellValue => {
return cellValue.cityMerchantName || '-'
}
},
{
label: '操作人',
prop: 'updatedBy',
width: '140px',
line: 1,
formatter: cellValue => {
return cellValue.updatedBy || '-'
}
},
{
label: '操作',
prop: '',
width: '200px',
fixed: 'right',
addHtml: 'table-btns'
}
]
this.tableParams = {
listName: 'list',
tableOption: false,
tableColumns: status==1?tableColumnsCost:tableColumns
}
},
// 展示失败弹框选择
showFailModal(row){
this.currentContractNo = row.contractNo
this.isShowFail = true
},
handleFailConfirm(){
if(!this.failValue){
this.$message({
message:'请选择失败原因',
type: 'error'
})
return
}
let para = {
contractNo:this.currentContractNo,
businessType:this.failValue
}
this.$apis.ghBeforeSale.failHttpByAdmin(para).then(res => {
this.isShowFail = false
this.handleSearch()
})
},
handleFailCancel(){
this.isShowFail = false
}
},
} }
</script> </script>
...@@ -1060,7 +1493,7 @@ export default { ...@@ -1060,7 +1493,7 @@ export default {
display: none; display: none;
} }
&:last-child{ &:last-child{
width: 250px; width: 330px;
.img-btns, img{ .img-btns, img{
width: 64px; width: 64px;
height: 64px; height: 64px;
...@@ -1092,5 +1525,13 @@ export default { ...@@ -1092,5 +1525,13 @@ export default {
} }
} }
} }
// .dialog_modal{
// height: 150px;
// }
.dialog_title{
margin-right:15px;
}
.noPaddngTop{
padding-top: 0;
}
</style> </style>
<!-- 财务 - 权益订单列表 --> <!-- 财务 - 权益订单列表 -->
<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>
<div class="introduct_container">
<div class="top_play_wrap flex_scb">
<div class="text_wrap">
<span class="maxTitle">售前权益服务</span>
<span class="maxTitle">一套可变现的权益服务系统</span>
<span class="midTitle">帮您实现客户线上化闭环</span>
<span>车生活权益促活跃,养车权益促返厂,赚钱锁客两不误</span>
</div>
<div class="bg_wrap flex_cc">
<img class="max_icon" src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_intro.png" />
<img @click="videoShow = true" class="play_icon" src="../../assets/play_icon.png" />
</div>
</div>
<div class="mid_wrapper">
<div class="content_one flex_sc">
<div class="title left">
<span>您提供的</span>
<i class="el-icon-caret-right"></i>
</div>
<div class="title right">
<span>您将获得的</span>
<div class="icon_point"></div>
</div>
</div>
<div class="content_two flex_scb">
<template v-for="(item, index) in localList">
<div :key="index" class="box_item_wrap flex_cc">
<img :src="item.icon" />
<div class="box_title">{{ item.title }}</div>
</div>
</template>
</div>
<div class="label_title">无忧案例</div>
<div class="content_three">
<template v-for="(item, index) in localList2">
<div :key="index" class="box_new_item_wrapper" :class="[{ noborder: index == 1 }]">
<div class="left_wrap">
<img class="image_wrap" :src="item.icon" />
<div class="new_title">{{ item.title }}</div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc1 }}</div>
</div>
<div style="height: 15px"></div>
<div class="con_wrap">
<div class="point flex_cc">
<div class="icon_po"></div>
</div>
<div class="point_content">{{ item.desc2 }}</div>
</div>
</div>
<div class="right_wrap">
<img :src="item.img" />
</div>
</div>
</template>
</div>
</div>
<qrCode :codeUrl="code" :phone="phone"></qrCode>
<el-dialog class="video-dialog" :visible.sync="videoShow" width="50%" :before-close="handleClose">
<div slot="title" style="height: 25px"></div>
<video v-if="videoShow" width="100%" height="100%" autoplay controls src="https://img02.glsx.com.cn/scrm/video/beforeSale.mp4"></video>
</el-dialog>
</div>
</template>
<script>
import qrCode from '../../components/qr-code/index.vue'
export default {
components: {
qrCode
},
data() {
return {
videoShow: false,
code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangdy.png',
phone:'134 8079 2980',
localList: [
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_1.png',
title: '车生活权益、养车权益、自店权益'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_2.png',
title: '客户线上化、赚钱锁客促返厂'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_3.png',
title: '权益提单一键配置续费策略、提升门店权益续费增营收'
}
],
localList2: [
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_4.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case1.png',
title: '碰撞维修无忧案例',
desc1: '2020年12月3日,张先生驾驶日产轩逸经过葫芦岛时与前车发生碰撞,车头几乎全部报废;张先生购车环节选购了“数字化无忧卡尊享版套餐”,里面包含了维修补偿服务。',
desc2: '通过嘀加SCRM平台触发预警推送消息到门店,门店及时联系车主进行救援并送修,为门店带来40000元回厂产值。'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_5.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case2.png',
title: '整车全损无忧案例',
desc1: '2021年1月9日,李女生驾驶奔驰C级途径湖南张家界市出差,当晚留宿在朋友家小区,隔天早饭后想驾车回公司,发现车辆被盗了,报警后一直未找到爱车。李女士购车环节选购了“数字化无忧卡舒享版套餐”,里面包含了车辆置换补偿服务。',
desc2: '李女士发起补偿申请,经核定,根据权益服务合同协议,最终合计补偿李女士365800元。'
},
{
icon: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_icon_6.png',
img: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/before_case3.png',
title: '轮胎置换无忧案例',
desc1: '2021年6月15日,赵先生驾驶本田雅阁在路上正常行驶,右侧前轮胎突然出现问题,因质量问题导致无法正常行驶,只好送4S店换胎。赵先生购车环节选购了4S店推荐的“数字化无忧卡优享版套餐”,里面包含了轮胎更换补偿服务。',
desc2: '赵先生发起补偿申请,经核定,根据权益服务合同协议,补偿赵先生600元费用。'
}
]
}
},
mounted() {
// let [href] = window.location.href.split('/#/')
// let href = window.location.host;
// 从域名判断是不是广汇的
// let gxurl1 = 'http://scrm.cgacar.com'
// let gxurl2 = 'https://scrm.cgacar.com'
// if (href == gxurl1 || href == gxurl2) {
// this.code = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangQiang.png'
// this.phone = '137 6013 7906'
// }
this.code = 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/wangQiang.png'
this.phone = '137 6013 7906'
},
methods: {
handleClose() {
this.videoShow = false
}
}
}
</script>
<style lang="scss" scoped>
.introduct_container {
margin-top: 17px;
}
.top_play_wrap {
height: 360px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
box-sizing: border-box;
padding-right: 50px;
.text_wrap {
box-sizing: border-box;
padding-left: 50px;
display: flex;
flex-direction: column;
justify-content: center;
position: relative;
> span {
font-size: 16px;
font-weight: 400;
color: #666666;
}
.maxTitle {
font-size: 42px;
font-weight: 600;
color: #000000;
line-height: 60px;
}
.midTitle {
font-size: 24px;
font-weight: 600;
color: #000000;
line-height: 33px;
margin: 15px 0;
}
}
.bg_wrap {
width: 480px;
height: 270px;
position: relative;
.max_icon {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 1;
}
.play_icon {
position: relative;
z-index: 2;
cursor: pointer;
}
}
}
.mid_wrapper {
background: #ffffff;
margin-top: 20px;
box-sizing: border-box;
padding: 20px;
.content_one {
box-sizing: border-box;
padding: 20px 0 14px 0;
border-bottom: 1px solid #e8e8e8;
.title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
position: relative;
}
.left {
width: 376px;
> i {
color: #5850ff;
width: 6px;
height: 6px;
position: absolute;
bottom: -11px;
left: -7px;
}
}
.right {
// width: calc(100% - 376px);
.icon_point {
width: 7px;
height: 7px;
background: #5850ff;
border-radius: 50%;
position: absolute;
bottom: -18px;
left: 0px;
}
}
}
.content_two {
margin-top: 15px;
.box_item_wrap {
width: 32%;
height: 80px;
background: #f7f6fd;
box-sizing: border-box;
padding: 19px 20px;
> img {
width: 42px;
height: 42px;
}
.box_title {
width: calc(100% - 82px);
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
line-height: 20px;
margin-left: 10px;
}
}
}
.label_title {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 18px;
margin-top: 40px;
margin-bottom: 10px;
}
.content_three {
.box_new_item_wrapper {
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: 20px 40px;
border: 1px solid #e8e8e8;
.left_wrap {
width: calc(100% - 330px);
height: 100%;
box-sizing: border-box;
// padding-right: 100px;
.image_wrap {
width: 42px;
height: 42px;
}
.new_title {
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
margin: 15px 0;
}
.con_wrap {
display: flex;
.point {
margin-right: 5px;
height: 17px;
width: 5px;
.icon_po {
background: #5850ff;
width: 5px;
height: 5px;
background: #5850ff;
border-radius: 50%;
}
}
.point_content {
width: calc(100% - 111px);
font-size: 12px;
font-weight: 400;
color: #666666;
line-height: 17px;
}
}
}
.right_wrap {
width: 330px;
}
}
.noborder {
border-top: 0;
border-bottom: 0;
}
}
}
::v-deep .video-dialog{
.el-dialog__header{
border-bottom: none;
background-color: #000;
.el-dialog__headerbtn{
top:15px;
font-size: 24px;
}
}
.el-dialog__body{
padding: 0;
display: flex;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<!-- 店面服务设置 --> <!-- 店面服务设置 -->
<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!