Commit ee72dd4b by 前端

ui修改

1 parent e8ecccd4
......@@ -51,49 +51,50 @@
<div style="padding-left: 73px">
<el-checkbox @change="changeCheckBox($event, item)" :disabled="item.disabled" :label="item.packageName"></el-checkbox>
</div>
<!-- 属性 -->
<template v-for="(ele, indexs) in curSelectPro">
<div v-if="ele == item.packageName" :key="indexs" class="child_wrap">
<div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc">
<div class="attr_label h13_title">
<span v-if="attr.required == 1" style="color: red">*</span>
{{ attr.attributeDesc }}
</div>
<div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
<div class="customer-form">
<!-- 属性 -->
<template v-for="(ele, indexs) in curSelectPro">
<div v-if="ele == item.packageName" :key="indexs" class="child_wrap">
<div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc">
<div class="attr_label h13_title">
<span v-if="attr.required == 1" style="color: red">*</span>
{{ attr.attributeDesc }}
</div>
<div class="arrt_pannel">
<template v-if="attr.attributeType == 'input'">
<el-input class="arrt_pannel" :disabled="disabled || attr.disabled || (attr.attributeName == 'compensation_name' && compensationNameDisable)" @input="getCurChangeInput($event, item, attr, index, attrindex)" v-model="productModal[item.idName][attr.attributeName]" size="small" :maxlength="attr.maxLength" clearable :placeholder="'请输入' + attr.attributeDesc"></el-input>
</template>
<template v-if="attr.attributeType == 'select'">
<el-select class="arrt_pannel" :disabled="disabled || attr.disabled" size="small" @change="getCurChangeSelect($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" clearable :placeholder="'请选择' + attr.attributeDesc">
<el-option v-for="option in attr.optionList" :key="option.value" :label="option.label" :value="option.value"></el-option>
</el-select>
</template>
<template v-if="attr.attributeType == 'datePicker'">
<el-date-picker class="arrt_pannel" :picker-options="attr.attributeName == 'additional_date' ? pickerOptions2 : pickerOptions" :disabled="disabled || attr.disabled" @change="getCurChangeDate($event, item, attr)" v-model="productModal[item.idName][attr.attributeName]" size="small" type="date" :placeholder="'请选择' + attr.attributeDesc"></el-date-picker>
</template>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
<!-- 方案 -->
<div v-if="item.packageName.includes('碰撞') && curSelectPro.includes(item.packageName)" class="table_case_wrap">
<div class="case_title">方案</div>
<div class="case_table">
<div class="table_th flex_sc">
<div class="th_item flex_cc" style="width: 89px">方案</div>
<div class="th_item flex_cc border-lr">车险定损金额</div>
<div class="th_item flex_cc max" style="width: 291px">津贴标准(累计及每次事故赔偿限额)</div>
</div>
<div class="table_tr flex_sc">
<div class="tr_item flex_cc min">方案</div>
<div class="tr_sec_item_wrap">
<div v-for="(caseItem, caseindex) in caseTable" :key="caseindex" class="tr_sec_item flex_sc">
<div class="sec_item flex_sc h9_title" :class="{ noborder: caseindex == caseTable.length - 1 }">{{ caseItem.money_one }}</div>
<div class="sec_item flex_sc max h9_title" :class="{ noborder: caseindex == caseTable.length - 1 }" style="width: 291px">{{ caseItem.money_two }}</div>
<!-- 方案 -->
<div v-if="item.packageName.includes('碰撞') && curSelectPro.includes(item.packageName)" class="table_case_wrap">
<div class="case_title">方案</div>
<div class="case_table">
<div class="table_th flex_sc">
<div class="th_item flex_cc" style="width: 89px">方案</div>
<div class="th_item flex_cc border-lr">车险定损金额</div>
<div class="th_item flex_cc max" style="width: 291px">津贴标准(累计及每次事故赔偿限额)</div>
</div>
<div class="table_tr flex_sc">
<div class="tr_item flex_cc min">方案</div>
<div class="tr_sec_item_wrap">
<div v-for="(caseItem, caseindex) in caseTable" :key="caseindex" class="tr_sec_item flex_sc">
<div class="sec_item flex_sc h9_title" :class="{ noborder: caseindex == caseTable.length - 1 }">{{ caseItem.money_one }}</div>
<div class="sec_item flex_sc max h9_title" :class="{ noborder: caseindex == caseTable.length - 1 }" style="width: 291px">{{ caseItem.money_two }}</div>
</div>
</div>
</div>
</div>
......@@ -111,7 +112,7 @@
<el-radio @change="changeRaido($event, item)" :disabled="item.disabled" :label="item.packageName"></el-radio>
<p class="h20_title product_intro">包括服务项目:{{ item.serviceItems }}</p>
</div>
<div v-if="curSelectCustomPro == item.packageName" :key="indexs" class="child_wrap">
<div v-if="curSelectCustomPro == item.packageName" :key="indexs" class="child_wrap custom-made">
<div class="child_wrap_pannel" v-for="(attr, attrindex) in item.groupAttributeList" :key="attrindex">
<div class="attr_wrapper flex_sc">
<div class="attr_label h13_title">
......@@ -1923,16 +1924,22 @@ export default {
padding: 0 0 32px 0px;
.product_wrapper {
margin-top: 16px;
.customer-form {
background: #f9f9f9;
width: fit-content;
margin-left: 73px;
}
.product_intro {
margin-top: 5px;
margin-left: 24px;
}
.child_wrap {
padding: 16px 0 0 0px;
padding: 20px 0 20px 20px;
display: flex;
flex-wrap: wrap;
flex-direction: column;
.child_wrap_pannel {
position: relative;
// display: block;
.err_message {
position: absolute;
left: 160px;
......@@ -1940,26 +1947,39 @@ export default {
font-size: 12px;
color: #f56c6c;
}
&:last-child {
.attr_wrapper {
margin-bottom: 0;
}
}
}
.attr_wrapper {
margin-bottom: 28px;
margin-bottom: 20px;
margin-right: 30px;
.attr_label {
width: 160px;
width: 154px;
white-space: nowrap;
text-align: right;
box-sizing: border-box;
padding-right: 12px;
}
.arrt_pannel {
width: 320px;
width: 432px;
}
}
}
.custom-made {
background: #f9f9f9;
margin: 10px 0 0 73px;
width: fit-content;
padding-right: 50px;
}
.table_case_wrap {
display: flex;
padding-right: 80px;
padding-bottom: 20px;
.case_title {
width: 160px;
width: 154px;
height: 54px;
white-space: nowrap;
text-align: right;
......
......@@ -12,7 +12,7 @@
</div>
<!-- 表格区域 开始 -->
<div class="table_wrapper">
<el-button :size="size" style="float:right;margin-bottom:10px;" @click="handleExport">导出</el-button>
<el-button plain :size="size" style="float:right;margin-bottom:10px;" @click="handleExport">导出</el-button>
<GLTable ref="equityRef" :pageSizes="sizeList" :paginationattrs="paginationattrs" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<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>
......
......@@ -4,15 +4,15 @@
<template v-if="showPage == 1">
<div class="edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="140px" defaultWidth="320px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="154px" defaultWidth="432px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="154px" defaultWidth="432px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 320px" clearable>
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width: 136px" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 320px" clearable>
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width: 136px" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
......@@ -130,7 +130,6 @@ export default {
{
label: '服务热线',
name: 'hotline',
width: '320px',
type: 'input',
maxlength: 20
}
......@@ -405,6 +404,10 @@ export default {
.edit-container /deep/ .el-form--inline .el-form-item {
margin-right: 10px;
}
/deep/ #vehicleBrandId {
margin-right: 12px !important;
}
/* .before-sale .edit-equity{
height: 100vh;
}
......
......@@ -1283,7 +1283,16 @@ export default {
}
}
#productInfo .sub-el-form {
// width: 686px;
width: fit-content;
margin-left: 73px;
padding: 20px 50px 20px 20px;
background: #f9f9f9;
.glsx-combi-form {
margin-top: 0 !important;
/deep/ .el-form-item:last-child {
margin-bottom: 0;
}
}
.edit-form-container {
// padding: 20px 0 1px 20px;
margin-top: 10px;
......@@ -1341,7 +1350,7 @@ export default {
/* 选择套餐产品 */
.before-sale .package-code {
display: block;
margin-bottom: 20px;
margin-bottom: 16px;
}
/deep/ .select-product {
......
......@@ -1609,7 +1609,7 @@ export default {
.before-sale .top-tips {
box-sizing: border-box;
margin: 10px 0;
margin: 16px 0;
width: 100%;
height: 40px;
display: flex;
......
......@@ -4,15 +4,15 @@
<template v-if="showPage == 1">
<div class="container edit-container mall-server-box">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<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="154px" defaultWidth="432px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
<glsx-combi-form ref="editFormRefBrand" labelWidth="154px" defaultWidth="432px" formRef="editChildRefBrand" :formObj.sync="editForm" :formData="editFormDataCar">
<template slot="vehicleBrandId">
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:320px;" clearable>
<el-select v-model="editForm.vehicleBrandId" placeholder="请选择品牌" filterable @change="handleChangeBrand(editForm.vehicleBrandId)" style="width:136px;" clearable>
<el-option v-for="item in baseData.carBrandOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
<template slot="vehicleSubBrandId">
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:320px;" clearable>
<el-select v-model="editForm.vehicleSubBrandId" placeholder="请选择子品牌" filterable style="width:136px;" clearable>
<el-option v-for="item in baseData.carChildOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
......@@ -134,7 +134,6 @@ export default {
{
label: '服务热线',
name: 'hotline',
width: '320px',
type: 'input',
maxlength: 20
}
......@@ -386,18 +385,13 @@ export default {
.before-sale .container {
padding: 0 !important;
background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px;
height: calc(100vh - 195px);
}
// .before-sale {
// padding-top: 17px;
// }
// .before-sale .edit-container {
// margin-bottom: 84px;
// }
/deep/ #vehicleBrandId {
margin-right: 12px !important;
}
.before-sale .edit-form-container {
margin-top: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!