1. 新增收订单模块
This commit is contained in:
2026-06-04 20:20:50 +08:00
parent 337d337181
commit 3d36637741
3 changed files with 196 additions and 144 deletions

View File

@@ -48,3 +48,10 @@ export const update = (row) => {
})
}
export const close = (row) => {
return request({
url: '/mall/after-sales/close',
method: 'post',
data: row
})
}

View File

@@ -1,12 +1,15 @@
export default {
height:'auto',
height: 'auto',
calcHeight: 30,
tip: false,
searchShow: true,
searchMenuSpan: 6,
border: true,
index: true,
viewBtn: true,
viewBtn: false,
addBtn: false,
editBtn: false,
deleBtn: false,
selection: true,
dialogClickModal: false,
column: [
@@ -37,7 +40,14 @@ export default {
{
label: "缩略图",
prop: "imageUrl",
type: "input",
type: "upload",
listType: 'picture-img',
dataType: 'string',
action: '/blade-resource/oss/endpoint/put-file',
propsHttp: {
res: 'data',
url: 'link'
}
},
{
label: "用户ID",
@@ -54,9 +64,15 @@ export default {
type: "input",
},
{
label: "售后类型:1=退货退款,2=换货",
label: "售后类型",
prop: "type",
type: "input",
type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=after_sales_type',
props: {
label: 'dictValue',
value: 'dictKey'
},
dataType: 'number',
},
{
label: "联系方式",
@@ -64,7 +80,7 @@ export default {
type: "input",
},
{
label: "用户留言/问题描述",
label: "问题描述",
prop: "message",
type: "input",
},
@@ -119,9 +135,14 @@ export default {
hide: true,
},
{
label: "处理状态:0=待处理,1=已处理",
label: "处理状态",
prop: "status",
type: "input",
dicUrl: '/blade-system/dict/dictionary?code=after_sales_status',
props: {
label: 'dictValue',
value: 'dictKey'
},
dataType: 'number',
addDisplay: false,
editDisplay: false,
viewDisplay: false,

View File

@@ -20,24 +20,31 @@
@refresh-change="refreshChange"
@on-load="onLoad">
<template #menu-left>
<el-button type="danger"
icon="el-icon-delete"
plain
v-if="permission.afterSalesRequest_delete"
@click="handleDelete">删 除
</el-button>
<!-- <el-button type="danger"-->
<!-- icon="el-icon-delete"-->
<!-- plain-->
<!-- v-if="permission.afterSalesRequest_delete"-->
<!-- @click="handleDelete">删 除-->
<!-- </el-button>-->
<el-button type="warning"
plain
icon="el-icon-download"
@click="handleExport">导 出
</el-button>
</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>
</basic-container>
</template>
<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 {mapGetters} from "vuex";
import {exportBlob} from "@/api/common";
@@ -83,6 +90,23 @@
}
},
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) {
add(row).then(() => {
this.onLoad(this.page);