Commit 31cbbf0c by 前端

UI改版

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