|
@@ -29,7 +29,17 @@
|
|
|
<el-col :span="24" class="one">
|
|
|
<search-1 :form="searchForm" @onSubmit="toSearch" @querySearch="querySearch" @toReset="toClose" :shopList="shopList"> </search-1>
|
|
|
</el-col>
|
|
|
- <data-table ref="dataTable" :fields="fields" :opera="opera" @query="search" :data="list" :total="total" @detail="toDetails" @sales="toSaless">
|
|
|
+ <data-table
|
|
|
+ ref="dataTable"
|
|
|
+ :fields="fields"
|
|
|
+ :opera="opera"
|
|
|
+ @query="search"
|
|
|
+ :data="list"
|
|
|
+ :total="total"
|
|
|
+ @detail="toDetails"
|
|
|
+ @sales="toSaless"
|
|
|
+ @order="toOrder"
|
|
|
+ >
|
|
|
<template #is_afterSale="{ row }">
|
|
|
<span :style="{ color: row.is_afterSale === true ? 'red' : '' }">
|
|
|
{{ row.is_afterSale === true ? '该订单有商品申请售后' : '未申请售后' }}
|
|
@@ -55,6 +65,8 @@ import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: dictData } = createNamespacedHelpers('dictData');
|
|
|
const { mapActions: shop } = createNamespacedHelpers('shop');
|
|
|
const { mapActions } = createNamespacedHelpers('orderDetail');
|
|
|
+const { mapActions: shopNotice } = createNamespacedHelpers('shopNotice');
|
|
|
+
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -86,6 +98,7 @@ export default {
|
|
|
opera: [
|
|
|
{ label: '详情', method: 'detail' },
|
|
|
{ label: '售后', method: 'sales', type: 'danger', display: (i) => i.status == '1' || i.status == '2' || i.status == '2-' || i.status == '3' },
|
|
|
+ { label: '提醒发货', method: 'order', type: 'warning', display: (i) => i.status == '1' },
|
|
|
],
|
|
|
fields: [
|
|
|
{ label: '订单号', model: 'no', showTip: false },
|
|
@@ -107,6 +120,7 @@ export default {
|
|
|
methods: {
|
|
|
...dictData({ dictQuery: 'query' }),
|
|
|
...shop({ shopQuery: 'query' }),
|
|
|
+ ...shopNotice({ shopRts: 'rts' }),
|
|
|
...mapActions(['query', 'fetch', 'create', 'update', 'delete']),
|
|
|
toSearch() {
|
|
|
this.$refs.dataTable.resetPage();
|
|
@@ -139,6 +153,20 @@ export default {
|
|
|
}
|
|
|
this.loadings = false;
|
|
|
},
|
|
|
+ toOrder({ data }) {
|
|
|
+ let info = { source_id: data._id };
|
|
|
+ this.$confirm('是否确认提醒发货', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(async () => {
|
|
|
+ let res = await this.shopRts(info);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({ type: `success`, message: `提醒发货成功` });
|
|
|
+ this.search();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 未付款
|
|
|
toDetail(val) {
|
|
|
this.$set(this, `order_id`, val);
|