Commit 46230300 authored by 黄奎's avatar 黄奎

页面修改

parent 7917aebb
This diff is collapsed.
...@@ -920,7 +920,7 @@ ...@@ -920,7 +920,7 @@
<div class="EC_div" :class="{'checkedNav':cked==7}"> <div class="EC_div" :class="{'checkedNav':cked==7}">
<div class="EC_ComTitle">委托授权书</div> <div class="EC_ComTitle">委托授权书</div>
<template v-for="(item,index) in dataList.guestList"> <template v-for="(item,index) in dataList.guestList">
<p class="shouquanNum" >{{index+1}}</p> <p class="shouquanNum">{{index+1}}</p>
<div class="shouquanDiv"> <div class="shouquanDiv">
<p class="ShouDiv_Title">委托授权书</p> <p class="ShouDiv_Title">委托授权书</p>
<p><span>{{dataList.company}}</span></p> <p><span>{{dataList.company}}</span></p>
...@@ -939,7 +939,7 @@ ...@@ -939,7 +939,7 @@
联系电话:<span>{{dataList.clientCall}}</span> 联系电话:<span>{{dataList.clientCall}}</span>
</p> </p>
<p>受托人承诺:本授权委托书为<span>{{item.surName+''+item.name}} <p>受托人承诺:本授权委托书为<span>{{item.surName+''+item.name}}
</span>(委托人姓名)本人出具,若不属实,因此产生的全部法律责任由受托人承担。受托人代表其他委托人在本合同书上签字,将严格履行受托人的权利和义务,将本合同的全部内容逐一向我代表的每一位委托人转达。> </span>(委托人姓名)本人出具,若不属实,因此产生的全部法律责任由受托人承担。受托人代表其他委托人在本合同书上签字,将严格履行受托人的权利和义务,将本合同的全部内容逐一向我代表的每一位委托人转达。>
</p> </p>
<p style="text-align:right;margin:20px 40px 20px 0">委托日期:<span>{{getDate(dataList.payDate)}}</span></p> <p style="text-align:right;margin:20px 40px 20px 0">委托日期:<span>{{getDate(dataList.payDate)}}</span></p>
</div> </div>
...@@ -1171,8 +1171,10 @@ ...@@ -1171,8 +1171,10 @@
</div> </div>
<div class="EC_floatdiv"> <div class="EC_floatdiv">
<input type="button" class="normalBtn" v-if="dataList.status==1" @click="getinvalid()" value="作废" /> <input type="button" class="normalBtn" v-if="dataList.status==1" @click="getinvalid()" value="作废" />
<input type="button" class="normalBtn" v-if="dataList.companySignature==''" @click="isShowFade=true,GetQrCode()" value="客户签字" /> <input type="button" class="normalBtn" v-if="dataList.companySignature==''" @click="isShowFade=true,GetQrCode()"
<input type="button" class="normalBtn" v-if="dataList.companySignature!=''" value="下载" @click="toContractPDF(dataList.contractNum)" /> value="客户签字" />
<input type="button" class="normalBtn" v-if="dataList.companySignature!=''" value="下载"
@click="toContractPDF(dataList.contractNum)" />
</div> </div>
</div> </div>
<div class="fade" v-show="isShowFade"></div> <div class="fade" v-show="isShowFade"></div>
...@@ -1201,7 +1203,7 @@ ...@@ -1201,7 +1203,7 @@
dataList: [], dataList: [],
isShowFade: false, isShowFade: false,
QRCodeStr: "", QRCodeStr: "",
pdfLoading:false pdfLoading: false
}; };
}, },
methods: { methods: {
...@@ -1229,8 +1231,7 @@ ...@@ -1229,8 +1231,7 @@
} else { } else {
} }
}).catch(err => { }).catch(err => {})
})
}, },
// 生成pdf // 生成pdf
...@@ -1240,7 +1241,7 @@ ...@@ -1240,7 +1241,7 @@
TCID: this.$route.query.TCID, TCID: this.$route.query.TCID,
orderID: this.$route.query.orderID, orderID: this.$route.query.orderID,
}; };
this.pdfLoading=true; this.pdfLoading = true;
this.$http({ this.$http({
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
...@@ -1268,8 +1269,7 @@ ...@@ -1268,8 +1269,7 @@
}, },
//获取数据 //获取数据
getList() { getList() {
//this.apiJavaPost("/api/contract/getContractInfo", this.msg, res => { this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => {
this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
} else { } else {
...@@ -1318,21 +1318,20 @@ ...@@ -1318,21 +1318,20 @@
//作废 //作废
getinvalid() { getinvalid() {
this.$confirm('是否作废?', '提示', { this.$confirm('是否作废?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.dataList.status=0; this.dataList.status = 0;
//this.apiJavaPost("/api/contract/dosaveOrUpdate",this.dataList,res => { this.apipost("travelcontract_post_UpdateStatusContractService", this.dataList, res => {
this.apipost("travelcontract_post_UpdateStatusContractService", this.dataList, res => { if (res.data.resultCode === 1) {
if (res.data.resultCode === 1) { this.Success(res.data.message);
this.Success(res.data.message); } else {
} else { this.Error(res.data.message);
this.Error(res.data.message); }
} }, null);
},null);
}).catch(() => { }).catch(() => {
this.$message.info('取消删除'); this.$message.info('取消删除');
}); });
} }
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<template> <template>
<div class="Sheepcommission"> <div class="Sheepcommission">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span>
<em>名称</em> <em>名称</em>
<el-input type="text" v-model="msg.Name" :placeholder="$t('pub.pleaseImport')"></el-input> <el-input type="text" v-model="msg.Name" :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>手机</em> <em>手机</em>
<el-input type="text" v-model="msg.Moblie" :placeholder="$t('pub.pleaseImport')"></el-input> <el-input type="text" v-model="msg.Moblie" :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()" /> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()" />
</li> </li>
</ul> </ul>
</div> </div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
<th>用户ID</th> <th>用户ID</th>
<th>名称</th> <th>名称</th>
<th>手机</th> <th>手机</th>
<th>分销等级</th> <th>分销等级</th>
<th>累计佣金</th> <th>累计佣金</th>
<th>可提现佣金</th> <th>可提现佣金</th>
<th>待结算佣金</th> <th>待结算佣金</th>
<th>已结算佣金</th> <th>已结算佣金</th>
</tr> </tr>
<tr v-for="(item,i) in dataList" :key="i"> <tr v-for="(item,i) in dataList" :key="i">
<td>{{item.UserId}}</td> <td>{{item.UserId}}</td>
...@@ -40,88 +39,82 @@ ...@@ -40,88 +39,82 @@
<td>{{item.TotalCommission}}</td> <td>{{item.TotalCommission}}</td>
<td>{{item.CommissionWithdrawal}}</td> <td>{{item.CommissionWithdrawal}}</td>
<td> <td>
<span @click="goUrl(item)" class="underline point">{{item.WaitCommission}}</span> <span @click="goUrl(item)" class="underline point">{{item.WaitCommission}}</span>
</td> </td>
<td> <td>
<span @click="goUrl(item)" class="underline point">{{item.Commission}}</span> <span @click="goUrl(item)" class="underline point">{{item.Commission}}</span>
</td> </td>
</tr> </tr>
<tr v-if="dataList.length==0"> <tr v-if="dataList.length==0">
<td colspan="15" align="center">暂无数据</td> <td colspan="15" align="center">暂无数据</td>
</tr> </tr>
</table> </table>
<el-pagination background @current-change="handleCurrentChange" <el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total='total'> :page-size="msg.pageSize" :total='total'>
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
import moment from "moment"; import moment from "moment";
export default { export default {
name: "Feedback", name: "Feedback",
data() { data() {
return { return {
total: 0, total: 0,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
Name:'', Name: '',
Moblie:'', Moblie: '',
IsSelectCommpany:1 IsSelectCommpany: 1
}, },
dataList: [], dataList: [],
loading: false loading: false
}; };
},
created() {
this.getList();
},
mounted() {},
methods: {
goUrl(item) {
this.$router.push({
name: "commissionSubsidiary",
query: {
UserId: item.UserId,
blank:'y'
}
})
}, },
handleCurrentChange(val) { created() {
this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
getList() { mounted() {},
this.loading = true; methods: {
this.apipost('Financial_get_GetMallUserCommissionPageList',this.msg,res=>{ goUrl(item) {
this.$router.push({
name: "commissionSubsidiary",
query: {
UserId: item.UserId,
blank: 'y'
}
})
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getList() {
this.loading = true;
this.apipost('Financial_get_GetMallUserCommissionPageList', this.msg, res => {
this.loading = false; this.loading = false;
if(res.data.resultCode==1){ if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
}else{ } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, err => {})
},err=>{})
// this.apiJavaPostSmall("/api/ERPOrderCommission/GetDistributionCommissionPageList", this.msg, res => {
// if (res.data.resultCode === 1) {
// this.total = res.data.data.count;
// this.dataList = res.data.data.pageData;
// } else {
// this.Error(res.data.message);
// }
// }, null);
}, },
} }
}; };
</script> </script>
<style> <style>
.Sheepcommission .underline{ .Sheepcommission .underline {
text-decoration: underline; text-decoration: underline;
} }
.Sheepcommission .point{
.Sheepcommission .point {
cursor: pointer; cursor: pointer;
} }
</style> </style>
<template> <template>
<div class="Sheepcommission"> <div class="Sheepcommission">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
<span> <span>
<em>名称</em> <em>名称</em>
<el-input type="text" v-model="msg.Name" :placeholder="$t('pub.pleaseImport')"></el-input> <el-input type="text" v-model="msg.Name" :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
<li> <li>
<span> <span>
<em>手机</em> <em>手机</em>
<el-input type="text" v-model="msg.Moblie" :placeholder="$t('pub.pleaseImport')"></el-input> <el-input type="text" v-model="msg.Moblie" :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()" /> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()" />
</li> </li>
</ul> </ul>
</div> </div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<tr> <tr>
<th>用户ID</th> <th>用户ID</th>
<th>名称</th> <th>名称</th>
<th>手机</th> <th>手机</th>
<th>分销等级</th> <th>分销等级</th>
<th>累计佣金</th> <th>累计佣金</th>
<th>可提现佣金</th> <th>可提现佣金</th>
<th>待结算佣金</th> <th>待结算佣金</th>
<th>已结算佣金</th> <th>已结算佣金</th>
</tr> </tr>
<tr v-for="(item,i) in dataList" :key="i"> <tr v-for="(item,i) in dataList" :key="i">
<td>{{item.UserId}}</td> <td>{{item.UserId}}</td>
...@@ -40,87 +39,81 @@ ...@@ -40,87 +39,81 @@
<td>{{item.TotalCommission}}</td> <td>{{item.TotalCommission}}</td>
<td>{{item.CommissionWithdrawal}}</td> <td>{{item.CommissionWithdrawal}}</td>
<td> <td>
<span @click="goUrl(item)" class="underline point">{{item.WaitCommission}}</span> <span @click="goUrl(item)" class="underline point">{{item.WaitCommission}}</span>
</td> </td>
<td> <td>
<span @click="goUrl(item)" class="underline point">{{item.Commission}}</span> <span @click="goUrl(item)" class="underline point">{{item.Commission}}</span>
</td> </td>
</tr> </tr>
<tr v-if="dataList.length==0"> <tr v-if="dataList.length==0">
<td colspan="15" align="center">暂无数据</td> <td colspan="15" align="center">暂无数据</td>
</tr> </tr>
</table> </table>
<el-pagination background @current-change="handleCurrentChange" <el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total='total'> :page-size="msg.pageSize" :total='total'>
</el-pagination> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
import moment from "moment"; import moment from "moment";
export default { export default {
name: "Feedback", name: "Feedback",
data() { data() {
return { return {
total: 0, total: 0,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
Name:'', Name: '',
Moblie:'', Moblie: '',
}, },
dataList: [], dataList: [],
loading: false loading: false
}; };
},
created() {
this.getList();
},
mounted() {},
methods: {
goUrl(item) {
this.$router.push({
name: "commissionSubsidiary",
query: {
UserId: item.UserId,
blank:'y'
}
})
}, },
handleCurrentChange(val) { created() {
this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
getList() { mounted() {},
this.loading = true; methods: {
this.apipost('Financial_get_GetMallUserCommissionPageList',this.msg,res=>{ goUrl(item) {
this.$router.push({
name: "commissionSubsidiary",
query: {
UserId: item.UserId,
blank: 'y'
}
})
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getList() {
this.loading = true;
this.apipost('Financial_get_GetMallUserCommissionPageList', this.msg, res => {
this.loading = false; this.loading = false;
if(res.data.resultCode==1){ if (res.data.resultCode == 1) {
this.total = res.data.data.count; this.total = res.data.data.count;
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
}else{ } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}, err => {})
},err=>{})
// this.apiJavaPostSmall("/api/ERPOrderCommission/GetDistributionCommissionPageList", this.msg, res => {
// if (res.data.resultCode === 1) {
// this.total = res.data.data.count;
// this.dataList = res.data.data.pageData;
// } else {
// this.Error(res.data.message);
// }
// }, null);
}, },
} }
}; };
</script> </script>
<style> <style>
.Sheepcommission .underline{ .Sheepcommission .underline {
text-decoration: underline; text-decoration: underline;
} }
.Sheepcommission .point{
.Sheepcommission .point {
cursor: pointer; cursor: pointer;
} }
</style> </style>
...@@ -170,14 +170,6 @@ export default { ...@@ -170,14 +170,6 @@ export default {
}, },
err => {} err => {}
); );
// this.apiJavaPostSmall("/api/ERPOrderCommission/GetDistributionOrderCommissionPageList", this.msg, res => {
// if (res.data.resultCode === 1) {
// this.total = res.data.data.count;
// this.dataList = res.data.data.pageData;
// } else {
// this.Error(res.data.message);
// }
// }, null);
} }
} }
}; };
......
This diff is collapsed.
...@@ -1061,7 +1061,6 @@ ...@@ -1061,7 +1061,6 @@
}, },
//获取数据 //获取数据
getList() { getList() {
//this.apiJavaPost("/api/contract/getContractInfo", this.msg, res => {
this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => { this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
...@@ -1135,7 +1134,6 @@ ...@@ -1135,7 +1134,6 @@
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.dataList.status = 0; this.dataList.status = 0;
// this.apiJavaPost("/api/contract/dosaveOrUpdate", this.dataList, res => {
this.apipost("travelcontract_post_UpdateStatusContractService", this.dataList, res => { this.apipost("travelcontract_post_UpdateStatusContractService", this.dataList, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
......
...@@ -1499,7 +1499,6 @@ ...@@ -1499,7 +1499,6 @@
document.documentElement.scrollTop = anchor.offsetTop - 70 document.documentElement.scrollTop = anchor.offsetTop - 70
}, },
getList() { getList() {
// this.apiJavaPost("/api/contract/getContractInfo", this.msg, res => {
this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => { this.apipost("travelcontract_post_GetContractInfoService", this.msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
var tempObj = res.data.data; var tempObj = res.data.data;
...@@ -1698,7 +1697,6 @@ ...@@ -1698,7 +1697,6 @@
} }
this.CtObj.travelContent = this.$refs.TcTravel_Table.innerHTML; this.CtObj.travelContent = this.$refs.TcTravel_Table.innerHTML;
this.CtObj.rbGroupId = this.CurrentUserInfo.RB_Group_id this.CtObj.rbGroupId = this.CurrentUserInfo.RB_Group_id
// this.apiJavaPost("/api/contract/dosaveOrUpdate", this.CtObj, res => {
this.apipost("travelcontract_post_SetContractService", this.CtObj, res => { this.apipost("travelcontract_post_SetContractService", this.CtObj, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
...@@ -1730,7 +1728,6 @@ ...@@ -1730,7 +1728,6 @@
}).then(() => { }).then(() => {
this.CtObj.status = 0; this.CtObj.status = 0;
this.CtObj.auditContract = 0; this.CtObj.auditContract = 0;
//this.apiJavaPost("/api/contract/dosaveOrUpdate", this.CtObj, res => {
this.apipost("travelcontract_post_UpdateStatusContractService", this.CtObj, res => { this.apipost("travelcontract_post_UpdateStatusContractService", this.CtObj, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.Success(res.data.message); this.Success(res.data.message);
...@@ -1759,8 +1756,6 @@ ...@@ -1759,8 +1756,6 @@
}); });
}, },
sendAudit() { sendAudit() {
//this.CtObj.auditContract = 1;
//this.apiJavaPost("/api/contract/dosaveOrUpdate", this.CtObj, res => {
this.apipost("travelcontract_get_UpdateAuditContractService", { this.apipost("travelcontract_get_UpdateAuditContractService", {
"AuditContract": 1, "AuditContract": 1,
"Id": this.CtObj.Id "Id": this.CtObj.Id
...@@ -1881,7 +1876,6 @@ ...@@ -1881,7 +1876,6 @@
let msg = { let msg = {
orderId: this.msg.orderID orderId: this.msg.orderID
} }
// this.apiJavaPost("/api/contract/getContractGuestByOrderId", msg, res => {
this.apipost("travelcontract_post_GetContractGuestByOrderId", msg, res => { this.apipost("travelcontract_post_GetContractGuestByOrderId", msg, res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.backGuest = res.data.data; this.backGuest = res.data.data;
......
This diff is collapsed.
This diff is collapsed.
...@@ -570,10 +570,7 @@ ...@@ -570,10 +570,7 @@
return this.$message.error(this.$t('rule.yxjzrbxdyksshijian')) return this.$message.error(this.$t('rule.yxjzrbxdyksshijian'))
} }
this.isleaveBtn = false; this.isleaveBtn = false;
this.apiJavaPost( this.apiJavaPost("/api/sell/coupon/setCoupon", this.addMsg, res => {
"/api/sell/coupon/setCoupon",
this.addMsg,
res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message); this.$message.success(res.data.message);
this.outerVisible = false; this.outerVisible = false;
......
<style> <style>
.height_auto.el-select .el-input{ .height_auto.el-select .el-input {
height: auto height: auto
} }
</style> </style>
<template> <template>
...@@ -44,7 +45,8 @@ ...@@ -44,7 +45,8 @@
</li> </li>
<li> <li>
<input type="button" @click="getList" class="hollowFixedBtn" :value="$t('pub.searchBtn')"> <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('addIntegralMall', '', $t('MarketingActi.addComm'))"
class="normalBtn" :value="$t('pub.addBtn')">
</li> </li>
</ul> </ul>
</div> </div>
...@@ -65,125 +67,125 @@ ...@@ -65,125 +67,125 @@
<th>{{$t('system.table_operation')}}</th> <th>{{$t('system.table_operation')}}</th>
</tr> </tr>
<tr v-for="item in dataList"> <tr v-for="item in dataList">
<td>{{item.id}}</td> <td>{{item.id}}</td>
<td>{{item.name}}</td> <td>{{item.name}}</td>
<td>{{item.storeNum}}</td> <td>{{item.storeNum}}</td>
<td>{{item.isReqRate === -1 ? '不限' : `${item.isReqRate}级`}}</td> <td>{{item.isReqRate === -1 ? '不限' : `${item.isReqRate}级`}}</td>
<td>{{item.price}}{{item.priceUnit === 1 ? '人民币' : '积分'}}</td> <td>{{item.price}}{{item.priceUnit === 1 ? '人民币' : '积分'}}</td>
<td>{{item.marketPrice}}</td> <td>{{item.marketPrice}}</td>
<td>{{item.quota === 0 ? '不限购' : `限购${item.quota}次`}}</td> <td>{{item.quota === 0 ? '不限购' : `限购${item.quota}次`}}</td>
<td>{{item.logistic}}</td> <td>{{item.logistic}}</td>
<td>{{getHotName(item.ishot)}}</td> <td>{{getHotName(item.ishot)}}</td>
<td>{{item.state === 1 ? '上架' : item.state === 0 ? '下架' : '删除'}}</td> <td>{{item.state === 1 ? '上架' : item.state === 0 ? '下架' : '删除'}}</td>
<td> <td>
<el-tooltip class="item" effect="dark" :content="$t('active.ld_editInfo')" placement="top"> <el-tooltip class="item" effect="dark" :content="$t('active.ld_editInfo')" placement="top">
<el-button <el-button type="primary" icon="el-icon-edit" circle
type="primary" @click="addIntegralMall('addIntegralMall', item, '修改商品')"></el-button>
icon="el-icon-edit" </el-tooltip>
circle </td>
@click="addIntegralMall('addIntegralMall', item, '修改商品')"
></el-button>
</el-tooltip>
</td>
</tr> </tr>
</table> </table>
<el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total> <el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper"
</el-pagination> :page-size=msg.pageSize :total=total>
</el-pagination>
<div class="noDataNotice" v-if="dataList.length<1"> <div class="noDataNotice" v-if="dataList.length<1">
<i class="iconfont icon-kong"></i> <i class="iconfont icon-kong"></i>
<p>{{$t("active.ld_noData")}}</p> <p>{{$t("active.ld_noData")}}</p>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
//请求 //请求
msg: { msg: {
pageSize: 15, pageSize: 15,
pageIndex: 1, pageIndex: 1,
state: 1, state: 1,
name: '', name: '',
type: '', type: '',
ishot: '' ishot: ''
}, },
loading:false, loading: false,
dataList:[], dataList: [],
GoodsTypeList: [], GoodsTypeList: [],
GoodsSeriesList: [], GoodsSeriesList: [],
total:0, total: 0,
}; };
}, },
mounted() {
this.getList();
this.getGoodsTypeManager();
this.getGoodsSeries();
},
filters: {
},
methods: { mounted() {
handleCurrentChange(val){
this.msg.pageIndex=val;
this.getList(); this.getList();
this.getGoodsTypeManager();
this.getGoodsSeries();
}, },
getHotName: function (id) { filters: {},
for(let i = 0; i < this.GoodsSeriesList.length; i++ ) {
if (this.GoodsSeriesList[i].id === id) { methods: {
return this.GoodsSeriesList[i].name handleCurrentChange(val) {
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 '无'
return '无' },
}, getGoodsSeries() {
getGoodsSeries() { this.loading = true;
this.loading = true; this.apiJavaPost("/api/IntegralManager/getGoodsSeries", {},
this.apiJavaPost( res => {
"/api/IntegralManager/getGoodsSeries", this.loading = false;
{}, if (res.data.resultCode === 1) {
res => { this.GoodsSeriesList = res.data.data;
this.loading = false; } else {
if (res.data.resultCode === 1) { this.Error(res.data.message);
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
} }
}, })
null },
); getGoodsTypeManager() {
}, this.apiJavaPost("/api/IntegralManager/goodsTypeManager", {
addIntegralMall: function( path, obj, tab){ reqType: "find"
localStorage.editIntegralMall = JSON.stringify(obj); }, res => {
this.$router.push({ name: path,query:{blank: 'y', tab: tab} }) if (res.data.resultCode === 1) {
}, this.GoodsTypeList = res.data.data;
getGoodsTypeManager() { } else {
this.apiJavaPost( this.Error(res.data.message);
"/api/IntegralManager/goodsTypeManager", }
{ reqType: "find" }, },
res => { null
);
},
//获取数据
getList() {
this.loading = true;
this.apiJavaPost("/api/IntegralManager/getGoodsPageList", this.msg, res => {
this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.GoodsTypeList = res.data.data; this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message)
} }
}, }, null);
null },
); }
}, };
//获取数据
getList() { </script>
this.loading = true;
this.apiJavaPost("/api/IntegralManager/getGoodsPageList", 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
This diff is collapsed.
This diff is collapsed.
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