| | |
| | | <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" |
| | |
| | | </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> |
| | |
| | | <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" |
| | |
| | | <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" |
| | |
| | | <!-- 左右布局 --> |
| | | <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> |
| | |
| | | <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" |
| | |
| | | <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" |
| | |
| | | <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'}"> |
| | |
| | | let that = this; |
| | | let keys = []; |
| | | let val, data; |
| | | |
| | | |
| | | Object.keys(obj).forEach(function(key) { |
| | | keys = key.split("."); |
| | | val = obj[key]; |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | |
| | | async loadData() { |
| | | //主数据类获取 |
| | | const param = this.param |
| | |
| | | } |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | 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 |
| | | ] |
| | |
| | | } |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | 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 == |
| | |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | /* background: #27A6E1; |
| | | /* background: #27A6E1; |
| | | border: none; |
| | | color: #fff; */ |
| | | background: #fff; |
| | |
| | | margin-top: 50rpx; |
| | | padding: 15rpx; |
| | | line-height: 1.5; |
| | | /* background: #27A6E1; |
| | | /* background: #27A6E1; |
| | | border: none; |
| | | color: #fff; */ |
| | | background: #fff; |