feat:
1. 新增收订单模块
This commit is contained in:
@@ -48,3 +48,10 @@ export const update = (row) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const close = (row) => {
|
||||||
|
return request({
|
||||||
|
url: '/mall/after-sales/close',
|
||||||
|
method: 'post',
|
||||||
|
data: row
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -1,139 +1,160 @@
|
|||||||
export default {
|
export default {
|
||||||
height:'auto',
|
height: 'auto',
|
||||||
calcHeight: 30,
|
calcHeight: 30,
|
||||||
tip: false,
|
tip: false,
|
||||||
searchShow: true,
|
searchShow: true,
|
||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
viewBtn: true,
|
viewBtn: false,
|
||||||
selection: true,
|
addBtn: false,
|
||||||
dialogClickModal: false,
|
editBtn: false,
|
||||||
column: [
|
deleBtn: false,
|
||||||
{
|
selection: true,
|
||||||
label: "主键ID",
|
dialogClickModal: false,
|
||||||
prop: "id",
|
column: [
|
||||||
type: "input",
|
{
|
||||||
addDisplay: false,
|
label: "主键ID",
|
||||||
editDisplay: false,
|
prop: "id",
|
||||||
viewDisplay: false,
|
type: "input",
|
||||||
hide: true,
|
addDisplay: false,
|
||||||
},
|
editDisplay: false,
|
||||||
{
|
viewDisplay: false,
|
||||||
label: "订单编号",
|
hide: true,
|
||||||
prop: "orderId",
|
},
|
||||||
type: "input",
|
{
|
||||||
},
|
label: "订单编号",
|
||||||
{
|
prop: "orderId",
|
||||||
label: "订单类型",
|
type: "input",
|
||||||
prop: "orderType",
|
},
|
||||||
type: "input",
|
{
|
||||||
},
|
label: "订单类型",
|
||||||
{
|
prop: "orderType",
|
||||||
label: "商品名称",
|
type: "input",
|
||||||
prop: "productName",
|
},
|
||||||
type: "input",
|
{
|
||||||
},
|
label: "商品名称",
|
||||||
{
|
prop: "productName",
|
||||||
label: "缩略图",
|
type: "input",
|
||||||
prop: "imageUrl",
|
},
|
||||||
type: "input",
|
{
|
||||||
},
|
label: "缩略图",
|
||||||
{
|
prop: "imageUrl",
|
||||||
label: "用户ID",
|
type: "upload",
|
||||||
prop: "userId",
|
listType: 'picture-img',
|
||||||
type: "input",
|
dataType: 'string',
|
||||||
addDisplay: false,
|
action: '/blade-resource/oss/endpoint/put-file',
|
||||||
editDisplay: false,
|
propsHttp: {
|
||||||
viewDisplay: false,
|
res: 'data',
|
||||||
hide: true,
|
url: 'link'
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
label: "用户账号",
|
{
|
||||||
prop: "userAccount",
|
label: "用户ID",
|
||||||
type: "input",
|
prop: "userId",
|
||||||
},
|
type: "input",
|
||||||
{
|
addDisplay: false,
|
||||||
label: "售后类型:1=退货退款,2=换货",
|
editDisplay: false,
|
||||||
prop: "type",
|
viewDisplay: false,
|
||||||
type: "input",
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "联系方式",
|
label: "用户账号",
|
||||||
prop: "contactInfo",
|
prop: "userAccount",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "用户留言/问题描述",
|
label: "售后类型",
|
||||||
prop: "message",
|
prop: "type",
|
||||||
type: "input",
|
type: 'radio',
|
||||||
},
|
dicUrl: '/blade-system/dict/dictionary?code=after_sales_type',
|
||||||
{
|
props: {
|
||||||
label: "备注",
|
label: 'dictValue',
|
||||||
prop: "remark",
|
value: 'dictKey'
|
||||||
type: "input",
|
},
|
||||||
},
|
dataType: 'number',
|
||||||
{
|
},
|
||||||
label: "创建人",
|
{
|
||||||
prop: "createUser",
|
label: "联系方式",
|
||||||
type: "input",
|
prop: "contactInfo",
|
||||||
addDisplay: false,
|
type: "input",
|
||||||
editDisplay: false,
|
},
|
||||||
viewDisplay: false,
|
{
|
||||||
hide: true,
|
label: "问题描述",
|
||||||
},
|
prop: "message",
|
||||||
{
|
type: "input",
|
||||||
label: "创建部门",
|
},
|
||||||
prop: "createDept",
|
{
|
||||||
type: "input",
|
label: "备注",
|
||||||
addDisplay: false,
|
prop: "remark",
|
||||||
editDisplay: false,
|
type: "input",
|
||||||
viewDisplay: false,
|
},
|
||||||
hide: true,
|
{
|
||||||
},
|
label: "创建人",
|
||||||
{
|
prop: "createUser",
|
||||||
label: "创建时间",
|
type: "input",
|
||||||
prop: "createTime",
|
addDisplay: false,
|
||||||
type: "input",
|
editDisplay: false,
|
||||||
addDisplay: false,
|
viewDisplay: false,
|
||||||
editDisplay: false,
|
hide: true,
|
||||||
viewDisplay: false,
|
},
|
||||||
hide: true,
|
{
|
||||||
},
|
label: "创建部门",
|
||||||
{
|
prop: "createDept",
|
||||||
label: "修改人",
|
type: "input",
|
||||||
prop: "updateUser",
|
addDisplay: false,
|
||||||
type: "input",
|
editDisplay: false,
|
||||||
addDisplay: false,
|
viewDisplay: false,
|
||||||
editDisplay: false,
|
hide: true,
|
||||||
viewDisplay: false,
|
},
|
||||||
hide: true,
|
{
|
||||||
},
|
label: "创建时间",
|
||||||
{
|
prop: "createTime",
|
||||||
label: "修改时间",
|
type: "input",
|
||||||
prop: "updateTime",
|
addDisplay: false,
|
||||||
type: "input",
|
editDisplay: false,
|
||||||
addDisplay: false,
|
viewDisplay: false,
|
||||||
editDisplay: false,
|
hide: true,
|
||||||
viewDisplay: false,
|
},
|
||||||
hide: true,
|
{
|
||||||
},
|
label: "修改人",
|
||||||
{
|
prop: "updateUser",
|
||||||
label: "处理状态:0=待处理,1=已处理",
|
type: "input",
|
||||||
prop: "status",
|
addDisplay: false,
|
||||||
type: "input",
|
editDisplay: false,
|
||||||
addDisplay: false,
|
viewDisplay: false,
|
||||||
editDisplay: false,
|
hide: true,
|
||||||
viewDisplay: false,
|
},
|
||||||
},
|
{
|
||||||
{
|
label: "修改时间",
|
||||||
label: "是否已删除",
|
prop: "updateTime",
|
||||||
prop: "isDeleted",
|
type: "input",
|
||||||
type: "input",
|
addDisplay: false,
|
||||||
addDisplay: false,
|
editDisplay: false,
|
||||||
editDisplay: false,
|
viewDisplay: false,
|
||||||
viewDisplay: false,
|
hide: true,
|
||||||
hide: true,
|
},
|
||||||
},
|
{
|
||||||
]
|
label: "处理状态",
|
||||||
|
prop: "status",
|
||||||
|
dicUrl: '/blade-system/dict/dictionary?code=after_sales_status',
|
||||||
|
props: {
|
||||||
|
label: 'dictValue',
|
||||||
|
value: 'dictKey'
|
||||||
|
},
|
||||||
|
dataType: 'number',
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "是否已删除",
|
||||||
|
prop: "isDeleted",
|
||||||
|
type: "input",
|
||||||
|
addDisplay: false,
|
||||||
|
editDisplay: false,
|
||||||
|
viewDisplay: false,
|
||||||
|
hide: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,24 +20,31 @@
|
|||||||
@refresh-change="refreshChange"
|
@refresh-change="refreshChange"
|
||||||
@on-load="onLoad">
|
@on-load="onLoad">
|
||||||
<template #menu-left>
|
<template #menu-left>
|
||||||
<el-button type="danger"
|
<!-- <el-button type="danger"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
v-if="permission.afterSalesRequest_delete"
|
<!-- v-if="permission.afterSalesRequest_delete"-->
|
||||||
@click="handleDelete">删 除
|
<!-- @click="handleDelete">删 除-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
<el-button type="warning"
|
<el-button type="warning"
|
||||||
plain
|
plain
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
@click="handleExport">导 出
|
@click="handleExport">导 出
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
<template #menu="{ row }">
|
||||||
|
<el-button type="text"
|
||||||
|
icon="el-icon-circle-check"
|
||||||
|
v-if="row.status === 0"
|
||||||
|
@click.stop="handleClose(row)">关闭
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
</avue-crud>
|
</avue-crud>
|
||||||
</basic-container>
|
</basic-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getList, getDetail, add, update, remove} from "@/api/mall/afterSalesRequest";
|
import {getList, getDetail, add, update, remove, close} from "@/api/mall/afterSalesRequest";
|
||||||
import option from "@/option/mall/afterSalesRequest";
|
import option from "@/option/mall/afterSalesRequest";
|
||||||
import {mapGetters} from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
import {exportBlob} from "@/api/common";
|
import {exportBlob} from "@/api/common";
|
||||||
@@ -83,6 +90,23 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleClose(row){
|
||||||
|
this.$confirm('确认关闭售后订单吗?', {
|
||||||
|
confirmButtonText: '确认',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
return close(row);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.onLoad(this.page);
|
||||||
|
this.$message({
|
||||||
|
type: 'success',
|
||||||
|
message: '操作成功!'
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
rowSave(row, done, loading) {
|
rowSave(row, done, loading) {
|
||||||
add(row).then(() => {
|
add(row).then(() => {
|
||||||
this.onLoad(this.page);
|
this.onLoad(this.page);
|
||||||
|
|||||||
Reference in New Issue
Block a user