Commit 09a6c779 authored by chenfenglei's avatar chenfenglei

海报

parent 70679bb9
...@@ -2,10 +2,16 @@ ...@@ -2,10 +2,16 @@
<div class="sms"> <div class="sms">
<el-form ref="searchFrom" inline :model="searchFrom" label-width="100px"> <el-form ref="searchFrom" inline :model="searchFrom" label-width="100px">
<el-form-item label="交易订单号"> <el-form-item label="交易订单号">
<el-input v-model="searchFrom.order_id" @change="getList"></el-input> <el-input v-model="searchFrom.order_id"></el-input>
</el-form-item>
<el-form-item label="购买人">
<el-input v-model="searchFrom.nickname"></el-input>
</el-form-item>
<el-form-item label="购买人ID">
<el-input v-model="searchFrom.user_id"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="手机号"> <el-form-item label="手机号">
<el-input v-model="searchFrom.mobile" @change="getList"></el-input> <el-input v-model="searchFrom.mobile"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="绑定状态"> <el-form-item label="绑定状态">
<el-select v-model="searchFrom.user_buy" placeholder="请选择" @change="getList" clearable> <el-select v-model="searchFrom.user_buy" placeholder="请选择" @change="getList" clearable>
...@@ -25,30 +31,6 @@ ...@@ -25,30 +31,6 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item label="创建时间">
<el-date-picker
v-model="searchFrom.payTime"
unlink-panels
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="getList">
</el-date-picker>
</el-form-item> -->
<!-- <el-form-item label="同步时间">
<el-date-picker
v-model="searchFrom.syncTime"
unlink-panels
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
@change="getList">
</el-date-picker>
</el-form-item> -->
<el-form-item> <el-form-item>
<el-button type="primary" @click="getList">搜索</el-button> <el-button type="primary" @click="getList">搜索</el-button>
<el-button type="primary" plain @click="exportTable(list)">导出</el-button> <el-button type="primary" plain @click="exportTable(list)">导出</el-button>
...@@ -148,8 +130,8 @@ export default { ...@@ -148,8 +130,8 @@ export default {
mobile: "", mobile: "",
order_id: "", order_id: "",
teacher_id: "", teacher_id: "",
payTime: [], user_id:"",
syncTime: [] nickname:"",
}, },
list: [], list: [],
teacherList: [], teacherList: [],
...@@ -217,6 +199,12 @@ export default { ...@@ -217,6 +199,12 @@ export default {
}; };
if (this.searchFrom.mobile) { if (this.searchFrom.mobile) {
json.mobile = this.searchFrom.mobile; json.mobile = this.searchFrom.mobile;
}
if (this.searchFrom.nickname) {
json.nickname = this.searchFrom.nickname;
}
if (this.searchFrom.user_id) {
json.user_id = this.searchFrom.user_id;
} }
if (this.searchFrom.teacher_id) { if (this.searchFrom.teacher_id) {
json.teacher_id = this.searchFrom.teacher_id; json.teacher_id = this.searchFrom.teacher_id;
...@@ -233,14 +221,6 @@ export default { ...@@ -233,14 +221,6 @@ export default {
if (this.searchFrom.goods_id) { if (this.searchFrom.goods_id) {
json.goods_id = this.searchFrom.goods_id; json.goods_id = this.searchFrom.goods_id;
} }
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
json.start_at = this.searchFrom.payTime[0];
json.end_at = this.searchFrom.payTime[1];
}
if (this.searchFrom.syncTime && this.searchFrom.syncTime.length > 0) {
json.pull_start_at = this.searchFrom.syncTime[0];
json.pull_end_at = this.searchFrom.syncTime[1];
}
getyunjiApi(json).then(res => { getyunjiApi(json).then(res => {
this.total = res.total; this.total = res.total;
this.list = res.list ? res.list : []; this.list = res.list ? res.list : [];
...@@ -289,21 +269,18 @@ export default { ...@@ -289,21 +269,18 @@ export default {
if (this.searchFrom.mobile) { if (this.searchFrom.mobile) {
json.mobile = this.searchFrom.mobile; json.mobile = this.searchFrom.mobile;
} }
if (this.searchFrom.nickname) {
json.nickname = this.searchFrom.nickname;
}
if (this.searchFrom.user_id) {
json.user_id = this.searchFrom.user_id;
}
if (this.searchFrom.goods_id) { if (this.searchFrom.goods_id) {
json.goods_id = this.searchFrom.goods_id; json.goods_id = this.searchFrom.goods_id;
} }
if (this.searchFrom.teacher_id) { if (this.searchFrom.teacher_id) {
json.teacher_id = this.searchFrom.teacher_id; json.teacher_id = this.searchFrom.teacher_id;
} }
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
json.start_at = this.searchFrom.payTime[0];
json.end_at = this.searchFrom.payTime[1];
}
if (this.searchFrom.syncTime && this.searchFrom.syncTime.length > 0) {
json.pull_start_at = this.searchFrom.syncTime[0];
json.pull_end_at = this.searchFrom.syncTime[1];
}
exportExcelApi(`api/admin/yunji/order/export`, json); exportExcelApi(`api/admin/yunji/order/export`, json);
} }
}, },
......
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