Commit c38d6a97 authored by zhengke's avatar zhengke
parents 5616cccb 9eb34d13
<style>
.height_auto.el-select .el-input {
height: auto
}
</style>
<template>
<div class="flexOne">
<div class="clearfix"></div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th>编号</th>
<th>广告图</th>
<th>广告链接</th>
<th>状态</th>
<th>{{$t('system.table_operation')}}</th>
</tr>
<tr v-for="item in dataList">
<td>{{item.Id}}</td>
<td>{{item.AdImage}}</td>
<td>{{item.AdLink}}</td>
<td>{{item.Status}}</td>
<td>
<el-button-group>
<el-tooltip class="item" effect="dark" :content="$t('active.ld_editInfo')" placement="top">
<el-button type="primary" size="mini" icon="el-icon-edit" @click="getAdManage(item.Id)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top">
<el-button type="danger" size="mini" class="iconfont icon-quxiao1" @click="removeAdManage(item.Id)"></el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
</table>
<div class="noDataNotice" v-if="dataList.length<1">
<i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p>
</div>
</div>
</template>
<script>
import {
get
} from 'http';
export default {
data() {
return {
//查询参数
msg: {},
addMsg: {
Id: 0, //编号
AdImage: "", //广告图片
AdLink: "", //广告链接
},
loading: false,
dataList: [],
};
},
mounted() {
this.getList();
},
filters: {},
methods: {
//获取数据
getList() {
this.loading = true;
this.apipost("ShopAd_get_GetAdManageListService", this.msg, res => {
this.loading = false;
if (res.data.resultCode === 1) {
this.dataList = res.data.data;
} else {
this.Error(res.data.message)
}
}, null);
},
//添加修改广告
SetAdmanage() {
this.apipost("ShopAd_post_SetAdManageService", this.addMsg, res => {
if (res.data.resultCode === 1) {
this.getList();
} else {
this.Error(res.data.message)
}
}, null);
},
//根据编号获取广告详情
getAdManage(Id) {
this.apipost("ShopAd_get_GetAdManageService", {
Id: Id
}, res => {
if (res.data.resultCode === 1) {
this.addMsg = res.data.data;
} else {
this.Error(res.data.message)
}
}, null);
},
//根据编号删除广告详情
removeAdManage(Id) {
this.apipost("ShopAd_post_RemoveAdManageService", {
Id: Id
}, res => {
if (res.data.resultCode === 1) {
this.getList();
} else {
this.Error(res.data.message)
}
}, null);
},
}
};
</script>
......@@ -197,73 +197,57 @@
.addIntegralMall .ql-editor{
min-height: 200px;
}
.heightauto.el-select .el-input{
height: auto !important;
}
</style>
<template>
<el-row class="addIntegralMall">
<el-col :span="9">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="130px">
<span class="resource-lititle">基本信息</span>
<el-form-item label="商品名称" prop="name">
<el-input v-model="addMsg.name" class="w217"/>
<el-form-item label="商品名称" prop="Name">
<el-input v-model="addMsg.Name" class="w217"/>
</el-form-item>
<el-form-item label="购买等级要求">
<el-select filterable v-model="addMsg.isReqRate">
<el-option label="不限" :value="-0" :key="0"></el-option>
<el-form-item label="商品类型" prop="SellType">
<el-select filterable v-model="addMsg.SellType">
<el-option
v-for="item in MenberList"
:label="item.name"
:value="item.id"
:key="item.id"
v-for="item in CommodityTypeList"
:label="item.Name" :value="item.Id" :key="item.Id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品价格" prop="price">
<el-input v-model="addMsg.price" class="w217"/>
</el-form-item>
<el-form-item label="价格单位" prop="priceUnit">
<el-select filterable v-model="addMsg.priceUnit">
<el-option label="积分" :value="0" :key="0"></el-option>
<el-option label="人民币" :value="1" :key="1"></el-option>
</el-select>
</el-form-item>
<el-form-item label="市场价格" prop="marketPrice">
<el-input v-model="addMsg.marketPrice" class="w217"/>
</el-form-item>
<el-form-item label="限购">
<el-input v-model="addMsg.quota" class="w217"/>
</el-form-item>
<p class="tips" style="padding-left: 130px; font-size: 12px;">0为不限购</p>
<el-form-item label="商品类型" prop="state">
<el-select filterable v-model="addMsg.type">
<el-form-item label="商品分类" >
<el-select filterable v-model="addMsg.ParentCategoryId" @change="getGoodsTypeManager(2)">
<el-option
v-for="item in GoodsTypeList"
:label="item.name"
:value="item.id"
:key="item.id"
:label="item.Name" :value="item.Id" :key="item.Id"
></el-option>
</el-select>
<el-select filterable v-model="addMsg.CategoryId">
<el-option
v-for="item in GoodsTypeList2"
:label="item.Name" :value="item.Id" :key="item.Id"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="商品数量" prop="storeNum">
<el-input v-model="addMsg.storeNum" class="w217"/>
<el-form-item label="成本价" prop="CostPrice">
<el-input v-model="addMsg.CostPrice" class="w217"/>
</el-form-item>
<el-form-item label="商品状态">
<el-select filterable v-model="addMsg.state">
<el-option label="上架" :value="1" :key="1"></el-option>
<el-option label="下架" :value="0" :key="0"></el-option>
<el-option label="删除" :value="-1" :key="-1"></el-option>
</el-select>
<el-form-item label="销售价" prop="SellPrice">
<el-input v-model="addMsg.SellPrice" class="w217"/>
</el-form-item>
<el-form-item label="包装说明">
<el-input v-model="addMsg.packing" class="w217"/>
<el-form-item label="领队返佣金额" prop="LeaderRebate">
<el-input v-model="addMsg.LeaderRebate" class="w217"/>
</el-form-item>
<el-form-item label="商品所属活动">
<el-select filterable v-model="addMsg.ishot">
<el-option label="无" :value="0" :key="0"></el-option>
<el-option v-for="item in GoodsSeriesList" :label="item.name" :value="item.id" :key="item.id"></el-option>
</el-select>
<el-form-item label="公司返佣金额" prop="CompanyRebate">
<el-input v-model="addMsg.CompanyRebate" class="w217"/>
</el-form-item>
<el-form-item label="同行返佣金额" prop="ClientRebate">
<el-input v-model="addMsg.ClientRebate" class="w217"/>
</el-form-item>
<el-form-item label="配送说明">
<el-input v-model="addMsg.logistic" class="w217"/>
<el-form-item label="微途返佣金额" prop="WeiTuRebate">
<el-input v-model="addMsg.WeiTuRebate" class="w217"/>
</el-form-item>
</el-form>
</el-col>
......@@ -319,63 +303,25 @@
</div>
<p class="tips tips2">最多上传5张图片</p>
<span class="resource-lititle resource-lititle2">商品描述</span>
<my-edit v-on:edit-value="addMsg.description = arguments[0]" v-bind:editValue="addMsg.description"
<el-input type="textarea" :rows="2" v-model="addMsg.Description" class="w217"/>
<span class="resource-lititle resource-lititle2">商品说明</span>
<el-select v-model="addMsg.ExplainList" multiple placeholder="请选择" class="heightauto">
<el-option
v-for="item in CommodityExplainList"
:key="item.Id"
:label="item.Name"
:value="item.Id">
</el-option>
</el-select>
<span class="resource-lititle resource-lititle2">商品详情</span>
<my-edit v-on:edit-value="addMsg.Content = arguments[0]" v-bind:editValue="addMsg.Content"
v-bind:toolbarShow="toolbar" v-bind:placeholder="placeholder"></my-edit>
<!-- <span class="resource-lititle resource-lititle2">图片介绍</span>
<div class="resource-imglist clearfix">
<div class="re-img re-img2" v-for="(item,index) in DiningImageArray2" :key="index">
<img v-if="!item" src="../../assets/img/bg_c3@3x.png">
<img :src="item" :onerror="defaultImg">
<div class="imgzhe">
<div class="re-delte">
<i @click.stop="showImg(item)" class="iconfont icon-img_cz"></i>
</div>
<div class="re-delte" @click="delImg(index, 2)">
<i class="iconfont icon-xingzhuang"></i>
</div>
<div
class="re-delte"
@click.stop="ExchangeImg(index,0)"
v-if="index!=0&&item"
>
<i class="iconfont icon-zuoyi"></i>
</div>
<div
class="re-delte"
@click.stop="ExchangeImg(index,1)"
v-if="index!=DiningImageArray2.length-1&&item"
>
<i class="iconfont icon-youyi"></i>
</div>
</div>
</div>
</div>
<div class="add-img" v-if="DiningImageArray2.length<5">
<div class="reimg-add">
<i class="iconfont icon-img_haha bigAdd"></i>
<div class="ad-one">
<div class="re-upload">
<el-upload
:http-request="UploadImage2"
:multiple="true"
accept="image/jpeg, image/gif, image/png, image/bmp"
:show-file-list="false"
action
>
<i class="iconfont icon-img_bdsc"></i>
</el-upload>
</div>
</div>
</div>
</div> -->
</div>
<div class="bottom_sub">
<button
class="hollowFixedBtn"
@click="goIntegralMall('IntegralMall')"
@click="goIntegralMall('BuyingList')"
>{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</div>
......@@ -418,25 +364,26 @@ export default {
}
},
addMsg: {
id: 0,
name: "",
type: "",
images: "",
price: "",
priceUnit: 0,
marketPrice: "",
isReqRate: "",
description: "",
packing: "",
logistic: "",
state: 1,
quota: 0,
ishot: 0,
descripImg: '',
storeNum:''
Id: 0,
Name: "",
CoverImg: "",
CategoryId: "",
CostPrice: "",
SellPrice: 0,
SellType: "",
ExplainList: "",
FlowImgList: "",
Description: "",
Content: "",
LeaderRebate: 1,
CompanyRebate: 0,
ClientRebate: 0,
WeiTuRebate: '',
ParentCategoryId: ""
},
MenberList: [],
GoodsTypeList: [],
CommodityTypeList: [],
rules: {
memberLevel: [
{ required: true, message: "请输入会员等级", trigger: "blur" }
......@@ -460,21 +407,32 @@ export default {
},
//上传的文件数组
DiningImageArray: [],
DiningImageArray2: [],
imageOptions: {
navbar: false,
title: false
},
images: [],
defaultImg: 'this.src="' + require("../../assets/img/bg_z1@2x.png") + '"',
apiUrl: 'addGoodsInfo',
GoodsSeriesList: [],
CommodityExplainList: [],
GoodsTypeList2: [],
CategoryId: ''
};
},
components: {
"my-edit": MyEdit
},
methods: {
getDetails(id){
this.apipost("Shop_post_GetCommodityInfo", {CommodityId: id}, r=>{
if (r.data.resultCode === 1) {
this.addMsg = r.data.data
this.DiningImageArray = this.addMsg.FlowImgList
this.getGoodsTypeManager(2)
this.$forceUpdate()
}
}, null)
},
getGoodsSeries() {
this.loading = true;
this.apiJavaPost(
......@@ -514,34 +472,22 @@ export default {
let newArr = [];
newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/DMC/";
var path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
//统一图片处理
if (this.DiningImageArray.length === 5) {
return this.$message.error('最多上传5张图片')
}
var obj = {}
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.DiningImageArray.push(imgUrl);
});
},
UploadImage2(file) {
let newArr = [];
newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/DMC/";
this.UploadSelfFileT(path, newArr, x => {
//统一图片处理
var obj = {}
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.DiningImageArray2.push(imgUrl);
});
},
//删除图片
delImg(index, type) {
//更新图片
if (type) {
var item = this.DiningImageArray2[index];
this.DiningImageArray2.splice(index, 1);
} else {
var item = this.DiningImageArray[index];
this.DiningImageArray.splice(index, 1);
......@@ -564,20 +510,6 @@ export default {
}
this.$viewer.show();
},
getGoodsTypeManager: function() {
this.apiJavaPost(
"/api/IntegralManager/goodsTypeManager",
{ reqType: "find" },
res => {
if (res.data.resultCode === 1) {
this.GoodsTypeList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getMenberList: function() {
let msg = {
state: 1,
......@@ -607,23 +539,14 @@ export default {
});
},
addIntegralMall: function() {
let imgStr = '',imgStr2 = '';
for(let i = 0;i<this.DiningImageArray.length;i++) {
imgStr += `${this.DiningImageArray[i]},`
}
for(let i = 0;i<this.DiningImageArray2.length;i++) {
imgStr2 += `${this.DiningImageArray2[i]},`
}
this.addMsg.images = imgStr.substring(0, imgStr.length -1)
this.addMsg.descripImg = imgStr2.substring(0, imgStr2.length -1)
this.apiJavaPost(
"/api/IntegralManager/" + this.apiUrl,
this.addMsg,
if (this.addMsg.CategoryId == '') return this.$message.error('请选择商品分类')
this.addMsg.FlowImgList = this.DiningImageArray
this.apipost("Shop_post_SetCommodityInfo", this.addMsg,
res => {
if (res.data.resultCode === 1) {
this.$message.success(res.data.message);
setTimeout(() => {
this.goIntegralMall("IntegralMall");
this.goIntegralMall("BuyingList");
}, 1000);
} else {
this.Error(res.data.message);
......@@ -631,22 +554,62 @@ export default {
},
null
);
},
getGoodsTypeManager(t) {
this.apipost("Shop_post_GetCommodityCategoryList",{Name: "", ParentId: t ? this.addMsg.ParentCategoryId : 0},res => {
if (res.data.resultCode === 1) {
if(t) {
this.GoodsTypeList2 = res.data.data;
return
}
this.GoodsTypeList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getCommodityTypeList() {
this.apipost(
"Shop_post_GetCommodityTypeList",
{},
res => {
if (res.data.resultCode === 1) {
this.CommodityTypeList = res.data.data;
} else {
this.Error(res.data.message);
}
},
mounted() {
let obj = localStorage.editIntegralMall ? JSON.parse(localStorage.editIntegralMall) : false
if (obj) {
this.addMsg = obj
this.apiUrl = 'updateGoodsInfo'
if (obj.images) {
this.DiningImageArray = obj.images.split(',')
this.DiningImageArray2 = obj.descripImg.split(',')
null
);
},
getCommodityExplainList() {
this.apipost(
"Shop_post_GetCommodityExplainList",
{},
res => {
if (res.data.resultCode === 1) {
let CommodityExplainList = [];
for(let i = 0; i < res.data.data.length; i++) {
res.data.data[i].Id = parseInt(res.data.data[i].Id)
CommodityExplainList.push(res.data.data[i])
}
this.CommodityExplainList = CommodityExplainList
} else {
this.Error(res.data.message);
}
this.getMenberList();
},
null
);
},
},
mounted() {
let id = this.$route.query.proId
this.getDetails(id)
this.getCommodityTypeList();
this.getGoodsTypeManager();
this.getGoodsSeries();
this.getCommodityExplainList();
}
};
</script>
<style>
.height_auto.el-select .el-input{
height: auto
}
.BuyingList .el-button-group .el-button{
padding: 6px !important;
}
.BuyingList .el-button-group .el-button.iconfont{
font-size: 12px !important;
}
</style>
<template>
<div class="flexOne BuyingList">
<div class="query-box">
<ul class="user_time_picker">
<li>
<span>
<em>{{$t('MarketingActi.commName')}}</em>
<el-input v-model="msg.name" @keyup.enter.native="getList"></el-input>
</span>
</li>
<li>
<span>
<em>商品类型</em>
<el-select filterable v-model="msg.SellType">
<el-option :label="$t('pub.unlimitedSel')" :value="0" key="0"></el-option>
<el-option v-for="item in CommodityTypeList" :label="item.Name" :value="item.Id" :key="item.Id"></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>商品分类</em>
<el-select filterable v-model="msg.CategoryId">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option v-for="item in GoodsTypeList" :label="item.Name" :value="item.Id" :key="item.Id"></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('admin.admin_status')}}</em>
<el-select filterable v-model="msg.Status">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option label="待完善" :value="1"></el-option>
<el-option label="上架" :value="2"></el-option>
<el-option label="下架" :value="3"></el-option>
<el-option label="取消" :value="4"></el-option>
</el-select>
</span>
</li>
<li>
<input type="button" @click="getList" class="hollowFixedBtn" :value="$t('pub.searchBtn')">
<input type="button" @click="addIntegralMall('BuyingAdd')" class="normalBtn" :value="$t('pub.addBtn')">
</li>
</ul>
</div>
<div class="clearfix"></div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr>
<th width='80'>{{$t('MarketingActi.commNum')}}</th>
<th>{{$t('MarketingActi.commName')}}</th>
<th>分类名称</th>
<th>类型名称</th>
<th>成本价</th>
<th>销售价</th>
<th>领队返佣</th>
<th>公司返佣</th>
<th>同行返佣</th>
<th>微途返佣</th>
<th>状态</th>
<th>操作人</th>
<th>操作时间</th>
<th>{{$t('system.table_operation')}}</th>
</tr>
<tr v-for="item in dataList">
<td>{{item.Id}}</td>
<td>{{item.Name}}</td>
<td>{{item.CategoryName}}</td>
<td>{{item.SellTypeName}}</td>
<td>{{item.CostPrice}}</td>
<td>{{item.SellPrice}}</td>
<td>{{item.LeaderRebate}}</td>
<td>{{item.CompanyRebate}}</td>
<td>{{item.ClientRebate}}</td>
<td>{{item.WeiTuRebate}}</td>
<td>{{item.StatusName}}</td>
<td>{{item.UpdateBy}}</td>
<td>{{item.UpdateDate}}</td>
<td class="BuyingList">
<el-button-group size="mini">
<el-tooltip class="item" effect="dark" content="修改" placement="top">
<el-button type="primary" size="mini" class="iconfont icon-xiugai" @click="addIntegralMall('BuyingAdd', item.Id, '修改商品')"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="上架" placement="top">
<el-button type="success" size="mini" class="iconfont icon-shangjia1" @click="setProS(3, item.Id)" v-if="item.Status === 2 || item.Status === 1"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="下架" placement="top">
<el-button type="warning" size="mini" class="iconfont icon-xiajia1" @click="setProS(2, item.Id)" v-if="item.Status === 3"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="取消" placement="top">
<el-button type="danger" size="mini" class="iconfont icon-quxiao1" @click="setProS(4, item.Id)"></el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
</table>
<el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
</el-pagination>
<div class="noDataNotice" v-if="dataList.length<1">
<i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p>
</div>
</div>
</template>
<script>
export default {
data() {
return {
//请求
msg: {
pageSize: 15,
pageIndex: 1,
SellType: 0,
Name: '',
CategoryId: -1,
Status: -1
},
loading:false,
dataList:[],
GoodsTypeList: [],
total:0,
CommodityTypeList: [],
};
},
mounted() {
this.getList();
this.getCommodityTypeList();
this.getGoodsTypeManager();
},
filters: {
},
methods: {
setProS(t, id){
this.apipost("Shop_post_SetCommodityStatus",{CommodityId: id, Status: t},res => {
if (res.data.resultCode === 1) {
this.$message.success(res.data.message);
this.getList()
} else {
this.Error(res.data.message);
}
},
null
);
},
handleCurrentChange(val){
this.msg.pageIndex=val;
this.getList();
},
addIntegralMall: function( path, proId, tab){
this.$router.push({ name: path,query:{blank: 'y', proId: proId, tab: tab} })
},
getGoodsTypeManager() {
this.apipost("Shop_post_GetCommodityCategoryList",{Name: "", ParentId: -1},res => {
if (res.data.resultCode === 1) {
this.GoodsTypeList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
getCommodityTypeList() {
this.apipost(
"Shop_post_GetCommodityTypeList",
{},
res => {
if (res.data.resultCode === 1) {
this.CommodityTypeList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
//获取数据
getList() {
this.loading = true;
this.apipost("Shop_post_GetPageList", this.msg, res => {
this.loading = false;
if (res.data.resultCode === 1) {
this.dataList = res.data.data.pageData;
this.total= res.data.data.count;
} else {
this.Error(res.data.message)
}
}, null);
},
}
};
</script>
\ No newline at end of file
......@@ -119,7 +119,7 @@
<el-tooltip
class="item"
effect="dark"
:content="$t('active.ld_editInfo')"
content="修改"
placement="top"
>
<el-button
......@@ -129,6 +129,9 @@
@click="outerVisible=true,dialogTitle='修改商品类型',updateData(item)"
></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top">
<el-button @click="Delete(item)" type="danger" class='zidingyiFz' icon="el-icon-delete" circle ></el-button>
</el-tooltip>
</td>
</tr>
</table>
......@@ -194,12 +197,6 @@
</div>
</div>
</el-form-item>
<el-form-item label="是否展示" prop="state">
<el-select filterable v-model="addMsg.Status">
<el-option label="展示" :value="0"></el-option>
<el-option label="不展示" :value="1"></el-option>
</el-select>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button
......@@ -269,27 +266,18 @@ export default {
},
// 删除
Delete(item) {
this.$confirm("是否删除"+ item.name+"? 删除后不可恢复", "提示", {
this.$confirm("是否删除"+ item.Name+"? 删除后不可恢复", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.apiJavaPost(
"/api/IntegralManager/goodsTypeManager",
{ reqType: 'delete', id: item.id },
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
},
err => {}
);
this.updateData(item, 2)
this.addAward()
})
.catch(() => {});
.catch(() => {
this.resetInfo()
});
},
//上传图片
uploadTypeImgBtn(file){
......@@ -386,15 +374,17 @@ export default {
);
},
//修改信息
updateData(item) {
updateData(item, t) {
if (!t) {
this.outerVisible = true;
}
this.addMsg.IsShowIndex = item.IsShowIndex;
this.addMsg.Name = item.Name;
this.addMsg.ParentId = item.ParentId;
this.addMsg.Sort = item.Sort;
this.addMsg.Image = item.Image;
this.addMsg.Id = item.Id;
this.addMsg.Status = item.Status
this.addMsg.Status = t ? 1 : item.Status
},
//重置信息
resetInfo() {
......
......@@ -37,14 +37,16 @@
<em>{{$t('admin.admin_status')}}</em>
<el-select filterable v-model="msg.Status">
<el-option :label="$t('pub.unlimitedSel')" :value="-1"></el-option>
<el-option label="展示" :value="0"></el-option>
<el-option label="不展示" :value="1"></el-option>
<el-option label="待完善" :value="1"></el-option>
<el-option label="上架" :value="2"></el-option>
<el-option label="下架" :value="3"></el-option>
<el-option label="取消" :value="4"></el-option>
</el-select>
</span>
</li>
<li>
<input type="button" @click="getList" class="hollowFixedBtn" :value="$t('pub.searchBtn')">
<input type="button" @click="addIntegralMall('addIntegralMall', '', $t('MarketingActi.addComm'))" class="normalBtn" :value="$t('pub.addBtn')">
<input type="button" @click="addIntegralMall('BuyingAdd')" class="normalBtn" :value="$t('pub.addBtn')">
</li>
</ul>
</div>
......@@ -69,21 +71,27 @@
<td>{{item.Name}}</td>
<td>{{item.CategoryName}}</td>
<td>{{item.SellTypeName}}</td>
<td>{{item.price}}{{item.priceUnit === 1 ? '人民币' : '积分'}}</td>
<td>{{item.marketPrice}}</td>
<td>{{item.quota === 0 ? '不限购' : `限购${item.quota}次`}}</td>
<td>{{item.logistic}}</td>
<td>{{getHotName(item.ishot)}}</td>
<td>{{item.state === 1 ? '上架' : item.state === 0 ? '下架' : '删除'}}</td>
<td>{{item.CostPrice}}</td>
<td>{{item.SellPrice}}</td>
<td>{{item.LeaderRebate}}</td>
<td>{{item.CompanyRebate}}</td>
<td>{{item.ClientRebate}}</td>
<td>{{item.WeiTuRebate}}</td>
<td>
<el-button-group>
<el-tooltip class="item" effect="dark" :content="$t('active.ld_editInfo')" placement="top">
<el-button
type="primary"
icon="el-icon-edit"
circle
@click="addIntegralMall('addIntegralMall', item, '修改商品')"
></el-button>
<el-button type="primary" size="mini" icon="el-icon-edit" @click="addIntegralMall('BuyingAdd', item.Id, '修改商品')"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="上架" placement="top">
<el-button type="success" size="mini" class="iconfont icon-shangjia1"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="下架" placement="top">
<el-button type="warning" size="mini" class="iconfont icon-xiajia1"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="取消" placement="top">
<el-button type="danger" size="mini" class="iconfont icon-quxiao1"></el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
</table>
......@@ -111,7 +119,6 @@ export default {
loading:false,
dataList:[],
GoodsTypeList: [],
GoodsSeriesList: [],
total:0,
CommodityTypeList: [],
};
......@@ -119,7 +126,6 @@ export default {
mounted() {
this.getList();
this.getGoodsSeries();
this.getCommodityTypeList();
this.getGoodsTypeManager();
},
......@@ -131,33 +137,8 @@ export default {
this.msg.pageIndex=val;
this.getList();
},
getHotName: function (id) {
for(let i = 0; i < this.GoodsSeriesList.length; i++ ) {
if (this.GoodsSeriesList[i].id === id) {
return this.GoodsSeriesList[i].name
}
}
return '无'
},
getGoodsSeries() {
this.loading = true;
this.apiJavaPost(
"/api/IntegralManager/getGoodsSeries",
{},
res => {
this.loading = false;
if (res.data.resultCode === 1) {
this.GoodsSeriesList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
addIntegralMall: function( path, obj, tab){
localStorage.editIntegralMall = JSON.stringify(obj);
this.$router.push({ name: path,query:{blank: 'y', tab: tab} })
addIntegralMall: function( path, proId, tab){
this.$router.push({ name: path,query:{blank: 'y', proId: proId, tab: tab} })
},
getGoodsTypeManager() {
this.apipost("Shop_post_GetCommodityCategoryList",{Name: "", ParentId: 0},res => {
......
......@@ -172,12 +172,12 @@
</el-col>
<el-col :span="4">
<el-form-item label="订单号:">
<el-input placeholder="" class="" v-model="msg.OrderId" @keyup.native="checkInteger(msg,'OrderId')"></el-input>
<el-input placeholder="" class="" v-model="msg.OrderId" @keyup.native="checkInteger(msg,'OrderId')" maxlength="8"></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="团队编号:">
<el-input v-model="msg.TCID" class=""></el-input>
<el-input v-model="msg.TCID" class="" @keyup.native="checkInteger(msg,'TCID')" maxlength="7"></el-input>
</el-form-item>
</el-col>
<el-col :span="4">
......
......@@ -112,7 +112,7 @@ export default {
Vue.prototype.domainManager = function () {
let domainUrl = '';
domainUrl = "http://192.168.2.214:8082";
// domainUrl = "http://192.168.2.65:8025"; // 吴春
domainUrl = "http://192.168.2.16:8083"; // 吴春
let locationName = window.location.hostname;
let javaUrldo="";
......
......@@ -3953,15 +3953,23 @@ export default {
{
path: '/BuyingType',
name: 'BuyingType',
component: resolve => require(['@/components/activity/BuyingType'], resolve),
component: resolve => require(['@/components/Buying/BuyingType'], resolve),
meta: {
title: '代购商品类型'
}
},
{
path: '/BuyingAdd',
name: 'BuyingAdd',
component: resolve => require(['@/components/Buying/BuyingAdd'], resolve),
meta: {
title: '新增代购商品'
}
},
{
path: '/BuyingList',
name: 'BuyingList',
component: resolve => require(['@/components/activity/BuyingList'], resolve),
component: resolve => require(['@/components/Buying/BuyingList'], resolve),
meta: {
title: '代购商品列表'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment