cuiqian2004
2025-03-21 986da22689dc9a5faef751c02348fb1f47584414
pages/modal/3037_2.vue
@@ -33,8 +33,38 @@
         <!-- 从数据显示详情区 -->
         <view class="v-panellist" v-for="(subpanel,iiindex) in subPanelList" @tap="onPanelClick(iiindex)"
            :class="activelist[iiindex].active==true?'bk-active':''">
            <OIForm class="v-area dv-panel" :form="subpanel.subClassAttr.form" viewMode></OIForm>
            <uni-forms class="v-area dv-panel" label-align="right">
               <view v-for="(item,index) in subpanel.subClassAttr.form.items" :key="index">
                  <!-- 栅格布局 -->
                  <uni-row v-if="item.name == 'Layout'" :gutter="item.setting.gutter">
                     <uni-col
                        :span="item.setting.spanList && item.setting.spanList[key]? item.setting.spanList[key] : 24 / item.setting.col"
                        v-for="(col,key) in item.setting.colList" :key="key">
                        <uni-forms-item v-if="col != null"
                           :label="col.labelWidth === 0 ? '' : col.label? col.label+':':''"
                           :label-width="col.labelWidth || col.labelWidth === 0 ? col.labelWidth : 100+'px'">
                           <view v-if="col.disabled">{{col.value}}</view>
                           <input class="uni-input" v-else-if="col.name=='Input' || col.name=='InputNumber'"
                              :type="col.name=='InputNumber'?'number':'text'" v-model="col.value"
                              :placeholder="col.placeholder" :maxlength="-1" />
                           <view v-else>{{col.value}}</view>
                        </uni-forms-item>
                        <uni-forms-item v-else label=""></uni-forms-item>
                     </uni-col>
                  </uni-row>
                  <uni-forms-item v-else :label="item.labelWidth === 0 ? '' : item.label? item.label+':':''"
                     :label-width="item.labelWidth || item.labelWidth === 0 ? item.labelWidth : 100+'px'"
                     :style="{ textAlign: item.setting.align }">
                     <view v-if="item.disabled">{{item.value}}</view>
                     <input v-else-if="item.name=='Input' || item.name=='InputNumber' " class="uni-input"
                        :type="item.name=='InputNumber'?'number':'text'" v-model="item.value"
                        :disabled="item.disabled" :placeholder="item.placeholder" :maxlength="-1" />
                     <view v-else>{{item.value}}</view>
                  </uni-forms-item>
               </view>
            </uni-forms>
            <view class="v-paneldel" v-if="param.Sub_Cls.Can_Add_Delete == true">
               <a href="javascript:;" class="panel_del" @tap="panel_del(iiindex)"><i
                     class="ace-icon fu-delete"></i></a>
