Commit 2c258fa7 authored by chenfenglei's avatar chenfenglei

老师列表加手机号搜索

parent e3899215
......@@ -41,6 +41,16 @@
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="支付类型">
<el-select v-model="searchFrom.order_type" placeholder="请选择" @change="getOrderList" clearable>
<el-option
v-for="item in orderTypeOption"
:key="item.id"
:label="item.value"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="订单状态">
<el-select multiple v-model="searchFrom.status" placeholder="请选择" @change="getOrderList" clearable>
......@@ -280,7 +290,7 @@
import detailDialog from './detail'
import refundDetail from './refundDetail'
import AddressArray from '../framework/address-picker/addr'
import {INVITETYPE,ORDERSTATUS,BUYTYPE,BUYTYPEOPTION,ORDERSTATUSOPTION,INVITETYPEOPTION,GOODSTYPE} from "../../util/wordbook";
import {INVITETYPE,ORDERSTATUS,BUYTYPE,BUYTYPEOPTION,ORDERSTATUSOPTION,INVITETYPEOPTION,GOODSTYPE,BUYWay} from "../../util/wordbook";
import CommonJs from '../../util/common';
export default {
......@@ -308,6 +318,7 @@
invite_type: '',
invite_id: '',
buy_type: '',
order_type: '',
status: [1,4,5],
goods_id: '',
out_trade_no: '',
......@@ -334,6 +345,7 @@
inviteTypeOption: INVITETYPEOPTION,
orderStatusOption: ORDERSTATUSOPTION,
buyTypeOption: BUYTYPEOPTION,
orderTypeOption:BUYWay,
inviteSearchPlaceholder: '',
rules:{
value:[
......@@ -390,6 +402,9 @@
}
if (this.searchFrom.buy_type) {
json.buy_type = this.searchFrom.buy_type
}
if (this.searchFrom.order_type) {
json.order_type = this.searchFrom.order_type
}
if (this.searchFrom.status) {
json.status = this.searchFrom.status.toString()
......@@ -490,6 +505,9 @@
}
if (this.searchFrom.buy_type) {
json.buy_type = this.searchFrom.buy_type
}
if (this.searchFrom.order_type) {
json.order_type = this.searchFrom.order_type
}
if (this.searchFrom.status) {
json.status = this.searchFrom.status.toString()
......
......@@ -579,7 +579,7 @@
user_id: this.id,
limit: this.limit,
page: this.nowPage,
status: '1,3'
status: '1,4,5'
};
getOrderListApi(json).then(res=>{
res.list.forEach(i=>{
......
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