Commit d25d3e34 by 杨北旺

售前

1 parent 6abaf6c8
...@@ -172,7 +172,7 @@ const getPackageListApi = params => { ...@@ -172,7 +172,7 @@ const getPackageListApi = params => {
} }
const getEquityApi = params => { const getEquityApi = params => {
params.method = `${orderPath}detail` params.method = `scrm.api.equity.service.channel.order.detail`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
...@@ -182,7 +182,7 @@ const getEquityApi = params => { ...@@ -182,7 +182,7 @@ const getEquityApi = params => {
} }
const updateEquityApi = params => { const updateEquityApi = params => {
params.method = `${orderPath}insert.or.update` params.method = `scrm.api.equity.service.channel.order.insert.or.update`
return http({ return http({
url: 'rop-scrm-equity/router', url: 'rop-scrm-equity/router',
method: 'POST', method: 'POST',
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<el-radio-group v-else-if="item.type === 'radio'" v-model="formObj[item.name]" :disabled="item.isDisabled" @change="item.handleRadioChange"> <el-radio-group v-else-if="item.type === 'radio'" v-model="formObj[item.name]" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }}</el-radio> <el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }}</el-radio>
</el-radio-group> </el-radio-group>
<el-date-picker v-else-if="item.type === 'datePicker'" v-model="formObj[item.name]" :type="item.dateType || 'daterange'" :style="{ width: item.width || defaultWidth }" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]"></el-date-picker> <el-date-picker v-else-if="item.type === 'datePicker'" :disabled="item.isDisabled" v-model="formObj[item.name]" :type="item.dateType || 'daterange'" :style="{ width: item.width || defaultWidth }" :clearable="item.isClear || false" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOption[item.pickerOptions]"></el-date-picker>
<template v-else-if="item.type === 'upload'"> <template v-else-if="item.type === 'upload'">
<p class="photo-top-tips">{{ item.topTips }}</p> <p class="photo-top-tips">{{ item.topTips }}</p>
<div v-if="!item.isDisabled" :style="{ width: item.width || defaultWidth }"> <div v-if="!item.isDisabled" :style="{ width: item.width || defaultWidth }">
......
...@@ -22,8 +22,8 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -22,8 +22,8 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
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 = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '0418fc57-bbf6-4e91-b9f4-2c9943ed35f6' } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9' } })
Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '0418fc57-bbf6-4e91-b9f4-2c9943ed35f6' } }) Vue.prototype.$http_brand = new common.Http({ response, request: request_brand, sign, secret, alert: message.error, headers: { token: '48b9a3e5-99bc-4b1d-bc7d-d9d9f0ecfbf9' } })
// 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)
......
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
</div> </div>
<div class="container"> <div class="container">
<div class="find_wrap"> <div class="find_wrap">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :searchSelectObj="searchSelectObj" :formData="searchFormData"></glsx-combi-form>
</glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button> <el-button :size="size" class="resetBtn" @click="handleReset">重置</el-button>
...@@ -188,14 +187,14 @@ export default { ...@@ -188,14 +187,14 @@ export default {
{ {
label: '车主姓名', label: '车主姓名',
prop: 'customerName', prop: 'customerName',
line:1, line: 1,
formatter: cellValue => { formatter: cellValue => {
return cellValue.customerName || '-' return cellValue.customerName || '-'
} }
}, },
{ {
label: '合同号', label: '合同号',
line:1, line: 1,
prop: 'contractNo', prop: 'contractNo',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
...@@ -204,7 +203,7 @@ export default { ...@@ -204,7 +203,7 @@ export default {
}, },
{ {
label: '提单成功时间', label: '提单成功时间',
line:1, line: 1,
prop: 'successDate', prop: 'successDate',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
...@@ -213,7 +212,7 @@ export default { ...@@ -213,7 +212,7 @@ export default {
}, },
{ {
label: '购车日期', label: '购车日期',
line:1, line: 1,
prop: 'billingDate', prop: 'billingDate',
width: '130px', width: '130px',
formatter: cellValue => { formatter: cellValue => {
...@@ -222,7 +221,7 @@ export default { ...@@ -222,7 +221,7 @@ export default {
}, },
{ {
label: '店面名称', label: '店面名称',
line:1, line: 1,
prop: 'merchantName', prop: 'merchantName',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
...@@ -231,7 +230,7 @@ export default { ...@@ -231,7 +230,7 @@ export default {
}, },
{ {
label: '车品牌', label: '车品牌',
line:1, line: 1,
prop: 'vehicleBrandName', prop: 'vehicleBrandName',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
...@@ -240,8 +239,8 @@ export default { ...@@ -240,8 +239,8 @@ export default {
}, },
{ {
label: '车系', label: '车系',
line:1, line: 1,
width:"160px", width: '160px',
prop: 'vehicleSeriesName', prop: 'vehicleSeriesName',
formatter: cellValue => { formatter: cellValue => {
return cellValue.vehicleSeriesName || '-' return cellValue.vehicleSeriesName || '-'
...@@ -249,7 +248,7 @@ export default { ...@@ -249,7 +248,7 @@ export default {
}, },
{ {
label: '无忧卡卡号', label: '无忧卡卡号',
line:1, line: 1,
prop: 'cardSeqNo', prop: 'cardSeqNo',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
...@@ -258,7 +257,7 @@ export default { ...@@ -258,7 +257,7 @@ export default {
}, },
{ {
label: '车架号', label: '车架号',
line:1, line: 1,
prop: 'vin', prop: 'vin',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
...@@ -267,7 +266,7 @@ export default { ...@@ -267,7 +266,7 @@ export default {
}, },
{ {
label: '电话', label: '电话',
line:1, line: 1,
prop: 'customerPhone', prop: 'customerPhone',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
...@@ -276,7 +275,7 @@ export default { ...@@ -276,7 +275,7 @@ export default {
}, },
{ {
label: '产品名称', label: '产品名称',
line:1, line: 1,
prop: 'packageName', prop: 'packageName',
formatter: cellValue => { formatter: cellValue => {
return cellValue.packageName || '-' return cellValue.packageName || '-'
...@@ -284,7 +283,7 @@ export default { ...@@ -284,7 +283,7 @@ export default {
}, },
{ {
label: '无忧保障服务费', label: '无忧保障服务费',
line:1, line: 1,
prop: 'actualSalesPrice', prop: 'actualSalesPrice',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
...@@ -302,7 +301,7 @@ export default { ...@@ -302,7 +301,7 @@ export default {
// }, // },
{ {
label: '服务期限', label: '服务期限',
line:1, line: 1,
prop: 'servicePeriod', prop: 'servicePeriod',
formatter: cellValue => { formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-' return cellValue.servicePeriod ? '1年' : '-'
...@@ -310,7 +309,7 @@ export default { ...@@ -310,7 +309,7 @@ export default {
}, },
{ {
label: '生效时间', label: '生效时间',
line:1, line: 1,
prop: 'effectiveDate', prop: 'effectiveDate',
width: '130px', width: '130px',
formatter: cellValue => { formatter: cellValue => {
...@@ -319,7 +318,7 @@ export default { ...@@ -319,7 +318,7 @@ export default {
}, },
{ {
label: '服务状态', label: '服务状态',
line:1, line: 1,
prop: 'orderStatus', prop: 'orderStatus',
width: '100px', width: '100px',
formatter: cellValue => { formatter: cellValue => {
...@@ -367,7 +366,7 @@ export default { ...@@ -367,7 +366,7 @@ export default {
// }, // },
{ {
label: '省代', label: '省代',
line:1, line: 1,
prop: 'provinceMerchantName', prop: 'provinceMerchantName',
formatter: cellValue => { formatter: cellValue => {
return cellValue.provinceMerchantName || '-' return cellValue.provinceMerchantName || '-'
...@@ -375,7 +374,7 @@ export default { ...@@ -375,7 +374,7 @@ export default {
}, },
{ {
label: '市代', label: '市代',
line:1, line: 1,
prop: 'cityMerchantName', prop: 'cityMerchantName',
formatter: cellValue => { formatter: cellValue => {
return cellValue.cityMerchantName || '-' return cellValue.cityMerchantName || '-'
...@@ -383,7 +382,7 @@ export default { ...@@ -383,7 +382,7 @@ export default {
}, },
{ {
label: '操作人', label: '操作人',
line:1, line: 1,
prop: 'updatedBy', prop: 'updatedBy',
width: '140px', width: '140px',
formatter: cellValue => { formatter: cellValue => {
...@@ -580,13 +579,29 @@ export default { ...@@ -580,13 +579,29 @@ export default {
apiName: apiName, apiName: apiName,
apiParams: apiParams apiParams: apiParams
} }
if (title == '退单') {
this.$confirm('是否确认退单??', '退单', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.handleSecondConfirm()
})
return
}
this.handleSecondCancel() this.handleSecondCancel()
}, },
handleSecondConfirm() { handleSecondConfirm() {
this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => { this.$apis[this.secondObj.apiModule][this.secondObj.apiName](this.secondObj.apiParams).then(res => {
this.handleSecondCancel() // this.handleSecondCancel()
this.isTipVisible = true // this.isTipVisible = true
if (this.secondObj.title == '退单') {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error'
})
}
this.editNotify = res this.editNotify = res
clearTimeout(this.timer) clearTimeout(this.timer)
this.timer = setTimeout( this.timer = setTimeout(
...@@ -809,7 +824,7 @@ export default { ...@@ -809,7 +824,7 @@ export default {
margin: 0 20px; margin: 0 20px;
} }
} }
.table_wrapper{ .table_wrapper {
margin-top: 10px; margin-top: 10px;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
...@@ -860,7 +875,7 @@ export default { ...@@ -860,7 +875,7 @@ export default {
.before-sale .el-table .cell { .before-sale .el-table .cell {
line-height: 16px; line-height: 16px;
} }
.before-sale .table-btns{ .before-sale .table-btns {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, 33.33%); grid-template-columns: repeat(auto-fill, 33.33%);
grid-row-gap: 10px; grid-row-gap: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!