From 6c3b6516e6dbc67ac307fc49dd144abd6887deca Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Fri, 26 Dec 2025 17:23:46 +0800 Subject: [PATCH] 快速工单 加上业务线 --- pages-sub/problem/work-order-manage/add-maintain-order.vue | 57 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/pages-sub/problem/work-order-manage/add-maintain-order.vue b/pages-sub/problem/work-order-manage/add-maintain-order.vue index 0ca8c54..b83eb64 100644 --- a/pages-sub/problem/work-order-manage/add-maintain-order.vue +++ b/pages-sub/problem/work-order-manage/add-maintain-order.vue @@ -80,7 +80,7 @@ startImgs.rawImgList.value, (newVal) => { - startImgs.imgList = newVal -}, { deep: true }) - -watch(() => processingImgs.rawImgList.value, (newVal) => { - processingImgs.imgList = newVal -}, { deep: true }) - -watch(() => endImgs.rawImgList.value, (newVal) => { - endImgs.imgList = newVal -}, { deep: true }) - -watch(() => personImgs.rawImgList.value, (newVal) => { - personImgs.imgList = newVal -}, { deep: true }) - -watch(() => materialImgs.rawImgList.value, (newVal) => { - materialImgs.imgList = newVal -}, { deep: true }) +// // ========== 核心修复:监听每个上传实例的响应式数组变化,解决u-upload不刷新问题 ========== +// watch(() => startImgs.rawImgList.value, (newVal) => { +// startImgs.imgList = newVal +// }, { deep: true }) +// +// watch(() => processingImgs.rawImgList.value, (newVal) => { +// processingImgs.imgList = newVal +// }, { deep: true }) +// +// watch(() => endImgs.rawImgList.value, (newVal) => { +// endImgs.imgList = newVal +// }, { deep: true }) +// +// watch(() => personImgs.rawImgList.value, (newVal) => { +// personImgs.imgList = newVal +// }, { deep: true }) +// +// watch(() => materialImgs.rawImgList.value, (newVal) => { +// materialImgs.imgList = newVal +// }, { deep: true }) // 表单校验规则(新增5个图片字段校验,复用上传校验规则) const workOrderFormRules = reactive({ @@ -351,7 +352,7 @@ onLoad((options) => { workOrderForm.taskId = orderItem.taskId || ''; workOrderForm.orderNo = orderItem.orderNo || ''; workOrderForm.reason = orderItem.handleResult || ''; // 处理情况回显 - + workOrderForm.busiLine = orderItem.busiLine // 共同处理人(如有数据则回显,转换为数组格式) if (orderItem.coHandlers && orderItem.coHandlersName) { // 处理ID:如果是字符串(逗号分隔),转为数组;本身是数组则直接赋值 @@ -454,8 +455,8 @@ const loadCoProcessorList = async () => { try { uni.showLoading({ title: '获取处理人列表中...' }) const queryData = { - roleCode: 'yl_worker', - busiLine: 'yl', + // roleCode: 'yl_worker', + busiLine: workOrderForm.busiLine, pageNo: 1, pageSize: 100 } -- libgit2 0.21.4