提交10.31
This commit is contained in:
@@ -83,8 +83,8 @@
|
||||
<view><text>详细地址:</text>{{item.xxdz}}</view>
|
||||
</view>
|
||||
<view class="services">
|
||||
<view @click="showReturnReasonPopup">退回</view>
|
||||
<view @click="tiao(item.id)">服务</view>
|
||||
<view @click="showReturnReasonPopup(item.id)">退回</view>
|
||||
<view @click="tiao(item.id,item.name)">服务</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -112,11 +112,13 @@
|
||||
|
||||
<script setup>
|
||||
import { personInfoList,personAlertList } from '../../api/personinfo/index'
|
||||
import { returnPerson} from '@/packageRc/api/personinfo/index'
|
||||
import { reactive, inject, watch, ref, onMounted, watchEffect, nextTick } from 'vue';
|
||||
let activeTab = ref(1)
|
||||
let activeTitle = ref(1)
|
||||
let jobList = ref([{},{},{},{},{}])
|
||||
let jobListcount = ref()
|
||||
let returnItemData = ref()
|
||||
let jobList1 = ref([{},{}])
|
||||
let jobList1count = ref()
|
||||
// 退回原因弹窗相关
|
||||
@@ -160,7 +162,8 @@ async function getlistyujing(){
|
||||
};
|
||||
|
||||
// 显示退回原因弹窗
|
||||
function showReturnReasonPopup() {
|
||||
function showReturnReasonPopup(dd) {
|
||||
this.returnItemData.id=dd
|
||||
console.log("退回")
|
||||
returnReason.value = ''
|
||||
// 使用 ref 控制弹窗显示
|
||||
@@ -169,11 +172,11 @@ function showReturnReasonPopup() {
|
||||
}
|
||||
}
|
||||
|
||||
function tiao(id){
|
||||
function tiao(id,name){
|
||||
console.log('尝试导航到待办详情页面,ID:', id);
|
||||
// 尝试直接使用uni.navigateTo,使用正确的格式并传递id参数
|
||||
uni.navigateTo({
|
||||
url: `/packageRc/pages/daiban/daibandetail?id=${id}`,
|
||||
url: `/packageRc/pages/daiban/daibandetail?id=${id}&name=${name}`,
|
||||
success: function() {
|
||||
console.log('导航成功');
|
||||
},
|
||||
@@ -192,6 +195,16 @@ function confirmReturn() {
|
||||
})
|
||||
return
|
||||
}
|
||||
const params = {
|
||||
id: this.returnItemData.id,
|
||||
opinion: this.returnReason
|
||||
}
|
||||
const { code, msg } = returnPerson(params);
|
||||
if (code == 200) {
|
||||
this.returnDialog = false;
|
||||
this.$u.toast(msg);
|
||||
this.getList(true);
|
||||
}
|
||||
|
||||
// 这里可以添加提交退回原因的API调用
|
||||
console.log('退回原因:', returnReason.value, '项目索引:', currentItemIndex.value)
|
||||
|
||||
Reference in New Issue
Block a user