Commit 6619bbf2 by 张权

广汇迁移代码

1 parent b03334fd
...@@ -2,13 +2,12 @@ ...@@ -2,13 +2,12 @@
<template> <template>
<div class="before-sale edit-equity edit-order"> <div class="before-sale edit-equity edit-order">
<div style="padding: 17px 0 55px;"> <div style="padding: 17px 0 55px;">
<div class="help-service"> <!-- <div class="help-service">
<img class="service-img" src="./image/code.png" /> <img class="service-img" src="./image/code.png" />
<p>提单及服务咨询</p> <p>提单及服务咨询</p>
<!-- <p>在线客服随时咨询</p> -->
<p class="service-hotline">服务热线</p> <p class="service-hotline">服务热线</p>
<p class="service-phone">18938907441</p> <p class="service-phone">18938907441</p>
</div> </div> -->
<div class="container"> <div class="container">
<p class="edit-title">车辆信息</p> <p class="edit-title">车辆信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefCar" labelWidth="160px" defaultWidth="320px" formRef="editChildRefCar" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(0, 7)" :formRules="editRuleCar"> <glsx-combi-form class="edit-form-container" ref="editFormRefCar" labelWidth="160px" defaultWidth="320px" formRef="editChildRefCar" :formObj.sync="editForm.vehicle" :formData="editFormDataCar.slice(0, 7)" :formRules="editRuleCar">
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
<p class="edit-title">客户信息</p> <p class="edit-title">客户信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefUser" labelWidth="160px" defaultWidth="320px" formRef="editChildRefUser" :formObj="editForm" :formData="editFormDataUser" :formRules="editRuleUser"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRefUser" labelWidth="160px" defaultWidth="320px" formRef="editChildRefUser" :formObj="editForm" :formData="editFormDataUser" :formRules="editRuleUser"></glsx-combi-form>
</div> </div>
<div class="container"> <div class="container select-product">
<p class="edit-title">选择产品</p> <p class="edit-title">选择产品</p>
<!-- <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" formRef="editChildRefPro" :formObj="editForm" :formData="editFormDataPro" :formRules="editRulePro"> --> <!-- <glsx-combi-form class="edit-form-container" ref="editFormRefPro" labelWidth="160px" formRef="editChildRefPro" :formObj="editForm" :formData="editFormDataPro" :formRules="editRulePro"> -->
<glsx-combi-form class="edit-form-container" labelWidth="160px" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro"> <glsx-combi-form class="edit-form-container" labelWidth="160px" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro">
...@@ -85,12 +84,14 @@ ...@@ -85,12 +84,14 @@
</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 operate-btn">
<el-button v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button> <el-button v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button>
<el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft">草稿</el-button> <el-button v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft">草稿</el-button>
<el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}</el-button> <el-button v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}</el-button>
<el-button type="default" @click="handleCancel">取消</el-button> <el-button type="default" @click="handleCancel">取消</el-button>
</div> </div>
<qrCode :codeUrl="qrcodUrl" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode>
</div> </div>
</template> </template>
...@@ -98,10 +99,12 @@ ...@@ -98,10 +99,12 @@
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import { limitPrice } from '@/common/constant' import { limitPrice } from '@/common/constant'
import glsxCombiForm from '@/components/glsx-combi-form' import glsxCombiForm from '@/components/glsx-combi-form'
import qrCode from '../../components/qr-code/index.vue'
export default { export default {
name: 'editEquity', name: 'editEquity',
data() { data() {
return { return {
qrcodUrl: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/preSale_qrCode.png' + '?time=' + new Date(),
size: 'small', size: 'small',
submit: false, submit: false,
isBlock: true, isBlock: true,
...@@ -488,7 +491,8 @@ export default { ...@@ -488,7 +491,8 @@ export default {
}, },
components: { components: {
glsxCombiForm glsxCombiForm,
qrCode
}, },
created() { created() {
...@@ -502,6 +506,8 @@ export default { ...@@ -502,6 +506,8 @@ export default {
// this.routeInfo = this.$route.params // this.routeInfo = this.$route.params
const urlParam = this.$route.params const urlParam = this.$route.params
this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id)) this.routeInfo = JSON.parse(decodeURIComponent(urlParam.id))
//为了兼容迁移过来的代码,addOrEdit需要处理为字符串
this.routeInfo.addOrEdit = `${this.routeInfo.addOrEdit}`
this.disabled = this.routeInfo.addOrEdit == '5' this.disabled = this.routeInfo.addOrEdit == '5'
// 提单成功 - 修改 // 提单成功 - 修改
if (this.routeInfo.isSuper != 'true') { if (this.routeInfo.isSuper != 'true') {
...@@ -893,8 +899,8 @@ export default { ...@@ -893,8 +899,8 @@ export default {
}) })
} else { } else {
this.$router.push({ this.$router.push({
// path: '/beforeSale/index', path: '/ghPreSale/index',
name: 'beforeSale', // name: 'beforeSale',
params: res params: res
}) })
} }
...@@ -994,7 +1000,7 @@ export default { ...@@ -994,7 +1000,7 @@ export default {
return true return true
} }
this.$router.push({ this.$router.push({
path: '/beforeSale/index' path: '/ghPreSale/index'
}) })
} }
} }
...@@ -1051,10 +1057,6 @@ export default { ...@@ -1051,10 +1057,6 @@ export default {
margin-bottom: 84px; margin-bottom: 84px;
} }
.before-sale .edit-form-container {
margin-top: 20px;
}
.before-sale .txt-center { .before-sale .txt-center {
text-align: center; text-align: center;
} }
...@@ -1071,6 +1073,16 @@ export default { ...@@ -1071,6 +1073,16 @@ export default {
z-index: 999; z-index: 999;
} }
.operate-btn .el-button{
width: 88px;
margin-left: 20px;
}
.before-sale .edit-form-container {
margin-top: 20px;
}
.before-sale .flex { .before-sale .flex {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -1122,15 +1134,31 @@ export default { ...@@ -1122,15 +1134,31 @@ export default {
display: block; display: block;
margin-bottom: 20px; margin-bottom: 20px;
} }
.before-sale .package-code .package-title {
font-size: 16px; .select-product .edit-form-container {
font-weight: bold; padding: 12px 0 0 72px;
}
.select-product .el-radio__label{
padding-left: 7px;
}
.select-product .package-title{
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #333333;
} }
.before-sale .package-code .package-subtitle {
.select-product .package-subtitle{
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
white-space: normal; white-space: normal;
line-height: 20px; line-height: 20px;
padding-left: 20px; padding-left: 20px;
} }
.before-sale .package-code-box ::v-deep .el-radio__label { .before-sale .package-code-box ::v-deep .el-radio__label {
width: 100% !important; width: 100% !important;
text-overflow: ellipsis; text-overflow: ellipsis;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!