|
@@ -0,0 +1,581 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ size="small"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="80px"
|
|
|
+ >
|
|
|
+ <el-form-item label="商品名称" prop="spuName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.spuName"
|
|
|
+ placeholder="请输入商品名称"
|
|
|
+ clearable
|
|
|
+ style="width: 180px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="订单编号" prop="userOrderSn">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.userOrderSn"
|
|
|
+ placeholder="请输入订单编号"
|
|
|
+ clearable
|
|
|
+ style="width: 180px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="买家手机号" prop="userPhone" label-width="140px">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.userPhone"
|
|
|
+ placeholder="请输入下单用户手机号"
|
|
|
+ clearable
|
|
|
+ style="width: 180px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="下单时间" prop="createTime">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="queryParams.createTime"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ format="yyyy-MM-dd"
|
|
|
+ type="date"
|
|
|
+ placeholder="请选择下单时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="订单状态" prop="orderStatusKey">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.orderStatusKey"
|
|
|
+ placeholder="请选择订单状态"
|
|
|
+ style="width: 180px"
|
|
|
+ >
|
|
|
+ <el-option label="待发货" value="WAIT_DELIVERY"> </el-option>
|
|
|
+ <el-option label="待收货" value="WAIT_RECEIVE"> </el-option>
|
|
|
+ <el-option label="待付款" value="WAIT_PAY"> </el-option>
|
|
|
+ <el-option label="已完成" value="COMPLETE"> </el-option>
|
|
|
+ <el-option label="已取消/申请售后" value="CANCEL"> </el-option>
|
|
|
+ <el-option label="待发布货运信息" value="WAIT_PUBLISH_INVOICE"> </el-option>
|
|
|
+ <el-option label="等待司机接单" value="WAIT_DRIVER_ERCEIVE"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="售后状态" prop="afterSaleStatus">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.afterSaleStatus"
|
|
|
+ placeholder="请选择售后状态"
|
|
|
+ style="width: 180px"
|
|
|
+ >
|
|
|
+ <el-option label="未申请" value="0"> </el-option>
|
|
|
+ <el-option label="已申请" value="1"> </el-option>
|
|
|
+ <el-option label="审核失败" value="2"> </el-option>
|
|
|
+ <el-option label="审核成功(退款中)" value="3"> </el-option>
|
|
|
+ <el-option label="退款成功" value="4"> </el-option>
|
|
|
+ <el-option label="退款失败(联系客服解决)" value="5"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="支付方式" prop="paymentType">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.paymentType"
|
|
|
+ placeholder="请选择支付方式"
|
|
|
+ style="width: 180px"
|
|
|
+ >
|
|
|
+ <el-option label="支付宝" value="alipay"> </el-option>
|
|
|
+ <el-option label="微信支付" value="wechat"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="配送方式" prop="deliveryType" style="margin-left: 60px">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.deliveryType"
|
|
|
+ placeholder="请选择支付方式"
|
|
|
+ style="width: 180px"
|
|
|
+ >
|
|
|
+ <el-option label="自提" value="0"> </el-option>
|
|
|
+ <el-option label="同城下单" value="1"> </el-option>
|
|
|
+ <el-option label="异地下单" value="2"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </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>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-table
|
|
|
+ ref="multipleTable"
|
|
|
+ v-loading="loading"
|
|
|
+ :data="spuList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
+ row-key="id"
|
|
|
+ >
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column label="序号" type="index" />
|
|
|
+ <el-table-column
|
|
|
+ label="订单编号"
|
|
|
+ align="center"
|
|
|
+ prop="userOrderSn"
|
|
|
+ width="150"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ />
|
|
|
+
|
|
|
+ <el-table-column label="核销人Id" align="center" prop="verifierUserId" width="100" />
|
|
|
+ <el-table-column label="商品名称" align="center" prop="skuName" width="100" />
|
|
|
+ <!-- <el-table-column label="商品图片" align="center" prop="skuPic">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-image :src="scope.row.skuPic" style="width: 60px; height: 60px"> </el-image>
|
|
|
+ </template>
|
|
|
+ </el-table-column> -->
|
|
|
+ <!-- <el-table-column label="商品分类" align="center" prop="categoryName" width="150">
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column
|
|
|
+ label="实付金额(元)"
|
|
|
+ align="center"
|
|
|
+ prop="paymentAmount"
|
|
|
+ width="100"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.paymentAmount.toFixed(2) }}元
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ label="收货人姓名"
|
|
|
+ align="center"
|
|
|
+ prop="consigneeContactName"
|
|
|
+ width="100"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="收货人手机号"
|
|
|
+ align="center"
|
|
|
+ prop="consigneeContactMobile"
|
|
|
+ width="110"
|
|
|
+ />
|
|
|
+
|
|
|
+ <el-table-column label="下单人姓名" align="center" prop="userNick" width="120" />
|
|
|
+ <el-table-column label="下单人ID" align="center" prop="userId" width="100" />
|
|
|
+ <el-table-column label="下单时间" align="center" prop="createTime" width="160" />
|
|
|
+ <el-table-column label="单价/数量" align="center" prop="price">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>
|
|
|
+ {{ scope.row.price }}元 <br />
|
|
|
+ 共{{ scope.row.quantity }}{{ scope.row.unit }}</span
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!-- <el-table-column label="包装方式" align="center" prop="packageType">
|
|
|
+ </el-table-column> -->
|
|
|
+ <el-table-column label="支付方式" align="center" prop="packageType">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.row.paymentType == "alipay"
|
|
|
+ ? "支付宝支付"
|
|
|
+ : scope.row.paymentType == "wechat"
|
|
|
+ ? "微信支付"
|
|
|
+ : scope.row.paymentType == "card"
|
|
|
+ ? "银行卡支付"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="配送方式" align="center" prop="paymentType" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.row.deliveryType == "0"
|
|
|
+ ? "自提"
|
|
|
+ : scope.row.deliveryType == "1"
|
|
|
+ ? "同城下单"
|
|
|
+ : scope.row.deliveryType == "2"
|
|
|
+ ? "异地下单"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="订单状态" align="center" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.row.orderStatus == 0
|
|
|
+ ? "待商家确认修改运费"
|
|
|
+ : scope.row.orderStatus == 10
|
|
|
+ ? "等待买家支付"
|
|
|
+ : scope.row.orderStatus == 20
|
|
|
+ ? "等待商家发布货运信息"
|
|
|
+ : scope.row.orderStatus == 90
|
|
|
+ ? "等待司机接单"
|
|
|
+ : scope.row.orderStatus == 100
|
|
|
+ ? "等待司机支付保证金"
|
|
|
+ : scope.row.orderStatus == 110
|
|
|
+ ? "等待司机装货"
|
|
|
+ : scope.row.orderStatus == 120
|
|
|
+ ? "已装货,运输中"
|
|
|
+ : scope.row.orderStatus == 30
|
|
|
+ ? "司机已到达,等待买家签收"
|
|
|
+ : scope.row.orderStatus == 40
|
|
|
+ ? "买家已收货"
|
|
|
+ : scope.row.orderStatus == 50
|
|
|
+ ? "已取消"
|
|
|
+ : scope.row.orderStatus == 60
|
|
|
+ ? "退款中"
|
|
|
+ : scope.row.orderStatus == 70
|
|
|
+ ? "退款成功"
|
|
|
+ : scope.row.orderStatus == 80
|
|
|
+ ? "退款失败"
|
|
|
+ : scope.row.orderStatus == 130
|
|
|
+ ? "待处理售后"
|
|
|
+ : scope.row.orderStatus == 140
|
|
|
+ ? "已处理售后"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="售后状态" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ scope.row.afterSaleStatus == 0
|
|
|
+ ? "未申请"
|
|
|
+ : scope.row.afterSaleStatus == 1
|
|
|
+ ? "已申请"
|
|
|
+ : scope.row.afterSaleStatus == 2
|
|
|
+ ? "审核失败"
|
|
|
+ : scope.row.afterSaleStatus == 3
|
|
|
+ ? "审核成功(退款中)"
|
|
|
+ : scope.row.afterSaleStatus == 4
|
|
|
+ ? "退款成功"
|
|
|
+ : scope.row.afterSaleStatus == 5
|
|
|
+ ? "退款失败(联系客服解决)"
|
|
|
+ : ""
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center" width="150">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ @click="handleDetail(scope.row)"
|
|
|
+ v-hasPermi="['writeoff:detail']"
|
|
|
+ >订单详情</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="queryParams.pageNo"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+ <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
|
|
+ <el-descriptions title="订单详情" column="3">
|
|
|
+ <el-descriptions-item label="订单编号">{{
|
|
|
+ detailInfo ? detailInfo.userOrderSn : ""
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="订单状态">
|
|
|
+ {{
|
|
|
+ detailInfo
|
|
|
+ ? detailInfo.orderStatus == 0
|
|
|
+ ? "待商家确认修改运费"
|
|
|
+ : detailInfo.orderStatus == 10
|
|
|
+ ? "等待买家支付"
|
|
|
+ : detailInfo.orderStatus == 20
|
|
|
+ ? "等待商家发布货运信息"
|
|
|
+ : detailInfo.orderStatus == 90
|
|
|
+ ? "等待司机接单"
|
|
|
+ : detailInfo.orderStatus == 100
|
|
|
+ ? "等待司机支付保证金"
|
|
|
+ : detailInfo.orderStatus == 110
|
|
|
+ ? "等待司机装货"
|
|
|
+ : detailInfo.orderStatus == 120
|
|
|
+ ? "已装货,运输中"
|
|
|
+ : detailInfo.orderStatus == 30
|
|
|
+ ? "司机已到达,等待买家签收"
|
|
|
+ : detailInfo.orderStatus == 40
|
|
|
+ ? "买家已收货"
|
|
|
+ : detailInfo.orderStatus == 50
|
|
|
+ ? "已取消"
|
|
|
+ : detailInfo.orderStatus == 60
|
|
|
+ ? "退款中"
|
|
|
+ : detailInfo.orderStatus == 70
|
|
|
+ ? "退款成功"
|
|
|
+ : detailInfo.orderStatus == 80
|
|
|
+ ? "退款失败"
|
|
|
+ : detailInfo.orderStatus == 130
|
|
|
+ ? "待处理售后"
|
|
|
+ : detailInfo.orderStatus == 140
|
|
|
+ ? "已处理售后"
|
|
|
+ : ""
|
|
|
+ : ""
|
|
|
+ }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="配送方式">{{
|
|
|
+ detailInfo
|
|
|
+ ? detailInfo.deliveryMethod == -1
|
|
|
+ ? "未选择"
|
|
|
+ : detailInfo.deliveryMethod == 0
|
|
|
+ ? "线下发货"
|
|
|
+ : detailInfo.deliveryMethod == 1
|
|
|
+ ? "平台找司机"
|
|
|
+ : ""
|
|
|
+ : ""
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="支付方式">
|
|
|
+ {{
|
|
|
+ detailInfo
|
|
|
+ ? detailInfo.paymentType == "alipay"
|
|
|
+ ? "支付宝"
|
|
|
+ : detailInfo.paymentType == "wechat"
|
|
|
+ ? "微信支付"
|
|
|
+ : detailInfo.paymentType == "card"
|
|
|
+ ? "银行卡支付"
|
|
|
+ : ""
|
|
|
+ : ""
|
|
|
+ }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="下单时间">
|
|
|
+ {{ parseTime(detailInfo.createTime) }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="付款时间">
|
|
|
+ {{ parseTime(detailInfo.paymentTime) }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="担保服务费">
|
|
|
+ {{ detailInfo ? detailInfo.serviceFee : "" }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="运费(元)">
|
|
|
+ {{ detailInfo ? detailInfo.freightFee : "" }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="实付款(元)">
|
|
|
+ {{ detailInfo ? detailInfo.paymentAmount : "" }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ <el-descriptions title="物流信息" column="3">
|
|
|
+ <el-descriptions-item label="运单号">
|
|
|
+ {{ detailInfo ? detailInfo.orderSn : "" }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="司机">{{
|
|
|
+ detailInfo ? detailInfo.driverUservalue : ""
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="车型">{{
|
|
|
+ detailInfo ? detailInfo.carType : ""
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="车牌号"
|
|
|
+ >{{ detailInfo ? detailInfo.plateNo : "" }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="司机电话">{{
|
|
|
+ detailInfo ? detailInfo.driverPhone : ""
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="装货时间">
|
|
|
+ {{ detailInfo ? detailInfo.shipmentTime : "" }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="送达时间">
|
|
|
+ {{ detailInfo ? detailInfo.arriveTime : "" }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ </el-descriptions>
|
|
|
+ <el-descriptions title="买家信息" column="3">
|
|
|
+ <el-descriptions-item label="昵称">{{
|
|
|
+ detailInfo ? detailInfo.userNick : ""
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="头像">
|
|
|
+ <el-avatar
|
|
|
+ v-if="detailInfo.userHeadUrl"
|
|
|
+ :size="30"
|
|
|
+ :src="detailInfo.userHeadUrl"
|
|
|
+ ></el-avatar
|
|
|
+ ></el-descriptions-item>
|
|
|
+ <el-descriptions-item label="收货人">{{
|
|
|
+ detailInfo ? detailInfo.consigneeContactName : ""
|
|
|
+ }}</el-descriptions-item>
|
|
|
+ <el-descriptions-item label="手机号">
|
|
|
+ {{ detailInfo ? detailInfo.userPhone : "" }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="备注">
|
|
|
+ {{ detailInfo ? detailInfo.orderRemark : "" }}</el-descriptions-item
|
|
|
+ >
|
|
|
+ <el-descriptions-item label="收货地址"
|
|
|
+ >{{ detailInfo ? detailInfo.consigneeAddressDetail : "" }}
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ <el-descriptions title="商品信息" column="3"> </el-descriptions>
|
|
|
+ <el-table :data="detailInfo.orderGoodInfoList" style="width: 100%">
|
|
|
+ <el-table-column prop="skuName" label="商品名称"> </el-table-column>
|
|
|
+ <el-table-column prop="skuName" label="商品图片">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-image :src="scope.row.skuPic" style="width: 50px; height: 50px">
|
|
|
+ </el-image>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="price" label="商品单价(元)"> </el-table-column>
|
|
|
+ <el-table-column prop="quantity" label="下单数量"> </el-table-column>
|
|
|
+ <el-table-column prop="totalPrice" label="总金额(元)"> </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { userOrderInfo } from "@/api/manage/order";
|
|
|
+import { queryWriteOffOrder } from "@/api/manage/writeoff";
|
|
|
+import { listUser } from "@/api/system/user";
|
|
|
+export default {
|
|
|
+ name: "writeoff",
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ equipmentOpen: false,
|
|
|
+ // 遮罩层
|
|
|
+ loading: false,
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 参数表格数据
|
|
|
+ spuList: [],
|
|
|
+ // 弹出层标题
|
|
|
+ title: "订单详情",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ // 日期范围
|
|
|
+ dateRange: [],
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ pageNo: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ spuName: "",
|
|
|
+ userOrderSn: "",
|
|
|
+ userPhone: "",
|
|
|
+ createTime: "",
|
|
|
+ orderStatusKey: "",
|
|
|
+ afterSaleStatus: "",
|
|
|
+ paymentType: "",
|
|
|
+ verifierUserId: "",
|
|
|
+ },
|
|
|
+ form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ configValue: [{ required: true, message: "参数键值不能为空", trigger: "blur" }],
|
|
|
+ },
|
|
|
+ detailInfo: {},
|
|
|
+ dialogLoding: false,
|
|
|
+ printList: [],
|
|
|
+ verifierUserIds: [],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ this.getUserList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getUserList() {
|
|
|
+ this.verifierUserIds = [];
|
|
|
+ listUser({ pageNo: 1, pageSize: 999 }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ let list = res.data.records;
|
|
|
+ for (let index = 0; index < list.length; index++) {
|
|
|
+ if (list[index].roleName == "核销员") {
|
|
|
+ this.verifierUserIds.push(list[index].id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.queryParams.verifierUserId = this.verifierUserIds.toString();
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ queryWriteOffOrder(this.addDateRange(this.queryParams, this.dateRange)).then(
|
|
|
+ (response) => {
|
|
|
+ if (response.code == 200) {
|
|
|
+ let list = response.data.records;
|
|
|
+ let totalList = [];
|
|
|
+ for (let i = 0; i < list.length; i++) {
|
|
|
+ if (list[i].goodsInfo) {
|
|
|
+ var goods = JSON.parse(list[i].goodsInfo);
|
|
|
+ for (let a = 0; a < goods.length; a++) {
|
|
|
+ let bb = {};
|
|
|
+ if (goods[a].specsValue.length > 0) {
|
|
|
+ for (let s = 0; s < goods[a].specsValue.length; s++) {
|
|
|
+ bb = {
|
|
|
+ ...list[i],
|
|
|
+ ...goods[a],
|
|
|
+ ...goods[a].specsValue[s],
|
|
|
+ };
|
|
|
+ totalList.push(bb);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ bb = {
|
|
|
+ ...list[i],
|
|
|
+ ...goods[a],
|
|
|
+ };
|
|
|
+ totalList.push(bb);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.spuList = totalList;
|
|
|
+ this.total = response.data.total;
|
|
|
+ this.loading = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.open = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.resetForm("form");
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNo = 1;
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.dateRange = [];
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+
|
|
|
+ handleDetail(record) {
|
|
|
+ this.title = "商品详情";
|
|
|
+ this.open = true;
|
|
|
+ this.dialogLoding = true;
|
|
|
+ userOrderInfo(record.id)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.detailInfo = res.data;
|
|
|
+ this.dialogLoding = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.dialogLoding = false;
|
|
|
+ console.log(err);
|
|
|
+ });
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style scoped lang="scss">
|
|
|
+.header {
|
|
|
+ margin-bottom: 30px;
|
|
|
+ .item {
|
|
|
+ height: 100px;
|
|
|
+ }
|
|
|
+ .row {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ .count {
|
|
|
+ padding: 10px;
|
|
|
+ font-size: 20px;
|
|
|
+ font-weight: 500;
|
|
|
+ }
|
|
|
+ .zz {
|
|
|
+ font-size: 14px;
|
|
|
+ color: red;
|
|
|
+ padding: 0px 10px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|