Commit e324c798 authored by wangwei's avatar wangwei

Merge remote-tracking branch 'origin/development' into development

parents 4da70632 504d7638
...@@ -41,6 +41,16 @@ ...@@ -41,6 +41,16 @@
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </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>
<el-form-item label="订单状态"> <el-form-item label="订单状态">
<el-select multiple v-model="searchFrom.status" placeholder="请选择" @change="getOrderList" clearable> <el-select multiple v-model="searchFrom.status" placeholder="请选择" @change="getOrderList" clearable>
...@@ -148,6 +158,14 @@ ...@@ -148,6 +158,14 @@
<el-button type="text" v-if="scope.row.status === 5 || scope.row.status === 3" @click="showRef(scope.row)">{{scope.row.status|status}}</el-button> <el-button type="text" v-if="scope.row.status === 5 || scope.row.status === 3" @click="showRef(scope.row)">{{scope.row.status|status}}</el-button>
<div v-if="scope.row.status !== 5 && scope.row.status !== 3">{{scope.row.status|status}}</div> <div v-if="scope.row.status !== 5 && scope.row.status !== 3">{{scope.row.status|status}}</div>
</template> </template>
</el-table-column>
<el-table-column
prop="order_type"
label="支付类型"
>
<template slot-scope="scope">
{{scope.row.order_type | buyTypeWay}}
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="实付金额" label="实付金额"
...@@ -280,7 +298,7 @@ ...@@ -280,7 +298,7 @@
import detailDialog from './detail' import detailDialog from './detail'
import refundDetail from './refundDetail' import refundDetail from './refundDetail'
import AddressArray from '../framework/address-picker/addr' 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,BUYTYPEWAY} from "../../util/wordbook";
import CommonJs from '../../util/common'; import CommonJs from '../../util/common';
export default { export default {
...@@ -308,6 +326,7 @@ ...@@ -308,6 +326,7 @@
invite_type: '', invite_type: '',
invite_id: '', invite_id: '',
buy_type: '', buy_type: '',
order_type: '',
status: [1,4,5], status: [1,4,5],
goods_id: '', goods_id: '',
out_trade_no: '', out_trade_no: '',
...@@ -334,6 +353,7 @@ ...@@ -334,6 +353,7 @@
inviteTypeOption: INVITETYPEOPTION, inviteTypeOption: INVITETYPEOPTION,
orderStatusOption: ORDERSTATUSOPTION, orderStatusOption: ORDERSTATUSOPTION,
buyTypeOption: BUYTYPEOPTION, buyTypeOption: BUYTYPEOPTION,
orderTypeOption:BUYWay,
inviteSearchPlaceholder: '', inviteSearchPlaceholder: '',
rules:{ rules:{
value:[ value:[
...@@ -390,6 +410,9 @@ ...@@ -390,6 +410,9 @@
} }
if (this.searchFrom.buy_type) { if (this.searchFrom.buy_type) {
json.buy_type = 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) { if (this.searchFrom.status) {
json.status = this.searchFrom.status.toString() json.status = this.searchFrom.status.toString()
...@@ -490,6 +513,9 @@ ...@@ -490,6 +513,9 @@
} }
if (this.searchFrom.buy_type) { if (this.searchFrom.buy_type) {
json.buy_type = 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) { if (this.searchFrom.status) {
json.status = this.searchFrom.status.toString() json.status = this.searchFrom.status.toString()
...@@ -677,6 +703,9 @@ ...@@ -677,6 +703,9 @@
}, },
filterGoods(val){ filterGoods(val){
return '[' + GOODSTYPE[val.goods_type] + ']' + '[' +val.current_price / 100 + '元]' + val.name return '[' + GOODSTYPE[val.goods_type] + ']' + '[' +val.current_price / 100 + '元]' + val.name
},
buyTypeWay(value){
return BUYTYPEWAY[value]
} }
} }
} }
......
...@@ -66,9 +66,10 @@ ...@@ -66,9 +66,10 @@
<el-select v-model="form.order_type" placeholder="请选择"> <el-select v-model="form.order_type" placeholder="请选择">
<el-option <el-option
v-for="item in buyWayOptioms" v-for="item in buyWayOptioms"
:key="item.value" :key="item.id"
:label="item.label" :label="item.value"
:value="item.value"> :value="item.id"
:disabled="item.disabled">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="start_time" prop="start_time"
label="开课时间" sortable> label="开课时间">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="操作" v-if="!$store.state.readonly"> label="操作" v-if="!$store.state.readonly">
......
...@@ -92,7 +92,6 @@ ...@@ -92,7 +92,6 @@
<script> <script>
import {getTeacherDetailApi,addTeacherApi,editTeacherApi,uploadFileApi} from "../../service/api"; import {getTeacherDetailApi,addTeacherApi,editTeacherApi,uploadFileApi} from "../../service/api";
import {TEACHERTYPE} from "../../util/wordbook";
export default { export default {
name: "dialogObj", name: "dialogObj",
props:[ props:[
......
...@@ -67,17 +67,28 @@ export const BUYTYPEOPTION = [ ...@@ -67,17 +67,28 @@ export const BUYTYPEOPTION = [
export const BUYWay = [ export const BUYWay = [
{ {
id: 1, id: 1,
value: '微信' value: '微信',
disabled: true
}, },
{ {
id: 2, id: 2,
value: '支付宝' value: '支付宝'
}, },
{
id: 4,
value: '京东'
},
{ {
id: 3, id: 3,
value: '其他' value: '其他'
} }
] ]
export const BUYTYPEWAY = {
'1':'微信',
'2':'支付宝',
'4':'京东',
'3':'其他'
};
export const ORDERSTATUSOPTION = [ export const ORDERSTATUSOPTION = [
{ {
id: 0, id: 0,
......
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