From 291d082e169b0525691924c17bc297ed6c56c2b1 Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Mon, 19 May 2025 15:31:18 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E8=AF=89=E5=BB=BA=E8=AE=AE=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3=E6=9B=BF=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/base/mobile.js | 36 ++++---
src/views/base/mobile/complaint/index.vue | 111 ++++++++--------------
2 files changed, 56 insertions(+), 91 deletions(-)
diff --git a/src/api/base/mobile.js b/src/api/base/mobile.js
index 65db8617..866c69ca 100644
--- a/src/api/base/mobile.js
+++ b/src/api/base/mobile.js
@@ -99,22 +99,18 @@ export function getSourceTypeListApi(data) {
// 投诉建议列表
export function getPlaintByPageApi(data) {
return request({
- url: '/smart-canteen/api/v1/complaint/getPlaintByPage',
- method: 'post',
+ url: '/smart-canteen/alloc_canteen_suggestion/list',
+ method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
- data: data,
- params:{
- pageNum:data.pageNum,
- pageSize:data.pageSize
- }
+ params:data
})
}
// 回复-投诉建议
export function replyComplaintApi(data) {
return request({
- url: '/smart-canteen/api/v1/complaint/replyComplaint',
+ url: '/smart-canteen/alloc_canteen_suggestion/reply',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
@@ -139,18 +135,18 @@ export function getOrderEvaluatePageApi(data) {
pageSize:data.pageSize
}
})
- }
- // 订单评价-回复
- export function orderEvaluateReplyApi(data) {
- return request({
- url: '/smart-canteen/api/v1/applet/menuevaluaorder/add/evalua/reply',
- method: 'post',
- headers: {
- "merchant-id":"378915229716713472",
- },
- data: data
- })
- }
+}
+// 订单评价-回复
+export function orderEvaluateReplyApi(data) {
+ return request({
+ url: '/smart-canteen/api/v1/applet/menuevaluaorder/add/evalua/reply',
+ method: 'post',
+ headers: {
+ "merchant-id":"378915229716713472",
+ },
+ data: data
+ })
+}
diff --git a/src/views/base/mobile/complaint/index.vue b/src/views/base/mobile/complaint/index.vue
index 9b81e41f..ee6c0f6c 100644
--- a/src/views/base/mobile/complaint/index.vue
+++ b/src/views/base/mobile/complaint/index.vue
@@ -15,18 +15,8 @@
-
-
-
-
-
-
+
+
-
-
-
-
-
-
+
搜索
@@ -60,12 +41,12 @@
{{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}}
-
+
-
-
+
+
-
+
@@ -100,15 +81,12 @@
-
-
+
+
-
-
-
-
+
{
- this.treeAreaOptions = response.data;
- });
- },
- handleAreaChange(e){
+ // getAreaTreeData() {
+ // systemAreaTreeApi({}).then((response) => {
+ // this.treeAreaOptions = response.data;
+ // });
+ // },
+ handleAreaChange(){
let param= {
- areaId:e,"canteenType": 1
+ "canteenType": 1
}
getCanteenByAreaApi(param).then((response) => {
this.canteenOptions=response.rows||[]
this.queryParams.canteenId=null
});
},
- getSourceTypeList(){
- let param= {}
- getSourceTypeListApi(param).then((response) => {
- this.sourceTypesOptions=response||[]
- });
- },
+ // getSourceTypeList(){
+ // let param= {}
+ // getSourceTypeListApi(param).then((response) => {
+ // this.sourceTypesOptions=response||[]
+ // });
+ // },
/** 搜索按钮操作 */
handleQuery() {
@@ -268,10 +245,8 @@
this.queryParams = {
pageNum: 1,
pageSize: 10,
- informContent:null,
- areaId:null,
- canteenId:null,
- sourceTypes:[]
+ content:null,
+ canteenId:null,
}
this.resetForm("queryForm");
this.handleQuery();
@@ -279,28 +254,22 @@
/** 查询列表 */
getList() {
this.loading = true;
- let param = {
- "object":{
- informContent:this.queryParams.informContent,
- areaId:this.queryParams.areaId,
- canteenId:this.queryParams.canteenId,
- sourceTypes:this.queryParams.sourceTypes,
+ let param = {
+ content:this.queryParams.content,
+ canteenId:this.queryParams.canteenId,
startTime:null,
- endTime:null,
- },
- "page":{
- "current": this.queryParams.pageNum,
- "size": this.queryParams.pageSize,
- }
+ endTime:null,
+ "pageNum": this.queryParams.pageNum,
+ "pageSize": this.queryParams.pageSize,
}
console.log(param)
if(this.dateRange.length>0){
- param.object.startTime = this.formatDate(this.dateRange[0])
- param.object.endTime = this.formatDate(this.dateRange[1])
+ param.startTime = this.formatDate(this.dateRange[0])
+ param.endTime = this.formatDate(this.dateRange[1])
}
getPlaintByPageApi(param).then(response => {
- this.tableListData = response.data.records;
- this.total = Number(response.data.total);
+ this.tableListData = response.rows;
+ this.total = Number(response.total);
this.loading = false;
});
},