修改
This commit is contained in:
parent
5b45809f96
commit
b1dca6f1a0
@ -9,18 +9,13 @@
|
|||||||
label-width="90px"
|
label-width="90px"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属护理站" prop="nurseStationName">
|
<el-form-item label="所属护理站" prop="nurseStationName">
|
||||||
<el-select
|
<el-select v-model="queryParams.nurseStationId" placeholder="请选择护理站" @change="handleQuery">
|
||||||
v-model="queryParams.nurseStationId"
|
|
||||||
placeholder="请选择护理站"
|
|
||||||
@change="handleQuery"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in handstationlist"
|
v-for="item in handstationlist"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.nurseStationName"
|
:label="item.nurseStationName"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="订单编号" prop="orderNo">
|
<el-form-item label="订单编号" prop="orderNo">
|
||||||
@ -32,17 +27,13 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="订单状态" prop="orderStatus">
|
<el-form-item label="订单状态" prop="orderStatus">
|
||||||
<el-select
|
<el-select v-model="queryParams.orderStatus" placeholder="请选择订单状态">
|
||||||
v-model="queryParams.orderStatus"
|
|
||||||
placeholder="请选择订单状态"
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in orderStatuslist"
|
v-for="item in orderStatuslist"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="联系电话" prop="phone">
|
<el-form-item label="联系电话" prop="phone">
|
||||||
@ -54,82 +45,31 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
type="primary"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
icon="el-icon-search"
|
|
||||||
size="mini"
|
|
||||||
@click="handleQuery"
|
|
||||||
>搜索</el-button
|
|
||||||
>
|
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
||||||
>重置</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table
|
<el-table v-loading="loading" :data="goodsOrderList" @selection-change="handleSelectionChange">
|
||||||
v-loading="loading"
|
|
||||||
:data="goodsOrderList"
|
|
||||||
@selection-change="handleSelectionChange"
|
|
||||||
>
|
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column
|
<el-table-column label="所属护理站" align="center" prop="nurseStationName" />
|
||||||
label="所属护理站"
|
<el-table-column label="订单编号" align="center" prop="orderNo" width="190" />
|
||||||
align="center"
|
|
||||||
prop="nurseStationName"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="订单编号"
|
|
||||||
align="center"
|
|
||||||
prop="orderNo"
|
|
||||||
width="190"
|
|
||||||
/>
|
|
||||||
<el-table-column label="商品名称" align="center" prop="goodsName" />
|
<el-table-column label="商品名称" align="center" prop="goodsName" />
|
||||||
|
|
||||||
<el-table-column label="订单总金额" align="center" prop="totalPrice" />
|
<el-table-column label="订单总金额" align="center" prop="totalPrice" />
|
||||||
<el-table-column label="订单状态" align="center" prop="orderStatus">
|
<el-table-column label="订单状态" align="center" prop="orderStatus">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- {{ orderStatus(scope.row.orderStatus) }} -->
|
<!-- {{ orderStatus(scope.row.orderStatus) }} -->
|
||||||
<el-button v-if="scope.row.orderStatus == 'WAIT_PAY'"
|
<el-button v-if="scope.row.orderStatus == 'WAIT_PAY'">待付款</el-button>
|
||||||
>待付款</el-button
|
<el-button type="primary" v-if="scope.row.orderStatus == 'PAY'">待发货</el-button>
|
||||||
>
|
<el-button type="danger" v-if="scope.row.orderStatus == 'CANCEL'">已取消</el-button>
|
||||||
<el-button type="primary" v-if="scope.row.orderStatus == 'PAY'"
|
<el-button type="primary" v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'">待收货</el-button>
|
||||||
>待发货</el-button
|
<el-button type="primary" v-if="scope.row.orderStatus == 'RECEIVED_GOODS'">待评价</el-button>
|
||||||
>
|
<el-button type="success" v-if="scope.row.orderStatus == 'EVALUATED'">交易完成</el-button>
|
||||||
<el-button type="danger" v-if="scope.row.orderStatus == 'CANCEL'"
|
<el-button type="warning" v-if="scope.row.orderStatus == 'WAIT_REFUND'">退款中</el-button>
|
||||||
>已取消</el-button
|
<el-button type="warning" v-if="scope.row.orderStatus == 'WAIT_RETURNED_GOODS'">待退货</el-button>
|
||||||
>
|
<el-button type="danger" v-if="scope.row.orderStatus == 'REFUNDED'">退款成功</el-button>
|
||||||
<el-button
|
<el-button type="danger" v-if="scope.row.orderStatus == 'RETURNED_GOODS'">已退货</el-button>
|
||||||
type="primary"
|
|
||||||
v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'"
|
|
||||||
>待收货</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
v-if="scope.row.orderStatus == 'RECEIVED_GOODS'"
|
|
||||||
>待评价</el-button
|
|
||||||
>
|
|
||||||
<el-button type="success" v-if="scope.row.orderStatus == 'EVALUATED'"
|
|
||||||
>交易完成</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="warning"
|
|
||||||
v-if="scope.row.orderStatus == 'WAIT_REFUND'"
|
|
||||||
>退款中</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="warning"
|
|
||||||
v-if="scope.row.orderStatus == 'WAIT_RETURNED_GOODS'"
|
|
||||||
>待退货</el-button
|
|
||||||
>
|
|
||||||
<el-button type="danger" v-if="scope.row.orderStatus == 'REFUNDED'"
|
|
||||||
>退款成功</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="danger"
|
|
||||||
v-if="scope.row.orderStatus == 'RETURNED_GOODS'"
|
|
||||||
>已退货</el-button
|
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="订单类型" align="center" prop="orderType">
|
<el-table-column label="订单类型" align="center" prop="orderType">
|
||||||
@ -139,18 +79,8 @@
|
|||||||
{{ scope.row.orderType == "HEALTH_CONSULTATION" ? "健康咨询" : "" }}
|
{{ scope.row.orderType == "HEALTH_CONSULTATION" ? "健康咨询" : "" }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="联系电话" align="center" prop="phone" width="180" />
|
||||||
label="联系电话"
|
<el-table-column label="下单时间" align="center" prop="orderTime" width="180" />
|
||||||
align="center"
|
|
||||||
prop="phone"
|
|
||||||
width="180"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="下单时间"
|
|
||||||
align="center"
|
|
||||||
prop="orderTime"
|
|
||||||
width="180"
|
|
||||||
/>
|
|
||||||
<el-table-column label="下单方式" align="center" prop="orderChannel">
|
<el-table-column label="下单方式" align="center" prop="orderChannel">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.orderChannel == "MOBILE_APP" ? "手机APP" : "" }}
|
{{ scope.row.orderChannel == "MOBILE_APP" ? "手机APP" : "" }}
|
||||||
@ -171,8 +101,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="seelogistics(scope.row)"
|
@click="seelogistics(scope.row)"
|
||||||
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
||||||
>修改物流单号</el-button
|
>修改物流单号</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="
|
v-if="
|
||||||
scope.row.orderStatus == 'WAIT_RECEIVED_GOODS' &&
|
scope.row.orderStatus == 'WAIT_RECEIVED_GOODS' &&
|
||||||
@ -183,8 +112,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="seelogistics(scope.row)"
|
@click="seelogistics(scope.row)"
|
||||||
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
||||||
>录入物流单号</el-button
|
>录入物流单号</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="
|
v-if="
|
||||||
scope.row.orderStatus == 'WAIT_RECEIVED_GOODS' &&
|
scope.row.orderStatus == 'WAIT_RECEIVED_GOODS' &&
|
||||||
@ -195,15 +123,10 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="seelogistics(scope.row)"
|
@click="seelogistics(scope.row)"
|
||||||
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
||||||
>录入物流单号</el-button
|
>录入物流单号</el-button>
|
||||||
>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
label="操作"
|
|
||||||
align="center"
|
|
||||||
class-name="small-padding fixed-width"
|
|
||||||
>
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -211,8 +134,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="seeOrder(scope.row)"
|
@click="seeOrder(scope.row)"
|
||||||
v-hasPermi="['system:goodsOrder:goodsOrderByOrder']"
|
v-hasPermi="['system:goodsOrder:goodsOrderByOrder']"
|
||||||
>订单详情</el-button
|
>订单详情</el-button>
|
||||||
>
|
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="scope.row.orderStatus == 'WAIT_REFUND'"
|
v-if="scope.row.orderStatus == 'WAIT_REFUND'"
|
||||||
@ -221,8 +143,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="refund(scope.row.id)"
|
@click="refund(scope.row.id)"
|
||||||
v-hasPermi="['system:goodsOrder:goodsOrderRefund']"
|
v-hasPermi="['system:goodsOrder:goodsOrderRefund']"
|
||||||
>确认退款</el-button
|
>确认退款</el-button>
|
||||||
>
|
|
||||||
<!-- <el-button
|
<!-- <el-button
|
||||||
v-else
|
v-else
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -231,7 +152,7 @@
|
|||||||
disabled
|
disabled
|
||||||
v-hasPermi="['system:goodsOrder:goodsOrderRefund']"
|
v-hasPermi="['system:goodsOrder:goodsOrderRefund']"
|
||||||
>确认退款</el-button
|
>确认退款</el-button
|
||||||
> -->
|
>-->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -243,25 +164,10 @@
|
|||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
<!-- 查看商品信息弹框 -->
|
<!-- 查看商品信息弹框 -->
|
||||||
<el-dialog
|
<el-dialog title="订单详情" :visible.sync="innerorder" append-to-body width="1200px">
|
||||||
title="订单详情"
|
<el-form :inline="true" ref="orderList" :model="orderList" :rules="rules" label-width="120px">
|
||||||
:visible.sync="innerorder"
|
|
||||||
append-to-body
|
|
||||||
width="1200px"
|
|
||||||
>
|
|
||||||
<el-form
|
|
||||||
:inline="true"
|
|
||||||
ref="orderList"
|
|
||||||
:model="orderList"
|
|
||||||
:rules="rules"
|
|
||||||
label-width="120px"
|
|
||||||
>
|
|
||||||
<el-form-item label="订单编号" prop="orderNo">
|
<el-form-item label="订单编号" prop="orderNo">
|
||||||
<el-input
|
<el-input v-model="orderList.orderNo" :disabled="true" style="width: 240px" />
|
||||||
v-model="orderList.orderNo"
|
|
||||||
:disabled="true"
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="商品名称" prop="goodsName">
|
<el-form-item label="商品名称" prop="goodsName">
|
||||||
<el-input
|
<el-input
|
||||||
@ -284,8 +190,7 @@
|
|||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@ -293,64 +198,29 @@
|
|||||||
prop="integralExchangeCount"
|
prop="integralExchangeCount"
|
||||||
v-if="orderList.orderType == 'INTEGRAL_EXCHANGE'"
|
v-if="orderList.orderType == 'INTEGRAL_EXCHANGE'"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input v-model="orderList.integralExchangeCount" disabled style="width: 240px" />
|
||||||
v-model="orderList.integralExchangeCount"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="兑换积分数"
|
label="兑换积分数"
|
||||||
prop="integralExchangeSill"
|
prop="integralExchangeSill"
|
||||||
v-if="orderList.orderType == 'INTEGRAL_EXCHANGE'"
|
v-if="orderList.orderType == 'INTEGRAL_EXCHANGE'"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input v-model="orderList.integralExchangeSill" disabled style="width: 240px" />
|
||||||
v-model="orderList.integralExchangeSill"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="商品数量" prop="goodsCount" v-if="orderList.orderType == 'DIRECT_BUY'">
|
||||||
label="商品数量"
|
<el-input v-model="orderList.goodsCount" disabled style="width: 240px" />
|
||||||
prop="goodsCount"
|
|
||||||
v-if="orderList.orderType == 'DIRECT_BUY'"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="orderList.goodsCount"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item label="订单原始总金额" prop="originalTotalPrice">
|
||||||
label="订单原始总金额"
|
<el-input v-model="orderList.originalTotalPrice" disabled style="width: 240px" />
|
||||||
prop="originalTotalPrice"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
v-model="orderList.originalTotalPrice"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="优惠券名称" prop="couponTitle">
|
<el-form-item label="优惠券名称" prop="couponTitle">
|
||||||
<el-input
|
<el-input v-model="orderList.couponTitle" disabled style="width: 240px" />
|
||||||
v-model="orderList.couponTitle"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="优惠金额" prop="discountPrice">
|
<el-form-item label="优惠金额" prop="discountPrice">
|
||||||
<el-input
|
<el-input v-model="orderList.discountPrice" disabled style="width: 240px" />
|
||||||
v-model="orderList.discountPrice"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="订单应付总金额" prop="totalPrice">
|
<el-form-item label="订单应付总金额" prop="totalPrice">
|
||||||
<el-input
|
<el-input v-model="orderList.totalPrice" disabled style="width: 240px" />
|
||||||
v-model="orderList.totalPrice"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="收货人" prop="receiveAddress">
|
<el-form-item label="收货人" prop="receiveAddress">
|
||||||
<el-input
|
<el-input
|
||||||
@ -396,11 +266,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="购买来源" prop="orderChannel">
|
<el-form-item label="购买来源" prop="orderChannel">
|
||||||
<el-input
|
<el-input :value="buySourceinfo(orderList.buySource)" disabled style="width: 240px" />
|
||||||
:value="buySourceinfo(orderList.buySource)"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="综合评分" v-if="orderList.compositeScore">
|
<el-form-item label="综合评分" v-if="orderList.compositeScore">
|
||||||
<div style="width: 240px">
|
<div style="width: 240px">
|
||||||
@ -412,15 +278,8 @@
|
|||||||
show-score
|
show-score
|
||||||
text-color="#ff9900"
|
text-color="#ff9900"
|
||||||
score-template="{value}"
|
score-template="{value}"
|
||||||
>
|
></el-rate>
|
||||||
</el-rate>
|
<el-input v-else type="text" disabled style="width: 240px" placeholder="未评分"></el-input>
|
||||||
<el-input
|
|
||||||
v-else
|
|
||||||
type="text"
|
|
||||||
disabled
|
|
||||||
style="width: 240px"
|
|
||||||
placeholder="未评分"
|
|
||||||
></el-input>
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="评价内容" v-if="orderList.evaluateContent">
|
<el-form-item label="评价内容" v-if="orderList.evaluateContent">
|
||||||
@ -443,7 +302,7 @@
|
|||||||
style="width: 23%; height: 100%; margin: 1%"
|
style="width: 23%; height: 100%; margin: 1%"
|
||||||
v-for="(item, index) in ratelist"
|
v-for="(item, index) in ratelist"
|
||||||
:src="baseurl + item.evaluatePictureUrl"
|
:src="baseurl + item.evaluatePictureUrl"
|
||||||
alt=""
|
alt
|
||||||
:key="index"
|
:key="index"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@ -451,12 +310,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 查看物流信息弹框 -->
|
<!-- 查看物流信息弹框 -->
|
||||||
<el-dialog
|
<el-dialog title="录入物流单号" :visible.sync="innerlogistics" append-to-body width="500px">
|
||||||
title="录入物流单号"
|
|
||||||
:visible.sync="innerlogistics"
|
|
||||||
append-to-body
|
|
||||||
width="500px"
|
|
||||||
>
|
|
||||||
<el-form
|
<el-form
|
||||||
:model="queryexpressNo"
|
:model="queryexpressNo"
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
@ -469,7 +323,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
style="width: 230px"
|
style="width: 230px"
|
||||||
v-model="queryexpressNo.receiver"
|
v-model="queryexpressNo.receiver"
|
||||||
placeholder=""
|
placeholder
|
||||||
clearable
|
clearable
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
@ -478,7 +332,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
style="width: 230px"
|
style="width: 230px"
|
||||||
v-model="queryexpressNo.phone"
|
v-model="queryexpressNo.phone"
|
||||||
placeholder=""
|
placeholder
|
||||||
clearable
|
clearable
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
@ -489,7 +343,7 @@
|
|||||||
style="width: 230px"
|
style="width: 230px"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="5"
|
:rows="5"
|
||||||
placeholder=""
|
placeholder
|
||||||
disabled
|
disabled
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
@ -509,12 +363,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 退款弹框 -->
|
<!-- 退款弹框 -->
|
||||||
<el-dialog
|
<el-dialog title="退款信息" :visible.sync="innerrefund" append-to-body width="700px">
|
||||||
title="退款信息"
|
|
||||||
:visible.sync="innerrefund"
|
|
||||||
append-to-body
|
|
||||||
width="700px"
|
|
||||||
>
|
|
||||||
<el-form
|
<el-form
|
||||||
:model="refundlist"
|
:model="refundlist"
|
||||||
ref="queryForm"
|
ref="queryForm"
|
||||||
@ -524,63 +373,46 @@
|
|||||||
label-width="110px"
|
label-width="110px"
|
||||||
>
|
>
|
||||||
<el-form-item label="商品名称" prop="goodsName">
|
<el-form-item label="商品名称" prop="goodsName">
|
||||||
<el-input
|
<el-input v-model="refundlist.goodsName" placeholder clearable disabled />
|
||||||
v-model="refundlist.goodsName"
|
|
||||||
placeholder=""
|
|
||||||
clearable
|
|
||||||
disabled
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="退款类型" prop="refundType">
|
<el-form-item label="退款类型" prop="refundType">
|
||||||
<el-input
|
<el-input :value="refundTypeStatus(refundlist.refundType)" disabled style="width: 205px" />
|
||||||
:value="refundTypeStatus(refundlist.refundType)"
|
|
||||||
disabled
|
|
||||||
style="width: 205px"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="订单类型" prop="orderType">
|
<el-form-item label="订单类型" prop="orderType">
|
||||||
<el-select
|
<el-select v-model="refundlist.orderType" placeholder="请选择订单类型" disabled>
|
||||||
v-model="refundlist.orderType"
|
|
||||||
placeholder="请选择订单类型"
|
|
||||||
disabled
|
|
||||||
>
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in orderTypelist"
|
v-for="item in orderTypelist"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"
|
:value="item.value"
|
||||||
>
|
></el-option>
|
||||||
</el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="退款原因" prop="dictLabel">
|
<el-form-item label="退款原因" prop="dictLabel">
|
||||||
<el-input
|
<el-input v-model="refundlist.dictLabel" placeholder clearable disabled />
|
||||||
v-model="refundlist.dictLabel"
|
|
||||||
placeholder=""
|
|
||||||
clearable
|
|
||||||
disabled
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="退款金额" prop="godTotalPrice">
|
<el-form-item label="退款金额" prop="godTotalPrice">
|
||||||
<el-input
|
<el-input v-model="refundlist.godTotalPrice" placeholder clearable disabled />
|
||||||
v-model="refundlist.godTotalPrice"
|
</el-form-item>
|
||||||
placeholder=""
|
<el-form-item
|
||||||
clearable
|
label="退款积分"
|
||||||
disabled
|
prop="godTotalPrice"
|
||||||
/>
|
v-if="refundlist.orderType =='INTEGRAL_EXCHANGE'"
|
||||||
|
>
|
||||||
|
<el-input v-model="refundlist.integralExchangeSill" placeholder clearable disabled />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="补充描述和凭证" prop="refundReasonRemark">
|
<el-form-item label="补充描述和凭证" prop="refundReasonRemark">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
v-model="refundlist.refundReasonRemark"
|
v-model="refundlist.refundReasonRemark"
|
||||||
placeholder=""
|
placeholder
|
||||||
clearable
|
clearable
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:rows="5"
|
:rows="5"
|
||||||
disabled
|
disabled
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item> </el-form-item>
|
<el-form-item></el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="refundcancel">取 消</el-button>
|
<el-button @click="refundcancel">取 消</el-button>
|
||||||
@ -638,7 +470,7 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog> -->
|
</el-dialog>-->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -654,7 +486,7 @@ import {
|
|||||||
editExpressNo,
|
editExpressNo,
|
||||||
goodsOrderrefund,
|
goodsOrderrefund,
|
||||||
weChatRefundOrderApply,
|
weChatRefundOrderApply,
|
||||||
selectOrderEvaluate,
|
selectOrderEvaluate
|
||||||
} from "@/api/system/goodsOrder";
|
} from "@/api/system/goodsOrder";
|
||||||
import { getListByUser } from "@/api/system/userlist.js";
|
import { getListByUser } from "@/api/system/userlist.js";
|
||||||
import baseurl from "@/api/baseurl.js";
|
import baseurl from "@/api/baseurl.js";
|
||||||
@ -677,58 +509,58 @@ export default {
|
|||||||
orderStatuslist: [
|
orderStatuslist: [
|
||||||
{
|
{
|
||||||
value: "WAIT_PAY",
|
value: "WAIT_PAY",
|
||||||
label: "待付款",
|
label: "待付款"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "PAY",
|
value: "PAY",
|
||||||
label: "待发货",
|
label: "待发货"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "WAIT_RECEIVED_GOODS",
|
value: "WAIT_RECEIVED_GOODS",
|
||||||
label: "待收货",
|
label: "待收货"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "RECEIVED_GOODS",
|
value: "RECEIVED_GOODS",
|
||||||
label: "待评价",
|
label: "待评价"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "EVALUATED",
|
value: "EVALUATED",
|
||||||
label: "交易完成",
|
label: "交易完成"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "CANCEL",
|
value: "CANCEL",
|
||||||
label: "已取消",
|
label: "已取消"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "WAIT_RETURNED_GOODS",
|
value: "WAIT_RETURNED_GOODS",
|
||||||
label: "待退货",
|
label: "待退货"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "RETURNED_GOODS",
|
value: "RETURNED_GOODS",
|
||||||
label: "已退货",
|
label: "已退货"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "WAIT_REFUND",
|
value: "WAIT_REFUND",
|
||||||
label: "退款中",
|
label: "退款中"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "REFUNDED",
|
value: "REFUNDED",
|
||||||
label: "退款成功",
|
label: "退款成功"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
orderTypelist: [
|
orderTypelist: [
|
||||||
{
|
{
|
||||||
value: "INTEGRAL_EXCHANGE",
|
value: "INTEGRAL_EXCHANGE",
|
||||||
label: "积分兑换",
|
label: "积分兑换"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "DIRECT_BUY",
|
value: "DIRECT_BUY",
|
||||||
label: "直接购买",
|
label: "直接购买"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "HEALTH_CONSULTATION",
|
value: "HEALTH_CONSULTATION",
|
||||||
label: "健康咨询",
|
label: "健康咨询"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -762,24 +594,24 @@ export default {
|
|||||||
receiveAddress: null,
|
receiveAddress: null,
|
||||||
phone: null,
|
phone: null,
|
||||||
orderTime: null,
|
orderTime: null,
|
||||||
orderChannel: null,
|
orderChannel: null
|
||||||
},
|
},
|
||||||
queryexpressNo: {
|
queryexpressNo: {
|
||||||
id: "",
|
id: "",
|
||||||
expressNo: null,
|
expressNo: null
|
||||||
},
|
},
|
||||||
//权限查询
|
//权限查询
|
||||||
getListByUserquery: {
|
getListByUserquery: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10
|
||||||
},
|
},
|
||||||
refundinfo: {
|
refundinfo: {
|
||||||
id: "",
|
id: ""
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {},
|
rules: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -854,7 +686,7 @@ export default {
|
|||||||
/** 查询商品订单列表 */
|
/** 查询商品订单列表 */
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listGoodsOrder(this.queryParams).then((response) => {
|
listGoodsOrder(this.queryParams).then(response => {
|
||||||
this.goodsOrderList = response.rows;
|
this.goodsOrderList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
@ -863,7 +695,7 @@ export default {
|
|||||||
// 查看商品信息
|
// 查看商品信息
|
||||||
seeOrder(row) {
|
seeOrder(row) {
|
||||||
const id = row.orderNo;
|
const id = row.orderNo;
|
||||||
getGoodsOrderlist(id).then((res) => {
|
getGoodsOrderlist(id).then(res => {
|
||||||
this.orderList = res.data;
|
this.orderList = res.data;
|
||||||
this.innerorder = true;
|
this.innerorder = true;
|
||||||
this.ratelist = {};
|
this.ratelist = {};
|
||||||
@ -883,7 +715,7 @@ export default {
|
|||||||
// 确定按钮
|
// 确定按钮
|
||||||
searchlogistics() {
|
searchlogistics() {
|
||||||
console.log(this.queryexpressNo);
|
console.log(this.queryexpressNo);
|
||||||
editExpressNo(this.queryexpressNo).then((res) => {
|
editExpressNo(this.queryexpressNo).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$modal.msgSuccess("录入成功");
|
this.$modal.msgSuccess("录入成功");
|
||||||
}
|
}
|
||||||
@ -900,7 +732,7 @@ export default {
|
|||||||
// 确认退款
|
// 确认退款
|
||||||
refund(id) {
|
refund(id) {
|
||||||
console.log(id);
|
console.log(id);
|
||||||
goodsOrderRefundinfo(id).then((res) => {
|
goodsOrderRefundinfo(id).then(res => {
|
||||||
this.refundlist = res.data;
|
this.refundlist = res.data;
|
||||||
console.log(this.refundlist);
|
console.log(this.refundlist);
|
||||||
this.innerrefund = true;
|
this.innerrefund = true;
|
||||||
@ -916,7 +748,7 @@ export default {
|
|||||||
obj.refundPrice = this.refundlist.godTotalPrice;
|
obj.refundPrice = this.refundlist.godTotalPrice;
|
||||||
obj.remark = this.refundlist.refundReasonRemark;
|
obj.remark = this.refundlist.refundReasonRemark;
|
||||||
obj.goodsStatus = this.refundlist.orderStatus;
|
obj.goodsStatus = this.refundlist.orderStatus;
|
||||||
weChatRefundOrderApply(obj).then((res) => {
|
weChatRefundOrderApply(obj).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$modal.msgSuccess("退款有延迟,请耐心等待");
|
this.$modal.msgSuccess("退款有延迟,请耐心等待");
|
||||||
}
|
}
|
||||||
@ -971,7 +803,7 @@ export default {
|
|||||||
receiveAddress: null,
|
receiveAddress: null,
|
||||||
phone: null,
|
phone: null,
|
||||||
orderTime: null,
|
orderTime: null,
|
||||||
orderChannel: null,
|
orderChannel: null
|
||||||
};
|
};
|
||||||
this.form = {
|
this.form = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -992,7 +824,7 @@ export default {
|
|||||||
createTime: null,
|
createTime: null,
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
updateTime: null,
|
updateTime: null,
|
||||||
orderStatus: "",
|
orderStatus: ""
|
||||||
};
|
};
|
||||||
this.resetForm("queryParams");
|
this.resetForm("queryParams");
|
||||||
},
|
},
|
||||||
@ -1024,7 +856,7 @@ export default {
|
|||||||
|
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map((item) => item.id);
|
this.ids = selection.map(item => item.id);
|
||||||
this.single = selection.length !== 1;
|
this.single = selection.length !== 1;
|
||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
@ -1038,7 +870,7 @@ export default {
|
|||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset();
|
this.reset();
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getGoodsOrder(id).then((response) => {
|
getGoodsOrder(id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改商品订单";
|
this.title = "修改商品订单";
|
||||||
@ -1046,16 +878,16 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
updateGoodsOrder(this.form).then((response) => {
|
updateGoodsOrder(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addGoodsOrder(this.form).then((response) => {
|
addGoodsOrder(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -1069,7 +901,7 @@ export default {
|
|||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm('是否确认删除商品订单编号为"' + ids + '"的数据项?')
|
.confirm('是否确认删除商品订单编号为"' + ids + '"的数据项?')
|
||||||
.then(function () {
|
.then(function() {
|
||||||
return delGoodsOrder(ids);
|
return delGoodsOrder(ids);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -1083,14 +915,14 @@ export default {
|
|||||||
this.download(
|
this.download(
|
||||||
"system/goodsOrder/export",
|
"system/goodsOrder/export",
|
||||||
{
|
{
|
||||||
...this.getListByUserquery,
|
...this.getListByUserquery
|
||||||
},
|
},
|
||||||
`goodsOrder_${new Date().getTime()}.xlsx`
|
`goodsOrder_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
//权限列表
|
//权限列表
|
||||||
info() {
|
info() {
|
||||||
getListByUser(this.getListByUserquery).then((res) => {
|
getListByUser(this.getListByUserquery).then(res => {
|
||||||
this.total2 = res.total;
|
this.total2 = res.total;
|
||||||
this.nurseStationlist = res.rows;
|
this.nurseStationlist = res.rows;
|
||||||
this.queryParams.nurseStationId = res.rows[0].id;
|
this.queryParams.nurseStationId = res.rows[0].id;
|
||||||
@ -1101,13 +933,13 @@ export default {
|
|||||||
infos() {
|
infos() {
|
||||||
var queryFor = {
|
var queryFor = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 9999,
|
pageSize: 9999
|
||||||
};
|
};
|
||||||
getListByUser(queryFor).then((res) => {
|
getListByUser(queryFor).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
this.handstationlist = res.rows;
|
this.handstationlist = res.rows;
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user