main-form.html 7.9 KB
<i-form :model="this.data" class='app-form' ref='form'  id='hrpost_main' style="">
    <input style="display:none;" />
    <row >
            
<i-col class="form-layout-container" v-show="detailsModel.group1.visible" :style="{}"  :lg="{ span: 24, offset: 0 }">
    <app-form-group :model="detailsModel.group1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hrpost.main_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >    
    <app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group1" :data="data" :context="context" :viewparams="viewparams"/>
    <row>
        <i-col class="form-layout-container" v-show="detailsModel.postcode.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='postcode' :itemRules="this.rules.postcode" class='' :caption="$t('entities.hrpost.main_form.details.postcode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.postcode.error" :isEmptyCaption="false" labelPos="LEFT">
    <input-box 
    v-model="data.postcode"  
    @enter="onEnter($event)"  
     unit=""  
    :disabled="detailsModel.postcode.disabled" 
    type='text' 
    style="">
</input-box>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.hrpostname.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='hrpostname' :itemRules="this.rules.hrpostname" class='' :caption="$t('entities.hrpost.main_form.details.hrpostname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.hrpostname.error" :isEmptyCaption="false" labelPos="LEFT">
    <input-box 
    v-model="data.hrpostname"  
    @enter="onEnter($event)"  
     unit=""  
    :disabled="detailsModel.hrpostname.disabled" 
    type='text' 
    style="">
</input-box>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.hrdutyname.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='hrdutyname' :itemRules="this.rules.hrdutyname" class='' :caption="$t('entities.hrpost.main_form.details.hrdutyname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.hrdutyname.error" :isEmptyCaption="false" labelPos="LEFT">
    
<app-picker 
  :formState="formState"
  :data="data"
  :context="context"
  :viewparams="viewparams"
  :localContext ='{ }' 
  :localParam ='{ }' 
  :disabled="detailsModel.hrdutyname.disabled"
  name='hrdutyname'
  deMajorField='hrdutyname'
  deKeyField='hrduty'
  :service="service"
  :acParams="{ serviceName: 'HRDutyService', interfaceName: 'FetchDefault'}"
  valueitem='hrdutyid' 
  :value="data.hrdutyname"
  :pickupView="{ viewname: 'hrduty-pickup-view', title: $t('entities.hrduty.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'hrduties', parameterName: 'hrduty' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
  style=""  
  @formitemvaluechange="onFormItemValueChange($event)">
</app-picker>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.posttype.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='posttype' :itemRules="this.rules.posttype" class='' :caption="$t('entities.hrpost.main_form.details.posttype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.posttype.error" :isEmptyCaption="false" labelPos="LEFT">
    
<dropdown-list 
    v-model="data.posttype"
    :data="data"
    :context="context"
    :viewparams="viewparams"
    :localContext ='{ }' 
    :localParam ='{ }' 
    :disabled="detailsModel.posttype.disabled"
    valueType="string"
    tag='CL_HR_0004'
    codelistType='STATIC'
    placeholder='请选择...'
    
/>
</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.hrorganizationname.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='hrorganizationname' :itemRules="this.rules.hrorganizationname" class='' :caption="$t('entities.hrpost.main_form.details.hrorganizationname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.hrorganizationname.error" :isEmptyCaption="false" labelPos="LEFT">
    
<app-picker 
  :formState="formState"
  :data="data"
  :context="context"
  :viewparams="viewparams"
  :localContext ='{ }' 
  :localParam ='{ }' 
  :disabled="detailsModel.hrorganizationname.disabled"
  name='hrorganizationname'
  deMajorField='organizationname'
  deKeyField='hrorganization'
  :service="service"
  :acParams="{ serviceName: 'HROrganizationService', interfaceName: 'FetchDefault'}"
  valueitem='hrorganizationid' 
  :value="data.hrorganizationname"
  :pickupView="{ viewname: 'hrorganization-pickup-view', title: $t('entities.hrorganization.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'hrorganizations', parameterName: 'hrorganization' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
  style=""  
  @formitemvaluechange="onFormItemValueChange($event)">
</app-picker>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.activeflag.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='activeflag' :itemRules="this.rules.activeflag" class='' :caption="$t('entities.hrpost.main_form.details.activeflag')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.activeflag.error" :isEmptyCaption="false" labelPos="LEFT">
    
<dropdown-list 
    v-model="data.activeflag"
    :data="data"
    :context="context"
    :viewparams="viewparams"
    :localContext ='{ }' 
    :localParam ='{ }' 
    :disabled="detailsModel.activeflag.disabled"
    style="width:100px;width: 100px;"
    valueType="number"
    tag='YesNo' 
    codelistType='STATIC'
    placeholder='请选择...'
/>
</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.postnum.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='postnum' :itemRules="this.rules.postnum" class='' :caption="$t('entities.hrpost.main_form.details.postnum')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.postnum.error" :isEmptyCaption="false" labelPos="LEFT">
    <input-box 
    v-model="data.postnum"  
    @enter="onEnter($event)"  
     unit=""  
    :disabled="detailsModel.postnum.disabled" 
    type='number' 
    style="">
</input-box>

</app-form-item>

</i-col>
<i-col class="form-layout-container" v-show="detailsModel.entrytime.visible" :style="{}"  :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
    <app-form-item name='entrytime' :itemRules="this.rules.entrytime" class='' :caption="$t('entities.hrpost.main_form.details.entrytime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entrytime.error" :isEmptyCaption="false" labelPos="LEFT">
    <date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.entrytime" :disabled="detailsModel.entrytime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.entrytime = val1 }"></date-picker>

</app-form-item>

</i-col>
    
    </row>
</app-form-group>

</i-col>


    </row>
</i-form>