cuiqian2004
2025-03-20 c094d4a32180130de0c26c75a5abc414128a5ec1
pages/modal/3037.vue
@@ -163,7 +163,7 @@
                        <a class="class_attr_add_ref"><i class="ace-icon fa fa-plus-circle"></i></a>
                     </div>
                     <input type="text" :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}"
                        disabled="true"  :maxlength="-1">
                        disabled="true" :maxlength="-1">
                  </view>
                  <view v-if="classattr.control_style=='左右布局'">
                     <p class="tx_title2"
@@ -172,7 +172,7 @@
                     </p>
                     <input type="text" class="attr_field" :data-index="index" :data-iindex="iindex"
                        :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) - 9 +'%'}"
                        disabled="true"  :maxlength="-1">
                        disabled="true" :maxlength="-1">
                     <div class="text-right2" v-if="attr.Type=='引用对象(单个)'|| attr.Type=='obj-ref'">
                        <a @tap="classAttr_AddRef" :data-classid="attr.RelCls[0].id"
                           :data-classname="attr.RelCls[0].name"><i class="ace-icon fa fa-plus-circle"></i></a>
@@ -196,7 +196,8 @@
                        <a class="class_attr_add_per" @tap="classAttr_AddPer(index,iindex)"><i
                              class="ace-icon fa fa-plus-circle"></i></a>
                     </div>
                     <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1">
                     <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true"
                        :maxlength="-1">
                  </view>
                  <view v-if="classattr.control_style=='左右布局'">
                     <p class="tx_title2"
@@ -222,7 +223,8 @@
                        <a href="#" class="class_attr_add_prj" @tap="classAttr_AddPrj(index,iindex)"><i
                              class="ace-icon fa fa-plus-circle"></i></a>
                     </div>
                     <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true" :maxlength="-1">
                     <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true"
                        :maxlength="-1">
                  </view>
                  <view v-if="classattr.control_style=='左右布局'">
                     <p class="tx_title2"
@@ -295,7 +297,8 @@
               <!-- 左右布局 -->
               <p class="tx_title2">{{param.Scan_Code.Name}}:</p>
               <input type="text" class="attr_field" :value="scanCodeVal" @focus="scan_ontap" @blur="scan_onevent"
                  :style="param.Scan_Code.Have_Select_Button==true?'width: '+(100-(param.Scan_Code.Name.length * 5)-14)+'%;':'width: '+(100-(param.Scan_Code.Name.length * 5)-5)+'%;'"  :maxlength="-1">
                  :style="param.Scan_Code.Have_Select_Button==true?'width: '+(100-(param.Scan_Code.Name.length * 5)-14)+'%;':'width: '+(100-(param.Scan_Code.Name.length * 5)-5)+'%;'"
                  :maxlength="-1">
               <div class="text-right2" v-if="param.Scan_Code.Have_Select_Button==true">
                  <a @tap="scan_classAttr_extButton()"><i class="ace-icon fa"
                        :class="param.Scan_Code.Img?param.Scan_Code.Img:'fa-plus-circle'"></i></a>
@@ -512,8 +515,8 @@
                              <a class="class_attr_add_per" @tap="classAttr_AddPer(index,iindex)"><i
                                    class="ace-icon fa fa-plus-circle"></i></a>
                           </div>
                           <input type="text" :value="attr.Value" :style="{'width':attr.Width}"
                              disabled="true" :maxlength="-1">
                           <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true"
                              :maxlength="-1">
                        </view>
                        <view v-if="subclassattr.control_style=='左右布局'">
                           <p class="tx_title2"
@@ -539,8 +542,8 @@
                              <a href="#" class="class_attr_add_prj" @tap="classAttr_AddPrj(index,iindex)"><i
                                    class="ace-icon fa fa-plus-circle"></i></a>
                           </div>
                           <input type="text" :value="attr.Value" :style="{'width':attr.Width}"
                              disabled="true" :maxlength="-1">
                           <input type="text" :value="attr.Value" :style="{'width':attr.Width}" disabled="true"
                              :maxlength="-1">
                        </view>
                        <view v-if="subclassattr.control_style=='左右布局'">
                           <p class="tx_title2"
@@ -622,9 +625,9 @@
         <uni-popup class="view-popup" ref="popup" background-color="#fff" @change="popupChange">
            <view class="popup-header">{{check_list.title}}</view>
            <view class="popup-content" :class="{ 'popup-height': popupType === 'left' || popupType === 'right' }"
            :style="{'width':check_list.width?check_list.width+'px':'375rpx','height':check_list.height?check_list.height+'px':popupType =='center'?'60vh':'88vh'}">
            <view class="popup-cont"
               :style="{'height':check_list.height?check_list.height-45+'px':popupType =='center'?'50vh':'80vh'}">
               :style="{'width':check_list.width?check_list.width+'px':'375rpx','height':check_list.height?check_list.height+'px':popupType =='center'?'60vh':'88vh'}">
               <view class="popup-cont"
                  :style="{'height':check_list.height?check_list.height-45+'px':popupType =='center'?'50vh':'80vh'}">
                  <view class="view_popup_CheckList" v-for="(item,index) in check_list.items">
                     <checkbox-group class="check_list" @change="checkChange" :data-ischeck="item.check"
                        :data-index="index" :style="{'margin-left': '10rpx'}">
