提交 0a5a1e67 authored 作者: huaxinzhu's avatar huaxinzhu

1、订单、店铺、运费,bug修复,优化

上级 7ad35de0
......@@ -2,7 +2,7 @@
<div class="app-container">
<el-card class="box-card">
<div slot="header" class="clearfix">
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="85px">
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="85px" class="queryFormInline">
<el-form-item label="付款状态" prop="payStatus">
<el-select v-model="queryParams.payStatus" placeholder="付款状态" size="small">
<el-option v-for="item in payOptions" :key="item.value" :label="item.label"
......@@ -165,8 +165,8 @@
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改折扣金额对话框 -->
<el-dialog :title="title" :visible.sync="open" width="80%" append-to-body>
<!-- 详情 -->
<el-dialog :title="title" :visible.sync="open" width="70%" append-to-body class="order-details">
<el-col :span="24" class="card-box" v-loading="loading">
<el-card>
<div slot="header">
......@@ -396,32 +396,45 @@
</div>
</el-dialog>
<!-- 去发货 -->
<el-dialog :title="title2" :visible.sync="open2" width="60%" append-to-body v-loading="loading">
<el-form :model="sendGoods" ref="sendGoods" :inline="true">
<el-form-item label="快递公司">
<el-select v-model="sendGoods.deliverName" filterable clearable placeholder="请选择快递公司" @change="selectValue">
<el-option v-for="item in expressList" :key="item.value" :label="item.label"
:value="item.value"></el-option>
</el-select>
</el-form-item>
<el-dialog :title="title2" :visible.sync="open2" width="60%" append-to-body v-loading="loading" style="height: 40%">
<el-form :model="sendGoods" ref="sendGoods" label-width="100px;">
<el-row>
<el-col :span="16" :offset="3">
<el-form-item label="快递公司" >
<el-select v-model="sendGoods.deliverName" filterable clearable placeholder="请选择快递公司" @change="selectValue" style="width:70%">
<el-option v-for="item in expressList" :key="item.value" :label="item.label" size="small"
:value="item.value"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="快递单号" prop="Tel">
<el-input
v-model="sendGoods.deliverNo"
placeholder="请输快递单号"
clearable
size="small"
/>
</el-form-item>
<el-row>
<el-col :span="16" :offset="3">
<el-form-item label="快递单号" prop="Tel">
<el-input
v-model="sendGoods.deliverNo"
placeholder="请输快递单号"
clearable
size="small"
style="width:70%"
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="submitForm()">提交</el-button>
</el-form-item>
<el-row :span="24">
<el-col :span="2" :offset="21">
<el-form-item>
<el-button type="primary" @click="submitForm()">提 交</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
<!-- 物流信息 -->
<el-dialog :title="title3" :visible.sync="open3" width="80%" append-to-body v-loading="loading">
<el-timeline :reverse="reverse">
<el-dialog :title="title3" :visible.sync="open3" width="60%" append-to-body v-loading="loading">
<el-timeline :reverse="reverse" style="padding: 10px 60px;">
<el-timeline-item
v-loading="loading"
v-for="(activity, index) in expressInfo"
......@@ -470,8 +483,8 @@
}]
},
//-------------------
fullHeight: '',
tableHeight: 500,
fullHeight: 0,
tableHeight: 0,
fullscreenLoading: false,
// 时间线正序
reverse: false,
......@@ -568,7 +581,7 @@
})
},
watch: {
fullHeight(val, oldval) {
fullHeight(val) {
let formHeight = document.getElementsByClassName('clearfix')[0].clientHeight
this.tableHeight = val - formHeight - 110
},
......@@ -719,21 +732,23 @@
} //methods结束
};
</script>
<style scoped>
.app-container {
height: 100%;
}
.box-card {
height: 100%;
}
<style scoped lang="scss" type="text/stylus">
.box-card /deep/ .el-card__body {
height: 100%;
overflow: hidden;
.order-details{
/deep/.el-dialog {
height: 80%;
overflow: hidden;
}
/deep/.el-dialog__body {
height: calc(100% - 120px);
overflow-x: hidden;
overflow-y: scroll;
}
}
.el-table {
height: calc(100% - 120px);
/deep/.queryFormInline {
.el-form-item {
margin-bottom: 5px ;
}
}
</style>
......@@ -2,13 +2,21 @@
<div class="app-container">
<el-card class="box-card">
<div slot="header" class="clearfix">
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
<el-form-item>
<el-button type="primary" size="mini" icon="el-icon-plus" @click="handleAdd">新 增</el-button>
</el-form-item>
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px" class="queryFormInline">
<el-row :span="24" type="flex" align="middle" justify="space-between">
<el-col :span="20">
<span style="font-size: 18px; float:left;">售后地址列表</span>
</el-col>
<el-col :span="4">
<el-form-item style="float: right">
<el-button type="primary" size="mini" icon="el-icon-plus" @click="handleAdd">新 增</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<el-table v-loading="loading" :data="addressList">
<el-table v-loading="loading" :data="addressList" :height="tableHeight">
<el-table-column label="序号" prop="id" align="center"></el-table-column>
<el-table-column label="售后地址" prop="address" align="center">
<template slot-scope="scope">
......@@ -35,7 +43,7 @@
/>
</el-card>
<!-- 新增、修改 -->
<el-dialog :title="addTitle" :visible.sync="isOpen" width="50%">
<el-dialog :title="addTitle" :visible.sync="isOpen" width="50%" class="add-edit">
<el-form v-if="isOpen" :model="addressForm" :rules="addressRules" ref="addressForm" label-width="100px">
<el-row>
<el-col :span="16" :offset="3">
......@@ -102,8 +110,8 @@
}
};
return {
fullHeight: '',
tableHeight: 500,
fullHeight: 0,
tableHeight: 0,
areaList: [], // 省市区
props: {
expandTrigger: 'click',
......@@ -154,7 +162,7 @@
watch: {
fullHeight(val) {
let formHeight = document.getElementsByClassName('clearfix')[0].clientHeight
this.tableHeight = val - formHeight - 110
this.tableHeight = val - formHeight - 120
}
},
methods: {
......@@ -228,8 +236,6 @@
this.addTitle = "新增地址";
this.areaList = [];
this.resetForm('addressForm');
console.log(230,this.addressForm);
},
handleDelete(row) {
......@@ -322,20 +328,5 @@
</script>
<style lang="scss" type="text/stylus" scoped>
.app-container {
height: 100%;
}
.box-card {
height: 100%;
}
.box-card /deep/ .el-card__body {
height: 100%;
overflow: hidden;
}
.el-table {
height: calc(100% - 137px);
overflow: scroll;
}
</style>
......@@ -2,7 +2,7 @@
<div class="app-container">
<el-card class="box-card">
<div slot="header" class="clearfix">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px" class="queryFormInline">
<el-form-item label="申请时间" prop="applyTime">
<el-date-picker
size="small"
......@@ -34,7 +34,6 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
......@@ -70,7 +69,7 @@
@pagination="getList"
/>
<!-- 售后申请信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="80%" append-to-body>
<el-dialog :title="title" :visible.sync="open" width="80%" append-to-body class="after-sales-details">
<el-col :span="24" class="card-box" v-loading="loading">
<el-card>
<div slot="header">
......@@ -319,8 +318,8 @@
data() {
return {
fullHeight: '',
tableHeight: 500,
fullHeight: 0,
tableHeight: 0,
//退货地址
address: [],
//提交信息
......@@ -424,13 +423,11 @@
this.$nextTick(() => {
this.fullHeight = document.getElementsByClassName('box-card')[0].clientHeight
})
},
watch: {
fullHeight(val, oldval) {
// console.log(val)
fullHeight(val) {
let formHeight = document.getElementsByClassName('clearfix')[0].clientHeight
this.tableHeight = val - formHeight - 110
this.tableHeight = val - formHeight - 120
},
'queryParams.applyTime'() {
// select组件,clear的时候,将addTimeInterval的值,初始化为null,判断当其值为null时,赋值为数组
......@@ -678,21 +675,6 @@
} //methods结束
};
</script>
<style scoped>
.app-container {
height: 100%;
}
.box-card {
height: 100%;
}
.box-card /deep/ .el-card__body {
height: 100%;
overflow: hidden;
}
<style scoped lang="scss" type="text/stylus">
.el-table {
height: calc(100% - 120px);
}
</style>
......@@ -2,9 +2,9 @@
<div class="app-container">
<el-card class="box-card">
<div slot="header" class="clearfix">
<el-form :model="queryParams" ref="queryForm" :inline="true">
<el-row>
<el-col :span="24">
<el-form class="queryFormInline" :model="queryParams" ref="queryForm" :inline="true">
<el-row :span="24" type="flex" justify="space-between" align="middle">
<el-col :span="22">
<el-form-item label="品牌名称">
<el-input
v-model="queryParams.brand_cn"
......@@ -34,21 +34,19 @@
:value="item.value"
></el-option>
</el-select>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查 询</el-button>
</el-form-item>
<el-form-item>
</el-col>
<el-col :span="2">
<el-form-item style="float: right">
<el-button type="primary" size="mini" icon="el-icon-plus" @click="handleAdd">新 增</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<el-table v-loading="loading" :data="brandList">
<el-table-column type="selection" width="45" align="center"/>
<el-table v-loading="loading" :data="brandList" :height="tableHeight">
<!-- <el-table-column type="selection" width="45" align="center"/>-->
<el-table-column label="序号" prop="id" align="center"></el-table-column>
<el-table-column label="品牌名称" prop="brand_cn" align="center"></el-table-column>
<el-table-column label="品牌经营类型" prop="brand_type" align="center">
......@@ -82,7 +80,7 @@
></pagination>
</el-card>
<!-- 新增/修改/详情 -->
<el-dialog :title="brandTitle" :visible.sync="isOpen" width="60%" >
<el-dialog :title="brandTitle" :visible.sync="isOpen" width="60%" class="brandInf-add">
<el-form :model="brandForm" :rules="brandRules" ref="brandForm" label-width="140px">
<el-row>
<el-col :span="16" :offset="3">
......@@ -358,8 +356,8 @@
}
};
return {
fullHeight: '',
tableHeight: 500,
fullHeight: 0,
tableHeight: 0,
loading: false,
isOpen: false,
brandTitle: '',
......@@ -422,7 +420,6 @@
downTemplatehttp: '',
shopTemplatehttp : 'http://img3.jxhh.com/shop/brand.doc',
factoryTemplatehttp : 'http://img3.jxhh.com/shop/factory.doc',
}
},
created() {
......@@ -434,13 +431,8 @@
watch: {
fullHeight(val) {
let formHeight = document.getElementsByClassName('clearfix')[0].clientHeight
this.tableHeight = val - formHeight - 110;
},
// 'brandForm.brand_auth'() {
// if(this.brandForm.brand_auth === '') {
// this.factoryImgFileList = [];
// }
// }
this.tableHeight = val - formHeight - 100;
}
},
methods: {
......@@ -488,7 +480,6 @@
if(this.brandForm.brand_auth === '') {
this.factoryImgFileList = [];
}
//console.log("切换时候:",this.brandForm);
},
chooseBrandRange() {
this.$refs.brandForm.clearValidate('brand_range');
......@@ -681,7 +672,6 @@
const ids = row.id;
getDetails(ids).then(res => {
if(res.code && res.code === 1 && res.data) {
//console.log("详情:",res.data);
this.brandForm = res.data;
// 模板下载地址赋值
this.downTemplatehttp = (this.brandForm.brand_type === 1 ? this.shopTemplatehttp : this.factoryTemplatehttp);
......@@ -851,7 +841,6 @@
}).then(() => {
this.edit(toArrBrandForm);
}).catch(() => {
//this.reset('brandForm');
this.isOpen = false;
});
}
......@@ -954,32 +943,16 @@
</script>
<style lang="scss" type="text/stylus" scoped>
.app-container {
height: 100%;
}
.box-card {
height: 100%;
}
.box-card /deep/ .el-card__body {
height: 100%;
overflow: hidden;
}
.el-table {
height: calc(100% - 137px);
overflow: scroll;
}
/deep/ .el-dialog {
height: 80%;
overflow: hidden;
}
/deep/ .el-dialog__body {
height: 80%;
overflow-x: hidden;
overflow-y: scroll;
.brandInf-add {
/deep/.el-dialog {
height: 80%;
overflow : hidden;
}
/deep/.el-dialog__body{
height: calc(100% - 60px);
overflow-x: hidden;
overflow-y: scroll;
}
}
.btnCen {
/deep/.el-form-item__content {
......
......@@ -7,8 +7,8 @@
当前审核状态:<span class="speDom">{{ reviewResult }}</span><span
style="display: block;width:20px;height:100%"></span>
<span class="speTip">仅可修改店铺相关信息,企业主体信息不允许修改!</span></p>
<p style="">
<el-button type="primary" @click="handleEdit">编辑信息</el-button>
<p>
<el-button size="small" icon="el-icon-edit" type="primary" @click="handleEdit">编辑信息</el-button>
</p>
</div>
</div>
......@@ -223,7 +223,7 @@
</el-card>
<!--编辑-->
<el-dialog :title="title" :visible.sync="isOpen" width="60%">
<el-dialog :title="title" :visible.sync="isOpen" width="60%" class="shopinf-edit">
<el-form ref="editForm" :model="editForm" :rules="eidtRules" label-width="180px">
<el-form-item label="电商平台经验:" prop="is_business_experience">
......@@ -366,7 +366,7 @@
return {
loading: false,
isOpen: false,
reviewResult: '',
reviewResult: '加载中。。',
title: '',
isMainItem: true,// 主体/企业信息 单项 是否可以修改,目前暂时不能
// 执照类型
......@@ -862,23 +862,29 @@
</script>
<style lang="scss" type="text/stylus" scoped>
.app-container {
height: 100%;
}
.box-card {
height: 100%;
/deep/ .el-card__body {
height: calc(100% - 100px);
.shopinf-edit{
/deep/.el-dialog {
height: 80%;
overflow : hidden;
}
/deep/.el-dialog__body{
height: calc(100% - 60px);
overflow-x: hidden;
overflow-y: scroll;
}
}
/deep/ .el-card__body {
height: calc(100% - 80px);
margin: 10px 0;
overflow-x: hidden;
overflow-y: scroll;
}
/deep/ .speDom {
color: red;
font-size: 22px;
font-size: 20px;
margin: 0 0 4px 10px;
}
......@@ -944,22 +950,11 @@
}
// 提示语样式 end
// 对话框出现滚动条
/deep/ .el-dialog {
height: 80%;
overflow: hidden;
}
/deep/ .el-dialog__body {
height: 80%;
overflow-x: hidden;
overflow-y: scroll;
}
.btnCen {
/deep/.el-form-item__content {
margin-left: 0!important;
text-align : center;
margin-top: 30px;
//margin-top: 30px;
}
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论