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

@@ -6,7 +6,10 @@ export default {
searchMenuSpan: 6, searchMenuSpan: 6,
border: true, border: true,
index: true, index: true,
viewBtn: true, viewBtn: false,
addBtn: false,
editBtn: false,
deleBtn: false,
selection: true, selection: true,
dialogClickModal: false, dialogClickModal: false,
column: [ column: [
@@ -37,7 +40,14 @@ export default {
{ {
label: "缩略图", label: "缩略图",
prop: "imageUrl", 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", label: "用户ID",
@@ -54,9 +64,15 @@ export default {
type: "input", type: "input",
}, },
{ {
label: "售后类型:1=退货退款,2=换货", label: "售后类型",
prop: "type", prop: "type",
type: "input", type: 'radio',
dicUrl: '/blade-system/dict/dictionary?code=after_sales_type',
props: {
label: 'dictValue',
value: 'dictKey'
},
dataType: 'number',
}, },
{ {
label: "联系方式", label: "联系方式",
@@ -64,7 +80,7 @@ export default {
type: "input", type: "input",
}, },
{ {
label: "用户留言/问题描述", label: "问题描述",
prop: "message", prop: "message",
type: "input", type: "input",
}, },
@@ -119,9 +135,14 @@ export default {
hide: true, hide: true,
}, },
{ {
label: "处理状态:0=待处理,1=已处理", label: "处理状态",
prop: "status", prop: "status",
type: "input", dicUrl: '/blade-system/dict/dictionary?code=after_sales_status',
props: {
label: 'dictValue',
value: 'dictKey'
},
dataType: 'number',
addDisplay: false, addDisplay: false,
editDisplay: false, editDisplay: false,
viewDisplay: false, viewDisplay: false,

View File

@@ -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);