| | |
| | | <style> |
| | | .class_attr_title { |
| | | font-size: 44rpx; |
| | | padding-bottom: 22rpx; |
| | | position: relative; |
| | | } |
| | | |
| | | .class_attr_title .title_line { |
| | | border-bottom: 2rpx solid #aaa; |
| | | position: relative; |
| | | bottom: -50rpx; |
| | | width: calc(100% - 290rpx); |
| | | margin-left: 100px; |
| | | } |
| | | |
| | | .class_attr_title .title_icon { |
| | | border-radius: 50%; |
| | | width: 100rpx; |
| | | line-height: 64rpx; |
| | | display: inline-block; |
| | | vertical-align: middle; |
| | | padding-top: 10rpx; |
| | | padding-left: 20rpx; |
| | | text-align: center; |
| | | color: #fff; |
| | | } |
| | | |
| | | .class_attr_title i { |
| | | color: #2c6aa0 !important; |
| | | } |
| | | |
| | | .class_attr_title .title_icon i { |
| | | font-size: 80rpx; |
| | | } |
| | | |
| | | .class_attr_title .title { |
| | | padding-right: 22rpx; |
| | | display: inline-block; |
| | | background-color: #fff; |
| | | position: relative; |
| | | bottom: -8rpx; |
| | | } |
| | | |
| | | .class_attr_title .arrow { |
| | | position: absolute; |
| | | top: 6rpx; |
| | | right: 30rpx; |
| | | font-size: 60rpx; |
| | | } |
| | | |
| | | input::-webkit-input-placeholder { |
| | | font-size: 12rpx; |
| | | } |
| | | |
| | | textarea { |
| | | width: 98%; |
| | | border: 1px solid #d5d5d5; |
| | | padding: 10rpx 8rpx 12rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | color: #046db3; |
| | | margin-top: 4px; |
| | | } |
| | | |
| | | input { |
| | | border: 1px solid #d5d5d5; |
| | | width: 98%; |
| | | height: 52rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | color: #046db3; |
| | | padding: 10rpx 8rpx 12rpx; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | margin-top: 4rpx; |
| | | } |
| | | |
| | | .select { |
| | | width: 20px; |
| | | position: absolute; |
| | | opacity: 0; |
| | | } |
| | | |
| | | .class_attr_body .form-group { |
| | | margin: 20rpx 30rpx; |
| | | /* margin-left: -12px; |
| | | margin-right: -12px; */ |
| | | } |
| | | |
| | | .subclass_attr_body .form-group { |
| | | margin: 20rpx 10rpx; |
| | | /* margin-left: -12px; |
| | | margin-right: -12px; */ |
| | | } |
| | | |
| | | .form-group>label[class*="col-"] { |
| | | margin-bottom: 8rpx; |
| | | font-size: 32rpx; |
| | | } |
| | | |
| | | .form-group label { |
| | | vertical-align: middle; |
| | | line-height: 60rpx; |
| | | } |
| | | |
| | | .no-padding-right { |
| | | padding-right: 0 !important; |
| | | } |
| | | |
| | | .col-xs-12 { |
| | | width: 100%; |
| | | } |
| | | |
| | | .tx_title { |
| | | font-size: 32rpx; |
| | | } |
| | | |
| | | .tx_title2 { |
| | | font-size: 32rpx; |
| | | text-align: right; |
| | | display: inline-block; |
| | | vertical-align: -2px; |
| | | } |
| | | |
| | | .text-right { |
| | | margin-right: 20rpx; |
| | | margin-top: -6rpx; |
| | | display: inline-block; |
| | | float: right; |
| | | font-size: 44rpx; |
| | | } |
| | | |
| | | .text-right2 { |
| | | margin: 0; |
| | | vertical-align: -4px; |
| | | margin-left: 9px; |
| | | float: none; |
| | | font-size: 44rpx; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .section_iput { |
| | | border: 1px solid #d5d5d5; |
| | | width: 98%; |
| | | height: 62rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | color: #046db3; |
| | | padding: 10rpx 8rpx 10rpx; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | } |
| | | |
| | | .date_iput { |
| | | border: 1px solid #d5d5d5; |
| | | /* width: 98%; */ |
| | | height: 62rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | color: #046db3; |
| | | padding: 10rpx 8rpx 4rpx; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | } |
| | | |
| | | button.btn_add { |
| | | width: 49.5%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: right; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_cancel { |
| | | width: 49.5%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_sava { |
| | | width: 100%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_trigger { |
| | | width: 100%; |
| | | margin-top: 20rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .i_tishi { |
| | | color: red; |
| | | vertical-align: sub; |
| | | font-style: initial; |
| | | margin-left: 20rpx; |
| | | font-size: 17px; |
| | | } |
| | | |
| | | .attr_field { |
| | | display: inline-block; |
| | | vertical-align: middle; |
| | | margin-left: 8px; |
| | | /* width: 71%; */ |
| | | } |
| | | |
| | | .input_vallist { |
| | | max-height: 350rpx; |
| | | overflow-y: auto; |
| | | display: none; |
| | | } |
| | | |
| | | .input_vallist ul { |
| | | /* border: 1px solid red; */ |
| | | padding: 0 20rpx; |
| | | } |
| | | |
| | | .input_vallist ul li { |
| | | list-style: none; |
| | | padding: 20rpx; |
| | | border-bottom: 1px solid #ccc; |
| | | } |
| | | |
| | | .input_vallist ul li a { |
| | | float: right; |
| | | } |
| | | |
| | | .input_vallist ul li a i { |
| | | font-size: 45rpx; |
| | | } |
| | | |
| | | .panel_title { |
| | | font-size: 38rpx; |
| | | background-color: #27A6E1; |
| | | line-height: 80rpx; |
| | | color: #fff; |
| | | text-align: center; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .v-panel { |
| | | min-height: 788rpx; |
| | | } |
| | | |
| | | .v-panellist { |
| | | border: 4rpx solid #aaa; |
| | | border-radius: 10rpx; |
| | | margin: 10rpx 20rpx 0rpx 20rpx; |
| | | } |
| | | |
| | | .v-paneldel { |
| | | text-align: right; |
| | | } |
| | | |
| | | .panel_del { |
| | | font-size: 44rpx; |
| | | text-decoration: initial; |
| | | margin-top: 10rpx; |
| | | margin-right: 20rpx; |
| | | } |
| | | |
| | | .divX { |
| | | width: 20px; |
| | | height: 20px; |
| | | border-radius: 60%; |
| | | position: absolute; |
| | | top: -10px; |
| | | right: -10px; |
| | | z-index: 100; |
| | | } |
| | | |
| | | .view-popup { |
| | | position: relative; |
| | | } |
| | | |
| | | .popup-content { |
| | | @include flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | padding: 30rpx; |
| | | background-color: #fff; |
| | | /* height: 150px; */ |
| | | /* border: 1px solid red; */ |
| | | } |
| | | |
| | | .popup-cont { |
| | | overflow-y: auto; |
| | | /* border: 1px solid red; */ |
| | | } |
| | | |
| | | .popup-height { |
| | | @include height; |
| | | /* width: 200px; */ |
| | | } |
| | | |
| | | .popup-header { |
| | | font-size: 42rpx; |
| | | font-weight: bold; |
| | | margin: 20rpx 20rpx 0px 20rpx; |
| | | } |
| | | |
| | | .view_popup_CheckList { |
| | | margin-bottom: 20rpx; |
| | | } |
| | | |
| | | .popup-footer { |
| | | float: right; |
| | | position: absolute; |
| | | bottom: 0; |
| | | right: 20rpx; |
| | | } |
| | | |
| | | button.btn_popup_add { |
| | | width: 180rpx; |
| | | margin-top: 50rpx; |
| | | margin-right: 20rpx; |
| | | padding: 15rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | /* float: left; */ |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_popup_cancel { |
| | | width: 180rpx; |
| | | margin-top: 50rpx; |
| | | padding: 15rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | /* float: right; */ |
| | | display: inline-block; |
| | | } |
| | | </style> |
| | | |
| | | <template> |
| | | <view class="content"> |
| | | <!-- 主数据 --> |
| | |
| | | <div class="class_attr_body" :style="{'display':classattr.Open?'block':'none'}"> |
| | | <div class="dv_field_div" v-for="(attr,iindex) in classattr.Attr"> |
| | | <view class="form-group" |
| | | v-if="attr.Type=='字符串' || attr.Type=='可变长字符串' || attr.Type=='整数' || attr.Type=='浮点数'" |
| | | v-if="attr.Type=='字符串' || attr.Type=='可变长字符串' || attr.Type=='整数' || attr.Type=='浮点数' ||attr.Type=='char' || attr.Type=='varchar' || attr.Type=='int' || attr.Type=='float'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | </div> |
| | | <!-- <div style='width: 100px;position: relative;'> |
| | | <image class="divX" src="../../images/msg_50_new.png"></image>--> |
| | | <input :type="attr.Type=='整数' || attr.Type=='浮点数'?'number':'text'" :value="attr.Value" |
| | | @focus="ontap" @blur="onevent" v-if="attr.Height=='1'" :data-index="index" |
| | | :data-iindex="iindex" :style="{'width':attr.Width}" :disabled="attr.edit?false:true"> |
| | | <input |
| | | :type="attr.Type=='整数' || attr.Type=='浮点数' || attr.Type=='int' || attr.Type=='float'?'number':'text'" |
| | | :value="attr.Value" @focus="ontap" @blur="onevent" v-if="attr.Height=='1'" |
| | | :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}" |
| | | :disabled="attr.edit?false:true"> |
| | | <!-- =='flase'?true:false --> |
| | | <textarea :value="attr.Value" @focus="ontap" @blur="onevent" v-else-if="attr.Height=='2'" |
| | | :data-index="index" :data-iindex="iindex" style="height:60px;" |
| | |
| | | </p> |
| | | <!-- <div style='width: 100%;position: relative;'> |
| | | <image class="divX" src="../../images/msg_50_new.png"></image> --> |
| | | <input :type="attr.Type=='整数' || attr.Type=='浮点数'?'number':'text'" class="attr_field" |
| | | :value="attr.Value" @focus="ontap" @blur="onevent" v-if="attr.Height=='1'" |
| | | :data-index="index" :data-iindex="iindex" |
| | | <input |
| | | :type="attr.Type=='整数' || attr.Type=='浮点数' || attr.Type=='int' || attr.Type=='float' ?'number':'text'" |
| | | class="attr_field" :value="attr.Value" @focus="ontap" @blur="onevent" |
| | | v-if="attr.Height=='1'" :data-index="index" :data-iindex="iindex" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) - (attr.ext_button==true?9:0) +'%'}" |
| | | :disabled="attr.edit?false:true"> |
| | | <textarea class="attr_field" :value="attr.Value" @focus="ontap" @blur="onevent" |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='布尔值'" :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view class="form-group" v-if="attr.Type=='布尔值' || attr.Type=='bool'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <checkbox-group class="check_rememberPwd" @change="oncheck" :data-ischeck="attr.Value" |
| | | :data-index="index" :data-iindex="iindex" |
| | | :style="{'margin-left': classattr.control_style=='左右布局'?classattr.title_p_wdith+2 +'%':'10rpx'}"> |
| | |
| | | </label> |
| | | </checkbox-group> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='日期' || attr.Type=='时间'" |
| | | <view class="form-group" |
| | | v-if="attr.Type=='日期' || attr.Type=='时间' || attr.Type=='date' || attr.Type=='datetime'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <picker mode="date" :value="attr.Value" @change="ondateTime" class="date_iput attr_field" |
| | | :data-index="index" :data-iindex="iindex" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) +'%'}"> |
| | |
| | | </picker> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='字典' || attr.Type=='字典-字符串' || attr.Type=='字典-整数'" |
| | | <view class="form-group" |
| | | v-if="attr.Type=='字典' || attr.Type=='字典-字符串' || attr.Type=='字典-整数' || attr.Type=='dict' || attr.Type=='dict-char' || attr.Type=='dict-int'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <picker class="section_iput attr_field" @change="onchange" :range="attr.dictitem" |
| | | range-key="CN_S_NAME" v-if="attr.select==false" :data-index="index" |
| | | :data-iindex="iindex" |
| | |
| | | :style="{'display':'inline-block','margin-left':'8px','width':attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) +'%'}"></select-cy> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='引用对象(单个)' || attr.Type=='引用对象(多个)'" |
| | | <view class="form-group" |
| | | v-if="attr.Type=='引用对象(单个)' || attr.Type=='引用对象(多个)' ||attr.Type=='obj-ref' || attr.Type=='obj-ref-multi'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"><i |
| | | class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</text> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(单个)'"> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(单个)'|| attr.Type=='obj-ref'"> |
| | | <a @tap="classAttr_AddRef" :data-classid="attr.RelCls.split('|')[0]" |
| | | :data-classname="attr.RelCls.split('|')[1]"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(多个)'"> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(多个)'|| attr.Type=='obj-ref-multi'"> |
| | | <picker class="select" @change="classAttr_AddRef" :range="attr.RelClsList" |
| | | range-key="name" :data-index="index" :data-iindex="iindex"> |
| | | <label class="">{{ attr.Value }}</label> |
| | |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </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"> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(单个)'"> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(单个)'|| attr.Type=='obj-ref'"> |
| | | <a @tap="classAttr_AddRef" :data-classid="attr.RelCls.split('|')[0]" |
| | | :data-classname="attr.RelCls.split('|')[1]"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(多个)'"> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(多个)'|| attr.Type=='obj-ref-multi'"> |
| | | <picker class="select" @change="classAttr_AddRef" :range="attr.RelClsList" |
| | | range-key="name" :data-index="index" :data-iindex="iindex"> |
| | | <label class="">{{ attr.Value }}</label> |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='引用人员'" |
| | | <view class="form-group" v-if="attr.Type=='引用人员' ||attr.Type=='user' " |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <input type="text" class="attr_field" :value="attr.Value" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true?10:5) - 9 +'%'}" |
| | | disabled="true"> |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='引用项目'" |
| | | <view class="form-group" v-if="attr.Type=='引用项目' ||attr.Type=='project'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <input type="text" class="attr_field" :value="attr.Value" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true ?10:5) - 9 +'%'}" |
| | | disabled="true"> |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='编码'" :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view class="form-group" v-if="attr.Type=='编码' || attr.Type=='code'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"><i |
| | |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"> |
| | | {{attr.DispName}}:</p> |
| | | {{attr.DispName}}: |
| | | </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) +'%'}" |
| | | :disabled="attr.edit?false:true"> |
| | | <i class="i_tishi" v-if="attr.notempty==true || attr.NotEmpty=='1'">*</i> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='省市区'" :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view class="form-group" v-if="attr.Type=='省市区' ||attr.Type=='region'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="classattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"><i |
| | |
| | | <view v-if="classattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':classattr.Font.Name?classattr.Font.Name:'initial','font-size':classattr.Font.Size?classattr.Font.Size:'initial','font-weight':classattr.Font.Bold?'bold':'initial','font-style':classattr.Font.Tilt?'italic':'initial','text-decoration':classattr.Font.Underline?'underline':'initial','background-color':classattr.Font.Bk_Color,'color':classattr.Font.Text_Color,'width':classattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <pickerAddress class="date_iput attr_field" @change="addresschange" :data-index="index" |
| | | :data-iindex="iindex" |
| | | :style="{'width': attr.Width.split('%')[0] - classattr.title_p_wdith - (attr.notempty==true ?10:5) +'%'}"> |
| | | {{attr.Value}}</pickerAddress> |
| | | {{attr.Value}} |
| | | </pickerAddress> |
| | | </view> |
| | | </view> |
| | | </div> |
| | |
| | | <div class="subclass_attr_body" :style="{'display':subclassattr.Open?'block':'none'}"> |
| | | <div class="dv_field_div" v-for="(attr,iindex) in subclassattr.Attr"> |
| | | <view class="form-group" |
| | | v-if="attr.Type=='字符串' || attr.Type=='可变长字符串' || attr.Type=='整数' || attr.Type=='浮点数'" |
| | | v-if="attr.Type=='字符串' || attr.Type=='可变长字符串' || attr.Type=='整数' || attr.Type=='浮点数' ||attr.Type=='char' || attr.Type=='varchar' || attr.Type=='int' || attr.Type=='float'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <a @tap="classAttr_extButton(index,iindex)"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <input :type="attr.Type=='整数' || attr.Type=='浮点数'?'number':'text'" |
| | | <input |
| | | :type="attr.Type=='整数' || attr.Type=='浮点数' || attr.Type=='int' || attr.Type=='float'?'number':'text'" |
| | | :value="attr.Value" @focus="ontap" @blur="onevent" v-if="attr.Height=='1'" |
| | | :data-iiindex="iiindex" :data-index="index" :data-iindex="iindex" |
| | | :style="{'width':attr.Width.split('%')[0] - 2.5 +'%'}" |
| | |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith +'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <input :type="attr.Type=='整数' || attr.Type=='浮点数'?'number':'text'" |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <input |
| | | :type="attr.Type=='整数' || attr.Type=='浮点数' || attr.Type=='int' || attr.Type=='float'?'number':'text'" |
| | | class="attr_field" :value="attr.Value" @focus="ontap" @blur="onevent" |
| | | v-if="attr.Height=='1'" :data-iiindex="iiindex" :data-index="index" |
| | | :data-iindex="iindex" |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='布尔值'" |
| | | <view class="form-group" v-if="attr.Type=='布尔值' ||attr.Type=='bool'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <checkbox-group class="check_rememberPwd" @change="oncheck" :data-ischeck="attr.Value" |
| | | :data-iiindex="iiindex" :data-index="index" :data-iindex="iindex" |
| | |
| | | </label> |
| | | </checkbox-group> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='日期' || attr.Type=='时间'" |
| | | <view class="form-group" |
| | | v-if="attr.Type=='日期' || attr.Type=='时间' || attr.Type=='date' || attr.Type=='datetime'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <picker mode="date" :value="attr.Value" @change="ondateTime" |
| | | class="date_iput attr_field" :data-iiindex="iiindex" :data-index="index" |
| | | :data-iindex="iindex" |
| | |
| | | </picker> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='字典' || attr.Type=='字典-字符串' || attr.Type=='字典-整数'" |
| | | <view class="form-group" |
| | | v-if="attr.Type=='字典' || attr.Type=='字典-字符串' || attr.Type=='字典-整数' || attr.Type=='dict' || attr.Type=='dict-char' || attr.Type=='dict-int'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <picker class="section_iput attr_field" @change="onchange" :range="attr.dictitem" |
| | | range-key="CN_S_NAME" v-if="attr.select==false" :data-iiindex="iiindex" |
| | | :data-index="index" :data-iindex="iindex" |
| | |
| | | |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='引用对象(单个)' || attr.Type=='引用对象(多个)'" |
| | | <view class="form-group" |
| | | v-if="attr.Type=='引用对象(单个)' || attr.Type=='引用对象(多个)' ||attr.Type=='obj-ref' || attr.Type=='obj-ref-multi'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"><i |
| | | class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</text> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(单个)'"> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(单个)'||attr.Type=='obj-ref'"> |
| | | <a @tap="classAttr_AddRef" :data-classid="attr.RelCls.split('|')[0]" |
| | | :data-classname="attr.RelCls.split('|')[1]"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(多个)'"> |
| | | <div class="text-right" v-if="attr.Type=='引用对象(多个)'|| attr.Type=='obj-ref-multi'"> |
| | | <picker class="select" @change="classAttr_AddRef" :range="attr.RelClsList" |
| | | range-key="name" :data-iiindex="iiindex" :data-index="index" |
| | | :data-iindex="iindex"> |
| | |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <input type="text" class="attr_field" :data-iiindex="iiindex" :data-index="index" |
| | | :data-iindex="iindex" |
| | | :style="{'width': attr.Width.split('%')[0] - subclassattr.title_p_wdith - 16 +'%'}" |
| | | disabled="true"> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(单个)'"> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(单个)'||attr.Type=='obj-ref'"> |
| | | <a @tap="classAttr_AddRef" :data-classid="attr.RelCls.split('|')[0]" |
| | | :data-classname="attr.RelCls.split('|')[1]"><i |
| | | class="ace-icon fa fa-plus-circle"></i></a> |
| | | </div> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(多个)'"> |
| | | <div class="text-right2" v-if="attr.Type=='引用对象(多个)'|| attr.Type=='obj-ref-multi'"> |
| | | <picker class="select" @change="classAttr_AddRef" :range="attr.RelClsList" |
| | | range-key="name" :data-iiindex="iiindex" :data-index="index" |
| | | :data-iindex="iindex"> |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='引用人员'" |
| | | <view class="form-group" v-if="attr.Type=='引用人员' ||attr.Type=='user' " |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <input type="text" class="attr_field" :value="attr.Value" |
| | | :style="{'width': attr.Width.split('%')[0] - subclassattr.title_p_wdith - 16 +'%'}" |
| | | disabled="true"> |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='引用项目'" |
| | | <view class="form-group" v-if="attr.Type=='引用项目' ||attr.Type=='project'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <input type="text" class="attr_field" :value="attr.Value" |
| | | :style="{'width': attr.Width.split('%')[0] - subclassattr.title_p_wdith - 16 +'%'}" |
| | | disabled="true"> |
| | |
| | | </div> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='编码'" |
| | | <view class="form-group" v-if="attr.Type=='编码' || attr.Type=='code'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <input type="text" class="attr_field" :data-iiindex="iiindex" :data-index="index" |
| | | :data-iindex="iindex" |
| | | :style="{'width': attr.Width.split('%')[0] - subclassattr.title_p_wdith - 7 +'%'}" |
| | | :disabled="attr.edit?false:true"> |
| | | </view> |
| | | </view> |
| | | <view class="form-group" v-if="attr.Type=='省市区'" |
| | | <view class="form-group" v-if="attr.Type=='省市区' ||attr.Type=='region'" |
| | | :style="{'display':attr.hidden == true?'none':''}"> |
| | | <view v-if="subclassattr.control_style=='上下布局'"> |
| | | <text class="tx_title" |
| | |
| | | class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</text> |
| | | <pickerAddress class="date_iput" @change="addresschange" :data-iiindex="iiindex" |
| | | :data-index="index" :data-iindex="iindex" :style="{'width':attr.Width}"> |
| | | {{attr.Value}}</pickerAddress> |
| | | {{attr.Value}} |
| | | </pickerAddress> |
| | | </view> |
| | | <view v-if="subclassattr.control_style=='左右布局'"> |
| | | <p class="tx_title2" |
| | | :style="{'font-family':subclassattr.Font.Name?subclassattr.Font.Name:'initial','font-size':subclassattr.Font.Size?subclassattr.Font.Size:'initial','font-weight':subclassattr.Font.Bold?'bold':'initial','font-style':subclassattr.Font.Tilt?'italic':'initial','text-decoration':subclassattr.Font.Underline?'underline':'initial','background-color':subclassattr.Font.Bk_Color,'color':subclassattr.Font.Text_Color,'width':subclassattr.title_p_wdith+'%'}"> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}:</p> |
| | | <i class="i_tishi" v-if="attr.notempty==true">*</i>{{attr.DispName}}: |
| | | </p> |
| | | <pickerAddress class="date_iput attr_field" @change="addresschange" |
| | | :data-iiindex="iiindex" :data-index="index" :data-iindex="iindex" |
| | | :style="{'width': attr.Width.split('%')[0] - subclassattr.title_p_wdith - 7 +'%'}"> |
| | | {{attr.Value}}</pickerAddress> |
| | | {{attr.Value}} |
| | | </pickerAddress> |
| | | </view> |
| | | </view> |
| | | </div> |
| | |
| | | v-if="param.Sub_Cls.Can_Add_Delete == true">{{title}}</button> |
| | | <button type="default" @tap="sava" class="btn_sava" |
| | | v-else-if="param.Sub_Cls.Can_Add_Delete == false">{{title}}</button> |
| | | |
| | | <button type="default" @tap="trigger" class="btn_trigger" |
| | | v-if="param.After_Trigger_Event">纯分拣</button> |
| | | |
| | | |
| | | <button type="default" @tap="trigger" class="btn_trigger" v-if="param.After_Trigger_Event">纯分拣</button> |
| | | |
| | | |
| | | <!-- 普通弹窗 top bottom center left right --> |
| | | <view> |
| | |
| | | |
| | | <script> |
| | | import pickerAddress from '../../js/pickerAddress/pickerAddress.vue' |
| | | import utils from "@/js/utils.js" |
| | | export default { |
| | | components: { |
| | | pickerAddress |
| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | var objects = []; |
| | | var subPanelList = $this.$data.subPanelList; |
| | | for (var s = 0; s < subPanelList.length; s++) { |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择' || ar.Value == '——请选择——') ar.Value = ''; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) { |
| | | if (ar.select == true) { //判断下拉是否多选 |
| | | var valStr = ""; |
| | | for (var v in ar.Value) { |
| | |
| | | value: ar.Value |
| | | }); |
| | | } else |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | |
| | | sub_req.push(this.formatAttr(ar)) |
| | | |
| | | if (ar.notempty == true && !ar.Value) { |
| | | // if(ar.NotEmpty=='1'){ |
| | | uni.hideLoading(); |
| | |
| | | cls_name: 'MBOX', //$this.$data.param.Sub_Cls.Name, |
| | | objects: objects |
| | | } |
| | | |
| | | |
| | | }; |
| | | var req = []; |
| | | // var subPanelList = $this.$data.subPanelList; |
| | |
| | | var $this = this; |
| | | var After_Select_Event = $this.$data.param.Scan_Code.After_Select_Event; |
| | | if (!After_Select_Event) { |
| | | uni.showModal({title: "提示",content: "选择后事件为空!",showCancel: false,confirmText: "取消"}); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "选择后事件为空!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | }); |
| | | return; |
| | | } |
| | | var items = $this.$data.check_list.items; |
| | |
| | | } |
| | | } |
| | | if (data.length == 0) { |
| | | uni.showModal({title: "提示",content: "未选择数据!",showCancel: false,confirmText: "取消"}); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: "未选择数据!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | }); |
| | | return; |
| | | } |
| | | var mast_attr = []; |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择') { |
| | | uni.showModal({title: "提示",content: ar.DispName + "未选择数据!",showCancel: false,confirmText: "取消"}); |
| | | uni.showModal({ |
| | | title: "提示", |
| | | content: ar.DispName + "未选择数据!", |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | }); |
| | | return; |
| | | } |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | mast_attr.push({attr: ar.Name,value: ar.ValID ? ar.ValID : ''}); |
| | | else if (ar.Type == '布尔值') |
| | | mast_attr.push({attr: ar.Name,value: ar.Value ? '1' : '0'}); |
| | | else |
| | | mast_attr.push({attr: ar.Name,value: ar.Value ? ar.Value : ''}); |
| | | mast_attr.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | |
| | | |
| | | $this.$data.scanCodeVal = name; |
| | | var info = { |
| | | eventid: After_Select_Event.ID, |
| | |
| | | userlogin: '', |
| | | clsid: 'MBOX', |
| | | objid: "", |
| | | attr: [{attr: 'mast_input_3037',value: name}], |
| | | attr: [{ |
| | | attr: 'mast_input_3037', |
| | | value: name |
| | | }], |
| | | global_attr: mast_attr, |
| | | inputParamter: data |
| | | } |
| | |
| | | //console.log(gridstyleInfo); |
| | | $this.$store.dispatch('classGridStyleInfo', gridstyleInfo).then(success => { |
| | | // console.log(success); |
| | | |
| | | if (success.code == '00000') { |
| | | |
| | | success.data.StyleDef = JSON.parse(success.data.StyleDef); |
| | | $this.$data.classGridStyle = success.data; |
| | | |
| | | $this.class_attr_init(); |
| | | |
| | | |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误1.2", |
| | |
| | | $this.subClass_attr_init(); |
| | | } else { |
| | | //console.log(gridstyleInfo); |
| | | |
| | | $this.$store.dispatch('subClassGridStyleInfo', gridstyleInfo).then(success => { |
| | | // console.log(success); |
| | | if (success.code == '00000') { |
| | | |
| | | success.data.StyleDef = JSON.parse(success.data.StyleDef); |
| | | $this.$data.subClassGridStyle = success.data; |
| | | |
| | | $this.subClass_attr_init(); |
| | | |
| | | |
| | | } else { |
| | | uni.showModal({ |
| | | title: "错误1.2", |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | clsid: 'MBOX', //this.$data.param.Sub_Cls.ID, |
| | | objid: "", |
| | | attr: req, |
| | | mast_attr: [], |
| | | mast_attr: req, |
| | | inputParamter: [{ |
| | | attr: 'mast_input_3037', |
| | | value: result.decodedata |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | var attr = classattrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | mast_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | mast_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | mast_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | mast_req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var req = []; |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | var attr = classattrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | mast_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | mast_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | mast_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | mast_req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var req = []; |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | return; |
| | | } |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = e.target |
| | | .value; |
| | | .value; |
| | | |
| | | }, |
| | | onchange(e) { |
| | |
| | | console.log(data_attr); |
| | | if (value.Name != data_attr.Value) { |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value = value |
| | | .Name; |
| | | .Name; |
| | | console.log(this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']] |
| | | .Value); |
| | | .Value); |
| | | var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']] |
| | | .action; |
| | | if (eventid) { |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: itemvalue.Name |
| | | value: itemvalue.Name |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: itemvalue.Name |
| | | value: itemvalue.Name |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | var info = { |
| | |
| | | clsid: 'MBOX', //this.$data.param.Sub_Cls.ID, |
| | | objid: "", |
| | | attr: req, |
| | | mast_attr: [], |
| | | mast_attr: req, |
| | | inputParamter: [{ |
| | | attr: 'mast_input_3037', |
| | | value: e.target.value |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | val: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | |
| | | } |
| | | } |
| | |
| | | delta: 1 |
| | | }); //返回层数,2则上上页 |
| | | }, |
| | | trigger() { |
| | | trigger() { |
| | | if (this.$data.param.Before_Trigger_Event) //判断功能点参数是否有触发前脚本 |
| | | this.scan_TriggerDataObjRunCustomEvent(this.$data.param.Before_Trigger_Event.ID); |
| | | else if (this.$data.param.After_Trigger_Event) //判断功能点参数是否有触发后脚本 |
| | | this.scan_TriggerDataObjRunCustomEvent(this.$data.param.After_Trigger_Event.ID); |
| | | elsess |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); //返回层数,2则上上页 |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); //返回层数,2则上上页 |
| | | }, |
| | | add() { |
| | | uni.showLoading({ |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择' || ar.Value == '——请选择——') ar.Value = ''; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | name: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | name: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) { |
| | | if (ar.select == true) { //判断下拉是否多选 |
| | | var valStr = ""; |
| | | for (var v in ar.Value) { |
| | |
| | | name: ar.Name, |
| | | value: ar.Value |
| | | }); |
| | | } else |
| | | } else { |
| | | const node = this.formatAttr(ar) |
| | | req.push({ |
| | | name: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | name: node.attr, |
| | | value: node.value |
| | | }); |
| | | } |
| | | |
| | | if (ar.notempty == true && !ar.Value) { |
| | | // if(ar.NotEmpty=='1'){ |
| | |
| | | }); |
| | | }, |
| | | class_attr_init() { |
| | | var attrlist = this.$data.classGridStyle.StyleDef.show_style |
| | | const attrlist = this.$data.classGridStyle.StyleDef?.show_style || [] |
| | | var newattrlist = []; |
| | | if (this.$data.classAttrList.length > 0) { |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | |
| | | for (var l = 0; l < clsattr.Attr.length; l++) { |
| | | var ca = clsattr.Attr[l]; |
| | | if (attrs[j].attr == ca.Name) { |
| | | |
| | | ca.action = attrs[j].action; |
| | | ca.edit = attrs[j].edit; |
| | | ca.notempty = attrs[j].notempty; |
| | |
| | | ca.hidden = attrs[j].hidden; |
| | | ca.select = attrs[j].select == undefined ? false : attrs[j].select; |
| | | ca.Value = ""; |
| | | |
| | | if (ca.dictitem) { |
| | | if (ca.select == true) |
| | | ca.Value = []; //ca.dictitem[0].CN_S_NAME; |
| | |
| | | ca.Value = ca.dictitem[d].CN_S_NAME; |
| | | } |
| | | } |
| | | if (ca.Type == '日期' || ca.Type == '时间') { |
| | | |
| | | if (utils.classUtils.attrTypeIsDate(ca.Type)) { |
| | | var nowDate = new Date(); |
| | | var date = { |
| | | year: nowDate.getFullYear(), |
| | |
| | | ca.Value = date.year + '-' + (date.month >= 10 ? date.month : '0' + date |
| | | .month) + '-' + (date.day >= 10 ? date.day : '0' + date.day); |
| | | } |
| | | if (ca.Type == '引用对象(多个)') { |
| | | if (utils.classUtils.attrTypeIsObjRefMulti(ca.Type)) { |
| | | var relClsList = []; |
| | | var attr_rescls = ca.RelCls.split(','); |
| | | for (var ii in attr_rescls) { |
| | |
| | | ca.RelClsList = relClsList; |
| | | ca.Value = '请'; |
| | | } |
| | | if (ca.Type == '省市区') |
| | | |
| | | if (utils.classUtils.attrTypeIsRegion(ca.Type)) |
| | | ca.Value = '请选择'; |
| | | if (ca.Type == '布尔值') |
| | | if (utils.classUtils.attrTypeIsBool(ca.Type)) |
| | | ca.Value = false; |
| | | |
| | | attr.push(ca); |
| | | |
| | | } |
| | | } |
| | | } |
| | | |
| | | newattrlist.push({ |
| | | BkColor: clsattr.BkColor, |
| | | HasAce: clsattr.HasAce, |
| | |
| | | .classGridStyle.StyleDef.Text_Color : '#000000' |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | if (newattrlist.length > 0) { |
| | | this.$data.classAttrList = newattrlist; |
| | | } |
| | | var req = []; |
| | | if (this.$data.classGridStyle.StyleDef) { |
| | | if (this.$data.classGridStyle.StyleDef.show_style.length > 0) { |
| | | var attrlist = this.$data.classGridStyle.StyleDef.show_style |
| | | // $el.find('.attr_field').prop('readonly', true); |
| | | // $el.find('.attr_field').prop('disabled', true); |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].attrs |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | req.push({ |
| | | attr: ar.attr, |
| | | value: ar.value ? ar.value : '' |
| | | }); |
| | | } |
| | | } |
| | | |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].attrs |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | req.push({ |
| | | attr: ar.attr, |
| | | value: ar.value ? ar.value : '' |
| | | }); |
| | | } |
| | | } |
| | | |
| | | var eventlist = this.$data.classGridStyle.StyleDef.event; |
| | | if (eventlist) { |
| | | if (eventlist.length > 0) { |
| | |
| | | ca.Value = ca.dictitem[d].CN_S_NAME; |
| | | } |
| | | } |
| | | if (ca.Type == '日期' || ca.Type == '时间') { |
| | | if (utils.classUtils.attrTypeIsDate(ca.Type)) { |
| | | var nowDate = new Date(); |
| | | var date = { |
| | | year: nowDate.getFullYear(), |
| | |
| | | ca.Value = date.year + '-' + (date.month >= 10 ? date.month : '0' + date |
| | | .month) + '-' + (date.day >= 10 ? date.day : '0' + date.day); |
| | | } |
| | | if (ca.Type == '引用对象(多个)') { |
| | | if (utils.classUtils.attrTypeIsObjRefMulti(ca.Type)) { |
| | | var relClsList = []; |
| | | var attr_rescls = ca.RelCls.split(','); |
| | | for (var ii in attr_rescls) { |
| | |
| | | ca.RelClsList = relClsList; |
| | | ca.Value = '请'; |
| | | } |
| | | if (ca.Type == '省市区') |
| | | if (utils.classUtils.attrTypeIsRegion(ca.Type)) |
| | | ca.Value = '请选择'; |
| | | if (ca.Type == '布尔值') |
| | | if (utils.classUtils.attrTypeIsBool(ca.Type)) |
| | | ca.Value = false; |
| | | |
| | | attr.push(ca); |
| | |
| | | for (var l = 0; l < this.$data.classAttrList[a].Attr.length; l++) { |
| | | var ca = this.$data.classAttrList[a].Attr[l]; |
| | | if (val[i].attr == ca.Name) { |
| | | if (ca.Type == '字典' || ca.Type == '字典-字符串' || ca.Type == |
| | | '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(ca.Type)) { |
| | | var dictItemList = []; |
| | | for (var d in val[i].choice_list) { |
| | | var val = val[i].choice_list[d]; |
| | |
| | | var attr = $this.$data.classAttrList[c].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | if (attr[j].Name == result[i].attr) { |
| | | if (attr[j].Type == '字典' || attr[j].Type == '字典-字符串' || |
| | | attr[j].Type == '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(attr[j].Type)) { |
| | | var dictItemList = []; |
| | | for (var d in result[i].choice_list) { |
| | | var val = result[i].choice_list[d]; |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | |
| | | if (ar.Value == '请选择' || ar.Value == '——请选择——') ar.Value = ''; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | |
| | |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | } |
| | | } |
| | | if (this.$data.refdatastore.length > 0) { |
| | |
| | | .length; l++) { |
| | | var ca = this.$data.subClassAttrList[a].Attr[l]; |
| | | if (val[i].attr == ca.Name) { |
| | | if (ca.Type == '字典' || ca.Type == '字典-字符串' || ca.Type == |
| | | '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(ca.Type)) { |
| | | var dictItemList = []; |
| | | for (var d in val[i].choice_list) { |
| | | var val = val[i].choice_list[d]; |
| | |
| | | scan_DataObjRunCustomEvent(info, data_attr) { |
| | | var $this = this; |
| | | var enviroment = {}; |
| | | if(info.enviroment){ |
| | | if (info.enviroment) { |
| | | enviroment = info.enviroment; |
| | | } else { |
| | | enviroment = { |
| | |
| | | type: 'small', //小窗口 |
| | | class_id: 'MBOX', //this.$data.param.Sub_Cls.ID,//当前数据类id |
| | | }, |
| | | master: { |
| | | cls_id: 'MBOX', //self.options.ExtParam.Sub_Cls.ID, // button=bottom时 master的cls_id |
| | | attr: info.mast_attr //主数据类属性 |
| | | //objs_id: '' // button=bottom时 master的obj_id |
| | | } |
| | | }; |
| | | |
| | | |
| | | } |
| | | var global_attr = this.$data.global_attr; |
| | | if (info.global_attr) { |
| | |
| | | for (var c = 0; c < $this.$data.subPanelList[s].subClassAttrList |
| | | .length; c++) { |
| | | var attr = $this.$data.subPanelList[s].subClassAttrList[c] |
| | | .Attr; |
| | | .Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | if (attr[j].Name == result[i].attr) { |
| | | if (attr[j].Type == '字典' || attr[j].Type == '字典-字符串' || |
| | | attr[j].Type == '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(attr[j].Type)) { |
| | | var dictItemList = []; |
| | | for (var d in result[i].choice_list) { |
| | | var val = result[i].choice_list[d]; |
| | |
| | | } |
| | | } |
| | | } else { |
| | | uni.showModal({title: "错误7",content: success.msg,showCancel: false,confirmText: "取消"}); |
| | | uni.showModal({ |
| | | title: "错误7", |
| | | content: success.msg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | uni.showModal({title: "错误7.1",content: ex.errMsg,showCancel: false,confirmText: "取消"}); |
| | | uni.showModal({ |
| | | title: "错误7.1", |
| | | content: ex.errMsg, |
| | | showCancel: false, |
| | | confirmText: "取消" |
| | | }); |
| | | }); |
| | | }, |
| | | scan_OKDataObjRunCustomEvent(eventID) { |
| | | uni.showLoading({title: "加载中...",mask: true}); |
| | | uni.showLoading({ |
| | | title: "加载中...", |
| | | mask: true |
| | | }); |
| | | var $this = this; |
| | | var req = []; |
| | | var attrlist = $this.$data.classAttrList; |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择' || ar.Value == '——请选择——') ar.Value = ''; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') { |
| | | |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) { |
| | | if (ar.select == true) { //判断下拉是否多选 |
| | | var valStr = ""; |
| | | for (var v in ar.Value) { |
| | |
| | | value: ar.Value |
| | | }); |
| | | } else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | |
| | | if (ar.notempty == true && !ar.Value) { |
| | | // if(ar.NotEmpty=='1'){ |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择' || ar.Value == '——请选择——') ar.Value = ''; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') { |
| | | |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) { |
| | | if (ar.select == true) { //判断下拉是否多选 |
| | | var valStr = ""; |
| | | for (var v in ar.Value) { |
| | |
| | | value: ar.Value |
| | | }); |
| | | } else |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | |
| | | sub_req.push(this.formatAttr(ar)) |
| | | if (ar.notempty == true && !ar.Value) { |
| | | // if(ar.NotEmpty=='1'){ |
| | | uni.hideLoading(); |
| | |
| | | }); |
| | | }, |
| | | scan_TriggerDataObjRunCustomEvent(eventID) { |
| | | uni.showLoading({title: "加载中...",mask: true}); |
| | | uni.showLoading({ |
| | | title: "加载中...", |
| | | mask: true |
| | | }); |
| | | var $this = this; |
| | | var req = []; |
| | | var attrlist = $this.$data.classAttrList; |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择' || ar.Value == '——请选择——') ar.Value = ''; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) { |
| | | if (ar.select == true) { //判断下拉是否多选 |
| | | var valStr = ""; |
| | | for (var v in ar.Value) { |
| | |
| | | value: ar.Value |
| | | }); |
| | | } else |
| | | req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | req.push(this.formatAttr(ar)) |
| | | |
| | | if (ar.notempty == true && !ar.Value) { |
| | | // if(ar.NotEmpty=='1'){ |
| | |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if (ar.Value == '请选择' || ar.Value == '——请选择——') ar.Value = ''; |
| | | if (ar.Type == '引用对象(多个)') |
| | | if (ar.Value == '请') ar.Value = ''; |
| | | if (ar.Type == '引用人员' || ar.Type == '引用项目') |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.ValID ? ar.ValID : '' |
| | | }); |
| | | else if (ar.Type == '布尔值') |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? '1' : '0' |
| | | }); |
| | | else if (ar.Type == '字典' || ar.Type == '字典-字符串' || ar.Type == '字典-整数') { |
| | | if (utils.classUtils.attrTypeIsDict(ar.Type)) { |
| | | if (ar.select == true) { //判断下拉是否多选 |
| | | var valStr = ""; |
| | | for (var v in ar.Value) { |
| | |
| | | value: ar.Value |
| | | }); |
| | | } else |
| | | sub_req.push({ |
| | | attr: ar.Name, |
| | | value: ar.Value ? ar.Value : '' |
| | | }); |
| | | sub_req.push(this.formatAttr(ar)) |
| | | |
| | | if (ar.notempty == true && !ar.Value) { |
| | | // if(ar.NotEmpty=='1'){ |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | formatAttr(attr) { |
| | | if (utils.classUtils.attrTypeIsObjRefMulti(attr.Type)) //if(ar.Type=='引用对象(多个)') |
| | | if (attr.Value == '请') ar.Value = ''; |
| | | if (utils.classUtils.attrTypeIsUser(attr.Type) || utils.classUtils.attrTypeIsProject(attr |
| | | .Type)) //if(ar.Type=='引用人员' || ar.Type=='引用项目') |
| | | return { |
| | | attr: attr.Name, |
| | | value: attr.ValID ? attr.ValID : '' |
| | | }; |
| | | else if (utils.classUtils.attrTypeIsBool(attr.Type)) //if(ar.Type=='布尔值') |
| | | return { |
| | | attr: attr.Name, |
| | | value: attr.Value ? '1' : '0' |
| | | }; |
| | | else |
| | | return { |
| | | attr: attr.Name, |
| | | value: attr.Value ? attr.Value : '' |
| | | }; |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | </script> |
| | | |
| | | <style> |
| | | .class_attr_title { |
| | | font-size: 44rpx; |
| | | padding-bottom: 22rpx; |
| | | position: relative; |
| | | } |
| | | |
| | | .class_attr_title .title_line { |
| | | border-bottom: 2rpx solid #aaa; |
| | | position: relative; |
| | | bottom: -50rpx; |
| | | width: calc(100% - 290rpx); |
| | | margin-left: 100px; |
| | | } |
| | | |
| | | .class_attr_title .title_icon { |
| | | border-radius: 50%; |
| | | width: 100rpx; |
| | | line-height: 64rpx; |
| | | display: inline-block; |
| | | vertical-align: middle; |
| | | padding-top: 10rpx; |
| | | padding-left: 20rpx; |
| | | text-align: center; |
| | | color: #fff; |
| | | } |
| | | |
| | | .class_attr_title i { |
| | | color: #2c6aa0 !important; |
| | | } |
| | | |
| | | .class_attr_title .title_icon i { |
| | | font-size: 80rpx; |
| | | } |
| | | |
| | | .class_attr_title .title { |
| | | padding-right: 22rpx; |
| | | display: inline-block; |
| | | background-color: #fff; |
| | | position: relative; |
| | | bottom: -8rpx; |
| | | } |
| | | |
| | | .class_attr_title .arrow { |
| | | position: absolute; |
| | | top: 6rpx; |
| | | right: 30rpx; |
| | | font-size: 60rpx; |
| | | } |
| | | |
| | | input::-webkit-input-placeholder { |
| | | font-size: 12rpx; |
| | | } |
| | | |
| | | textarea { |
| | | width: 98%; |
| | | border: 1px solid #d5d5d5; |
| | | padding: 10rpx 8rpx 12rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | color: #046db3; |
| | | margin-top: 4px; |
| | | } |
| | | |
| | | input { |
| | | border: 1px solid #d5d5d5; |
| | | width: 98%; |
| | | height: 52rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | color: #046db3; |
| | | padding: 10rpx 8rpx 12rpx; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | margin-top: 4rpx; |
| | | } |
| | | |
| | | .select { |
| | | width: 20px; |
| | | position: absolute; |
| | | opacity: 0; |
| | | } |
| | | |
| | | .class_attr_body .form-group { |
| | | margin: 20rpx 30rpx; |
| | | /* margin-left: -12px; |
| | | margin-right: -12px; */ |
| | | } |
| | | |
| | | .subclass_attr_body .form-group { |
| | | margin: 20rpx 10rpx; |
| | | /* margin-left: -12px; |
| | | margin-right: -12px; */ |
| | | } |
| | | |
| | | .form-group>label[class*="col-"] { |
| | | margin-bottom: 8rpx; |
| | | font-size: 32rpx; |
| | | } |
| | | |
| | | .form-group label { |
| | | vertical-align: middle; |
| | | line-height: 60rpx; |
| | | } |
| | | |
| | | .no-padding-right { |
| | | padding-right: 0 !important; |
| | | } |
| | | |
| | | .col-xs-12 { |
| | | width: 100%; |
| | | } |
| | | |
| | | .tx_title { |
| | | font-size: 32rpx; |
| | | } |
| | | |
| | | .tx_title2 { |
| | | font-size: 32rpx; |
| | | text-align: right; |
| | | display: inline-block; |
| | | vertical-align: -2px; |
| | | } |
| | | |
| | | .text-right { |
| | | margin-right: 20rpx; |
| | | margin-top: -6rpx; |
| | | display: inline-block; |
| | | float: right; |
| | | font-size: 44rpx; |
| | | } |
| | | |
| | | .text-right2 { |
| | | margin: 0; |
| | | vertical-align: -4px; |
| | | margin-left: 9px; |
| | | float: none; |
| | | font-size: 44rpx; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .section_iput { |
| | | border: 1px solid #d5d5d5; |
| | | width: 98%; |
| | | height: 62rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | color: #046db3; |
| | | padding: 10rpx 8rpx 10rpx; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | } |
| | | |
| | | .date_iput { |
| | | border: 1px solid #d5d5d5; |
| | | /* width: 98%; */ |
| | | height: 62rpx; |
| | | background: #FFF; |
| | | border-radius: 0 !important; |
| | | color: #046db3; |
| | | padding: 10rpx 8rpx 4rpx; |
| | | font-size: 34rpx; |
| | | font-family: inherit; |
| | | box-shadow: none !important; |
| | | transition-duration: 0.1s; |
| | | } |
| | | |
| | | button.btn_add { |
| | | width: 49.5%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: right; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_cancel { |
| | | width: 49.5%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_sava { |
| | | width: 100%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_trigger { |
| | | width: 100%; |
| | | margin-top: 20rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .i_tishi { |
| | | color: red; |
| | | vertical-align: sub; |
| | | font-style: initial; |
| | | margin-left: 20rpx; |
| | | font-size: 17px; |
| | | } |
| | | |
| | | .attr_field { |
| | | display: inline-block; |
| | | vertical-align: middle; |
| | | margin-left: 8px; |
| | | /* width: 71%; */ |
| | | } |
| | | |
| | | .input_vallist { |
| | | max-height: 350rpx; |
| | | overflow-y: auto; |
| | | display: none; |
| | | } |
| | | |
| | | .input_vallist ul { |
| | | /* border: 1px solid red; */ |
| | | padding: 0 20rpx; |
| | | } |
| | | |
| | | .input_vallist ul li { |
| | | list-style: none; |
| | | padding: 20rpx; |
| | | border-bottom: 1px solid #ccc; |
| | | } |
| | | |
| | | .input_vallist ul li a { |
| | | float: right; |
| | | } |
| | | |
| | | .input_vallist ul li a i { |
| | | font-size: 45rpx; |
| | | } |
| | | |
| | | .panel_title { |
| | | font-size: 38rpx; |
| | | background-color: #27A6E1; |
| | | line-height: 80rpx; |
| | | color: #fff; |
| | | text-align: center; |
| | | font-weight: bold; |
| | | } |
| | | |
| | | .v-panel { |
| | | min-height: 788rpx; |
| | | } |
| | | |
| | | .v-panellist { |
| | | border: 4rpx solid #aaa; |
| | | border-radius: 10rpx; |
| | | margin: 10rpx 20rpx 0rpx 20rpx; |
| | | } |
| | | |
| | | .v-paneldel { |
| | | text-align: right; |
| | | } |
| | | |
| | | .panel_del { |
| | | font-size: 44rpx; |
| | | text-decoration: initial; |
| | | margin-top: 10rpx; |
| | | margin-right: 20rpx; |
| | | } |
| | | |
| | | .divX { |
| | | width: 20px; |
| | | height: 20px; |
| | | border-radius: 60%; |
| | | position: absolute; |
| | | top: -10px; |
| | | right: -10px; |
| | | z-index: 100; |
| | | } |
| | | |
| | | .view-popup { |
| | | position: relative; |
| | | } |
| | | |
| | | .popup-content { |
| | | @include flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | padding: 30rpx; |
| | | background-color: #fff; |
| | | /* height: 150px; */ |
| | | /* border: 1px solid red; */ |
| | | } |
| | | |
| | | .popup-cont { |
| | | overflow-y: auto; |
| | | /* border: 1px solid red; */ |
| | | } |
| | | |
| | | .popup-height { |
| | | @include height; |
| | | /* width: 200px; */ |
| | | } |
| | | |
| | | .popup-header { |
| | | font-size: 42rpx; |
| | | font-weight: bold; |
| | | margin: 20rpx 20rpx 0px 20rpx; |
| | | } |
| | | |
| | | .view_popup_CheckList { |
| | | margin-bottom: 20rpx; |
| | | } |
| | | |
| | | .popup-footer { |
| | | float: right; |
| | | position: absolute; |
| | | bottom: 0; |
| | | right: 20rpx; |
| | | } |
| | | |
| | | button.btn_popup_add { |
| | | width: 180rpx; |
| | | margin-top: 50rpx; |
| | | margin-right: 20rpx; |
| | | padding: 15rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | /* float: left; */ |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_popup_cancel { |
| | | width: 180rpx; |
| | | margin-top: 50rpx; |
| | | padding: 15rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | /* float: right; */ |
| | | display: inline-block; |
| | | } |
| | | </style> |