@@ -732,7 +735,7 @@
            let that = this;
            let keys = [];
            let val, data;
            Object.keys(obj).forEach(function(key) {
               keys = key.split(".");
               val = obj[key];
@@ -749,7 +752,7 @@
               });
            });
         },
         async loadData() {
            //主数据类获取
            const param = this.param
@@ -2757,68 +2760,6 @@
                                       }
                                    }
                                    var length =
                                       0;
                                    if (!
                                       this
                                       .$data
                                       .refdatastore
                                       .filter(
                                          function(
                                             s
                                          ) {
                                             return val[
                                                   i
                                                ]
                                                .attr ==
                                                s
                                                .attr
                                          }
                                       )
                                       .length
                                    ) {
                                       length
                                          =
                                          1;
                                       this.$data
                                          .refdatastore
                                          .push(
                                             val[
                                                i]
                                          );
                                    }
                                    if (length ==
                                       0
                                    ) {
                                       for (
                                          var j =
                                             0; j <
                                          this
                                          .$data
                                          .refdatastore
                                          .length; j++
                                       ) {
                                          if (this
                                             .$data
                                             .refdatastore[
                                                j
                                             ]
                                             .attr ==
                                             val[
                                                i]
                                             .attr
                                          ) {
                                             this.$data
                                                .refdatastore[
                                                   j
                                                ]
                                                .value =
                                                val[
                                                   i]
                                                .value;
                                          }
                                       }
                                    }
                                 }
                              }
                           }
@@ -3108,73 +3049,6 @@
                                       attr[
                                             j]
                                          .Value =
                                          result[
                                             i
                                          ]
                                          .value;
                                    }
                                 }
                              }
                              var length =
                                 0;
                              if (!
                                 $this
                                 .$data
                                 .refdatastore
                                 .filter(
                                    function(
                                       s
                                    ) {
                                       return result[
                                             i
                                          ]
                                          .attr ==
                                          s
                                          .attr
                                    }
                                 )
                                 .length
                              ) {
                                 length
                                    =
                                    1;
                                 $this
                                    .$data
                                    .refdatastore
                                    .push(
                                       result[
                                          i
                                       ]
                                    );
                              }
                              if (length ==
                                 0
                              ) {
                                 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
                                          ]
@@ -4199,68 +4073,6 @@
                                    }
                                 }
                                 var length =
                                    0;
                                 if (!
                                    this
                                    .$data
                                    .refdatastore
                                    .filter(
                                       function(
                                          s
                                       ) {
                                          return val[
                                                i
                                             ]
                                             .attr ==
                                             s
                                             .attr
                                       }
                                    )
                                    .length
                                 ) {
                                    length
                                       =
                                       1;
                                    this.$data
                                       .refdatastore
                                       .push(
                                          val[
                                             i]
                                       );
                                 }
                                 if (length ==
                                    0
                                 ) {
                                    for (
                                       var j =
                                          0; j <
                                       this
                                       .$data
                                       .refdatastore
                                       .length; j++
                                    ) {
                                       if (this
                                          .$data
                                          .refdatastore[
                                             j
                                          ]
                                          .attr ==
                                          val[
                                             i]
                                          .attr
                                       ) {
                                          this.$data
                                             .refdatastore[
                                                j
                                             ]
                                             .value =
                                             val[
                                                i]
                                             .value;
                                       }
                                    }
                                 }
                              }
                           }
                        }
@@ -4580,74 +4392,7 @@
                                    }
                                 }
                              }
                              var length =
                                 0;
                              if (!
                                 $this
                                 .$data
                                 .refdatastore
                                 .filter(
                                    function(
                                       s
                                    ) {
                                       return result[
                                             i
                                          ]
                                          .attr ==
                                          s
                                          .attr
                                    }
                                 )
                                 .length
                              ) {
                                 length
                                    =
                                    1;
                                 $this
                                    .$data
                                    .refdatastore
                                    .push(
                                       result[
                                          i
                                       ]
                                    );
                              }
                              if (length ==
                                 0
                              ) {
                                 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;
                                    }
                                 }
                              }
                           }
                        } else if (
                           action
                           .action_type ==
@@ -5609,7 +5354,7 @@
      margin-top: 50rpx;
      padding: 20rpx;
      line-height: 1.5;
   /*    background: #27A6E1;
      /*    background: #27A6E1;
      border: none;
      color: #fff; */
      background: #fff;
@@ -5775,7 +5520,7 @@
      margin-top: 50rpx;
      padding: 15rpx;
      line-height: 1.5;
   /*    background: #27A6E1;
      /*    background: #27A6E1;
      border: none;
      color: #fff; */
      background: #fff;