@@ -502,16 +532,16 @@
                                 }
                              }
                              var length = 0;
                              if (!$this.refdatastore.filter(function(s) {
                              if (!$this.$data.refdatastore.filter(function(s) {
                                    return result[i].attr == s.attr
                                 }).length) {
                                 length = 1;
                                 $this.refdatastore.push(result[i]);
                                 $this.$data.refdatastore.push(result[i]);
                              }
                              if (length == 0) {
                                 for (var j = 0; j < $this.refdatastore.length; j++) {
                                    if ($this.refdatastore[j].attr == result[i].attr) {
                                       $this.refdatastore[j].value = result[i].value;
                                 for (var j = 0; j < $this.$data.refdatastore.length; j++) {
                                    if ($this.$data.refdatastore[j].attr == result[i].attr) {
                                       $this.$data.refdatastore[j].value = result[i].value;
                                    }
                                 }
                              }
@@ -1093,8 +1123,8 @@
               //子数据类扫码查询数据
               if (isflag) {
                  uni.hideKeyboard();
                  this.scanCodeVal = newVal;
                  var eventid = this.param.Scan_Code.Input_Change_Event.ID;
                  this.$data.scanCodeVal =newVal;
                  var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID;
                  if (eventid) {
                     //主数据类属性
                     var obj_attr = this.head_styledef.form.model;
@@ -1572,16 +1602,16 @@
                              }
                              var length = 0;
                              if (!$this.refdatastore.filter(function(s) {
                              if (!$this.$data.refdatastore.filter(function(s) {
                                    return result[i].attr == s.attr
                                 }).length) {
                                 length = 1;
                                 $this.refdatastore.push(result[i]);
                                 $this.$data.refdatastore.push(result[i]);
                              }
                              if (length == 0) {
                                 for (var j = 0; j < $this.refdatastore.length; j++) {
                                    if ($this.refdatastore[j].attr == result[i].attr) {
                                       $this.refdatastore[j].value = result[i].value;
                                 for (var j = 0; j < $this.$data.refdatastore.length; j++) {
                                    if ($this.$data.refdatastore[j].attr == result[i].attr) {
                                       $this.$data.refdatastore[j].value = result[i].value;
                                    }
                                 }
                              }
@@ -1829,16 +1859,16 @@
                                 }
                              }
                              var length = 0;
                              if (!$this.refdatastore.filter(function(s) {
                              if (!$this.$data.refdatastore.filter(function(s) {
                                    return result[i].attr == s.attr
                                 }).length) {
                                 length = 1;
                                 $this.refdatastore.push(result[i]);
                                 $this.$data.refdatastore.push(result[i]);
                              }
                              if (length == 0) {
                                 for (var j = 0; j < $this.refdatastore.length; j++) {
                                    if ($this.refdatastore[j].attr == result[i].attr) {
                                       $this.refdatastore[j].value = result[i].value;
                                 for (var j = 0; j < $this.$data.refdatastore.length; j++) {
                                    if ($this.$data.refdatastore[j].attr == result[i].attr) {
                                       $this.$data.refdatastore[j].value = result[i].value;
                                    }
                                 }
                              }
@@ -2272,61 +2302,46 @@
         /* padding: 10rpx 20rpx 4rpx 0px; */
         border-radius: 12rpx;
         /* margin-bottom: 20rpx; */
         text-align: right;
         .uni-forms-item {
            padding-bottom: 5rpx;
            margin-bottom: 0;
            .uni-forms-item__label {
               height: 20px !important;
               padding: 0 10rpx 0 0 !important;
            }
            .uni-input {
               width: calc(100% - 12rpx);
               padding: 5rpx;
               border: 1px solid #d5d5d5;
               color: #2d8cf0;
               height: 20px;
               background: #FFF;
               line-height: 20px;
               border-radius: 6px !important;
               font-size: 14px;
               font-family: inherit;
               box-shadow: none !important;
               transition-duration: 0.1s;
               vertical-align: middle;
            }
            .uni-input:hover {
               border: 1px solid rgb(41, 121, 255);
            }
         }
      }
      .dv-panel:first-child {
         padding-top: 10rpx;
      }
      .dv-panel-input {
         width: 100%;
         display: inline-block;
         text-align: left;
      }
      .dv-panel .txt_title {
         font-size: 34rpx;
         text-align: right;
         display: inline-block;
         vertical-align: 12px;
      }
      .dv-panel input {
         /* vertical-align: middle; */
         display: inline-block;
         border: 1px solid #d5d5d5;
         width: 68%;
         height: 52rpx;
         line-height: 34rpx;
         background: #FFF;
         border-radius: 7px !important;
         color: #2d8cf0;
         padding: 6rpx 8rpx 8rpx;
         font-size: 32rpx;
         font-family: inherit;
         box-shadow: none !important;
         transition-duration: 0.1s;
         margin-top: 0rpx;
      }
      .dv-panel input::-webkit-input-placeholder {
         font-size: 10rpx;
      }
      .input-disabled {
         background-color: #f3f3f3 !important;
      }
      .dv-panel .form-item-span {
         vertical-align: top;
         color: #2d8cf0;
         white-space: normal;
         word-break: break-all;
         display: inline-block;
         width: calc(100% - 100px);
         /* border: 1rpx solid red; */
      }
      #dv_select {
         display: inline-block;