|
@@ -13,8 +13,8 @@
|
|
|
<Row type="flex" class="mt10">
|
|
<Row type="flex" class="mt10">
|
|
|
<Col class="ivu-text-left mr">
|
|
<Col class="ivu-text-left mr">
|
|
|
<FormItem label="订单状态:">
|
|
<FormItem label="订单状态:">
|
|
|
- <Select v-model="pagination.refund_status" style="width: 250px"
|
|
|
|
|
- @on-change="selectChange2(pagination.refund_status)">
|
|
|
|
|
|
|
+ <Select v-model="pagination.status" style="width: 250px"
|
|
|
|
|
+ @on-change="selectChange2(pagination.status)">
|
|
|
<Option v-for="item in num" :key="item.value" :value="item.value">{{ item.name }}</Option>
|
|
<Option v-for="item in num" :key="item.value" :value="item.value">{{ item.name }}</Option>
|
|
|
</Select>
|
|
</Select>
|
|
|
<!-- <RadioGroup
|
|
<!-- <RadioGroup
|
|
@@ -28,13 +28,13 @@
|
|
|
</RadioGroup> -->
|
|
</RadioGroup> -->
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
</Col>
|
|
</Col>
|
|
|
- <Col class="ml15">
|
|
|
|
|
|
|
+ <!-- <Col class="ml15">
|
|
|
<FormItem label="退款时间:">
|
|
<FormItem label="退款时间:">
|
|
|
<DatePicker :editable="false" @on-change="onchangeTime" :value="timeVal" format="yyyy/MM/dd"
|
|
<DatePicker :editable="false" @on-change="onchangeTime" :value="timeVal" format="yyyy/MM/dd"
|
|
|
type="daterange" placement="bottom-start" placeholder="自定义时间" style="width: 250px"
|
|
type="daterange" placement="bottom-start" placeholder="自定义时间" style="width: 250px"
|
|
|
:options="options"></DatePicker>
|
|
:options="options"></DatePicker>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
- </Col>
|
|
|
|
|
|
|
+ </Col> -->
|
|
|
<Col class="ivu-text-left">
|
|
<Col class="ivu-text-left">
|
|
|
<FormItem label="订单搜索:" label-for="title">
|
|
<FormItem label="订单搜索:" label-for="title">
|
|
|
<Input enter-button v-model="pagination.order_id" placeholder="请输入订单号" style="width: 250px" />
|
|
<Input enter-button v-model="pagination.order_id" placeholder="请输入订单号" style="width: 250px" />
|
|
@@ -54,10 +54,6 @@
|
|
|
<span v-show="row.is_del === 1 && row.delete_time == null"
|
|
<span v-show="row.is_del === 1 && row.delete_time == null"
|
|
|
style="color: #ed4014; display: block">用户已删除</span>
|
|
style="color: #ed4014; display: block">用户已删除</span>
|
|
|
</template>
|
|
</template>
|
|
|
- <template slot-scope="{ row, index }" slot="user">
|
|
|
|
|
- <div>用户名:{{ row.nickname }}</div>
|
|
|
|
|
- <div>用户ID:{{ row.uid }}</div>
|
|
|
|
|
- </template>
|
|
|
|
|
<template slot-scope="{ row, index }" slot="refund_status">
|
|
<template slot-scope="{ row, index }" slot="refund_status">
|
|
|
<div v-if="row.refund_status == 1">待审核</div>
|
|
<div v-if="row.refund_status == 1">待审核</div>
|
|
|
<div v-else-if="row.refund_status == 2">第一次审核通过</div>
|
|
<div v-else-if="row.refund_status == 2">第一次审核通过</div>
|
|
@@ -84,6 +80,9 @@
|
|
|
<template slot-scope="{ row, index }" slot="add_time">
|
|
<template slot-scope="{ row, index }" slot="add_time">
|
|
|
<span class="tabBox_pice">{{showTime(row.add_time)}}</span>
|
|
<span class="tabBox_pice">{{showTime(row.add_time)}}</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template slot-scope="{ row, index }" slot="kf">
|
|
|
|
|
+ <span class="tabBox_pice">{{showName(row.work_member_id)}}</span>
|
|
|
|
|
+ </template>
|
|
|
<template slot-scope="{ row, index }" slot="statusName">
|
|
<template slot-scope="{ row, index }" slot="statusName">
|
|
|
<div v-html="row.refund_reason" class="pt5"></div>
|
|
<div v-html="row.refund_reason" class="pt5"></div>
|
|
|
<div v-html="row.refund_explain" class="pt5"></div>
|
|
<div v-html="row.refund_explain" class="pt5"></div>
|
|
@@ -124,22 +123,17 @@
|
|
|
<Modal
|
|
<Modal
|
|
|
v-model="modals"
|
|
v-model="modals"
|
|
|
scrollable
|
|
scrollable
|
|
|
- title="订单备注"
|
|
|
|
|
|
|
+ title="选择员工"
|
|
|
class="order_box"
|
|
class="order_box"
|
|
|
:closable="false"
|
|
:closable="false"
|
|
|
>
|
|
>
|
|
|
<Form
|
|
<Form
|
|
|
:label-width="80"
|
|
:label-width="80"
|
|
|
>
|
|
>
|
|
|
- <FormItem label="备注:" prop="remark">
|
|
|
|
|
- <Input
|
|
|
|
|
- v-model="remark"
|
|
|
|
|
- maxlength="200"
|
|
|
|
|
- show-word-limit
|
|
|
|
|
- type="textarea"
|
|
|
|
|
- placeholder="订单备注"
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <FormItem label="员工:" prop="chooseId">
|
|
|
|
|
+ <Select v-model="chooseId" style="width: 250px">
|
|
|
|
|
+ <Option v-for="item in ygList" :key="item.id" :value="item.id">{{ item.name }}</Option>
|
|
|
|
|
+ </Select>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
</Form>
|
|
</Form>
|
|
|
<div slot="footer">
|
|
<div slot="footer">
|
|
@@ -154,6 +148,9 @@
|
|
|
import {
|
|
import {
|
|
|
mapState
|
|
mapState
|
|
|
} from 'vuex'
|
|
} from 'vuex'
|
|
|
|
|
+ import {
|
|
|
|
|
+ getYgList
|
|
|
|
|
+ } from "@/api/check";
|
|
|
import {
|
|
import {
|
|
|
orderRefundList,
|
|
orderRefundList,
|
|
|
getDataInfo,
|
|
getDataInfo,
|
|
@@ -163,7 +160,8 @@
|
|
|
refundIntegral,
|
|
refundIntegral,
|
|
|
getDistribution,
|
|
getDistribution,
|
|
|
getRefundOrderFrom,
|
|
getRefundOrderFrom,
|
|
|
- getServeOrder
|
|
|
|
|
|
|
+ getServeOrder,
|
|
|
|
|
+ member_update
|
|
|
} from '@/api/order'
|
|
} from '@/api/order'
|
|
|
import editFrom from '@/components/from/from'
|
|
import editFrom from '@/components/from/from'
|
|
|
import detailsFrom from '../orderList/components/orderDetails'
|
|
import detailsFrom from '../orderList/components/orderDetails'
|
|
@@ -178,6 +176,9 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ order_id: '',
|
|
|
|
|
+ ygList: [],
|
|
|
|
|
+ chooseId: 0,
|
|
|
remark: '',
|
|
remark: '',
|
|
|
modals:false,
|
|
modals:false,
|
|
|
grid: {
|
|
grid: {
|
|
@@ -203,6 +204,11 @@
|
|
|
key: 'user_phone',
|
|
key: 'user_phone',
|
|
|
minWidth: 130,
|
|
minWidth: 130,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '预约员工',
|
|
|
|
|
+ slot: 'kf',
|
|
|
|
|
+ minWidth: 130,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
title: '商品信息',
|
|
title: '商品信息',
|
|
|
slot: 'info',
|
|
slot: 'info',
|
|
@@ -228,17 +234,17 @@
|
|
|
],
|
|
],
|
|
|
tbody: [],
|
|
tbody: [],
|
|
|
num: [{
|
|
num: [{
|
|
|
- name: '待审核',
|
|
|
|
|
- value: 1,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '第一次审核完成',
|
|
|
|
|
- value: 2,
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '已拒绝',
|
|
|
|
|
- value: -1,
|
|
|
|
|
- }],
|
|
|
|
|
|
|
+ name: '待服务',
|
|
|
|
|
+ value: 0
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: '已完成',
|
|
|
|
|
+ value: 2
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '退款',
|
|
|
|
|
+ value: -1
|
|
|
|
|
+ },
|
|
|
|
|
+ ],
|
|
|
orderDatalist: null,
|
|
orderDatalist: null,
|
|
|
loading: false,
|
|
loading: false,
|
|
|
FromData: null,
|
|
FromData: null,
|
|
@@ -394,22 +400,46 @@
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.getOrderList()
|
|
this.getOrderList()
|
|
|
|
|
+ this.getygList()
|
|
|
// this.getYgList()
|
|
// this.getYgList()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
-
|
|
|
|
|
|
|
+ showName( id) {
|
|
|
|
|
+ let yg = this.ygList.find(item => {
|
|
|
|
|
+ return item.id == id
|
|
|
|
|
+ })
|
|
|
|
|
+ console.log(yg,'ygygygyg')
|
|
|
|
|
+ return yg? yg.name: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ getygList() {
|
|
|
|
|
+ getYgList({
|
|
|
|
|
+ page: 1,
|
|
|
|
|
+ limit: 1000
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ console.log(res)
|
|
|
|
|
+ this.ygList = res.data.list
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
cancal() {
|
|
cancal() {
|
|
|
this.modals = false
|
|
this.modals = false
|
|
|
this.remark = ''
|
|
this.remark = ''
|
|
|
},
|
|
},
|
|
|
//goCancal
|
|
//goCancal
|
|
|
goCancal() {
|
|
goCancal() {
|
|
|
- if(this.remark == '' ) {
|
|
|
|
|
- return this.$Message.error('请输入退款理由')
|
|
|
|
|
|
|
+ if(this.chooseId == '' ) {
|
|
|
|
|
+ return this.$Message.error('请选择员工')
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
this.modals = false
|
|
this.modals = false
|
|
|
|
|
+ member_update({
|
|
|
|
|
+ id: this.order_id,
|
|
|
|
|
+ work_member_id: this.chooseId
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ this.$Message.success(res.msg)
|
|
|
|
|
+ this.getOrderList()
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ this.$Message.error(err.msg)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
showTime(time) {
|
|
showTime(time) {
|
|
|
var date = new Date(time * 1000);
|
|
var date = new Date(time * 1000);
|
|
@@ -427,7 +457,7 @@
|
|
|
list.forEach(item => {
|
|
list.forEach(item => {
|
|
|
price += item.pay_price * 1
|
|
price += item.pay_price * 1
|
|
|
})
|
|
})
|
|
|
- return price
|
|
|
|
|
|
|
+ return price.toFixed(2)
|
|
|
},
|
|
},
|
|
|
onchangeCode(e) {
|
|
onchangeCode(e) {
|
|
|
this.animal = e
|
|
this.animal = e
|
|
@@ -442,32 +472,8 @@
|
|
|
},
|
|
},
|
|
|
// 操作
|
|
// 操作
|
|
|
changeMenu(row, name) {
|
|
changeMenu(row, name) {
|
|
|
- let titile;
|
|
|
|
|
- if(name == 1) {
|
|
|
|
|
- titile = '通过该退款审核?'
|
|
|
|
|
- this.delfromData = {
|
|
|
|
|
- title: titile,
|
|
|
|
|
- url: `/refund/agree/${id}`,
|
|
|
|
|
- method: 'get',
|
|
|
|
|
- ids: {
|
|
|
|
|
- id: row.id,
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- this.$modalSure(this.delfromData)
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- this.$Message.success(res.msg)
|
|
|
|
|
- this.getOrderList()
|
|
|
|
|
- this.getData(this.orderId, 1)
|
|
|
|
|
- })
|
|
|
|
|
- .catch((res) => {
|
|
|
|
|
- this.$Message.error(res.msg)
|
|
|
|
|
- })
|
|
|
|
|
- }else {
|
|
|
|
|
- titile = '拒绝该退款审核?'
|
|
|
|
|
- this.modals = true
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.modals = true
|
|
|
|
|
+ this.order_id = row.id
|
|
|
},
|
|
},
|
|
|
// 获取退款表单数据
|
|
// 获取退款表单数据
|
|
|
getRefundData(id, refund_type) {
|
|
getRefundData(id, refund_type) {
|