From 310ab72840d7c7025273ac79363107a1f9e4bc8e Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 18 七月 2025 17:34:47 +0800
Subject: [PATCH] test
---
pages/modal/5600.vue | 32 ++++++++++++++++++++++++--------
1 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/pages/modal/5600.vue b/pages/modal/5600.vue
index 85050d8..c5a26f2 100644
--- a/pages/modal/5600.vue
+++ b/pages/modal/5600.vue
@@ -132,7 +132,7 @@
</div>
<div class="dv-panel-button">
<checkbox v-if="param.Sub_Page[1].Select_Button==true" :value="ii"
- :checked="style.SelBut_Checked" />
+ :checked="style.SelBut_Checked" />
<!-- <text></text> -->
<!-- <button type="primary" @click="savaDataObj(style,ii)" v-if="param.Sub_Page[1].OK_Button==true">淇濆瓨</Button> -->
@@ -194,12 +194,13 @@
<script>
import {
Base64
- } from '@/js/Base64.js';
+ } from '@/js/Base64.js';
import {
appGetInfo,
dictGetInfo
} from "@/api/mobox.js"
import {
+ basisver_get,
getUIStyleInfo,
runCustomEvent,
dataObjCreate,
@@ -209,7 +210,7 @@
export default {
data() {
return {
- largeMode: getApp().globalData.largeMode || false,
+ largeMode: getApp().globalData.largeMode || false,
title: this.translateSys("coding_disk"),
ClsID: 'CG_Detail',
param: {},
@@ -279,7 +280,22 @@
});
});
},
+ async getBasisVer() {
+ try {
+ const res = await basisver_get();
+ const basisver = (res.ver || "").toLowerCase();
+ return basisver;
+ } catch (ex) {
+ return "";
+ }
+ },
async loadData(paramValue) {
+ let clsDetailId = "CG_Detail";
+ const basisver = await this.getBasisVer();
+ if (basisver >= "v16.5") {
+ clsDetailId = "INV_Detail";
+ }
+ this.ClsID = clsDetailId;
//鑾峰彇鏁版嵁绫荤殑鑷畾涔夎〃鍗曞弬鏁� await this.Head_UIStyleGetInfo(this.ClsID, this.param.Input_UI_Style.ID);
//浼犲叆鍙傛暟鍊�@@ -566,8 +582,8 @@
//console.log(e.target)
this.focusOldFieldId = item.fieldId
getApp().onScan((result) => {
- console.log(result.decodedata);
- item.value = result.decodedata;
+ console.log(result);
+ item.value = result;
// uni.hideKeyboard();
var $this = this;
if (item.oldvalue != item.value && item.value.trim() != "") {
@@ -1867,8 +1883,8 @@
}
console.log($this.head_styledef);
if (data.result) {
- $this.setFormValues( data.result)
- }
+ $this.setFormValues(data.result)
+ }
}
}).catch(ex => {
@@ -1903,7 +1919,7 @@
attr: a,
value: obj_attr[a] || "",
}));
-
+
var extinfo = enviroment;
extinfo.edit_dlg = {
type: 'small', //灏忕獥鍙�
--
Gitblit v1.9.1