cuiqian2004
2025-06-19 619b47962e41f506baf7ce2b535b2de1fecc719e
pages/modal/5600.vue
@@ -1,5 +1,5 @@
<template>
   <view class="uni-page-modal-5600">
   <view class="uni-page-modal-5600" :class="largeMode?'large-mode':''">
      <!-- 表头样式 -->
      <view class="view-header">
         <view class="v-headStyle" v-for="(item,index) in head_styledef.form.items">
@@ -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,6 +210,7 @@
   export default {
      data() {
         return {
            largeMode: getApp().globalData.largeMode || false,
            title: this.translateSys("coding_disk"),
            ClsID: 'CG_Detail',
            param: {},
@@ -278,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);
            //传入参数值
@@ -565,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() != "") {
@@ -1866,8 +1883,8 @@
                  }
                  console.log($this.head_styledef);
                  if (data.result) {
                     $this.setFormValues( data.result)
                     }
                     $this.setFormValues(data.result)
                  }
               }
            }).catch(ex => {
@@ -1902,7 +1919,7 @@
               attr: a,
               value: obj_attr[a] || "",
            }));
            var extinfo = enviroment;
            extinfo.edit_dlg = {
               type: 'small', //小窗口