|
|
|
@ -1,8 +1,10 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container" v-if="show">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium" class="ry_form">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px" size="medium"
|
|
|
|
|
|
|
|
class="ry_form">
|
|
|
|
<el-form-item label="订单状态" prop="status">
|
|
|
|
<el-form-item label="订单状态" prop="status">
|
|
|
|
<DictRadio v-model="queryParams.status" :radioData="dict.type.oms_order_status" size="small" :show-all="'all'" :filter="['11', '12', '13', '14']"></DictRadio>
|
|
|
|
<DictRadio v-model="queryParams.status" :radioData="dict.type.oms_order_status" size="small" :show-all="'all'"
|
|
|
|
|
|
|
|
:filter="['11', '12', '13', '14']"></DictRadio>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="订单编号" prop="orderSn">
|
|
|
|
<el-form-item label="订单编号" prop="orderSn">
|
|
|
|
<el-input v-model.trim="queryParams.orderSn" placeholder="请输入订单编号" clearable size="small"
|
|
|
|
<el-input v-model.trim="queryParams.orderSn" placeholder="请输入订单编号" clearable size="small"
|
|
|
|
@ -40,7 +42,8 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="omsOrderList" border @selection-change="handleSelectionChange" cell-class-name="my-cell">
|
|
|
|
<el-table v-loading="loading" :data="omsOrderList" border @selection-change="handleSelectionChange"
|
|
|
|
|
|
|
|
cell-class-name="my-cell">
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
|
<el-table-column label="收件信息" prop="receiverName" width="280">
|
|
|
|
<el-table-column label="收件信息" prop="receiverName" width="280">
|
|
|
|
<template v-slot="scope">
|
|
|
|
<template v-slot="scope">
|
|
|
|
@ -51,12 +54,14 @@
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click="handleWatch()"
|
|
|
|
@click="handleWatch()"
|
|
|
|
style="margin-left: 10px"
|
|
|
|
style="margin-left: 10px"
|
|
|
|
>查看</el-button>
|
|
|
|
>查看
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click="handleUpdate()"
|
|
|
|
@click="handleUpdate()"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span>{{ scope.row.receiverProvince }}{{ scope.row.receiverCity }}{{ scope.row.receiverDistrict }}</span>
|
|
|
|
<span>{{ scope.row.receiverProvince }}{{ scope.row.receiverCity }}{{ scope.row.receiverDistrict }}</span>
|
|
|
|
@ -78,7 +83,8 @@
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click="handleSaveNote(scope.row)"
|
|
|
|
@click="handleSaveNote(scope.row)"
|
|
|
|
>{{ scope.row.merchantNote ? '修改' : '添加平台备注' }}</el-button>
|
|
|
|
>{{ scope.row.merchantNote ? '修改' : '添加平台备注' }}
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="scope.row.merchantNote">{{ scope.row.merchantNote }}</div>
|
|
|
|
<div v-if="scope.row.merchantNote">{{ scope.row.merchantNote }}</div>
|
|
|
|
<div v-if="scope.row.note" class="note-title">买家备注</div>
|
|
|
|
<div v-if="scope.row.note" class="note-title">买家备注</div>
|
|
|
|
@ -107,7 +113,8 @@
|
|
|
|
placement="right"
|
|
|
|
placement="right"
|
|
|
|
trigger="hover">
|
|
|
|
trigger="hover">
|
|
|
|
<el-image :src="item.pic" style="width: 350px;height: 350px"/>
|
|
|
|
<el-image :src="item.pic" style="width: 350px;height: 350px"/>
|
|
|
|
<el-image slot="reference" class="small-img product-item" :src="item.pic" style="width: 40px;height: 40px"/>
|
|
|
|
<el-image slot="reference" class="small-img product-item" :src="item.pic"
|
|
|
|
|
|
|
|
style="width: 40px;height: 40px"/>
|
|
|
|
</el-popover>
|
|
|
|
</el-popover>
|
|
|
|
<div class="product-item" style="margin-left: 5px">
|
|
|
|
<div class="product-item" style="margin-left: 5px">
|
|
|
|
<div class="sp-data">
|
|
|
|
<div class="sp-data">
|
|
|
|
@ -132,10 +139,12 @@
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click="handleDelivery(scope.row)"
|
|
|
|
@click="handleDelivery(scope.row)"
|
|
|
|
:disabled="scope.row.status !== 1 && scope.row.status !== 2 && scope.row.status !== 3"
|
|
|
|
:disabled="scope.row.status !== 1 && scope.row.status !== 2 && scope.row.status !== 3"
|
|
|
|
>编辑</el-button>
|
|
|
|
>编辑
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="scope.row.deliverySn">物流单号:{{ scope.row.deliverySn }}
|
|
|
|
<div v-if="scope.row.deliverySn">物流单号:{{ scope.row.deliverySn }}
|
|
|
|
<el-link @click="copy(scope.row.deliverySn)" :underline="false"><i class="el-icon-document-copy el-icon--right"></i> </el-link>
|
|
|
|
<el-link @click="copy(scope.row.deliverySn)" :underline="false"><i
|
|
|
|
|
|
|
|
class="el-icon-document-copy el-icon--right"></i></el-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-if="scope.row.deliveryTime">发货时间:{{ parseTime(scope.row.deliveryTime, '') }}</div>
|
|
|
|
<div v-if="scope.row.deliveryTime">发货时间:{{ parseTime(scope.row.deliveryTime, '') }}</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
@ -149,26 +158,30 @@
|
|
|
|
<!-- icon="el-icon-document-copy"-->
|
|
|
|
<!-- icon="el-icon-document-copy"-->
|
|
|
|
<!-- @click="copyOrderSn(scope.row.orderSn)"-->
|
|
|
|
<!-- @click="copyOrderSn(scope.row.orderSn)"-->
|
|
|
|
<!-- ></el-link>-->
|
|
|
|
<!-- ></el-link>-->
|
|
|
|
<el-link @click="copy(scope.row.orderSn)" :underline="false"><i class="el-icon-document-copy el-icon--right"></i> </el-link>
|
|
|
|
<el-link @click="copy(scope.row.orderSn)" :underline="false"><i
|
|
|
|
|
|
|
|
class="el-icon-document-copy el-icon--right"></i></el-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click="goDetail(scope.row)"
|
|
|
|
@click="goDetail(scope.row)"
|
|
|
|
v-hasPermi="['oms:order:query']"
|
|
|
|
v-hasPermi="['oms:order:query']"
|
|
|
|
>详情</el-button>
|
|
|
|
>详情
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click="showLog(scope.row.id)"
|
|
|
|
@click="showLog(scope.row.id)"
|
|
|
|
v-hasPermi="['oms:order:log']"
|
|
|
|
v-hasPermi="['oms:order:log']"
|
|
|
|
>日志</el-button>
|
|
|
|
>日志
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@click="handleDelivery(scope.row)"
|
|
|
|
@click="handleDelivery(scope.row)"
|
|
|
|
:disabled="scope.row.status !== 1 && scope.row.status !== 2 && scope.row.status !== 3"
|
|
|
|
:disabled="scope.row.status !== 1 && scope.row.status !== 2 && scope.row.status !== 3"
|
|
|
|
>发货</el-button>
|
|
|
|
>发货
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
@ -185,7 +198,8 @@
|
|
|
|
<el-dialog :title="deliveryObj.title" :visible.sync="deliveryObj.open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="deliveryObj.title" :visible.sync="deliveryObj.open" width="500px" append-to-body>
|
|
|
|
<el-form ref="deliveryForm" :model="deliveryObj.form" :rules="deliveryObj.rules" label-width="100px">
|
|
|
|
<el-form ref="deliveryForm" :model="deliveryObj.form" :rules="deliveryObj.rules" label-width="100px">
|
|
|
|
<el-form-item label="快递公司" prop="expressName">
|
|
|
|
<el-form-item label="快递公司" prop="expressName">
|
|
|
|
<el-select v-model="deliveryObj.form.expressName" placeholder="请选择快递公司" clearable size="small" filterable>
|
|
|
|
<el-select v-model="deliveryObj.form.expressName" placeholder="请选择快递公司" clearable size="small"
|
|
|
|
|
|
|
|
filterable>
|
|
|
|
<!-- <el-option v-for="(item, index) in experssList" :label="item.expressName" :value="item.expressCode"/>-->
|
|
|
|
<!-- <el-option v-for="(item, index) in experssList" :label="item.expressName" :value="item.expressCode"/>-->
|
|
|
|
<el-option label="顺丰速运" value="1"/>
|
|
|
|
<el-option label="顺丰速运" value="1"/>
|
|
|
|
<el-option label="申通快递" value="2"/>
|
|
|
|
<el-option label="申通快递" value="2"/>
|
|
|
|
@ -193,7 +207,8 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="快递单号" prop="expressSn">
|
|
|
|
<el-form-item label="快递单号" prop="expressSn">
|
|
|
|
<el-input v-model="deliveryObj.form.expressSn" placeholder="请输入快递单号" controls-position="right" :min="0"/>
|
|
|
|
<el-input v-model="deliveryObj.form.expressSn" placeholder="请输入快递单号" controls-position="right"
|
|
|
|
|
|
|
|
:min="0"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
@ -235,10 +250,20 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listOmsOrder, getOmsOrder, delOmsOrder, addOmsOrder, updateOmsOrder, exportOmsOrder, saveMerchantNote, deliverProduct, viewLog } from "@/api/oms/order";
|
|
|
|
import {
|
|
|
|
|
|
|
|
listOmsOrder,
|
|
|
|
|
|
|
|
getOmsOrder,
|
|
|
|
|
|
|
|
delOmsOrder,
|
|
|
|
|
|
|
|
addOmsOrder,
|
|
|
|
|
|
|
|
updateOmsOrder,
|
|
|
|
|
|
|
|
exportOmsOrder,
|
|
|
|
|
|
|
|
saveMerchantNote,
|
|
|
|
|
|
|
|
deliverProduct,
|
|
|
|
|
|
|
|
viewLog
|
|
|
|
|
|
|
|
} from "@/api/oms/order";
|
|
|
|
import AddressSelector from "@/views/components/AddressSelector/index.vue";
|
|
|
|
import AddressSelector from "@/views/components/AddressSelector/index.vue";
|
|
|
|
import dateUtil, {dateFormat} from '@/utils/DateUtil';
|
|
|
|
import dateUtil, {dateFormat} from '@/utils/DateUtil';
|
|
|
|
import fa from "element-ui/src/locale/lang/fa";
|
|
|
|
import {isStarRepo} from "@/utils/is-star-plugin"
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "OmsOrder",
|
|
|
|
name: "OmsOrder",
|
|
|
|
@ -248,6 +273,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
show: false,
|
|
|
|
// 遮罩层
|
|
|
|
// 遮罩层
|
|
|
|
loading: true,
|
|
|
|
loading: true,
|
|
|
|
pickerOptions: {
|
|
|
|
pickerOptions: {
|
|
|
|
@ -336,7 +362,10 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
async created() {
|
|
|
|
|
|
|
|
const res = await isStarRepo('zccbbg', 'RuoYi-Mall', this.userId, location.href, 'ruoyi-mall-商城', 'https://gitee.com/zccbbg/RuoYi-Mall')
|
|
|
|
|
|
|
|
this.show = res;
|
|
|
|
|
|
|
|
if (res) {
|
|
|
|
const {phone, status, today} = this.$route.query
|
|
|
|
const {phone, status, today} = this.$route.query
|
|
|
|
if (phone) {
|
|
|
|
if (phone) {
|
|
|
|
this.queryParams.userPhone = phone
|
|
|
|
this.queryParams.userPhone = phone
|
|
|
|
@ -348,6 +377,7 @@ export default {
|
|
|
|
this.setToday()
|
|
|
|
this.setToday()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
/** 日期组件设置为今天 */
|
|
|
|
/** 日期组件设置为今天 */
|
|
|
|
@ -484,7 +514,8 @@ export default {
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
}).catch(() => {});
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
@ -495,7 +526,8 @@ export default {
|
|
|
|
}).then(response => {
|
|
|
|
}).then(response => {
|
|
|
|
this.$download.download(response);
|
|
|
|
this.$download.download(response);
|
|
|
|
this.exportLoading = false;
|
|
|
|
this.exportLoading = false;
|
|
|
|
}).catch(() => {});
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//时间搜索条件change方法
|
|
|
|
//时间搜索条件change方法
|
|
|
|
handleChange(value) {
|
|
|
|
handleChange(value) {
|
|
|
|
@ -651,27 +683,34 @@ export default {
|
|
|
|
flex-direction: row;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 340px;
|
|
|
|
width: 340px;
|
|
|
|
|
|
|
|
|
|
|
|
.product-item {
|
|
|
|
.product-item {
|
|
|
|
margin: auto;
|
|
|
|
margin: auto;
|
|
|
|
width: 290px;
|
|
|
|
width: 290px;
|
|
|
|
|
|
|
|
|
|
|
|
.sp-data {
|
|
|
|
.sp-data {
|
|
|
|
font-size: 13px;
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.quantity {
|
|
|
|
.quantity {
|
|
|
|
font-weight: bold;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 13px;
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.note-title {
|
|
|
|
.note-title {
|
|
|
|
font-weight: bold;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-table .my-cell {
|
|
|
|
.el-table .my-cell {
|
|
|
|
vertical-align: top
|
|
|
|
vertical-align: top
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-link.el-link--default {
|
|
|
|
.el-link.el-link--default {
|
|
|
|
color: #409eff;
|
|
|
|
color: #409eff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-select {
|
|
|
|
.el-select {
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|