cuiqian2004
2025-08-15 c9ecd7684e6ada47de4669885e66dc564128e89b
pages/modal/5602.vue
@@ -1,5 +1,5 @@
<template>
   <view class="uni-page-modal-5602">
   <view class="uni-page-modal-5602" :class="largeMode?'large-mode':''">
      <!-- 表头样式 -->
      <view class="view-header">
         <view class="v-headStyle" v-for="(item,index) in head_styledef.form.items">
@@ -199,7 +199,7 @@
<script>
   import {
      Base64
   } from  '@/js/Base64.js';
   } from '@/js/Base64.js';
   import {
      appGetInfo,
      dictGetInfo
@@ -214,6 +214,7 @@
   export default {
      data() {
         return {
            largeMode: getApp().globalData.largeMode || false,
            title: this.translateSys("sorting"),
            ClsID: "Distribution_CNTR_Detail",
            ClsID2: "Picking_Result",
@@ -258,7 +259,8 @@
         this.title = options.titlename;
         this.param = JSON.parse(options.param);
         // console.log(this.param);
         this.loadData(options.paramValue)
         const paramValue = options.paramValue ? JSON.parse(options.paramValue) : undefined
         this.loadData(paramValue)
      },
      methods: {
         setData: function(obj) {
@@ -288,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)
            }
            //加载初始界面
@@ -572,8 +554,8 @@
            // var $ele = e;
            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;
@@ -843,6 +825,8 @@
                     } else {
                        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,
@@ -1072,8 +1056,8 @@
         },
         setFormValues(attrs) {
            const head_styledef = this.head_styledef
            if (JSON.stringify(attrs) == '{}') {
               return;
            if (!Array.isArray(attrs)) {
               return
            }
            console.log(attrs)
            attrs.forEach(async (attr, key) => {
@@ -2514,6 +2498,7 @@
               } else {
                  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,