Commit bdc45da5 by zhouzy
2 parents 4fd77d38 d4e5c749
......@@ -14,7 +14,7 @@
"el-tree-transfer": "^2.4.7",
"element-ui": "^2.15.6",
"glsx-common": "^1.4.9",
"glsx-components": "^1.2.3",
"glsx-components": "^1.2.4",
"glsx-vue-components": "^1.0.15",
"jquery": "^3.6.0",
"vue": "^2.6.14",
......
......@@ -25,7 +25,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
</div>
</div>
</template>
......@@ -42,12 +42,14 @@ function date_format(date) {
var ss = date2.getSeconds() < 10 ? '0' + date2.getSeconds() : date2.getSeconds()
return YY + MM + DD + ' ' + hh + mm + ss
}
import url from "@/assets/empty.png"
// import { searchMixin } from '@/mixins'
export default {
name: '',
// mixins: [searchMixin],
data() {
return {
url:url,
size: 'small',
pickerOptions: {
disabledDate(time) {
......
......@@ -57,7 +57,7 @@
</el-form-item>
</el-row>
</el-form>
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<template slot="custom">
<div class="table-custom exportBtn"></div>
</template>
......@@ -67,12 +67,14 @@
</template>
<script type='text/ecmascript-6'>
import url from "@/assets/empty.png"
import { orderMixin, searchMixin } from '@/mixins'
export default {
name: '',
mixins: [orderMixin, searchMixin],
data() {
return {
url:url,
loading: false,
size: 'small',
pickerOptions: {
......
......@@ -76,19 +76,21 @@
</el-form-item>
</el-row>
</el-form>
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
import url from "@/assets/empty.png"
// import { searchMixin } from '@/mixins'
export default {
name: '',
// mixins: [searchMixin],
data() {
return {
url:url,
size: 'small',
pickerOptions: {
disabledDate(time) {
......
<template>
<div class="equity-wrap">
<div class="equity-wrap contain">
<div class="equity-wrap contain">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" size="medium" :key="resetTime">
<div class="box">
<!-- <back /> -->
......@@ -99,10 +99,6 @@
<quill-editor v-model="ruleForm.useNotes" :options="editorOption"></quill-editor>
</el-form-item>
</template>
<!-- <el-form-item size="large">
<el-button type="primary" @click="onSubmit" size="small">提交</el-button>
<el-button @click="onSubmit('save')" size="small">保存</el-button>
</el-form-item> -->
</div>
</el-form>
</div>
......@@ -113,8 +109,12 @@
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>
<!-- <el-button type="primary" @click="onSubmit('save')" size="small">创建</el-button> -->
<el-button class="custtom" @click="onSubmit('save')" type="primary" size="small">保存</el-button>
<div class="wrap_driver">
<el-button type="primary" @click="onSubmit" size="small">提交</el-button>
</div>
<el-button @click="$router.go(-1)" size="small">取消</el-button>
</div>
</div>
</template>
......@@ -224,7 +224,7 @@ export default {
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getListWithPageOutGoods()
console.log(this.$route)
......@@ -428,20 +428,27 @@ export default {
</script>
<style lang="scss" scoped>
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
width: 100%;
bottom: 0px;
height: 64px;
.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);
.custtom {
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
color: #5850ff;
}
.wrap_driver {
margin: 0 20px;
.el-button + .el-button {
margin-right: 40px;
}
}
.footer-panel .el-button+.el-button {
margin-left: 40px;
}
.uploader-del-icon {
position: absolute;
......@@ -454,34 +461,34 @@ export default {
right: -28px;
}
.box .title {
.box .title {
padding: 20px 0;
font-weight: 700;
}
.box .el-form-item {
.box .el-form-item {
width: 500px;
}
.box .el-form-item .el-input-group__prepend,
.box .el-form-item .el-input-group__append {
.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 {
.box .el-form-item .el-input--suffix .el-input__inner {
padding-right: 45px;
}
.box .el-form-item .el-input__suffix {
.box .el-form-item .el-input__suffix {
right: 20px;
}
.box .editor {
.box .editor {
width: 800px;
}
.box .avatar-uploader {
.box .avatar-uploader {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
......@@ -490,7 +497,7 @@ export default {
height: 148px;
}
.box .avatar-uploader-file {
.box .avatar-uploader-file {
position: absolute;
top: 0;
left: 0;
......@@ -499,11 +506,11 @@ export default {
opacity: 0;
}
.box .avatar-uploader:hover {
border-color: #409EFF;
.box .avatar-uploader:hover {
border-color: #409eff;
}
.box .avatar-uploader-icon {
.box .avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 148px;
......@@ -512,10 +519,9 @@ export default {
text-align: center;
}
.box .avatar {
.box .avatar {
width: 148px;
height: 148px;
display: block;
}
</style>
<template>
<div class="equity-wrap">
<el-button class="addGood" type="primary" icon="el-icon-plus" @click="jump">新增商品</el-button>
<div class="equity-wrap contain">
<div class="equity-wrap contain">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
<el-row style="display: flex; align-items: center">
<el-form-item size="small" label="品牌名称">
<el-select size="small" v-model="searchForm.brandName" filterable placeholder="请选择">
<el-option v-for="item in goodsBrandList" :key="item.id" :label="item.brandName" :value="item.brandName"></el-option>
</el-select>
<el-row style="display: flex; align-items: center">
<el-form-item size="small" label="品牌名称">
<el-select size="small" v-model="searchForm.brandName" filterable placeholder="请选择">
<el-option v-for="item in goodsBrandList" :key="item.id" :label="item.brandName" :value="item.brandName"></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品名称">
<el-input v-model="searchForm.productName" placeholder="请输入" size="small" clearable></el-input>
......@@ -16,57 +16,59 @@
<el-input v-model="searchForm.productName" placeholder="请输入" size="small" clearable></el-input>
</el-form-item> -->
<el-form-item label="提供方">
<el-select size="small" v-model="searchForm.supplier">
<el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
<el-select size="small" v-model="searchForm.supplier">
<el-option v-for="item in supplierList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
</el-row>
<el-row >
<el-form-item label="商品编码">
<el-input v-model="searchForm.productId" placeholder="请输入" size="small" clearable></el-input>
</el-form-item>
<el-form-item label="商品状态">
<el-select size="small" v-model="searchForm.status" >
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品ID">
<el-input v-model="searchForm.id" placeholder="请输入" size="small"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right">
</el-row>
<el-row>
<el-form-item label="商品编码">
<el-input v-model="searchForm.productId" placeholder="请输入" size="small" clearable></el-input>
</el-form-item>
<el-form-item label="商品状态">
<el-select size="small" v-model="searchForm.status">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品ID">
<el-input v-model="searchForm.id" placeholder="请输入" size="small"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-row>
</el-form>
<div class="row-btns">
<el-button size="small" type="primary" @click="toggleAll">全选</el-button>
<el-button size="small" type="primary" @click="batchOperation(1)">上架</el-button>
<el-button size="small" type="primary" @click="batchOperation(2)">下架</el-button>
<el-button size="small" type="primary" @click="batchOperation(-1)">删除</el-button>
<el-button size="small" type="primary" @click="toggleAll">全选</el-button>
<el-button size="small" type="primary" @click="batchOperation(1)">上架</el-button>
<el-button size="small" type="primary" @click="batchOperation(2)">下架</el-button>
<el-button size="small" type="primary" @click="batchOperation(-1)">删除</el-button>
</div>
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="tableParams.getListApi" :pageConf="pageConf">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="jump(scope.scope)">编辑</el-button>
<el-button type="text" @click="copy(scope.scope)">复制</el-button>
</span>
</GLTable>
</div>
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchForm" :tableParams="tableParams" :getListApi="tableParams.getListApi" :pageConf="pageConf">
<span slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="jump(scope.scope)">编辑</el-button>
<el-button type="text" @click="copy(scope.scope)">复制</el-button>
</span>
</GLTable>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
import url from "@/assets/empty.png"
// import { searchMixin } from '@/mixins'
export default {
name: '',
// mixins: [searchMixin],
data() {
return {
url:url,
size: 'small',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
flag: true,
searchForm: {},
searchForm: {},
supplierList: [
{
label: '海威',
......@@ -96,26 +98,25 @@ export default {
tableColumns: [
{
label: '提供方',
formatter: cell => {
return '海威'
}
},
{
label: '商品SKU',
formatter: cell => {
return cell.appearance == 1 ? `${cell.brandName || ''}${cell.productName || ''}` : `${cell.brandName || ''}${cell.productName || ''}${cell.denomination || ''}`
}
},
{
label: '会员价(元)',
prop: 'salesPrice',
prop: 'salesPrice'
},
{
prop: 'sales',
sortable: true,
label: '销量'
// renderHeader: h => {
......@@ -129,7 +130,7 @@ export default {
},
{
label: '库存',
sortable: true,
formatter: cell => {
return cell.stock == -1 ? '无限制' : cell.stock
......@@ -137,7 +138,7 @@ export default {
},
{
label: '商品状态',
formatter: cell => {
return ['待上架', '上架', '下架'][cell.status]
}
......@@ -169,7 +170,11 @@ export default {
// console.log(target)
let query = {}
if (id) query.id = id
if (status == 0) query.edit = true
if (status == 0) {
query.edit = true
query.$title = encodeURI('编辑商品')
}
this.$router.push({ path: '/goods/addGoods', query })
},
copy({ id }) {
......@@ -203,7 +208,7 @@ export default {
goodsIndexMutiTable.toggleRowSelection(row, this.selectStatus)
})
},
setTableFinishFun() {
setTableFinishFun() {
//接收到的数据为空
if (!this.$refs.table.data.length) {
this.$refs.table.setTableHeightFun()
......@@ -277,7 +282,7 @@ export default {
</script>
<style lang="scss" scoped>
.addGood{
.addGood {
margin-left: 40px;
padding: 8px 16px;
margin-bottom: 20px;
......@@ -285,7 +290,7 @@ export default {
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
}
.row-btns{
.row-btns {
margin-bottom: 10px;
}
</style>
\ No newline at end of file
......@@ -2,7 +2,7 @@
<div class="layout">
<div class="box topBox">
<!-- <back /> -->
<el-button type="primary" class="backBtn" size="small" @click="$router.go(-1)">返回</el-button>
<el-button type="primary" class="backBtn" size="small" @click="$router.push('/order/index')">返回</el-button>
<div class="grid">
<div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div>
<div class="grid-item">下单时间: {{ detailInfo.time }}</div>
......
......@@ -36,7 +36,7 @@
{{ item }}
</div>
</div>
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="goodsMsg" slot-scope="scope">
<div>{{ scope.scope.brandName }}</div>
<div>{{ scope.scope.appearance == 2 ? scope.scope.productName + scope.scope.denomination : scope.scope.productName }}</div>
......@@ -62,12 +62,14 @@
</template>
<script type='text/ecmascript-6'>
import url from "@/assets/empty.png"
import { orderMixin, searchMixin } from '@/mixins'
export default {
name: '',
mixins: [orderMixin, searchMixin],
data() {
return {
url:url,
choseList: ['全部', '待收货', '已完成', '退款|售后'],
currentIndex: 0,
size: 'small',
......
......@@ -34,7 +34,7 @@
{{ item }}
</div>
</div>
<GLTable v-if="flag" ref="table" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable v-if="flag" ref="table" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="tableParams.getListApi" :hasNum="false" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="desc" slot-scope="scope">
<div class="refund-box">
<div class="refund-img-box">
......@@ -83,11 +83,13 @@
<script>
// type='text/ecmascript-6'
// import { orderMixin, searchMixin } from '@/mixins'
import url from "@/assets/empty.png"
export default {
name: '',
// mixins: [orderMixin, searchMixin],
data() {
return {
url:url,
choseList: ['全部', '售后中', '售后完成'],
currentIndex: 0,
size: 'small',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!