Commit 65712fb9 by cwq0219

全局样式;编辑-未选图片;搜索样式;

1 parent b8ad5763
...@@ -5,7 +5,7 @@ $private-left-side-color:#0947C6; ...@@ -5,7 +5,7 @@ $private-left-side-color:#0947C6;
// $private-menu-active-background-color:#154190; // $private-menu-active-background-color:#154190;
$private-menu-active-background-color:#7EA8FF; $private-menu-active-background-color:#7EA8FF;
$private-item-hover:rgba(#000,.05); $private-item-hover:rgba(#000,.05);
$private-menu-text-color:#7F8FA4; $private-menu-text-color:rgba(#FFFFFF,.5);
$active-i-color:#FFFFFF; $active-i-color:#FFFFFF;
// 主题背景颜色 // 主题背景颜色
......
...@@ -94,7 +94,8 @@ ...@@ -94,7 +94,8 @@
bottom: 0px; bottom: 0px;
left: 0px; left: 0px;
right: 0px; right: 0px;
background-color: #E7EAEC; // background-color: #E7EAEC;
background-color: #F0F2F5;
} }
.d2-theme-container-main-body { .d2-theme-container-main-body {
position: relative; position: relative;
...@@ -245,10 +246,11 @@ ...@@ -245,10 +246,11 @@
// 主体部分分为多页面控制器 和主体 // 主体部分分为多页面控制器 和主体
.d2-theme-container-main-header { .d2-theme-container-main-header {
height: 40px; height: 40px;
margin: 20px 16px; // margin: 20px 16px;
margin-bottom: 20px;
// 多页面控制器 // 多页面控制器
.d2-multiple-page-control-group { .d2-multiple-page-control-group {
padding: 5px 10px 0px; padding: 5px 16px 0px;
.d2-multiple-page-control-content { .d2-multiple-page-control-content {
overflow: auto; overflow: auto;
position: relative; position: relative;
...@@ -257,12 +259,17 @@ ...@@ -257,12 +259,17 @@
.el-tabs__header.is-top { .el-tabs__header.is-top {
margin: 0px; margin: 0px;
} }
.el-tabs__header {
border-bottom: none;
}
.el-tabs__nav-wrap{ .el-tabs__nav-wrap{
margin-bottom: 0;
.el-tabs__nav-scroll{ .el-tabs__nav-scroll{
// padding-left: 20px; // padding-left: 20px;
} }
} }
.el-tabs__nav-wrap.is-scrollable{ .el-tabs__nav-wrap.is-scrollable{
padding-left: 0px;
.el-tabs__nav-scroll{ .el-tabs__nav-scroll{
padding-left: 0; padding-left: 0;
} }
...@@ -270,8 +277,9 @@ ...@@ -270,8 +277,9 @@
.el-tabs__nav { .el-tabs__nav {
overflow: hidden; overflow: hidden;
.el-tabs__item{ .el-tabs__item{
height: 33px; height: 34px;
line-height: 33px; line-height: 34px;
border-bottom: none;
} }
} }
} }
...@@ -316,12 +324,14 @@ ...@@ -316,12 +324,14 @@
.d2-container-full__header { .d2-container-full__header {
// padding: 10px 10px; // padding: 10px 10px;
margin-bottom: 10px; margin-bottom: 10px;
border-radius: 5px;
} }
.d2-container-full__body { .d2-container-full__body {
// flex-grow: 1; // flex-grow: 1;
// height: 100%; // height: 100%;
// padding: 20px 20px; // padding: 20px 20px;
// overflow: auto; // overflow: auto;
border-radius: 5px;
position: relative; position: relative;
.d2-container-content { .d2-container-content {
padding: 20px 40px; padding: 20px 40px;
......
...@@ -48,8 +48,9 @@ ...@@ -48,8 +48,9 @@
/> />
<span <span
v-show="!formData[i.headImg.attr]" v-show="!formData[i.headImg.attr]"
class="commodity-img seat-img" >
></span> <img class="commodity-img" src="./image/no-choice.png"/>
</span>
</span> </span>
<div :style="{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}"> <div :style="{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
<div <div
...@@ -74,7 +75,9 @@ ...@@ -74,7 +75,9 @@
:disabled="item.isDisabled" :disabled="item.isDisabled"
clearable clearable
@input="item.handleInput" @input="item.handleInput"
></el-input> >
<i slot="suffix" class="item-unit">{{item.unit}}</i>
</el-input>
<!-- 选择框 --> <!-- 选择框 -->
<el-select <el-select
v-else-if="item.type === 'select'" v-else-if="item.type === 'select'"
...@@ -453,10 +456,10 @@ ...@@ -453,10 +456,10 @@
</template> </template>
<span v-else>{{item.name ? formData[item.name] : item.value}}</span> <span v-else>{{item.name ? formData[item.name] : item.value}}</span>
</el-form-item> </el-form-item>
<span <!-- <span
v-show="item.unit" v-show="item.unit"
class="item-unit" class="item-unit"
>{{item.unit}}</span> >{{item.unit}}</span> -->
<div <div
v-show="item.tips" v-show="item.tips"
class="item-tips" class="item-tips"
...@@ -949,7 +952,9 @@ export default { ...@@ -949,7 +952,9 @@ export default {
text-align-last: justify; text-align-last: justify;
} */ } */
.d2-form .item-unit { .d2-form .item-unit {
margin-left: 10px; /* margin-left: 10px; */
font-style: inherit;
color: #606266;
} }
.d2-form .item-tips { .d2-form .item-tips {
position: absolute; position: absolute;
......
...@@ -10,7 +10,14 @@ ...@@ -10,7 +10,14 @@
class="relatePro" class="relatePro"
> >
<div class="relateProDialog flex"> <div class="relateProDialog flex">
<img :src="proInfo.thumbUrl" /> <img
v-show="proInfo.thumbUrl"
:src="proInfo.thumbUrl"
/>
<img
v-show="!proInfo.thumbUrl"
src="./image/no-choice.png"
/>
<el-form <el-form
:model="proInfo" :model="proInfo"
:rules="rules" :rules="rules"
...@@ -43,6 +50,7 @@ ...@@ -43,6 +50,7 @@
<el-form-item label="分类"> <el-form-item label="分类">
<el-input <el-input
disabled disabled
placeholder="分类"
:value="proInfo.goodsTypeName" :value="proInfo.goodsTypeName"
class="dis-in-block" class="dis-in-block"
></el-input> ></el-input>
...@@ -54,6 +62,7 @@ ...@@ -54,6 +62,7 @@
<el-form-item label="编号"> <el-form-item label="编号">
<el-input <el-input
disabled disabled
placeholder="编号"
:value="proInfo.goodsCode" :value="proInfo.goodsCode"
class="dis-in-block" class="dis-in-block"
></el-input> ></el-input>
...@@ -69,8 +78,12 @@ ...@@ -69,8 +78,12 @@
placeholder="请输入建议到店价格" placeholder="请输入建议到店价格"
class="dis-in-block" class="dis-in-block"
@input="handleShopPrice" @input="handleShopPrice"
></el-input> >
<span>元</span> <i
slot="suffix"
class="input-suffix"
>元</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="w-50"> <div class="w-50">
...@@ -83,8 +96,12 @@ ...@@ -83,8 +96,12 @@
placeholder="请输入建议升级价格" placeholder="请输入建议升级价格"
class="dis-in-block" class="dis-in-block"
@input="handleUpgradePrice" @input="handleUpgradePrice"
></el-input> >
<span>元</span> <i
slot="suffix"
class="input-suffix"
>元</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="w-50"> <div class="w-50">
...@@ -97,8 +114,12 @@ ...@@ -97,8 +114,12 @@
placeholder="请输入额外成本" placeholder="请输入额外成本"
class="dis-in-block" class="dis-in-block"
@input="handleExtraCost" @input="handleExtraCost"
></el-input> >
<span>元</span> <i
slot="suffix"
class="input-suffix"
>元</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
<div class="w-50"> <div class="w-50">
...@@ -109,8 +130,12 @@ ...@@ -109,8 +130,12 @@
clearable clearable
class="dis-in-block" class="dis-in-block"
@input="handleMaxUpgradeDiscount" @input="handleMaxUpgradeDiscount"
></el-input> >
<span>折</span> <i
slot="suffix"
class="input-suffix"
>折</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -150,7 +175,12 @@ ...@@ -150,7 +175,12 @@
@input="handleProfitInput" @input="handleProfitInput"
placeholder="请输入分润比例" placeholder="请输入分润比例"
class="dis-in-block" class="dis-in-block"
></el-input>% >
<i
slot="suffix"
class="input-suffix"
>%</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
...@@ -177,12 +207,20 @@ ...@@ -177,12 +207,20 @@
@input="handlePartnerProfitPer" @input="handlePartnerProfitPer"
placeholder="请输入分润比例" placeholder="请输入分润比例"
class="dis-in-block" class="dis-in-block"
></el-input>% >
<i
slot="suffix"
class="input-suffix"
>%</i>
</el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
</div> </div>
<span class="btn-txt" slot="btn-start">提示:配置的分润规则和比例将优先根据门店打开方式结算。</span> <span
class="btn-txt"
slot="btn-start"
>提示:配置的分润规则和比例将优先根据门店打开方式结算。</span>
</d2-dialog> </d2-dialog>
</template> </template>
...@@ -331,13 +369,17 @@ export default { ...@@ -331,13 +369,17 @@ export default {
margin-right: 20px; margin-right: 20px;
} }
.relateProDialog .dis-in-block { .relateProDialog .dis-in-block {
display: inline-block; /* display: inline-block; */
width: 75%; width: 87%;
margin-right: 6px; /* margin-right: 6px; */
} }
.relatePro .btn-txt { .relatePro .btn-txt {
display: inline-block; display: inline-block;
margin-right: 154px; margin-right: 154px;
color: #606266; color: #606266;
} }
.relatePro .input-suffix {
font-style: inherit;
color: #606266;
}
</style> </style>
<!-- 搜索 --> <!-- 搜索 -->
<template> <template>
<div class="d2-search"> <div class="d2-search">
<el-col <!-- <el-col
v-if="hasTitle" v-if="hasTitle"
class="d2-search-title" class="d2-search-title"
>搜索条件</el-col> >搜索条件</el-col> -->
<el-form <el-form
:inline="true" :inline="true"
v-model="searchForm" v-model="searchForm"
...@@ -104,7 +104,7 @@ export default { ...@@ -104,7 +104,7 @@ export default {
.d2-search { .d2-search {
min-width: 922px; min-width: 922px;
} }
.d2-search .d2-search-title { /* .d2-search .d2-search-title {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
color: #0947c6; color: #0947c6;
...@@ -113,9 +113,9 @@ export default { ...@@ -113,9 +113,9 @@ export default {
padding: 0 20px; padding: 0 20px;
border-bottom: 1px solid #e7eaec; border-bottom: 1px solid #e7eaec;
margin-bottom: 30px !important; margin-bottom: 30px !important;
} } */
.d2-search .d2-search-block { .d2-search .d2-search-block {
padding: 0 40px; padding: 16px 40px 0;
} }
/* .d2-search .d2-search-block */ /* .d2-search .d2-search-block */
.d2-search .el-form-item { .d2-search .el-form-item {
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
v-loading="loading" v-loading="loading"
border border
:highlight-current-row="true" :highlight-current-row="true"
:stripe="true"
@sort-change="sortChange" @sort-change="sortChange"
@selection-change="handleSelect" @selection-change="handleSelect"
:tree-props="{children: 'upgradeGoodsList'}" :tree-props="{children: 'upgradeGoodsList'}"
...@@ -79,7 +78,6 @@ ...@@ -79,7 +78,6 @@
label="操作" label="操作"
:align="tableParams.tableOption.align||'center'" :align="tableParams.tableOption.align||'center'"
:width="tableParams.tableOption.width||'200'" :width="tableParams.tableOption.width||'200'"
fixed="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<slot <slot
......
...@@ -10,18 +10,6 @@ ...@@ -10,18 +10,6 @@
class="show-search" class="show-search"
:searchForm="searchForm" :searchForm="searchForm"
:formData="showFormData" :formData="showFormData"
></d2-search>
<i
@click="handleShowHide"
:class="{'search-icon': true, 'el-icon-arrow-down': !hideVisible, 'el-icon-arrow-up': hideVisible}"
></i>
<d2-search
ref="hideSearch"
class="hide-search"
v-show="hideVisible"
:searchForm="searchForm"
:hasTitle="hasTitle"
:formData="hideFormData"
> >
<p> <p>
<el-input <el-input
...@@ -221,8 +209,6 @@ export default { ...@@ -221,8 +209,6 @@ export default {
data() { data() {
return { return {
userInfo: this.$store.state.d2admin.user.info, userInfo: this.$store.state.d2admin.user.info,
hasTitle: false,
hideVisible: false,
count: { count: {
orderCount: 0, orderCount: 0,
upgradeCount: 0 upgradeCount: 0
...@@ -287,8 +273,7 @@ export default { ...@@ -287,8 +273,7 @@ export default {
label: '服务时间', label: '服务时间',
name: 'updateTime', name: 'updateTime',
type: 'datePicker' type: 'datePicker'
}], }, {
hideFormData: [{
label: '基础商品', label: '基础商品',
name: 'baseGoodsId', name: 'baseGoodsId',
type: 'select', type: 'select',
...@@ -430,7 +415,7 @@ export default { ...@@ -430,7 +415,7 @@ export default {
}) })
}, },
getOptionsList() { getOptionsList() {
var formList = ['showFormData', 'hideFormData'] var formList = ['showFormData']
formList.forEach(i => { formList.forEach(i => {
this[i].forEach((item, index) => { this[i].forEach((item, index) => {
if (item.type === 'select') { if (item.type === 'select') {
...@@ -475,9 +460,6 @@ export default { ...@@ -475,9 +460,6 @@ export default {
exportFile(params).then(res => { exportFile(params).then(res => {
this.$open(res) this.$open(res)
}) })
},
handleShowHide() {
this.hideVisible = !this.hideVisible
} }
} }
} }
...@@ -490,13 +472,13 @@ export default { ...@@ -490,13 +472,13 @@ export default {
.search-icon { .search-icon {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
height: 20px; height: 10px;
text-align: center; text-align: center;
border-bottom: 1px solid #dcdfe6; /* border-bottom: 1px solid #dcdfe6; */
cursor: pointer; cursor: pointer;
} }
.customer-list .hide-search { .customer-list .hide-search {
margin-top: 20px; /* margin-top: 20px; */
} }
.customer-list .custom-input { .customer-list .custom-input {
display: inline-block; display: inline-block;
......
...@@ -47,7 +47,6 @@ export default { ...@@ -47,7 +47,6 @@ export default {
shopPrice: '', shopPrice: '',
maxRetailDiscount: '' maxRetailDiscount: ''
}, },
formItemWidth: '200px',
rules: { rules: {
yqMerchantId: [{ required: true, message: '请选择园区店', trigger: 'change' }], yqMerchantId: [{ required: true, message: '请选择园区店', trigger: 'change' }],
goodsCode: [{ required: true, message: '请选择产品名称', trigger: 'change' }], goodsCode: [{ required: true, message: '请选择产品名称', trigger: 'change' }],
......
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
label: '素材名称', label: '素材名称',
prop: 'goodsName' prop: 'goodsName'
}, { }, {
label: '产品ID', label: '素材ID',
prop: 'id' prop: 'id'
}, { }, {
label: '分类', label: '分类',
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
</div> </div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
:page-sizes="[10,20,30,40]" :page-sizes="[10,20,30,40]"
:page-size="page.pageSize" :page-size="page.pageSize"
:total="total" :total="total"
layout="total, sizes, prev, pager, next, jumper" layout="sizes,total,->,prev,pager,next,jumper"
> >
</el-pagination> </el-pagination>
</div> </div>
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
3: '待支付', 3: '待支付',
4: '已支付', 4: '已支付',
5: '已退款', 5: '已退款',
6: '已完成', 6: '已完成'
}, },
showFormData: [{ showFormData: [{
label: '订单状态', label: '订单状态',
...@@ -149,7 +149,7 @@ export default { ...@@ -149,7 +149,7 @@ export default {
orderTime: '' orderTime: ''
}, },
baseData: { baseData: {
}, },
tableData: [{ tableData: [{
id: 'xx' id: 'xx'
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.getList() this.getList()
}, },
...@@ -174,21 +174,19 @@ export default { ...@@ -174,21 +174,19 @@ export default {
name: '', name: '',
orderTime: '' orderTime: ''
} }
}, },
getParams() { getParams() {
const params = {} const params = {}
const form = this.searchForm const form = this.searchForm
if(form.name) { if (form.name) {
params.customerName = form.name params.customerName = form.name
} }
if(form.orderTime && form.orderTime.length) { if (form.orderTime && form.orderTime.length) {
params.placeOrderStartDateStr = Util.dateFormate(form.orderTime[0], 'YYYY-MM-DD HH:mm:ss') params.placeOrderStartDateStr = Util.dateFormate(form.orderTime[0], 'YYYY-MM-DD HH:mm:ss')
params.placeOrderEndDateStr = Util.dateFormate(form.orderTime[1], 'YYYY-MM-DD HH:mm:ss') params.placeOrderEndDateStr = Util.dateFormate(form.orderTime[1], 'YYYY-MM-DD HH:mm:ss')
} }
if(form.orderStatus) { if (form.orderStatus) {
params.status = form.orderStatus params.status = form.orderStatus
} }
...@@ -213,7 +211,7 @@ export default { ...@@ -213,7 +211,7 @@ export default {
this.getList() this.getList()
}, },
// 导出 // 导出
handleExport() { handleExport() {
var params = this.getParams() var params = this.getParams()
params.pageNum = 1 params.pageNum = 1
exportFile(params).then(res => { exportFile(params).then(res => {
...@@ -223,11 +221,11 @@ export default { ...@@ -223,11 +221,11 @@ export default {
// 查看详情 // 查看详情
handleDetail(data) { handleDetail(data) {
this.close({ tagName: '/orderDetail' }) this.close({ tagName: '/orderDetail' })
this.$router.push({ this.$router.push({
name: 'orderDetail', name: 'orderDetail',
params: { params: {
detail: data.row detail: data.row
} }
}) })
}, },
// 每页条数 // 每页条数
...@@ -240,7 +238,7 @@ export default { ...@@ -240,7 +238,7 @@ export default {
handleCurrentChange(value) { handleCurrentChange(value) {
this.page.pageNum = value this.page.pageNum = value
this.getList() this.getList()
}, }
} }
} }
...@@ -270,5 +268,5 @@ export default { ...@@ -270,5 +268,5 @@ export default {
} }
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!