Commit 3334ff8d authored by 黄奎's avatar 黄奎

新增订单查询

parent 76eaf6a8
<style>
.CommondityOrderList .el-button-group .el-button{
padding:5px;
.CommondityOrderList .el-button-group .el-button {
padding: 5px;
}
</style>
<template>
......@@ -51,26 +52,38 @@
<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>性别</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">
<tbody v-for="item in dataList">
<tr>
<td>{{item.CorderId}}</td>
<td>{{item.AccountName}}</td>
<td>{{item.LoginAccount}}</td>
<td>{{item.MobilePhone}}</td>
<td>{{item.PassportNo}}</td>
<td>{{item.SexStr}}</td>
<td>{{item.AccountStatusStr}}</td>
<td>{{item.CreateTimeStr}}</td>
<td>
<p> 商品名称: {{item.CommodityName}}</p>
<p> 价格信息: {{item.CommodityNum}}(数量) * {{item.TradePrice}}(单价)-
{{item.DeductionPrice}}(抵扣)={{item.PreferPrice}}</p>
<p> 订单状态: {{item.COrderStateStr}} 下单时间:{{item.CreateTimeStr}}</p>
</td>
<td>
<p> 收货地址: {{item.GuestProvince}}{{item.GuestCity}}{{item.GuestDistrictCounty}}{{item.DetaileAddress}}</p>
<p> 联系人: {{item.LinkMan}}</p>
<p> 联系电话: {{item.LinkTel}}</p>
</td>
<td>{{item.CustomerName}}&nbsp;/&nbsp;<span style="color:red;">{{item.CustomerCommission}}</span></td>
<td>{{item.SaleName}}</td>
<td>{{item.CompanyCommission}} </td>
<td>{{item.LeaderCommission}} </td>
<td>
<el-button-group>
<template v-if="item.AccountStatus==0">
<!-- <template v-if="item.AccountStatus==0">
<el-tooltip class="item" effect="dark" content="禁用" placement="top">
<el-button type="primary" size="mini" icon="iconfont icon-jinyong" @click="SetAccountStatus(item.Id,1)">
</el-button>
......@@ -85,13 +98,14 @@
<el-button type="primary" size="mini" icon="iconfont icon-qidong" @click="SetAccountStatus(item.Id,0)">
</el-button>
</el-tooltip>
</template>
</template> -->
</el-button-group>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="8">
<td colspan="9">
<el-pagination background @current-change="handleCurrentChange" layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize" :total="msg.total">
</el-pagination>
......@@ -107,11 +121,6 @@
return {
//查询参数
msg: {
AccountName: "", //姓名
PassportNo: "", //护照
MobilePhone: "", //手机号码
AccountStatus: -1, //状态,
LoginAccount: "", //登录账户
pageIndex: 1,
pageSize: 10,
total: 0,
......@@ -137,42 +146,18 @@
//获取数据
getList() {
this.loading = true;
this.apipost("ShopGuest_get_GetGuestAccountPageListService", this.msg, res => {
this.apipost("ShopOrder_get_GetCommodityOrderPageListService", this.msg, res => {
this.loading = false;
if (res.data.resultCode === 1) {
this.dataList = res.data.data.pageData;
console.log("this.dataList", this.dataList);
this.msg.total = res.data.data.count;
} else {
this.Error(res.data.message);
}
}, null);
},
//修改账户类型
SetAccountStatus(Id, AccountStatus) {
this.editMsg.Id = Id;
this.editMsg.AccountStatus = AccountStatus;
var tipStr = "";
if (AccountStatus == 0) {
tipStr = "启用";
} else if (AccountStatus == 1) {
tipStr = "禁用";
} else if (AccountStatus == 2) {
tipStr = "删除";
}
var that = this;
this.Confirm("是否[" + tipStr + "]此账户?", function () {
that.apipost("ShopGuest_post_SetGuestAccountStatusService", that.editMsg, res => {
if (res.data.resultCode === 1) {
that.editMsg.Id = 0;
that.editMsg.AccountStatus = 0;
that.getList();
} else {
that.Error(res.data.message);
}
}, null);
});
}
}
};
......
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