投诉内容文本换行,投诉处理人员新增默认当前账号
This commit is contained in:
@@ -1,14 +1,11 @@
|
|||||||
/**
|
/**
|
||||||
* @Description: 抽离 公共基础地址
|
* @Description: 抽离 公共基础地址
|
||||||
* @Author: Zy
|
|
||||||
* @Date: 2026-05-18 15:36:10
|
|
||||||
* @LastEditor: Zy
|
|
||||||
* @LastEditTime: 2026-07-20 14:29:10
|
|
||||||
*/
|
*/
|
||||||
let baseUrl = ''
|
let baseUrl = ''
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
baseUrl = 'http://192.168.1.6:8080' // 开发环境
|
baseUrl = 'http://192.168.1.6:8080' // 开发环境
|
||||||
|
// baseUrl = 'https://wuyeapi.ckdzkj.com' // 开发环境
|
||||||
} else {
|
} else {
|
||||||
baseUrl = 'https://wuyeapi.ckdzkj.com' // 生产环境
|
baseUrl = 'https://wuyeapi.ckdzkj.com' // 生产环境
|
||||||
// baseUrl = 'https://wuyeapi.bugtc.com' // 生产环境
|
// baseUrl = 'https://wuyeapi.bugtc.com' // 生产环境
|
||||||
|
|||||||
@@ -222,6 +222,7 @@ function scrolltolower() {
|
|||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
letter-spacing: 0rpx;
|
letter-spacing: 0rpx;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
.detailsMan {
|
.detailsMan {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view class="label"> 问题描述 </view>
|
<view class="label"> 问题描述 </view>
|
||||||
<view class="value">
|
<view class="value" style="word-wrap: break-word; overflow: auto">
|
||||||
<text>{{ complainInfo.problemDes }} </text>
|
<text>{{ complainInfo.problemDes }} </text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -208,6 +208,7 @@ function handlePrivew(items, index) {
|
|||||||
min-height: 100rpx;
|
min-height: 100rpx;
|
||||||
.label {
|
.label {
|
||||||
width: 226rpx;
|
width: 226rpx;
|
||||||
|
min-width: 226rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
|
|||||||
@@ -4,8 +4,11 @@
|
|||||||
<view class="items checkout flex items-center" @tap="handleClick">
|
<view class="items checkout flex items-center" @tap="handleClick">
|
||||||
<view class="label">处理人员</view>
|
<view class="label">处理人员</view>
|
||||||
<view class="value ellipsis">
|
<view class="value ellipsis">
|
||||||
|
<view class="username">
|
||||||
<text>{{ checkoutinfo.userName ? checkoutinfo.userName : '请选择' }}</text>
|
<text>{{ checkoutinfo.userName ? checkoutinfo.userName : '请选择' }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="arrow"></view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="items">
|
<view class="items">
|
||||||
<view class="label">处理描述</view>
|
<view class="label">处理描述</view>
|
||||||
@@ -13,8 +16,8 @@
|
|||||||
<textarea
|
<textarea
|
||||||
style="width: 100%; height: 100%; overflow: hidden"
|
style="width: 100%; height: 100%; overflow: hidden"
|
||||||
v-model="form.handleContent"
|
v-model="form.handleContent"
|
||||||
:maxlength="-1"
|
|
||||||
auto-height
|
auto-height
|
||||||
|
maxlength="200"
|
||||||
placeholder="请输入"
|
placeholder="请输入"
|
||||||
placeholder-style="font-size:28rpx;"
|
placeholder-style="font-size:28rpx;"
|
||||||
/>
|
/>
|
||||||
@@ -29,8 +32,9 @@
|
|||||||
|
|
||||||
<script setup lang="ts" key="handle">
|
<script setup lang="ts" key="handle">
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { onLoad, onUnload } from '@dcloudio/uni-app'
|
import { onLoad, onUnload, onShow } from '@dcloudio/uni-app'
|
||||||
import { putComplainProcess } from '@/api/complain'
|
import { putComplainProcess } from '@/api/complain'
|
||||||
|
import { getSettingInfo } from '../../api/api.js'
|
||||||
|
|
||||||
const checkoutinfo = ref({
|
const checkoutinfo = ref({
|
||||||
userName: '',
|
userName: '',
|
||||||
@@ -40,10 +44,19 @@ const form = ref({
|
|||||||
complaintId: '',
|
complaintId: '',
|
||||||
handleContent: ''
|
handleContent: ''
|
||||||
})
|
})
|
||||||
|
let userIsAccount = true
|
||||||
|
/** 获取用户信息 */
|
||||||
|
function getUserInfo() {
|
||||||
|
getSettingInfo().then(res => {
|
||||||
|
checkoutinfo.value.userName = res.data.nickName
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
onLoad(options => {
|
onLoad(options => {
|
||||||
if (options && options.handleId && options.handleId.trim()) {
|
if (options && options.handleId && options.handleId.trim()) {
|
||||||
form.value.complaintId = options.handleId
|
form.value.complaintId = options.handleId
|
||||||
}
|
}
|
||||||
|
getUserInfo()
|
||||||
})
|
})
|
||||||
|
|
||||||
// 选择处理人员
|
// 选择处理人员
|
||||||
@@ -54,6 +67,7 @@ function handleClick() {
|
|||||||
backData: (data: { userName: string; userId: string }) => {
|
backData: (data: { userName: string; userId: string }) => {
|
||||||
checkoutinfo.value.userName = decodeURIComponent(data.userName)
|
checkoutinfo.value.userName = decodeURIComponent(data.userName)
|
||||||
checkoutinfo.value.userId = data.userId
|
checkoutinfo.value.userId = data.userId
|
||||||
|
userIsAccount = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -65,14 +79,22 @@ function handleBlur(e) {
|
|||||||
|
|
||||||
// 处理投诉 提交
|
// 处理投诉 提交
|
||||||
function handleSelecthouse() {
|
function handleSelecthouse() {
|
||||||
if (checkoutinfo.value.userId) {
|
if (userIsAccount || checkoutinfo.value.userId) {
|
||||||
|
uni.showLoading({
|
||||||
|
mask: true,
|
||||||
|
title: '处理投诉中'
|
||||||
|
})
|
||||||
putComplainProcess({
|
putComplainProcess({
|
||||||
id: form.value.complaintId,
|
id: form.value.complaintId,
|
||||||
handleContent: form.value.handleContent,
|
handleContent: form.value.handleContent,
|
||||||
handleId: checkoutinfo.value.userId
|
handleId: checkoutinfo.value.userId
|
||||||
}).then(() => {
|
})
|
||||||
|
.then(() => {
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
})
|
})
|
||||||
|
.finally(() => {
|
||||||
|
uni.hideLoading()
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
@@ -94,6 +116,28 @@ function handleSelecthouse() {
|
|||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
|
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
|
||||||
|
.ellipsis {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
.username {
|
||||||
|
flex: 1;
|
||||||
|
word-wrap: break-word;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.arrow {
|
||||||
|
margin-right: 10rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
width: 16rpx;
|
||||||
|
height: 16rpx;
|
||||||
|
border: 1rpx solid #353535;
|
||||||
|
transform: rotate(45deg);
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
border-left-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.label {
|
.label {
|
||||||
width: 128rpx;
|
width: 128rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user