2022-10-31 08:57:36 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<el-form
|
|
|
|
|
:model="queryParams"
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
size="small"
|
|
|
|
|
:inline="true"
|
|
|
|
|
v-show="showSearch"
|
2022-11-11 15:34:09 +08:00
|
|
|
label-width="90px"
|
2022-10-31 08:57:36 +08:00
|
|
|
>
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-form-item label="所属护理站" prop="nurseStationName">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.nurseStationId"
|
|
|
|
|
placeholder="请选择护理站"
|
|
|
|
|
v-loadmore="loadMore"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in nurseStationlist"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.nurseStationName"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
2022-10-31 08:57:36 +08:00
|
|
|
<el-form-item label="订单编号" prop="orderNo">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.orderNo"
|
|
|
|
|
placeholder="请输入订单编号"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-11 15:34:09 +08:00
|
|
|
|
2022-11-07 11:38:55 +08:00
|
|
|
<el-form-item label="订单状态" prop="orderStatus">
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.orderStatus"
|
|
|
|
|
placeholder="请选择订单状态"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in orderStatuslist"
|
|
|
|
|
:key="item.value"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:value="item.value"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-search"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleQuery"
|
|
|
|
|
>搜索</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
|
|
>重置</el-button
|
|
|
|
|
>
|
2022-11-15 09:27:22 +08:00
|
|
|
<el-button type="success" icon="el-icon-refresh-right" size="mini" @click="resetQuery"
|
|
|
|
|
>刷新</el-button
|
|
|
|
|
>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="goodsOrderList"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-table-column
|
|
|
|
|
label="所属护理站"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="nurseStationName"
|
|
|
|
|
/>
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-table-column
|
|
|
|
|
label="订单编号"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="orderNo"
|
|
|
|
|
width="190"
|
|
|
|
|
/>
|
2022-10-31 08:57:36 +08:00
|
|
|
<el-table-column label="订单状态" align="center" prop="orderStatus">
|
|
|
|
|
<template slot-scope="scope">
|
2022-11-11 15:34:09 +08:00
|
|
|
<!-- {{ orderStatus(scope.row.orderStatus) }} -->
|
|
|
|
|
<el-button v-if="scope.row.orderStatus == 'WAIT_PAY'"
|
|
|
|
|
>待付款</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 == '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 == 'COMPLETE'"
|
|
|
|
|
>服务完成</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
|
|
|
|
|
>
|
2022-10-31 08:57:36 +08:00
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="订单总金额" align="center" prop="totalPrice" />
|
2022-11-11 15:34:09 +08:00
|
|
|
|
2022-10-31 08:57:36 +08:00
|
|
|
<el-table-column
|
|
|
|
|
label="下单时间"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="orderTime"
|
|
|
|
|
width="180"
|
|
|
|
|
/>
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-table-column label="下单方式" align="center" prop="orderChannel">
|
|
|
|
|
<template slot-scope="scope">
|
2022-10-31 08:57:36 +08:00
|
|
|
{{ scope.row.orderChannel == "MOBILE_APP" ? "手机APP" : "" }}
|
|
|
|
|
{{ scope.row.orderChannel == "WECHAT_APPLET" ? "微信小程序" : "" }}
|
2022-11-04 14:00:14 +08:00
|
|
|
{{ scope.row.orderChannel == "ALI_PAY_APPLET" ? "支付宝小程序" : "" }}
|
2022-10-31 08:57:36 +08:00
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注信息" align="center" prop="remark" />
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-table-column label="录入物流单号" align="center" prop="remark">
|
2022-10-31 08:57:36 +08:00
|
|
|
<template slot-scope="scope">
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-button
|
2022-11-11 15:34:09 +08:00
|
|
|
v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'&&scope.row.expressNo"
|
2022-10-31 08:57:36 +08:00
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
2022-11-11 15:34:09 +08:00
|
|
|
@click="seelogistics(scope.row)"
|
|
|
|
|
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
|
|
|
|
>修改物流单号</el-button
|
2022-11-02 15:48:04 +08:00
|
|
|
>
|
|
|
|
|
<el-button
|
2022-11-11 15:34:09 +08:00
|
|
|
v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'&&scope.row.expressNo==''"
|
2022-11-02 15:48:04 +08:00
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
2022-11-11 15:34:09 +08:00
|
|
|
@click="seelogistics(scope.row)"
|
2022-11-08 13:36:52 +08:00
|
|
|
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
2022-11-02 15:48:04 +08:00
|
|
|
>录入物流单号</el-button
|
|
|
|
|
>
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.orderStatus == 'WAIT_RECEIVED_GOODS'&&scope.row.expressNo==null"
|
2022-11-02 15:48:04 +08:00
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
2022-11-11 15:34:09 +08:00
|
|
|
@click="seelogistics(scope.row)"
|
|
|
|
|
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
|
|
|
|
>录入物流单号</el-button
|
|
|
|
|
>
|
2022-11-14 15:43:00 +08:00
|
|
|
<!-- <el-button
|
2022-11-11 15:34:09 +08:00
|
|
|
v-if="scope.row.orderStatus != 'WAIT_RECEIVED_GOODS'"
|
2022-11-02 15:48:04 +08:00
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
2022-11-11 15:34:09 +08:00
|
|
|
disabled
|
|
|
|
|
v-hasPermi="['system:goodsOrder:editExpressNo']"
|
|
|
|
|
>不可录入物流单号</el-button
|
2022-11-14 15:43:00 +08:00
|
|
|
> -->
|
2022-11-11 15:34:09 +08:00
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
align="center"
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
2022-11-02 15:48:04 +08:00
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
2022-11-11 15:34:09 +08:00
|
|
|
@click="seeOrder(scope.row)"
|
|
|
|
|
v-hasPermi="['system:goodsOrder:goodsOrderByOrder']"
|
|
|
|
|
>查看商品信息</el-button
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.orderStatus == 'WAIT_REFUND'"
|
2022-10-31 08:57:36 +08:00
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
2022-11-11 15:34:09 +08:00
|
|
|
@click="refund(scope.row.id)"
|
|
|
|
|
v-hasPermi="['system:goodsOrder:goodsOrderRefund']"
|
|
|
|
|
>确认退款</el-button
|
2022-10-31 08:57:36 +08:00
|
|
|
>
|
2022-11-14 15:43:00 +08:00
|
|
|
<!-- <el-button
|
2022-11-11 15:34:09 +08:00
|
|
|
v-else
|
2022-10-31 08:57:36 +08:00
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
2022-11-11 15:34:09 +08:00
|
|
|
icon="el-icon-edit"
|
|
|
|
|
disabled
|
|
|
|
|
v-hasPermi="['system:goodsOrder:goodsOrderRefund']"
|
|
|
|
|
>确认退款</el-button
|
2022-11-14 15:43:00 +08:00
|
|
|
> -->
|
2022-10-31 08:57:36 +08:00
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total > 0"
|
|
|
|
|
:total="total"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
2022-11-02 15:48:04 +08:00
|
|
|
<!-- 查看商品信息弹框 -->
|
2022-10-31 08:57:36 +08:00
|
|
|
<el-dialog
|
2022-11-07 17:45:48 +08:00
|
|
|
title="查看商品信息"
|
2022-10-31 08:57:36 +08:00
|
|
|
:visible.sync="innerorder"
|
|
|
|
|
append-to-body
|
2022-11-04 14:00:14 +08:00
|
|
|
width="1200px"
|
2022-10-31 08:57:36 +08:00
|
|
|
>
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-form
|
|
|
|
|
:inline="true"
|
|
|
|
|
ref="orderList"
|
|
|
|
|
:model="orderList"
|
|
|
|
|
:rules="rules"
|
|
|
|
|
label-width="120px"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="订单编号" prop="orderNo">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="orderList.orderNo"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-14 16:44:18 +08:00
|
|
|
<el-form-item label="商品名称" prop="goodsName">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
2022-11-14 16:44:18 +08:00
|
|
|
v-model="orderList.goodsName"
|
2022-11-04 14:00:14 +08:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-14 16:44:18 +08:00
|
|
|
<el-form-item label="订单金额" prop="totalPrice">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
2022-11-14 16:44:18 +08:00
|
|
|
v-model="orderList.totalPrice"
|
2022-11-04 14:00:14 +08:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-14 16:44:18 +08:00
|
|
|
<el-form-item label="收货人" prop="receiveAddress">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
2022-11-14 16:44:18 +08:00
|
|
|
v-model="orderList.receiver"
|
2022-11-04 14:00:14 +08:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-14 16:44:18 +08:00
|
|
|
<el-form-item label="收货地址" prop="receiveAddress">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
2022-11-14 16:44:18 +08:00
|
|
|
v-model="orderList.receiveAddress"
|
2022-11-04 14:00:14 +08:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-14 16:44:18 +08:00
|
|
|
<el-form-item label="手机号" prop="phone">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
2022-11-14 16:44:18 +08:00
|
|
|
v-model="orderList.phone"
|
2022-11-04 14:00:14 +08:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-14 16:44:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-form-item label="商品属性" prop="goodsAttributeName">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
2022-11-14 16:44:18 +08:00
|
|
|
v-model="orderList.goodsAttributeName"
|
2022-11-04 14:00:14 +08:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
2022-11-14 16:44:18 +08:00
|
|
|
</el-form-item> -->
|
|
|
|
|
<!-- <el-form-item label="商品价格" prop="goodsPrice">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
2022-11-14 16:44:18 +08:00
|
|
|
v-model="orderList.goodsPrice"
|
2022-11-04 14:00:14 +08:00
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
2022-11-14 16:44:18 +08:00
|
|
|
</el-form-item> -->
|
|
|
|
|
<!-- <el-form-item label="地址" prop="receiveAddress">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="orderList.receiveAddress"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-form-item label="订单状态" prop="orderStatus">
|
|
|
|
|
<!-- <el-form-item label="退款类型" prop="refundType">
|
|
|
|
|
<el-input
|
|
|
|
|
:value="refundTypeStatus(refundlist.refundType)"
|
|
|
|
|
disabled
|
|
|
|
|
style="width: 205px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
<el-input
|
|
|
|
|
:value="orderStatusinfo(orderList.orderStatus)"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="下单方式" prop="buySource">
|
|
|
|
|
<el-input
|
|
|
|
|
:value="buySourceinfo(orderList.buySource)"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-form-item label="购买来源" prop="orderChannel">
|
2022-11-04 14:00:14 +08:00
|
|
|
<el-input
|
|
|
|
|
:value="orderChannelinfo(orderList.orderChannel)"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
:disabled="true"
|
|
|
|
|
style="width: 240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<!-- <el-table
|
2022-11-02 15:48:04 +08:00
|
|
|
:data="orderList"
|
|
|
|
|
align="center"
|
|
|
|
|
style="margin: 10px 0 20px 0; padding-bottom: 20px"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="orderNo"
|
|
|
|
|
label="订单编号"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="receiveAddress"
|
|
|
|
|
label="地址"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="receiver"
|
|
|
|
|
label="收货人"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="phone" label="手机号" width="120" align="center">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="goodsName"
|
|
|
|
|
label="商品名称"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="goodsAttributeName"
|
|
|
|
|
label="商品属性"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="goodsPrice"
|
|
|
|
|
label="商品价格"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
2022-11-04 14:00:14 +08:00
|
|
|
</el-table> -->
|
|
|
|
|
</el-form>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-dialog>
|
2022-11-02 15:48:04 +08:00
|
|
|
<!-- 查看物流信息弹框 -->
|
|
|
|
|
<el-dialog
|
2022-11-08 13:36:52 +08:00
|
|
|
title="录入物流单号"
|
2022-11-02 15:48:04 +08:00
|
|
|
:visible.sync="innerlogistics"
|
|
|
|
|
append-to-body
|
|
|
|
|
width="500px"
|
|
|
|
|
>
|
|
|
|
|
<el-form
|
|
|
|
|
:model="queryexpressNo"
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
size="small"
|
|
|
|
|
:inline="true"
|
|
|
|
|
v-show="showSearch"
|
2022-11-11 15:34:09 +08:00
|
|
|
label-width="100px"
|
2022-11-02 15:48:04 +08:00
|
|
|
>
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-form-item label="收货人" prop="receiver">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 230px"
|
|
|
|
|
v-model="queryexpressNo.receiver"
|
|
|
|
|
placeholder=""
|
|
|
|
|
clearable
|
|
|
|
|
disabled
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="手机号" prop="phone">
|
|
|
|
|
<el-input
|
|
|
|
|
style="width: 230px"
|
|
|
|
|
v-model="queryexpressNo.phone"
|
|
|
|
|
placeholder=""
|
|
|
|
|
clearable
|
|
|
|
|
disabled
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="收货地址" prop="receiveAddress">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryexpressNo.receiveAddress"
|
|
|
|
|
style="width: 230px"
|
|
|
|
|
type="textarea"
|
|
|
|
|
:rows="5"
|
|
|
|
|
placeholder=""
|
|
|
|
|
disabled
|
|
|
|
|
clearable
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-form-item label="物流单号" prop="orderNo">
|
2022-10-31 08:57:36 +08:00
|
|
|
<el-input
|
2022-11-02 15:48:04 +08:00
|
|
|
v-model="queryexpressNo.expressNo"
|
2022-11-11 15:34:09 +08:00
|
|
|
style="width: 230px"
|
2022-11-02 15:48:04 +08:00
|
|
|
placeholder="请输入物流单号"
|
|
|
|
|
clearable
|
2022-10-31 08:57:36 +08:00
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-02 15:48:04 +08:00
|
|
|
</el-form>
|
2022-11-11 15:34:09 +08:00
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="cencellogistics">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="searchlogistics">确 定</el-button>
|
|
|
|
|
</div>
|
2022-11-02 15:48:04 +08:00
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 退款弹框 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="退款信息"
|
|
|
|
|
:visible.sync="innerrefund"
|
|
|
|
|
append-to-body
|
|
|
|
|
width="700px"
|
|
|
|
|
>
|
|
|
|
|
<el-form
|
|
|
|
|
:model="refundlist"
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
size="small"
|
|
|
|
|
:inline="true"
|
|
|
|
|
v-show="showSearch"
|
|
|
|
|
label-width="110px"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="商品名称" prop="goodsName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="refundlist.goodsName"
|
|
|
|
|
placeholder=""
|
|
|
|
|
clearable
|
|
|
|
|
disabled
|
|
|
|
|
/>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-form-item>
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-form-item label="退款类型" prop="refundType">
|
2022-10-31 08:57:36 +08:00
|
|
|
<el-input
|
2022-11-02 15:48:04 +08:00
|
|
|
:value="refundTypeStatus(refundlist.refundType)"
|
|
|
|
|
disabled
|
|
|
|
|
style="width: 205px"
|
2022-10-31 08:57:36 +08:00
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-form-item label="退款原因" prop="dictLabel">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="refundlist.dictLabel"
|
|
|
|
|
placeholder=""
|
|
|
|
|
clearable
|
|
|
|
|
disabled
|
|
|
|
|
/>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-form-item>
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-form-item label="退款金额" prop="godTotalPrice">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="refundlist.godTotalPrice"
|
|
|
|
|
placeholder=""
|
2022-10-31 08:57:36 +08:00
|
|
|
clearable
|
2022-11-02 15:48:04 +08:00
|
|
|
disabled
|
|
|
|
|
/>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-form-item>
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-form-item label="补充描述和凭证" prop="refundReasonRemark">
|
2022-10-31 08:57:36 +08:00
|
|
|
<el-input
|
2022-11-11 15:34:09 +08:00
|
|
|
style="width: 300px"
|
2022-11-02 15:48:04 +08:00
|
|
|
v-model="refundlist.refundReasonRemark"
|
|
|
|
|
placeholder=""
|
|
|
|
|
clearable
|
|
|
|
|
type="textarea"
|
2022-11-11 15:34:09 +08:00
|
|
|
:rows="5"
|
2022-11-02 15:48:04 +08:00
|
|
|
disabled
|
2022-10-31 08:57:36 +08:00
|
|
|
/>
|
2022-11-04 14:00:14 +08:00
|
|
|
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-form-item>
|
2022-11-11 15:34:09 +08:00
|
|
|
<el-form-item> </el-form-item>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
2022-11-02 15:48:04 +08:00
|
|
|
<el-button @click="refundcancel">取 消</el-button>
|
2022-11-02 18:11:38 +08:00
|
|
|
<el-button type="primary" @click="submitRefundOrder">确 定</el-button>
|
2022-10-31 08:57:36 +08:00
|
|
|
</div>
|
2022-11-02 15:48:04 +08:00
|
|
|
</el-dialog>
|
|
|
|
|
<!-- 查看物流详细信息弹框 -->
|
|
|
|
|
<!-- <el-dialog
|
|
|
|
|
title="查看订单信息"
|
|
|
|
|
:visible.sync="innerlogisticsinfo"
|
|
|
|
|
append-to-body
|
|
|
|
|
width="1048px"
|
|
|
|
|
>
|
|
|
|
|
<el-table
|
|
|
|
|
:data="orderList"
|
|
|
|
|
align="center"
|
|
|
|
|
style="margin: 10px 0 20px 0; padding-bottom: 20px"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="orderNo"
|
|
|
|
|
label="订单编号"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="receiver"
|
|
|
|
|
label="收货人"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="phone" label="手机号" width="120" align="center">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="goodsName"
|
|
|
|
|
label="商品名称"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="goodsAttributeName"
|
|
|
|
|
label="商品属性"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="goodsPrice"
|
|
|
|
|
label="商品价格"
|
|
|
|
|
width="120"
|
|
|
|
|
align="center"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
2022-10-31 08:57:36 +08:00
|
|
|
</el-dialog> -->
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-11-11 15:34:09 +08:00
|
|
|
import {
|
|
|
|
|
listGoodsOrder,
|
|
|
|
|
getGoodsOrder,
|
|
|
|
|
delGoodsOrder,
|
|
|
|
|
addGoodsOrder,
|
|
|
|
|
updateGoodsOrder,
|
|
|
|
|
getGoodsOrderlist,
|
|
|
|
|
goodsOrderRefundinfo,
|
|
|
|
|
editExpressNo,
|
|
|
|
|
goodsOrderrefund,
|
|
|
|
|
weChatRefundOrderApply,
|
|
|
|
|
} from "@/api/system/goodsOrder";
|
|
|
|
|
import { getListByUser } from "@/api/system/userlist.js";
|
2022-10-31 08:57:36 +08:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "GoodsOrder",
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-11-02 15:48:04 +08:00
|
|
|
// 查看商品信息
|
|
|
|
|
innerorder: false,
|
|
|
|
|
// 查看物流信息
|
|
|
|
|
innerlogistics: false,
|
|
|
|
|
// 确认退款
|
|
|
|
|
innerrefund: false,
|
|
|
|
|
orderList: [],
|
|
|
|
|
refundlist: [],
|
2022-11-11 15:34:09 +08:00
|
|
|
nurseStationlist: [],
|
2022-11-02 15:48:04 +08:00
|
|
|
orderStatuslist: [
|
2022-11-11 15:34:09 +08:00
|
|
|
{
|
2022-11-02 15:48:04 +08:00
|
|
|
value: "WAIT_PAY",
|
|
|
|
|
label: "待付款",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "PAY",
|
|
|
|
|
label: "已付款",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "CANCEL",
|
|
|
|
|
label: "已取消",
|
|
|
|
|
},
|
2022-11-11 15:34:09 +08:00
|
|
|
|
2022-11-02 15:48:04 +08:00
|
|
|
{
|
|
|
|
|
value: "WAIT_RECEIVED_GOODS",
|
|
|
|
|
label: "待收货",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
value: "RECEIVED_GOODS",
|
|
|
|
|
label: "已收货",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "WAIT_REFUND",
|
|
|
|
|
label: "退款中",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "REFUNDED",
|
2022-11-11 15:34:09 +08:00
|
|
|
label: "退款成功",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "COMPLETE",
|
|
|
|
|
label: "服务完成",
|
2022-11-02 15:48:04 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "WAIT_RETURNED_GOODS",
|
|
|
|
|
label: "待退货",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
value: "RETURNED_GOODS",
|
|
|
|
|
label: "已退货",
|
|
|
|
|
},
|
|
|
|
|
],
|
2022-10-31 08:57:36 +08:00
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 选中数组
|
|
|
|
|
ids: [],
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
single: true,
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
multiple: true,
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
showSearch: true,
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
// 商品订单表格数据
|
|
|
|
|
goodsOrderList: [],
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
open: false,
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
nurseStationId: null,
|
|
|
|
|
patientId: null,
|
|
|
|
|
orderNo: null,
|
|
|
|
|
orderStatus: null,
|
|
|
|
|
totalPrice: null,
|
|
|
|
|
receiver: null,
|
|
|
|
|
receiveAddress: null,
|
|
|
|
|
phone: null,
|
|
|
|
|
orderTime: null,
|
|
|
|
|
orderChannel: null,
|
|
|
|
|
},
|
2022-11-02 15:48:04 +08:00
|
|
|
queryexpressNo: {
|
|
|
|
|
id: "",
|
|
|
|
|
expressNo: null,
|
2022-11-11 15:34:09 +08:00
|
|
|
},
|
|
|
|
|
//权限查询
|
|
|
|
|
getListByUserquery: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
2022-11-02 15:48:04 +08:00
|
|
|
},
|
|
|
|
|
refundinfo: {
|
|
|
|
|
id: "",
|
|
|
|
|
},
|
2022-10-31 08:57:36 +08:00
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
2022-11-11 15:34:09 +08:00
|
|
|
rules: {},
|
2022-10-31 08:57:36 +08:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
2022-11-11 15:34:09 +08:00
|
|
|
this.info();
|
2022-10-31 08:57:36 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2022-11-02 15:48:04 +08:00
|
|
|
// 退款类型
|
|
|
|
|
refundTypeStatus(refundType) {
|
|
|
|
|
switch (refundType) {
|
|
|
|
|
case "REFUND_MONEY_GOODS":
|
|
|
|
|
return "退款退货";
|
|
|
|
|
case "ONLY_REFUND_MONEY":
|
|
|
|
|
return "仅退款";
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-11-04 14:00:14 +08:00
|
|
|
// 订单状态
|
|
|
|
|
orderStatusinfo(orderStatus) {
|
|
|
|
|
switch (orderStatus) {
|
|
|
|
|
case "WAIT_PAY":
|
|
|
|
|
return "待付款";
|
|
|
|
|
case "PAY":
|
|
|
|
|
return "已付款";
|
|
|
|
|
case "CANCEL":
|
|
|
|
|
return "已取消";
|
|
|
|
|
case "WAIT_RECEIVED_GOODS":
|
|
|
|
|
return "待收货";
|
|
|
|
|
case "RECEIVED_GOODS":
|
|
|
|
|
return "已收货";
|
2022-11-14 16:44:18 +08:00
|
|
|
case "WAIT_REFUND":
|
2022-11-04 14:00:14 +08:00
|
|
|
return "退款中";
|
|
|
|
|
case "REFUNDED":
|
2022-11-14 16:44:18 +08:00
|
|
|
return "退款成功";
|
2022-11-04 14:00:14 +08:00
|
|
|
case "WAIT_RETURNED_GOODS":
|
|
|
|
|
return "待退货";
|
|
|
|
|
case "RETURNED_GOODS":
|
|
|
|
|
return "已退货";
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
2022-11-02 15:48:04 +08:00
|
|
|
},
|
2022-11-04 14:00:14 +08:00
|
|
|
// 下单方式
|
2022-11-11 15:34:09 +08:00
|
|
|
orderChannelinfo(orderChannel) {
|
|
|
|
|
switch (orderChannel) {
|
|
|
|
|
case "MOBILE_APP":
|
2022-11-04 14:00:14 +08:00
|
|
|
return "手机APP";
|
|
|
|
|
case "WECHAT_APPLET":
|
|
|
|
|
return "微信小程序";
|
|
|
|
|
case "ALI_PAY_APPLET":
|
|
|
|
|
return "支付宝小程序";
|
2022-11-02 15:48:04 +08:00
|
|
|
|
2022-11-04 14:00:14 +08:00
|
|
|
default:
|
|
|
|
|
break;
|
2022-11-11 15:34:09 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 购买来源
|
|
|
|
|
buySourceinfo(buySource) {
|
|
|
|
|
switch (buySource) {
|
|
|
|
|
case "NURSE_STATION":
|
2022-11-04 14:00:14 +08:00
|
|
|
return "护理站";
|
|
|
|
|
case "SHOPPING_MALL":
|
|
|
|
|
return "商城";
|
|
|
|
|
default:
|
|
|
|
|
break;
|
2022-11-11 15:34:09 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 查询商品订单列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listGoodsOrder(this.queryParams).then((response) => {
|
|
|
|
|
this.goodsOrderList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 查看商品信息
|
|
|
|
|
seeOrder(row) {
|
|
|
|
|
console.log(row);
|
|
|
|
|
const id = row.orderNo;
|
|
|
|
|
getGoodsOrderlist(id).then((res) => {
|
|
|
|
|
this.orderList = res.data;
|
|
|
|
|
this.innerorder = true;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 查看录入物流单号弹框
|
|
|
|
|
seelogistics(row) {
|
|
|
|
|
// console.log(id);
|
|
|
|
|
// this.queryexpressNo.id = row.id;
|
|
|
|
|
this.queryexpressNo = JSON.parse(JSON.stringify(row));
|
|
|
|
|
this.innerlogistics = true;
|
|
|
|
|
},
|
|
|
|
|
// 确定按钮
|
|
|
|
|
searchlogistics() {
|
|
|
|
|
console.log(this.queryexpressNo);
|
|
|
|
|
editExpressNo(this.queryexpressNo).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
2022-11-07 11:38:55 +08:00
|
|
|
this.$modal.msgSuccess("录入成功");
|
|
|
|
|
}
|
2022-11-11 15:34:09 +08:00
|
|
|
this.queryexpressNo.expressNo = "";
|
|
|
|
|
this.getList();
|
|
|
|
|
this.innerlogistics = false;
|
2022-11-02 18:11:38 +08:00
|
|
|
|
2022-11-11 15:34:09 +08:00
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 取消按钮
|
|
|
|
|
cencellogistics() {
|
|
|
|
|
this.innerlogistics = false;
|
|
|
|
|
this.queryexpressNo.expressNo = "";
|
|
|
|
|
},
|
|
|
|
|
// 确认退款
|
|
|
|
|
refund(id) {
|
|
|
|
|
console.log(id);
|
|
|
|
|
goodsOrderRefundinfo(id).then((res) => {
|
|
|
|
|
this.refundlist = res.data;
|
|
|
|
|
console.log(this.refundlist);
|
|
|
|
|
this.innerrefund = true;
|
|
|
|
|
// this.getList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//确认退款 确定按钮
|
|
|
|
|
submitRefundOrder() {
|
|
|
|
|
var obj = {};
|
|
|
|
|
obj.orderNo = this.refundlist.goOrderNo;
|
|
|
|
|
obj.refundReason = this.refundlist.dictLabel;
|
|
|
|
|
obj.refundPrice = this.refundlist.godTotalPrice;
|
|
|
|
|
obj.remark = this.refundlist.refundReasonRemark;
|
|
|
|
|
obj.goodsStatus = this.refundlist.orderStatus;
|
|
|
|
|
weChatRefundOrderApply(obj).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.$modal.msgSuccess("退款有延迟,请耐心等待");
|
2022-11-07 11:38:55 +08:00
|
|
|
}
|
2022-11-11 15:34:09 +08:00
|
|
|
this.getList();
|
|
|
|
|
this.innerrefund = false;
|
2022-11-02 18:11:38 +08:00
|
|
|
|
2022-11-11 15:34:09 +08:00
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// refund(id){
|
|
|
|
|
// console.log(id);
|
|
|
|
|
// this.$confirm('是否确认退款?', '提示', {
|
|
|
|
|
// confirmButtonText: '确定',
|
|
|
|
|
// cancelButtonText: '取消',
|
|
|
|
|
// type: 'warning'
|
|
|
|
|
// }).then(() => {
|
|
|
|
|
// this.refundinfo.id=id
|
|
|
|
|
// goodsOrderrefund(this.refundinfo).then((res) => {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: 'success',
|
|
|
|
|
// message: '退款成功'
|
|
|
|
|
// });
|
|
|
|
|
// this.getList();
|
|
|
|
|
// });
|
2022-11-02 15:48:04 +08:00
|
|
|
|
2022-11-11 15:34:09 +08:00
|
|
|
// }).catch(() => {
|
|
|
|
|
// this.$message({
|
|
|
|
|
// type: 'info',
|
|
|
|
|
// message: '已取消退款'
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// 取消按钮
|
|
|
|
|
cancel() {
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.reset();
|
|
|
|
|
},
|
2022-11-02 15:48:04 +08:00
|
|
|
|
2022-11-11 15:34:09 +08:00
|
|
|
//退款取消按钮
|
|
|
|
|
refundcancel() {
|
|
|
|
|
this.innerrefund = false;
|
|
|
|
|
},
|
|
|
|
|
// 表单重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.queryParams = {
|
2022-11-07 13:39:08 +08:00
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
nurseStationId: null,
|
|
|
|
|
patientId: null,
|
|
|
|
|
orderNo: null,
|
|
|
|
|
orderStatus: null,
|
|
|
|
|
totalPrice: null,
|
|
|
|
|
receiver: null,
|
|
|
|
|
receiveAddress: null,
|
|
|
|
|
phone: null,
|
|
|
|
|
orderTime: null,
|
|
|
|
|
orderChannel: null,
|
2022-11-11 15:34:09 +08:00
|
|
|
};
|
|
|
|
|
this.form = {
|
|
|
|
|
id: null,
|
|
|
|
|
nurseStationId: null,
|
|
|
|
|
patientId: null,
|
|
|
|
|
orderNo: null,
|
|
|
|
|
totalPrice: null,
|
|
|
|
|
receiver: null,
|
|
|
|
|
receiveAddress: null,
|
|
|
|
|
phone: null,
|
|
|
|
|
orderTime: null,
|
|
|
|
|
orderChannel: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
delFlag: null,
|
|
|
|
|
createBy: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
orderStatus: "",
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("queryParams");
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
|
|
|
|
if (this.nurseStationlist[0].isAdmin == '1') {
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.queryParams = {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.queryParams.pageSize = 10
|
|
|
|
|
this.queryParams.orderNo = null
|
|
|
|
|
this.queryParams.orderStatus = null
|
|
|
|
|
|
|
|
|
|
|
2022-11-07 13:39:08 +08:00
|
|
|
}
|
2022-11-11 15:34:09 +08:00
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
2022-11-07 13:39:08 +08:00
|
|
|
|
2022-11-11 15:34:09 +08:00
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
|
|
this.single = selection.length !== 1;
|
|
|
|
|
this.multiple = !selection.length;
|
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加商品订单";
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
|
getGoodsOrder(id).then((response) => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改商品订单";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
updateGoodsOrder(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
addGoodsOrder(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认删除商品订单编号为"' + ids + '"的数据项?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
return delGoodsOrder(ids);
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
2022-11-04 14:00:14 +08:00
|
|
|
this.getList();
|
2022-11-11 15:34:09 +08:00
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
|
this.download(
|
|
|
|
|
"system/goodsOrder/export",
|
|
|
|
|
{
|
|
|
|
|
...this.queryParams,
|
|
|
|
|
},
|
|
|
|
|
`goodsOrder_${new Date().getTime()}.xlsx`
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
//权限列表
|
|
|
|
|
info() {
|
|
|
|
|
// goodsCategory().then((res) => {
|
|
|
|
|
// console.log(this.form);
|
|
|
|
|
// this.goodsCategorylist = res.rows;
|
|
|
|
|
// });
|
|
|
|
|
getListByUser(this.getListByUserquery).then((res) => {
|
|
|
|
|
if (res.rows[0].isAdmin == "1") {
|
|
|
|
|
this.nurseStationlist = res.rows;
|
|
|
|
|
this.total2 = res.total;
|
|
|
|
|
} else {
|
|
|
|
|
this.total2 = res.total;
|
|
|
|
|
this.nurseStationlist = res.rows;
|
|
|
|
|
this.queryParams.nurseStationId = res.rows[0].id;
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
//滑动下拉框
|
|
|
|
|
loadMore() {
|
|
|
|
|
var a = Math.ceil(this.total2 / 10);
|
|
|
|
|
if (this.nurseStationlist.length + 1 >= this.total2) {
|
2022-11-04 14:00:14 +08:00
|
|
|
} else {
|
2022-11-11 15:34:09 +08:00
|
|
|
if (this.getListByUserquery.pageNum >= a) {
|
|
|
|
|
} else {
|
|
|
|
|
this.getListByUserquery.pageNum++;
|
|
|
|
|
getListByUser(this.getListByUserquery).then((res) => {
|
|
|
|
|
res.rows.forEach((e) => {
|
|
|
|
|
this.nurseStationlist.push(e);
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
2022-11-02 18:11:38 +08:00
|
|
|
}
|
2022-11-11 15:34:09 +08:00
|
|
|
},
|
2022-11-14 11:49:47 +08:00
|
|
|
|
2022-11-11 15:34:09 +08:00
|
|
|
},
|
2022-10-31 08:57:36 +08:00
|
|
|
};
|
|
|
|
|
</script>
|