Commit 31cbbf0c by 前端

UI改版

1 parent 849b03e8
This diff could not be displayed because it is too large.
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.4.7", "glsx-components": "^1.5.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -261,3 +261,9 @@ ...@@ -261,3 +261,9 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.page-btm-btn {
display: flex;
justify-content: center;
margin-top: 16px;
}
<!-- 搜索 --> <!-- 搜索 -->
<template> <template>
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form @submit.native.prevent :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form @submit.native.prevent :ref="formRef" :inline="isInline" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
...@@ -180,6 +180,10 @@ export default { ...@@ -180,6 +180,10 @@ export default {
searchSelectObj: { searchSelectObj: {
type: Object, type: Object,
default: () => {} default: () => {}
},
isInline: {
type: Boolean,
default: true
} }
}, },
......
...@@ -1107,6 +1107,7 @@ export default { ...@@ -1107,6 +1107,7 @@ export default {
label: '实际销售价', label: '实际销售价',
prop: 'actualSalesPrice', prop: 'actualSalesPrice',
width: '160px', width: '160px',
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-' return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
} }
...@@ -1141,6 +1142,7 @@ export default { ...@@ -1141,6 +1142,7 @@ export default {
label: '退单金额', label: '退单金额',
prop: 'rollbackAmount', prop: 'rollbackAmount',
width: '160px', width: '160px',
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.rollbackAmount ? (cellValue.rollbackAmount / 100).toFixed(2) : '-' return cellValue.rollbackAmount ? (cellValue.rollbackAmount / 100).toFixed(2) : '-'
} }
...@@ -1357,6 +1359,7 @@ export default { ...@@ -1357,6 +1359,7 @@ export default {
label: '实际销售价', label: '实际销售价',
prop: 'actualSalesPrice', prop: 'actualSalesPrice',
width: '160px', width: '160px',
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-' return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
} }
...@@ -1373,6 +1376,7 @@ export default { ...@@ -1373,6 +1376,7 @@ export default {
label: '退单金额', label: '退单金额',
prop: 'rollbackAmount', prop: 'rollbackAmount',
width: '160px', width: '160px',
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.rollbackAmount ? (cellValue.rollbackAmount / 100).toFixed(2) : '-' return cellValue.rollbackAmount ? (cellValue.rollbackAmount / 100).toFixed(2) : '-'
} }
...@@ -1381,6 +1385,7 @@ export default { ...@@ -1381,6 +1385,7 @@ export default {
label: '门店成本', label: '门店成本',
prop: 'costPrice', prop: 'costPrice',
width: '160px', width: '160px',
align: 'right',
formatter: cellValue => { formatter: cellValue => {
return cellValue.costPrice ? (cellValue.costPrice / 100).toFixed(2) : '-' return cellValue.costPrice ? (cellValue.costPrice / 100).toFixed(2) : '-'
} }
......
<template> <template>
<div id="writeOff" class="writeOff"> <div id="writeOff" class="writeOff">
<template v-if="!isSavePage"> <template v-if="!isSavePage">
<div class="header">客户信息</div> <div class="box">
<div class="main box"> <div class="header">客户信息</div>
<glsx-combi-form ref="writeOff" :formRules="checkRule" labelWidth="128px" defaultWidth="308px" :formObj="batchListSearch" :formData="writeOffForm"></glsx-combi-form> <div class="main">
<div class="signal-img"> <glsx-combi-form ref="writeOff" :formRules="checkRule" labelWidth="154px" defaultWidth="432px" :formObj="batchListSearch" :formData="writeOffForm"></glsx-combi-form>
<p>核销码示意图</p> <div class="signal-img">
<img :src="url" alt="" /> <p>核销码示意图</p>
<img :src="url" alt="" />
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -14,22 +16,20 @@ ...@@ -14,22 +16,20 @@
<div class="custom box"> <div class="custom box">
<div class="header">报案信息(客户提交)</div> <div class="header">报案信息(客户提交)</div>
<div class="custom-info"> <div class="custom-info">
<span class="code label">核销码:</span> <span class="code">核销码:{{ customObj.writeOffCode }}</span>
<span class="code">{{ customObj.writeOffCode }}</span> <glsx-combi-form ref="customRef" :isInline="false" :formRules="customRule" labelWidth="154px" defaultWidth="432px" :formObj="customObj" :formData="customForm"></glsx-combi-form>
<glsx-combi-form ref="customRef" :formRules="customRule" labelWidth="160px" defaultWidth="300px" :formObj="customObj" :formData="customForm"></glsx-combi-form>
</div> </div>
</div> </div>
<div class="handler box" style="margin-top: 10px"> <div class="handler box" style="margin-top:16px;">
<div class="header">报案信息(店面补充)</div> <div class="header">报案信息(店面补充)</div>
<div class="handler-info"> <div class="handler-info">
<glsx-combi-form ref="handlerRef" :formRules="customRule" labelWidth="160px" defaultWidth="300px" :formObj="customObj" :formData="handlerForm"></glsx-combi-form> <glsx-combi-form ref="handlerRef" :isInline="false" :formRules="customRule" labelWidth="154px" defaultWidth="432px" :formObj="customObj" :formData="handlerForm"></glsx-combi-form>
</div> </div>
</div> </div>
</template> </template>
<div class="my-footer btn-box box"> <div class="page-btm-btn">
<el-button v-if="!isSavePage" size="small" type="primary" @click="handleNextStep">下一步</el-button> <el-button v-if="!isSavePage" type="primary" @click="handleNextStep">下一步</el-button>
<el-button v-else size="small" type="primary" @click="handleSave">提交</el-button> <el-button v-else type="primary" @click="handleSave">提交</el-button>
<el-button type="default" size="small" @click="handleCancel">取消</el-button>
</div> </div>
<qrCode :bottom="320" :codeUrl="serviceImg" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode> <qrCode :bottom="320" :codeUrl="serviceImg" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode>
</div> </div>
...@@ -344,19 +344,19 @@ export default { ...@@ -344,19 +344,19 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.writeOff { .writeOff {
margin-top: 17px; .box {
// height: calc(100vh - 206px); background-color: #fff;
margin-bottom: 64px; }
background-color: #fff;
.header { .header {
height: 60px; height: 58px;
line-height: 60px; line-height: 58px;
padding: 0 20px; padding: 0 20px;
border-bottom: 1px solid #eeeeee; border-bottom: 1px solid #eeeeee;
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
font-size: 14px; font-size: 16px;
color: #333333; color: #333333;
font-weight: 700; font-weight: 600;
box-sizing: border-box;
} }
/deep/ .el-form-item__label { /deep/ .el-form-item__label {
padding: 0; padding: 0;
...@@ -365,25 +365,22 @@ export default { ...@@ -365,25 +365,22 @@ export default {
margin-right: 0; margin-right: 0;
} }
.custom-info { .custom-info {
padding: 30px 0; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
.code { .code {
color: #666; padding: 0 20px;
margin-bottom: 20px;
display: block;
height: 36px;
width: 100%;
background: #f9f9f9;
color: #333;
font-size: 14px; font-size: 14px;
display: inline-block; line-height: 36px;
width: 160px;
height: 32px;
line-height: 32px;
margin-bottom: 10px;
box-sizing: border-box;
}
.label {
text-align: right;
} }
} }
.handler-info { .handler-info {
height: 437px; padding: 30px 20px;
padding: 30px 0;
box-sizing: border-box; box-sizing: border-box;
/deep/ #serviceCodes { /deep/ #serviceCodes {
display: block; display: block;
...@@ -396,6 +393,10 @@ export default { ...@@ -396,6 +393,10 @@ export default {
margin-right: 20px; margin-right: 20px;
margin-left: 0; margin-left: 0;
display: inline-block; display: inline-block;
border: none;
.el-checkbox__label {
font-size: 14px;
}
} }
} }
.main { .main {
...@@ -416,10 +417,5 @@ export default { ...@@ -416,10 +417,5 @@ export default {
} }
} }
} }
// .btn-box {
// display: flex;
// justify-content: center;
// align-items: center;
// }
} }
</style> </style>
<template> <template>
<div class="writeOff"> <div class="writeOff">
<div class="box"> <div class="box">
<div class="header title" style="height: 53px; line-height: 53px"> <div class="header title">
<span style="height: 53px; cursor: pointer; display: flex; align-items: center" @click="back"> 报案信息(客户提交)
<i class="el-icon-arrow-left" style="font-size: 18px"></i>
返回
</span>
</div> </div>
<div class="custom-info"> <div class="custom-info">
<p class="title" style="margin-bottom: 20px">报案信息(客户提交)</p>
<div class="info"> <div class="info">
<span class="item" v-for="(val, key) in customObj" :key="key"> <span class="item" v-for="(val, key) in customObj" :key="key">
<span class="label">{{ val ? val + ':' : '' }}</span> <span class="label">{{ val ? val + ':' : '' }}</span>
...@@ -17,7 +13,7 @@ ...@@ -17,7 +13,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="box" style="margin-top: 10px"> <div class="box" style="margin-top: 16px">
<div class="header title">报案信息(店面补充)</div> <div class="header title">报案信息(店面补充)</div>
<div class="handler-info"> <div class="handler-info">
<span class="item" v-for="(val, key) in handlerObj" :key="key"> <span class="item" v-for="(val, key) in handlerObj" :key="key">
...@@ -67,18 +63,12 @@ export default { ...@@ -67,18 +63,12 @@ export default {
this.info = res.data this.info = res.data
} }
}) })
},
back() {
this.$router.push({
path: '/ghPreSale/writeOff/writeOffList'
})
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.writeOff { .writeOff {
margin-top: 17px;
.box { .box {
background-color: #fff; background-color: #fff;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!