Commit 13dbc771 by 前端

UI修改

1 parent 7d465e41
......@@ -350,17 +350,14 @@ export default {
label: '车主姓名',
prop: 'customerName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.customerName || '-'
}
width: '200px'
},
{
label: '合同号',
prop: 'contractNo',
width: 250,
formatter: cellValue => {
return [2, 4, 5].includes(cellValue.orderStatus) ? cellValue.contractNo || '-' : '-'
return [2, 4, 5].includes(cellValue.orderStatus) ? cellValue.contractNo || '--' : '--'
}
},
{
......@@ -369,7 +366,7 @@ export default {
prop: 'successDate',
width: 200,
formatter: cellValue => {
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-'
return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '--'
}
},
{
......@@ -378,76 +375,56 @@ export default {
prop: 'billingDate',
width: '130px',
formatter: cellValue => {
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD') : '-'
return cellValue.billingDate ? dayjs(cellValue.billingDate).format('YYYY-MM-DD') : '--'
}
},
{
label: '店面名称',
line: 1,
prop: 'merchantName',
width: '160px',
formatter: cellValue => {
return cellValue.merchantName || '-'
}
width: '160px'
},
{
label: '车品牌',
line: 1,
prop: 'vehicleBrandName',
width: '160px',
formatter: cellValue => {
return cellValue.vehicleBrandName || '-'
}
width: '160px'
},
{
label: '车系',
line: 1,
width: '160px',
prop: 'vehicleSeriesName',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
}
prop: 'vehicleSeriesName'
},
{
label: '无忧卡卡号',
line: 1,
prop: 'cardSeqNo',
width: '200px',
formatter: cellValue => {
return cellValue.cardSeqNo || '-'
}
width: '200px'
},
{
label: '车架号',
prop: 'vin',
width: '200px',
formatter: cellValue => {
return cellValue.vin || '-'
}
width: '200px'
},
{
label: '电话',
prop: 'customerPhone',
width: '160px',
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
width: '160px'
},
{
label: '产品名称',
prop: 'packageName',
width: '200px',
formatter: cellValue => {
return cellValue.packageName || '-'
}
width: '200px'
},
{
label: '无忧保障服务费',
line: 1,
align: 'right',
prop: 'actualSalesPrice',
width: '160px',
formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '0'
}
},
// {
......@@ -474,7 +451,7 @@ export default {
width: 130,
prop: 'servicePeriod',
formatter: cellValue => {
return cellValue.servicePeriod ? `${cellValue.servicePeriod}年` : '-'
return cellValue.servicePeriod ? `${cellValue.servicePeriod}年` : '--'
}
},
{
......@@ -483,7 +460,7 @@ export default {
prop: 'effectiveDate',
width: '130px',
formatter: cellValue => {
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '-'
return cellValue.effectiveDate ? dayjs(cellValue.effectiveDate).format('YYYY-MM-DD') : '--'
}
},
{
......@@ -491,7 +468,7 @@ export default {
prop: 'orderStatus',
width: '170px',
formatter: cellValue => {
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '-'
return this.baseData.orderStatusList.map(item => item.confId).includes(cellValue.orderStatus) ? this.baseData.orderStatusList.find(item => item.confId == cellValue.orderStatus).confName : '--'
}
},
// {
......@@ -572,27 +549,18 @@ export default {
{
label: '省代',
width: 150,
prop: 'provinceMerchantName',
formatter: cellValue => {
return cellValue.provinceMerchantName || '-'
}
prop: 'provinceMerchantName'
},
{
label: '市代',
width: 150,
prop: 'cityMerchantName',
formatter: cellValue => {
return cellValue.cityMerchantName || '-'
}
prop: 'cityMerchantName'
},
{
label: '操作人',
line: 1,
prop: 'updatedBy',
width: '140px',
formatter: cellValue => {
return cellValue.updatedBy || '-'
}
width: '140px'
},
{
label: '操作',
......
......@@ -7,8 +7,9 @@
<div class="row-btns" style="margin-top: 20px">
<!-- <el-button size="small" @click="toggleAll">全选</el-button> -->
<!-- <el-checkbox v-model="checkbox" @change="toggleAll" style="margin-left:20px">全选</el-checkbox> -->
<div style="float: right">
<el-button size="small" @click="batchOperation(1)">批量开通</el-button>
<div style="float: right;" class="primary_plain_btn">
<el-button size="small" plain @click="exportTable">导出</el-button>
<el-button size="small" plain @click="batchOperation(1)">批量开通</el-button>
<el-button size="small" @click="batchOperation(2)">批量关闭</el-button>
</div>
</div>
......
......@@ -11,7 +11,7 @@
</GLTable>
</div>
<!-- 详情弹窗 -->
<el-dialog title="修改无忧卡" v-if="detailDialog" :visible.sync="detailDialog" width="712px" :before-close="handleClose" class="detailDialog">
<GLDialog title="修改无忧卡" v-if="detailDialog" :visible.sync="detailDialog" mode="mid" :before-close="handleClose">
<el-form :inline="true" :model="detailDialogForm" :rules="detailDialogRules" ref="detailForm" label-width="120px" class="detailForm">
<div class="form">
<el-row>
......@@ -46,7 +46,7 @@
<el-button size="small" @click="cancelDetailDialog">取 消</el-button>
<el-button size="small" type="primary" @click="submitForm('detailForm')">确 定</el-button>
</span>
</el-dialog>
</GLDialog>
</div>
</template>
......@@ -405,8 +405,8 @@ export default {
PC0007: '整车全损无忧',
PC0008: '碰撞无忧'
}[cellValue.packageCode]
}
// minWidth: '200'
},
width: 220
},
{
label: '使用时间',
......@@ -417,22 +417,20 @@ export default {
} else {
return ''
}
}
},
width: 220
},
{
label: '使用者',
prop: 'useMerchantName'
// minWidth: '200'
},
{
label: '使用年限',
prop: 'servicePeriod'
// minWidth: '200'
},
{
label: '具体价格',
prop: 'actualPrice'
// minWidth: '200'
}
]
}
......@@ -597,13 +595,6 @@ export default {
margin-top: 5px;
margin-bottom: 10px;
}
/deep/ .el-dialog__footer {
padding: 16px 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border-top: 1px solid #e6e6e6;
text-align: center;
}
/deep/ .el-alert {
height: 40px;
background: #e6e9ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!