Commit 19c5c979 by 杨北旺

售前权益--更新表格组件

1 parent 1141670c
......@@ -6658,9 +6658,9 @@
}
},
"glsx-components": {
"version": "1.2.7",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.2.7.tgz",
"integrity": "sha512-Rdh9YWIJL7zPMTW83I2o5qNeAO1OU7kunkgU7dUr+PkAzqpL/cMTNlibwMtPthKLmk8gI8I05zWxo/mzNjnZqg==",
"version": "1.2.8",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.2.8.tgz",
"integrity": "sha512-BMQi/RrzPC+qCe9jDuq3KHtGbHufz/FLnq4yvs6km78zlfKIg3XGILuOCGaYowiS/cqpN+fTDdIfWGImMzhtJQ==",
"requires": {
"core-js": "^3.6.5",
"element-ui": "^2.15.6",
......
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.2.7",
"glsx-components": "^1.2.8",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
......
<!-- 编辑权益 -->
<template>
<div class="before-sale edit-equity">
<!-- 车辆信息 -->
<div class="container">
<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>
......@@ -27,10 +28,23 @@
</template>
</glsx-combi-form>
</div>
<!-- 客户信息 -->
<div class="container m-t-10">
<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>
</div>
<!-- 选择产品 -->
<div class="container m-t-10">
<p class="edit-title">选择产品</p>
<glsx-combi-form class="edit-form-container" labelWidth="160px" defaultWidth="320px" :formObj="editForm" :formData="editFormDataPro">
......@@ -68,14 +82,40 @@
</template>
</glsx-combi-form>
</div>
<!-- 其他信息 -->
<div class="container m-t-10">
<p class="edit-title">其他信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefOther" labelWidth="160px" defaultWidth="320px" formRef="editChildRefOther" :formObj="editForm" :formData="editFormDataOther" :formRules="editRuleOther"></glsx-combi-form>
</div>
<!-- 店面信息 -->
<div class="container m-t-10">
<p class="edit-title">店面信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRefShop" labelWidth="160px" defaultWidth="320px" formRef="editChildRefShop" :formObj="editForm" :formData="editFormDataShop" :formRules="editRuleShop"></glsx-combi-form>
</div>
<!-- 底部固定按钮 -->
<div style="height: 78px"></div>
<div
class="fixed_bottom"
......@@ -86,7 +126,13 @@
>
<div class="ma_top"></div>
<div class="flex_cc ma_bot">
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
<el-button size="small" class="custom_black" @click="handleReset">重置</el-button>
<div class="mar-10"></div>
<el-button class="custom_blue" v-show="!['3', '5'].includes(routeInfo.addOrEdit)" size="small" @click="handleDraft">草稿</el-button>
<div class="mar-10"></div>
<el-button v-show="routeInfo.addOrEdit != '5'" size="small" type="primary" @click="handleConfirm">{{ routeInfo.addOrEdit != '3' ? '提单' : '确定' }}</el-button>
<div class="mar-10"></div>
<el-button size="small" type="default" @click="handleCancel">取消</el-button>
</div>
</div>
<!-- <div class="footer" :style="{ width: '100%' }">
......@@ -1263,12 +1309,25 @@ export default {
background: #ffffff;
z-index: 999;
// box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
.ma_top{
.ma_top {
height: 4px;
background: #F4F5FA;
background: #f4f5fa;
}
.ma_bot{
.ma_bot {
height: 78px;
.custom_black {
background: #ffffff;
color: #333333;
border: 1px solid #333333;
}
.custom_blue {
background: #ffffff;
color: #5850ff;
border: 1px solid #5850ff;
}
.mar-10 {
width: 20px;
}
}
}
</style>
......@@ -271,12 +271,14 @@ export default {
{
label: '车主姓名',
prop: 'customerName',
line:1,
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '合同号',
line:1,
prop: 'contractNo',
width: '200px',
formatter: cellValue => {
......@@ -285,6 +287,7 @@ export default {
},
{
label: '提单成功时间',
line:1,
prop: 'successDate',
width: '160px',
formatter: cellValue => {
......@@ -293,6 +296,7 @@ export default {
},
{
label: '购车日期',
line:1,
prop: 'billingDate',
width: '130px',
formatter: cellValue => {
......@@ -301,6 +305,7 @@ export default {
},
{
label: '店面名称',
line:1,
prop: 'merchantName',
width: '160px',
formatter: cellValue => {
......@@ -309,6 +314,7 @@ export default {
},
{
label: '车品牌',
line:1,
prop: 'vehicleBrandName',
width: '160px',
formatter: cellValue => {
......@@ -317,6 +323,8 @@ export default {
},
{
label: '车系',
line:1,
width:"160px",
prop: 'vehicleSeriesName',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
......@@ -324,6 +332,7 @@ export default {
},
{
label: '无忧卡卡号',
line:1,
prop: 'carNo',
width: '200px',
formatter: cellValue => {
......@@ -332,8 +341,8 @@ export default {
},
{
label: '车架号',
line:1,
prop: 'vin',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.vin || '-'
......@@ -341,6 +350,7 @@ export default {
},
{
label: '电话',
line:1,
prop: 'customerPhone',
width: '160px',
formatter: cellValue => {
......@@ -349,6 +359,7 @@ export default {
},
{
label: '产品名称',
line:1,
prop: 'packageName',
formatter: cellValue => {
return cellValue.packageName || '-'
......@@ -356,6 +367,7 @@ export default {
},
{
label: '无忧保障服务费',
line:1,
prop: 'actualSalesPrice',
width: '160px',
formatter: cellValue => {
......@@ -373,6 +385,7 @@ export default {
// },
{
label: '服务期限',
line:1,
prop: 'servicePeriod',
formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-'
......@@ -380,6 +393,7 @@ export default {
},
{
label: '生效时间',
line:1,
prop: 'effectiveDate',
width: '130px',
formatter: cellValue => {
......@@ -388,6 +402,7 @@ export default {
},
{
label: '服务状态',
line:1,
prop: 'orderStatus',
width: '100px',
formatter: cellValue => {
......@@ -435,6 +450,7 @@ export default {
// },
{
label: '省代',
line:1,
prop: 'provinceMerchantName',
formatter: cellValue => {
return cellValue.provinceMerchantName || '-'
......@@ -442,6 +458,7 @@ export default {
},
{
label: '市代',
line:1,
prop: 'cityMerchantName',
formatter: cellValue => {
return cellValue.cityMerchantName || '-'
......@@ -449,6 +466,7 @@ export default {
},
{
label: '操作人',
line:1,
prop: 'updatedBy',
width: '140px',
formatter: cellValue => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!