From e540e5b44f56ce8e8edc377dfa4c5b343b1a9eef Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期四, 14 八月 2025 16:12:15 +0800
Subject: [PATCH] paramvalue

---
 pages/modal/5602.vue |   32 ++++++--------------------------
 1 files changed, 6 insertions(+), 26 deletions(-)

diff --git a/pages/modal/5602.vue b/pages/modal/5602.vue
index 17903b6..bd0ddce 100644
--- a/pages/modal/5602.vue
+++ b/pages/modal/5602.vue
@@ -199,7 +199,7 @@
 <script>
 	import {
 		Base64
-	} from  '@/js/Base64.js';
+	} from '@/js/Base64.js';
 	import {
 		appGetInfo,
 		dictGetInfo
@@ -214,7 +214,7 @@
 	export default {
 		data() {
 			return {
-					largeMode: getApp().globalData.largeMode || false,
+				largeMode: getApp().globalData.largeMode || false,
 				title: this.translateSys("sorting"),
 				ClsID: "Distribution_CNTR_Detail",
 				ClsID2: "Picking_Result",
@@ -259,7 +259,7 @@
 			this.title = options.titlename;
 			this.param = JSON.parse(options.param);
 			// console.log(this.param);
-			const  paramValue = options.paramValue ?JSON.parse(options.paramValue) :undefined
+			const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined
 			this.loadData(paramValue)
 		},
 		methods: {
@@ -290,27 +290,7 @@
 				await this.Head_UIStyleGetInfo(this.ClsID, this.param.Input_UI_Style.ID);
 				//浼犲叆鍙傛暟鍊� 				if (paramValue) {
-					const attrs = paramValue.attrs || [];
-					(this.head_styledef?.form?.items || []).forEach(async (ele, index) => {
-						if (ele.name != "Layout") {
-							attrs.forEach(async (ele2, index2) => {
-								if (ele.fieldId == ele2.name) {
-									ele.value = ele2.value;
-								}
-							});
-						} else {
-							ele.setting.colList.forEach(async (col) => {
-								if (col) {
-									attrs.forEach(async (ele2,
-										index2) => {
-										if (col.fieldId == ele2.name) {
-											col.value = ele2.value;
-										}
-									});
-								}
-							});
-						}
-					})
+					this.setFormValues(paramValue)
 				}
 
 				//鍔犺浇鍒濆鐣岄潰
@@ -846,7 +826,7 @@
 								var tip = result.info ? typeof result.info == 'string' ? result.info :
 									result.info.join('<br/>') : '';
 								tip = tip || result.err_info
-	
+
 								if (tip) uni.showModal({
 									title: this.translateSys("tip"),
 									content: tip,
@@ -2518,7 +2498,7 @@
 					} else {
 						var tip = result.info ? typeof result.info == 'string' ? result.info : result.info
 							.join('<br/>') : '';
-								tip = tip || result.err_info
+						tip = tip || result.err_info
 						if (tip) uni.showModal({
 							title: this.translateSys("tip"),
 							content: tip,

--
Gitblit v1.9.1