提交 696959ce 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 5a63cd85
...@@ -94,6 +94,8 @@ export default { ...@@ -94,6 +94,8 @@ export default {
orgname: "单位", orgname: "单位",
mdeptid: "主部门", mdeptid: "主部门",
mdeptname: "部门", mdeptname: "部门",
mdeptcode: "主部门代码",
orgcode: "单位代码",
bcode: "业务编码", bcode: "业务编码",
nickname: "昵称别名", nickname: "昵称别名",
sex: "性别", sex: "性别",
...@@ -132,11 +134,13 @@ export default { ...@@ -132,11 +134,13 @@ export default {
personname: "姓名", personname: "姓名",
loginname: "登录名", loginname: "登录名",
orgname: "单位", orgname: "单位",
orgid: "单位",
orgcode: "单位代码",
mdeptname: "部门", mdeptname: "部门",
mdeptcode: "主部门代码",
mdeptid: "主部门",
enable: "逻辑有效", enable: "逻辑有效",
orgid: "单位",
userid: "用户标识", userid: "用户标识",
mdeptid: "主部门",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -93,6 +93,8 @@ export default { ...@@ -93,6 +93,8 @@ export default {
orgname: '单位', orgname: '单位',
mdeptid: '主部门', mdeptid: '主部门',
mdeptname: '部门', mdeptname: '部门',
mdeptcode: '主部门代码',
orgcode: '单位代码',
bcode: '业务编码', bcode: '业务编码',
nickname: '昵称别名', nickname: '昵称别名',
sex: '性别', sex: '性别',
...@@ -131,11 +133,13 @@ export default { ...@@ -131,11 +133,13 @@ export default {
personname: '姓名', personname: '姓名',
loginname: '登录名', loginname: '登录名',
orgname: '单位', orgname: '单位',
orgid: '单位',
orgcode: '单位代码',
mdeptname: '部门', mdeptname: '部门',
mdeptcode: '主部门代码',
mdeptid: '主部门',
enable: '逻辑有效', enable: '逻辑有效',
orgid: '单位',
userid: '用户标识', userid: '用户标识',
mdeptid: '主部门',
}, },
uiactions: { uiactions: {
}, },
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('orgname')"> <template v-if="getColumnState('orgname')">
<el-table-column show-overflow-tooltip :prop="'orgname'" :label="$t('entities.ibzdepartment.editgrid_grid.columns.orgname')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'orgname'" :label="$t('entities.ibzdepartment.editgrid_grid.columns.orgname')" :width="200" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibzdepartment.editgrid_grid.columns.orgname')}} {{$t('entities.ibzdepartment.editgrid_grid.columns.orgname')}}
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('pdeptname')"> <template v-if="getColumnState('pdeptname')">
<el-table-column show-overflow-tooltip :prop="'pdeptname'" :label="$t('entities.ibzdepartment.editgrid_grid.columns.pdeptname')" :width="100" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'pdeptname'" :label="$t('entities.ibzdepartment.editgrid_grid.columns.pdeptname')" :width="250" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.ibzdepartment.editgrid_grid.columns.pdeptname')}} {{$t('entities.ibzdepartment.editgrid_grid.columns.pdeptname')}}
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</i-col> </i-col>
<i-col v-show="detailsModel.mdeptname.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.mdeptname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='mdeptname' :itemRules="this.rules.mdeptname" class='' :caption="$t('entities.ibzemployee.main_form.details.mdeptname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.mdeptname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='mdeptname' :itemRules="this.rules.mdeptname" class='' :caption="$t('entities.ibzemployee.main_form.details.mdeptname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.mdeptname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-department-select :data="data" :context="JSON.parse(JSON.stringify(context))" url="/ibzorganizations/${orgid}/ibzdepartments/picker" filter="srforgid" :fillMap="{'id':'mdeptid','label':'mdeptname'}" :multiple="false" style="" @select-change="onFormItemValueChange"></app-department-select> <app-department-select :data="data" :context="JSON.parse(JSON.stringify(context))" url="/ibzorganizations/${orgid}/ibzdepartments/picker" filter="orgid" :fillMap="{'id':'mdeptid','label':'mdeptname'}" :multiple="false" style="" @select-change="onFormItemValueChange"></app-department-select>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -496,6 +496,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -496,6 +496,8 @@ export default class MainBase extends Vue implements ControlInterface {
orgname: null, orgname: null,
mdeptid: null, mdeptid: null,
mdeptname: null, mdeptname: null,
mdeptcode: null,
orgcode: null,
bcode: null, bcode: null,
nickname: null, nickname: null,
sex: null, sex: null,
...@@ -646,6 +648,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -646,6 +648,18 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: true, type: 'string', message: '部门 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '部门 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '部门 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '部门 值不能为空', trigger: 'blur' },
], ],
mdeptcode: [
{ type: 'string', message: '主部门代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '主部门代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '主部门代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '主部门代码 值不能为空', trigger: 'blur' },
],
orgcode: [
{ type: 'string', message: '单位代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '单位代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '单位代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '单位代码 值不能为空', trigger: 'blur' },
],
bcode: [ bcode: [
{ type: 'string', message: '业务编码 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '业务编码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '业务编码 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '业务编码 值必须为字符串类型', trigger: 'blur' },
...@@ -795,13 +809,17 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -795,13 +809,17 @@ export default class MainBase extends Vue implements ControlInterface {
, ,
loginname: new FormItemModel({ caption: '登录名', detailType: 'FORMITEM', name: 'loginname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }) loginname: new FormItemModel({ caption: '登录名', detailType: 'FORMITEM', name: 'loginname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
, ,
orgid: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) orgid: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
, ,
orgname: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) orgname: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
, ,
mdeptid: new FormItemModel({ caption: '主部门', detailType: 'FORMITEM', name: 'mdeptid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) mdeptid: new FormItemModel({ caption: '主部门', detailType: 'FORMITEM', name: 'mdeptid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
mdeptname: new FormItemModel({ caption: '部门', detailType: 'FORMITEM', name: 'mdeptname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) mdeptname: new FormItemModel({ caption: '部门', detailType: 'FORMITEM', name: 'mdeptname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
mdeptcode: new FormItemModel({ caption: '主部门代码', detailType: 'FORMITEM', name: 'mdeptcode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
orgcode: new FormItemModel({ caption: '单位代码', detailType: 'FORMITEM', name: 'orgcode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
, ,
bcode: new FormItemModel({ caption: '业务编码', detailType: 'FORMITEM', name: 'bcode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) bcode: new FormItemModel({ caption: '业务编码', detailType: 'FORMITEM', name: 'bcode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -1021,6 +1039,30 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1021,6 +1039,30 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'mdeptname', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'mdeptname', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 mdeptcode 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
*/
@Watch('data.mdeptcode')
onMdeptcodeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'mdeptcode', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 orgcode 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main
*/
@Watch('data.orgcode')
onOrgcodeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'orgcode', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 bcode 值 * 监控表单属性 bcode 值
* *
...@@ -1246,6 +1288,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1246,6 +1288,10 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof Main * @memberof Main
*/ */
public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (Object.is(name, 'orgid')) {
this.onFormItemValueChange({ name: 'mdeptname', value: null });
this.onFormItemValueChange({ name: 'mdeptid', value: null });
}
} }
/** /**
...@@ -1308,6 +1354,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1308,6 +1354,8 @@ export default class MainBase extends Vue implements ControlInterface {
......
...@@ -90,6 +90,16 @@ export default class MainModel { ...@@ -90,6 +90,16 @@ export default class MainModel {
prop: 'mdeptname', prop: 'mdeptname',
dataType: 'PICKUPTEXT', dataType: 'PICKUPTEXT',
}, },
{
name: 'mdeptcode',
prop: 'mdeptcode',
dataType: 'PICKUPDATA',
},
{
name: 'orgcode',
prop: 'orgcode',
dataType: 'PICKUPDATA',
},
{ {
name: 'bcode', name: 'bcode',
prop: 'bcode', prop: 'bcode',
......
...@@ -26,51 +26,27 @@ ...@@ -26,51 +26,27 @@
</i-col> </i-col>
<i-col v-show="detailsModel.orgname.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.orgname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='orgname' :itemRules="this.rules.orgname" class='' :caption="$t('entities.ibzemployee.newform_form.details.orgname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.orgname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='orgname' :itemRules="this.rules.orgname" class='' :caption="$t('entities.ibzemployee.newform_form.details.orgname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.orgname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker <app-org-select :data="data" :context="JSON.parse(JSON.stringify(context))" :fillMap="{'id':'orgid','label':'orgname'}" url="/ibzorganizations/${orgid}/suborg/picker" filter="srforgid" :multiple="false" style="" @select-change="onFormItemValueChange"></app-org-select>
:formState="formState" </app-form-item>
:data="data"
:context="context"
:viewparams="viewparams"
:itemParam='{ }'
:disabled="detailsModel.orgname.disabled"
name='orgname'
deMajorField='orgname'
deKeyField='ibzorganization'
:service="service"
:acParams="{ serviceName: 'IBZOrganizationService', interfaceName: 'FetchDefault'}"
valueitem='orgid'
:value="data.orgname"
editortype=""
:pickupView="{ viewname: 'ibzorganization-pickup-view', title: $t('entities.ibzorganization.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibzorganizations', parameterName: 'ibzorganization' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</i-col>
<i-col v-show="detailsModel.orgcode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='orgcode' :itemRules="this.rules.orgcode" class='' :caption="$t('entities.ibzemployee.newform_form.details.orgcode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.orgcode.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='orgcode'
:value="data.orgcode" style=""></app-span>
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.mdeptname.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.mdeptname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='mdeptname' :itemRules="this.rules.mdeptname" class='' :caption="$t('entities.ibzemployee.newform_form.details.mdeptname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.mdeptname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='mdeptname' :itemRules="this.rules.mdeptname" class='' :caption="$t('entities.ibzemployee.newform_form.details.mdeptname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.mdeptname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker <app-department-select :data="data" :context="JSON.parse(JSON.stringify(context))" url="/ibzorganizations/${orgid}/ibzdepartments/picker" filter="orgid" :fillMap="{'id':'mdeptid','label':'mdeptname'}" :multiple="false" style="" @select-change="onFormItemValueChange"></app-department-select>
:formState="formState" </app-form-item>
:data="data"
:context="context"
:viewparams="viewparams"
:itemParam='{ }'
:disabled="detailsModel.mdeptname.disabled"
name='mdeptname'
deMajorField='deptname'
deKeyField='ibzdepartment'
:service="service"
:acParams="{ serviceName: 'IBZDepartmentService', interfaceName: 'FetchDefault'}"
valueitem='mdeptid'
:value="data.mdeptname"
editortype=""
:pickupView="{ viewname: 'ibzdepartment-pickup-view', title: $t('entities.ibzdepartment.views.pickupview.title'), deResParameters: [{ pathName: 'ibzorganizations', parameterName: 'ibzorganization' }, ], parameters: [{ pathName: 'ibzdepartments', parameterName: 'ibzdepartment' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</i-col>
<i-col v-show="detailsModel.mdeptcode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='mdeptcode' :itemRules="this.rules.mdeptcode" class='' :caption="$t('entities.ibzemployee.newform_form.details.mdeptcode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.mdeptcode.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='mdeptcode'
:value="data.mdeptcode" style=""></app-span>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -389,11 +365,13 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -389,11 +365,13 @@ export default class NewFormBase extends Vue implements ControlInterface {
personname: null, personname: null,
loginname: null, loginname: null,
orgname: null, orgname: null,
orgid: null,
orgcode: null,
mdeptname: null, mdeptname: null,
mdeptcode: null,
mdeptid: null,
enable: null, enable: null,
orgid: null,
userid: null, userid: null,
mdeptid: null,
ibzemployee:null, ibzemployee:null,
}; };
...@@ -508,36 +486,48 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -508,36 +486,48 @@ export default class NewFormBase extends Vue implements ControlInterface {
{ required: true, type: 'string', message: '单位 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '单位 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '单位 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '单位 值不能为空', trigger: 'blur' },
], ],
orgid: [
{ type: 'string', message: '单位 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '单位 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '单位 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '单位 值不能为空', trigger: 'blur' },
],
orgcode: [
{ type: 'string', message: '单位代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '单位代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '单位代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '单位代码 值不能为空', trigger: 'blur' },
],
mdeptname: [ mdeptname: [
{ type: 'string', message: '部门 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '部门 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '部门 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '部门 值必须为字符串类型', trigger: 'blur' },
{ required: true, type: 'string', message: '部门 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '部门 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '部门 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '部门 值不能为空', trigger: 'blur' },
], ],
mdeptcode: [
{ type: 'string', message: '主部门代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '主部门代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '主部门代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '主部门代码 值不能为空', trigger: 'blur' },
],
mdeptid: [
{ type: 'string', message: '主部门 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '主部门 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '主部门 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '主部门 值不能为空', trigger: 'blur' },
],
enable: [ enable: [
{ type: 'number', message: '逻辑有效 值必须为数值类型', trigger: 'change' }, { type: 'number', message: '逻辑有效 值必须为数值类型', trigger: 'change' },
{ type: 'number', message: '逻辑有效 值必须为数值类型', trigger: 'blur' }, { type: 'number', message: '逻辑有效 值必须为数值类型', trigger: 'blur' },
{ required: false, type: 'number', message: '逻辑有效 值不能为空', trigger: 'change' }, { required: false, type: 'number', message: '逻辑有效 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '逻辑有效 值不能为空', trigger: 'blur' }, { required: false, type: 'number', message: '逻辑有效 值不能为空', trigger: 'blur' },
], ],
orgid: [
{ type: 'string', message: '单位 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '单位 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '单位 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '单位 值不能为空', trigger: 'blur' },
],
userid: [ userid: [
{ type: 'string', message: '用户标识 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '用户标识 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '用户标识 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '用户标识 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '用户标识 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '用户标识 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '用户标识 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '用户标识 值不能为空', trigger: 'blur' },
], ],
mdeptid: [
{ type: 'string', message: '主部门 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '主部门 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '主部门 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '主部门 值不能为空', trigger: 'blur' },
],
} }
/** /**
...@@ -575,15 +565,19 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -575,15 +565,19 @@ export default class NewFormBase extends Vue implements ControlInterface {
, ,
orgname: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) orgname: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
mdeptname: new FormItemModel({ caption: '部门', detailType: 'FORMITEM', name: 'mdeptname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) orgid: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
enable: new FormItemModel({ caption: '逻辑有效', detailType: 'FORMITEM', name: 'enable', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) orgcode: new FormItemModel({ caption: '单位代码', detailType: 'FORMITEM', name: 'orgcode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
orgid: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'orgid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) mdeptname: new FormItemModel({ caption: '部门', detailType: 'FORMITEM', name: 'mdeptname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
userid: new FormItemModel({ caption: '用户标识', detailType: 'FORMITEM', name: 'userid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) mdeptcode: new FormItemModel({ caption: '主部门代码', detailType: 'FORMITEM', name: 'mdeptcode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
mdeptid: new FormItemModel({ caption: '主部门', detailType: 'FORMITEM', name: 'mdeptid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) mdeptid: new FormItemModel({ caption: '主部门', detailType: 'FORMITEM', name: 'mdeptid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
enable: new FormItemModel({ caption: '逻辑有效', detailType: 'FORMITEM', name: 'enable', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
userid: new FormItemModel({ caption: '用户标识', detailType: 'FORMITEM', name: 'userid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
}; };
...@@ -732,51 +726,51 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -732,51 +726,51 @@ export default class NewFormBase extends Vue implements ControlInterface {
} }
/** /**
* 监控表单属性 mdeptname * 监控表单属性 orgid
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof NewForm * @memberof NewForm
*/ */
@Watch('data.mdeptname') @Watch('data.orgid')
onMdeptnameChange(newVal: any, oldVal: any) { onOrgidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'mdeptname', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'orgid', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 enable 值 * 监控表单属性 orgcode 值
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof NewForm * @memberof NewForm
*/ */
@Watch('data.enable') @Watch('data.orgcode')
onEnableChange(newVal: any, oldVal: any) { onOrgcodeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'enable', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'orgcode', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 orgid * 监控表单属性 mdeptname
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof NewForm * @memberof NewForm
*/ */
@Watch('data.orgid') @Watch('data.mdeptname')
onOrgidChange(newVal: any, oldVal: any) { onMdeptnameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'orgid', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'mdeptname', newVal: newVal, oldVal: oldVal });
} }
/** /**
* 监控表单属性 userid * 监控表单属性 mdeptcode
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof NewForm * @memberof NewForm
*/ */
@Watch('data.userid') @Watch('data.mdeptcode')
onUseridChange(newVal: any, oldVal: any) { onMdeptcodeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'userid', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'mdeptcode', newVal: newVal, oldVal: oldVal });
} }
/** /**
...@@ -791,6 +785,30 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -791,6 +785,30 @@ export default class NewFormBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'mdeptid', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'mdeptid', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 enable 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof NewForm
*/
@Watch('data.enable')
onEnableChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'enable', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 userid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof NewForm
*/
@Watch('data.userid')
onUseridChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'userid', newVal: newVal, oldVal: oldVal });
}
/** /**
* 重置表单项值 * 重置表单项值
...@@ -800,6 +818,10 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -800,6 +818,10 @@ export default class NewFormBase extends Vue implements ControlInterface {
* @memberof NewForm * @memberof NewForm
*/ */
public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public resetFormData({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
if (Object.is(name, 'orgid')) {
this.onFormItemValueChange({ name: 'mdeptname', value: null });
this.onFormItemValueChange({ name: 'mdeptid', value: null });
}
} }
/** /**
...@@ -844,6 +866,8 @@ export default class NewFormBase extends Vue implements ControlInterface { ...@@ -844,6 +866,8 @@ export default class NewFormBase extends Vue implements ControlInterface {
} }
......
...@@ -75,31 +75,41 @@ export default class NewFormModel { ...@@ -75,31 +75,41 @@ export default class NewFormModel {
prop: 'orgname', prop: 'orgname',
dataType: 'PICKUPTEXT', dataType: 'PICKUPTEXT',
}, },
{
name: 'orgid',
prop: 'orgid',
dataType: 'PICKUP',
},
{
name: 'orgcode',
prop: 'orgcode',
dataType: 'PICKUPDATA',
},
{ {
name: 'mdeptname', name: 'mdeptname',
prop: 'mdeptname', prop: 'mdeptname',
dataType: 'PICKUPTEXT', dataType: 'PICKUPTEXT',
}, },
{ {
name: 'enable', name: 'mdeptcode',
prop: 'enable', prop: 'mdeptcode',
dataType: 'YESNO', dataType: 'PICKUPDATA',
}, },
{ {
name: 'orgid', name: 'mdeptid',
prop: 'orgid', prop: 'mdeptid',
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{
name: 'enable',
prop: 'enable',
dataType: 'YESNO',
},
{ {
name: 'userid', name: 'userid',
prop: 'userid', prop: 'userid',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'mdeptid',
prop: 'mdeptid',
dataType: 'PICKUP',
},
{ {
name: 'ibzemployee', name: 'ibzemployee',
prop: 'userid', prop: 'userid',
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!--输出实体[IBZEMP]数据结构 --> <!--输出实体[IBZEMP]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-ibzemp-632-2"> <changeSet author="a_A_5d9d78509" id="tab-ibzemp-634-2">
<createTable tableName="IBZEMP"> <createTable tableName="IBZEMP">
<column name="USERID" remarks="" type="VARCHAR(100)"> <column name="USERID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_IBZEMP_USERID"/> <constraints primaryKey="true" primaryKeyName="PK_IBZEMP_USERID"/>
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<!--输出实体[IBZDEPT]数据结构 --> <!--输出实体[IBZDEPT]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-ibzdept-690-4"> <changeSet author="a_A_5d9d78509" id="tab-ibzdept-692-4">
<createTable tableName="IBZDEPT"> <createTable tableName="IBZDEPT">
<column name="DEPTID" remarks="" type="VARCHAR(100)"> <column name="DEPTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_IBZDEPT_DEPTID"/> <constraints primaryKey="true" primaryKeyName="PK_IBZDEPT_DEPTID"/>
...@@ -165,10 +165,10 @@ ...@@ -165,10 +165,10 @@
<addForeignKeyConstraint baseColumnNames="PORGID" baseTableName="IBZORG" constraintName="DER1N_IBZORG_IBZORG_PORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/> <addForeignKeyConstraint baseColumnNames="PORGID" baseTableName="IBZORG" constraintName="DER1N_IBZORG_IBZORG_PORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[IBZEMP]外键关系 --> <!--输出实体[IBZEMP]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-ibzemp-632-6"> <changeSet author="a_A_5d9d78509" id="fk-ibzemp-634-6">
<addForeignKeyConstraint baseColumnNames="MDEPTID" baseTableName="IBZEMP" constraintName="DER1N_IBZEMP_IBZDEPT_MDEPTID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DEPTID" referencedTableName="IBZDEPT" validate="true"/> <addForeignKeyConstraint baseColumnNames="MDEPTID" baseTableName="IBZEMP" constraintName="DER1N_IBZEMP_IBZDEPT_MDEPTID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DEPTID" referencedTableName="IBZDEPT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_A_5d9d78509" id="fk-ibzemp-632-7"> <changeSet author="a_A_5d9d78509" id="fk-ibzemp-634-7">
<addForeignKeyConstraint baseColumnNames="ORGID" baseTableName="IBZEMP" constraintName="DER1N_IBZEMP_IBZORG_ORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/> <addForeignKeyConstraint baseColumnNames="ORGID" baseTableName="IBZEMP" constraintName="DER1N_IBZEMP_IBZORG_ORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[IBZDEPTMEMBER]外键关系 --> <!--输出实体[IBZDEPTMEMBER]外键关系 -->
...@@ -179,10 +179,10 @@ ...@@ -179,10 +179,10 @@
<addForeignKeyConstraint baseColumnNames="USERID" baseTableName="IBZDEPTMEMBER" constraintName="DER1N_IBZDEPTMEMBER_IBZEMP_USE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="USERID" referencedTableName="IBZEMP" validate="true"/> <addForeignKeyConstraint baseColumnNames="USERID" baseTableName="IBZDEPTMEMBER" constraintName="DER1N_IBZDEPTMEMBER_IBZEMP_USE" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="USERID" referencedTableName="IBZEMP" validate="true"/>
</changeSet> </changeSet>
<!--输出实体[IBZDEPT]外键关系 --> <!--输出实体[IBZDEPT]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-ibzdept-690-10"> <changeSet author="a_A_5d9d78509" id="fk-ibzdept-692-10">
<addForeignKeyConstraint baseColumnNames="PDEPTID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZDEPT_PDEPTID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DEPTID" referencedTableName="IBZDEPT" validate="true"/> <addForeignKeyConstraint baseColumnNames="PDEPTID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZDEPT_PDEPTID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="DEPTID" referencedTableName="IBZDEPT" validate="true"/>
</changeSet> </changeSet>
<changeSet author="a_A_5d9d78509" id="fk-ibzdept-690-11"> <changeSet author="a_A_5d9d78509" id="fk-ibzdept-692-11">
<addForeignKeyConstraint baseColumnNames="ORGID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZORG_ORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/> <addForeignKeyConstraint baseColumnNames="ORGID" baseTableName="IBZDEPT" constraintName="DER1N_IBZDEPT_IBZORG_ORGID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ORGID" referencedTableName="IBZORG" validate="true"/>
</changeSet> </changeSet>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册