Commit f6bc542f by zhouzy
2 parents 5231f5f9 c871cecd
......@@ -11,7 +11,7 @@ const getOrderList = (params = {}) => {
params.method = 'scrm.api.equity.order.list.get'
return http({
data: params,
returnAll:true
// returnAll:true
})
}
/** 获取海威账户余额*/
......
<template>
<div class="container">
<div class="layout">
<div class="equity-wrap">
<div class="equity-wrap contain">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" size="medium" :key="resetTime">
<div class="box">
<!-- <back /> -->
......@@ -106,6 +106,16 @@
</div>
</el-form>
</div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="onSubmit('save')" size="small">创建</el-button>
<el-button type="primary" @click="$router.go(-1)" size="small">取消</el-button>
</div>
</div>
</template>
......@@ -213,6 +223,9 @@ export default {
}
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getListWithPageOutGoods()
console.log(this.$route)
let id = this.$route.query.id
......@@ -411,9 +424,22 @@ export default {
}
}
}
// <style src="@a/css/tao.css"></style>
</script>
<style src="@a/css/tao.css"></style>
<style scoped>
<style lang="scss" scoped>
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
width: 100%;
bottom: 0px;
height: 64px;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.uploader-del-icon {
position: absolute;
width: 28px;
......@@ -424,4 +450,69 @@ export default {
top: 0px;
right: -28px;
}
.box .title {
padding: 20px 0;
font-weight: 700;
}
.box .el-form-item {
width: 500px;
}
.box .el-form-item .el-input-group__prepend,
.box .el-form-item .el-input-group__append {
background-color: transparent;
border: none;
}
.box .el-form-item .el-input--suffix .el-input__inner {
padding-right: 45px;
}
.box .el-form-item .el-input__suffix {
right: 20px;
}
.box .editor {
width: 800px;
}
.box .avatar-uploader {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
width: 148px;
height: 148px;
}
.box .avatar-uploader-file {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}
.box .avatar-uploader:hover {
border-color: #409EFF;
}
.box .avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 148px;
height: 148px;
line-height: 148px;
text-align: center;
}
.box .avatar {
width: 148px;
height: 148px;
display: block;
}
</style>
<template>
<div class="layout">
<div class="box">
<div class="box topBox">
<!-- <back /> -->
<el-button type="primary" class="backBtn" size="small" @click="$router.go(-1)">返回</el-button>
<div class="grid">
<div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div>
<div class="grid-item">下单时间: {{ detailInfo.time }}</div>
</div>
</div>
<div class="box">
<div class="grayRow"></div>
<div class="grid">
<template v-for="(item, index) in detailInfoObj">
<div class="grid-item" :key="index">
<div class="grid-item top-grid-item" :key="index">
<div class="sub-title">{{ item.title }}</div>
<template v-for="(i, ind) in item.list">
<div class="item" :key="ind">
......@@ -29,7 +31,7 @@
<div class="grid-btn">
售后:
<template v-if="detailInfo.openRefund == 0">
<el-button type="primary" @click="openRefund">开启</el-button>
<el-button type="primary" @click="openRefund" size="small">开启</el-button>
</template>
<template v-else>
<span>已开启</span>
......@@ -39,20 +41,22 @@
</div>
</template>
</div>
</div>
<d2-table :tableParams="tableParams" :tableData="tableData" :hasNum="false" :hasPage="false"></d2-table>
<div class="price-box">
<div class="price-item">
<div class="label">商品总价:</div>
<div class="value">{{ detailInfo.orderPrices }}元</div>
</div>
<div class="price-item">
<div class="label">优惠:</div>
<div class="value">0元</div>
<div class="tableWrap">
<d2-table :tableParams="tableParams" :tableData="tableData" :hasNum="false" :hasPage="false"></d2-table>
</div>
<div class="price-item">
<div class="label">实收金额:</div>
<div class="value">{{ detailInfo.orderPrices }}元</div>
<div class="price-box">
<div class="price-item">
<div class="label">商品总价:</div>
<div class="value">¥{{ detailInfo.orderPrices }}</div>
</div>
<div class="price-item">
<div class="label">优惠:</div>
<div class="value">¥0.00</div>
</div>
<div class="price-item">
<div class="label">实收金额:</div>
<div class="value money">¥{{ detailInfo.orderPrices }}</div>
</div>
</div>
</div>
</div>
......@@ -66,7 +70,7 @@ export default {
mixins: [orderMixin],
data() {
return {
params:{},
params: {},
eventBus: new Vue(),
detailInfo: {},
detailInfoObj: [
......@@ -170,7 +174,7 @@ export default {
}
}
]
},
}
}
},
mounted() {
......@@ -212,19 +216,31 @@ export default {
}
</script>
<style src="@a/css/tao.css"></style>
<style >
<style lang="scss" scoped>
.price-box {
margin-left: 800px;
margin-top: 10px;
margin-top: 16px;
margin-right: 52px;
float: right;
}
.price-item {
width: 200px;
font-size: 14px;
font-weight: 400;
color: #333333;
display: flex;
align-items: center;
margin-bottom: 10px;
}
.price-item .label {
width: 100px;
justify-content: space-between;
margin-bottom: 14px;
.label {
width: 80px;
text-align: right;
}
.money {
color: #eb4e4e;
}
}
.goods {
display: flex;
}
......@@ -236,4 +252,64 @@ export default {
.goods-info {
width: calc(100% - 110px);
}
.layout {
background-color: #fff;
margin: 0 20px 0 40px;
width: auto;
.topBox {
padding-top: 32px !important;
}
.box {
position: relative;
padding-top: 20px;
padding-left: 52px;
box-shadow: none;
.top-grid-item {
.item {
font-size: 14px;
font-weight: 400;
color: #333333;
margin-left: -30px;
.label {
// width: 71px;
text-align: right;
}
}
}
.grid-item {
.item,
.grid-btn {
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
.backBtn {
position: absolute;
right: 20px;
top: 20px;
}
.grayRow {
position: absolute;
top: 18px;
left: 0;
width: 100%;
background-color: #f4f6fc;
z-index: 0;
height: 54px;
}
.sub-title {
position: relative;
z-index: 1;
margin-bottom: 40px !important;
font-size: 14px;
font-weight: 500;
color: #333333;
}
.tableWrap{
margin-left: -32px;
}
}
}
</style>
\ No newline at end of file
......@@ -226,7 +226,7 @@ export default {
}
.grayRow{
position: absolute;
top: 0;
top: 0px;
left: 0;
width: 100%;
background-color: #F4F6FC;
......
......@@ -276,6 +276,7 @@ export default {
font-weight: 400;
color: #333333;
cursor: pointer;
}
.active {
color: #5850ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!