提交 91cd4b68 编写于 作者: ibizdev's avatar ibizdev

jackwang 部署微服务应用

上级 5014ba0b
...@@ -7,6 +7,86 @@ ...@@ -7,6 +7,86 @@
"appdedataset":"", "appdedataset":"",
"items": [] "items": []
}, },
{
"srfkey": "CL_HR_0009",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "IDCARD",
"label": "身份证",
"text": "身份证",
"data":"",
"codename":"Idcard",
"value": "IDCARD",
"disabled": false,
"default": false
}
, {
"id": "PASSPORT",
"label": "护照",
"text": "护照",
"data":"",
"codename":"Passport",
"value": "PASSPORT",
"disabled": false,
"default": false
}
, {
"id": "OTHER",
"label": "其他",
"text": "其他",
"data":"",
"codename":"Other",
"value": "OTHER",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "CL_HR_0012",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "FARM",
"label": "农业户口",
"text": "农业户口",
"data":"",
"codename":"Farm",
"value": "FARM",
"disabled": false,
"default": false
}
, {
"id": "NONFARM",
"label": "非农业户口",
"text": "非农业户口",
"data":"",
"codename":"Nonfarm",
"value": "NONFARM",
"disabled": false,
"default": false
}
, {
"id": "OTHER",
"label": "其他",
"text": "其他",
"data":"",
"codename":"Other",
"value": "OTHER",
"disabled": false,
"default": false
}
]
},
{ {
"srfkey": "YesNo", "srfkey": "YesNo",
"emptytext": "未定义", "emptytext": "未定义",
...@@ -37,39 +117,61 @@ ...@@ -37,39 +117,61 @@
] ]
}, },
{ {
"srfkey": "CL_HR_0005", "srfkey": "CL_HR_0011",
"emptytext": "未定义", "emptytext": "未定义",
"codelisttype":"static", "codelisttype":"static",
"items": [ "items": [
{ {
"id": "HIGH", "id": "SINGLE",
"label": "", "label": "未婚",
"text": "", "text": "未婚",
"data":"", "data":"",
"codename":"High", "codename":"Single",
"value": "HIGH", "value": "SINGLE",
"disabled": false, "disabled": false,
"default": false "default": false
} }
, { , {
"id": "MID", "id": "MARRIED",
"label": "", "label": "已婚",
"text": "", "text": "已婚",
"data":"", "data":"",
"codename":"Mid", "codename":"Married",
"value": "MID", "value": "MARRIED",
"disabled": false, "disabled": false,
"default": false "default": false
} }
, { , {
"id": "LOW", "id": "WIDOWED",
"label": "", "label": "丧偶",
"text": "", "text": "丧偶",
"data":"", "data":"",
"codename":"Low", "codename":"Widowed",
"value": "LOW", "value": "WIDOWED",
"disabled": false,
"default": false
}
, {
"id": "DIVORCED",
"label": "离异",
"text": "离异",
"data":"",
"codename":"Divorced",
"value": "DIVORCED",
"disabled": false,
"default": false
}
, {
"id": "OTHER",
"label": "其他",
"text": "其他",
"data":"",
"codename":"Other",
"value": "OTHER",
"disabled": false, "disabled": false,
"default": false "default": false
...@@ -156,6 +258,246 @@ ...@@ -156,6 +258,246 @@
} }
] ]
}, },
{
"srfkey": "CL_HR_0003",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "TEL",
"label": "电话",
"text": "电话",
"data":"",
"codename":"Tel",
"value": "TEL",
"disabled": false,
"default": false
}
, {
"id": "EMAIL",
"label": "电子邮件地址",
"text": "电子邮件地址",
"data":"",
"codename":"Email",
"value": "EMAIL",
"disabled": false,
"default": false
}
, {
"id": "WECHAT",
"label": "微信",
"text": "微信",
"data":"",
"codename":"Wechat",
"value": "WECHAT",
"disabled": false,
"default": false
}
, {
"id": "QQ",
"label": "QQ",
"text": "QQ",
"data":"",
"codename":"Qq",
"value": "QQ",
"disabled": false,
"default": false
}
, {
"id": "FAX",
"label": "传真",
"text": "传真",
"data":"",
"codename":"Fax",
"value": "FAX",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "OrganizationType",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "LEGAL",
"label": "法人",
"text": "法人",
"data":"",
"codename":"Legal",
"value": "LEGAL",
"disabled": false,
"default": false
}
, {
"id": "OPERATIONUNIT",
"label": "运营单位",
"text": "运营单位",
"data":"",
"codename":"Operationunit",
"value": "OPERATIONUNIT",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "CL_HR_0010",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "MALE",
"label": "男",
"text": "男",
"data":"",
"codename":"Male",
"value": "MALE",
"disabled": false,
"default": false
}
, {
"id": "FEMALE",
"label": "女",
"text": "女",
"data":"",
"codename":"Female",
"value": "FEMALE",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "CL_HR_0007",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "A",
"label": "A",
"text": "A",
"data":"",
"codename":"A",
"value": "A",
"disabled": false,
"default": false
}
, {
"id": "B",
"label": "B",
"text": "B",
"data":"",
"codename":"B",
"value": "B",
"disabled": false,
"default": false
}
, {
"id": "AB",
"label": "AB",
"text": "AB",
"data":"",
"codename":"Ab",
"value": "AB",
"disabled": false,
"default": false
}
, {
"id": "O",
"label": "O",
"text": "O",
"data":"",
"codename":"O",
"value": "O",
"disabled": false,
"default": false
}
, {
"id": "其他",
"label": "其他",
"text": "其他",
"data":"",
"codename":"Item_5",
"value": "其他",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "CL_HR_0005",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "HIGH",
"label": "高",
"text": "高",
"data":"",
"codename":"High",
"value": "HIGH",
"disabled": false,
"default": false
}
, {
"id": "MID",
"label": "中",
"text": "中",
"data":"",
"codename":"Mid",
"value": "MID",
"disabled": false,
"default": false
}
, {
"id": "LOW",
"label": "低",
"text": "低",
"data":"",
"codename":"Low",
"value": "LOW",
"disabled": false,
"default": false
}
]
},
{
"srfkey": "CL_HR_0008",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "汉",
"label": "汉",
"text": "汉",
"data":"",
"codename":"Item_1",
"value": "汉",
"disabled": false,
"default": false
}
]
},
{ {
"srfkey": "CL_HR_0002", "srfkey": "CL_HR_0002",
"emptytext": "未定义", "emptytext": "未定义",
...@@ -329,61 +671,69 @@ ...@@ -329,61 +671,69 @@
] ]
}, },
{ {
"srfkey": "CL_HR_0003", "srfkey": "CL_HR_0016",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
"srfkey": "CL_HR_0015",
"emptytext": "未定义", "emptytext": "未定义",
"codelisttype":"static", "codelisttype":"static",
"items": [ "items": [
{ {
"id": "TEL", "id": "10",
"label": "电话", "label": "校园招聘",
"text": "电话", "text": "校园招聘",
"data":"", "data":"",
"codename":"Tel", "codename":"Item_10",
"value": "TEL", "value": "10",
"disabled": false, "disabled": false,
"default": false "default": false
} }
, { , {
"id": "EMAIL", "id": "20",
"label": "电子邮件地址", "label": "社会招聘",
"text": "电子邮件地址", "text": "社会招聘",
"data":"", "data":"",
"codename":"Email", "codename":"Item_20",
"value": "EMAIL", "value": "20",
"disabled": false, "disabled": false,
"default": false "default": false
} }
, { , {
"id": "WECHAT", "id": "40",
"label": "微信", "label": "返聘",
"text": "微信", "text": "返聘",
"data":"", "data":"",
"codename":"Wechat", "codename":"Item_40",
"value": "WECHAT", "value": "40",
"disabled": false, "disabled": false,
"default": false "default": false
} }
, { , {
"id": "QQ", "id": "50",
"label": "QQ", "label": "军人安置",
"text": "QQ", "text": "军人安置",
"data":"", "data":"",
"codename":"Qq", "codename":"Item_50",
"value": "QQ", "value": "50",
"disabled": false, "disabled": false,
"default": false "default": false
} }
, { , {
"id": "FAX", "id": "90",
"label": "传真", "label": "其他",
"text": "传真", "text": "其他",
"data":"", "data":"",
"codename":"Fax", "codename":"Item_90",
"value": "FAX", "value": "90",
"disabled": false, "disabled": false,
"default": false "default": false
...@@ -391,28 +741,149 @@ ...@@ -391,28 +741,149 @@
] ]
}, },
{ {
"srfkey": "OrganizationType", "srfkey": "CL_HR_0013",
"emptytext": "未定义", "emptytext": "未定义",
"codelisttype":"static", "codelisttype":"static",
"items": [ "items": [
{ {
"id": "LEGAL", "id": "10",
"label": "法人", "label": "中共党员",
"text": "法人", "text": "中共党员",
"data":"", "data":"",
"codename":"Legal", "codename":"Item_10",
"value": "LEGAL", "value": "10",
"disabled": false, "disabled": false,
"default": false "default": false
} }
, { , {
"id": "OPERATIONUNIT", "id": "30",
"label": "运营单位", "label": "共青团员",
"text": "运营单位", "text": "共青团员",
"data":"", "data":"",
"codename":"Operationunit", "codename":"Item_30",
"value": "OPERATIONUNIT", "value": "30",
"disabled": false,
"default": false
}
, {
"id": "40",
"label": "群众",
"text": "群众",
"data":"",
"codename":"Item_40",
"value": "40",
"disabled": false,
"default": false
}
, {
"id": "50",
"label": "民进会员",
"text": "民进会员",
"data":"",
"codename":"Item_50",
"value": "50",
"disabled": false,
"default": false
}
, {
"id": "60",
"label": "民革会员",
"text": "民革会员",
"data":"",
"codename":"Item_60",
"value": "60",
"disabled": false,
"default": false
}
, {
"id": "70",
"label": "民盟会员",
"text": "民盟会员",
"data":"",
"codename":"Item_70",
"value": "70",
"disabled": false,
"default": false
}
, {
"id": "80",
"label": "民建会员",
"text": "民建会员",
"data":"",
"codename":"Item_80",
"value": "80",
"disabled": false,
"default": false
}
, {
"id": "90",
"label": "农工党党员",
"text": "农工党党员",
"data":"",
"codename":"Item_90",
"value": "90",
"disabled": false,
"default": false
}
, {
"id": "100",
"label": "致公党党员",
"text": "致公党党员",
"data":"",
"codename":"Item_100",
"value": "100",
"disabled": false,
"default": false
}
, {
"id": "110",
"label": "台盟盟员",
"text": "台盟盟员",
"data":"",
"codename":"Item_110",
"value": "110",
"disabled": false,
"default": false
}
, {
"id": "120",
"label": "九三学社社员",
"text": "九三学社社员",
"data":"",
"codename":"Item_120",
"value": "120",
"disabled": false,
"default": false
}
, {
"id": "130",
"label": "无党派民主人士",
"text": "无党派民主人士",
"data":"",
"codename":"Item_130",
"value": "130",
"disabled": false,
"default": false
}
, {
"id": "140",
"label": "其他",
"text": "其他",
"data":"",
"codename":"Item_140",
"value": "140",
"disabled": false, "disabled": false,
"default": false "default": false
......
...@@ -169,6 +169,16 @@ ...@@ -169,6 +169,16 @@
"viewtag": "26838780ace211d1714a2887e9039888", "viewtag": "26838780ace211d1714a2887e9039888",
"memo": "" "memo": ""
}, },
"hremployeeeditview2": {
"title": "员工编辑视图",
"caption": "员工",
"viewtype": "DEEDITVIEW2",
"viewmodule": "HumanResource",
"viewname": "HREmployeeEditView2",
"viewfilename": "hremployee-edit-view2",
"viewtag": "2845c606caf1ce6ad990cfc0adef801b",
"memo": ""
},
"hroperationunitgridview": { "hroperationunitgridview": {
"title": "运营单位", "title": "运营单位",
"caption": "运营单位", "caption": "运营单位",
......
/**
* 代码表--员工状态
*
* @export
* @class CL_HR_0016
*/
export default class CL_HR_0016 {
/**
* 是否启用缓存
*
* @type boolean
* @memberof CL_HR_0016
*/
public isEnableCache:boolean = true;
/**
* 过期时间
*
* @type any
* @memberof CL_HR_0016
*/
public expirationTime:any;
/**
* 缓存超长时长
*
* @type any
* @memberof CL_HR_0016
*/
public cacheTimeout:any = -1;
/**
* 代码表模型对象
*
* @type any
* @memberof CL_HR_0016
*/
public codelistModel:any = {
codelistid:"CL_HR_0016"
};
/**
* 自定义参数集合
*
* @type any
* @memberof CL_HR_0016
*/
public userParamNames:any ={
}
/**
* 查询参数集合
*
* @type any
* @memberof CL_HR_0016
*/
public queryParamNames:any ={
}
/**
* 获取数据项
*
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof CL_HR_0016
*/
public getItems(data: any={}, isloading?: boolean): Promise<any> {
return Promise.reject([]);
}
/**
* 处理查询参数
* @param data 传入data
* @memberof CL_HR_0016
*/
public handleQueryParam(data:any){
let tempData:any = data?JSON.parse(JSON.stringify(data)):{};
if(this.userParamNames && Object.keys(this.userParamNames).length >0){
Object.keys(this.userParamNames).forEach((name: string) => {
if (!name) {
return;
}
let value: string | null = this.userParamNames[name];
if (value && value.startsWith('%') && value.endsWith('%')) {
const key = value.substring(1, value.length - 1);
if (this.codelistModel && this.codelistModel.hasOwnProperty(key)) {
value = (this.codelistModel[key] !== null && this.codelistModel[key] !== undefined) ? this.codelistModel[key] : null;
} else {
value = null;
}
}
Object.assign(tempData, { [name]: value });
});
}
Object.assign(tempData,{page: 0, size: 1000});
if(this.queryParamNames && Object.keys(this.queryParamNames).length > 0){
Object.assign(tempData,this.queryParamNames);
}
return tempData;
}
}
...@@ -55,7 +55,7 @@ export interface HREmployee { ...@@ -55,7 +55,7 @@ export interface HREmployee {
createdate?: any; createdate?: any;
/** /**
* 组织 * 组织ID
* *
* @returns {*} * @returns {*}
* @memberof HREmployee * @memberof HREmployee
...@@ -101,4 +101,220 @@ export interface HREmployee { ...@@ -101,4 +101,220 @@ export interface HREmployee {
* @memberof HREmployee * @memberof HREmployee
*/ */
age?: any; age?: any;
/**
* 单位
*
* @returns {*}
* @memberof HREmployee
*/
organizationname?: any;
/**
* 性别
*
* @returns {*}
* @memberof HREmployee
*/
sex?: any;
/**
* 血型
*
* @returns {*}
* @memberof HREmployee
*/
bloodtype?: any;
/**
* 固定电话
*
* @returns {*}
* @memberof HREmployee
*/
telephone?: any;
/**
* 移动电话
*
* @returns {*}
* @memberof HREmployee
*/
mobile?: any;
/**
* 电子邮箱
*
* @returns {*}
* @memberof HREmployee
*/
email?: any;
/**
* 婚姻状况
*
* @returns {*}
* @memberof HREmployee
*/
marriage?: any;
/**
* 民族
*
* @returns {*}
* @memberof HREmployee
*/
nation?: any;
/**
* 户口类型
*
* @returns {*}
* @memberof HREmployee
*/
nativetype?: any;
/**
* 户籍地址
*
* @returns {*}
* @memberof HREmployee
*/
nativeaddress?: any;
/**
* 出生地
*
* @returns {*}
* @memberof HREmployee
*/
birthaddress?: any;
/**
* 通讯地址
*
* @returns {*}
* @memberof HREmployee
*/
postaladdress?: any;
/**
* 爱好特长
*
* @returns {*}
* @memberof HREmployee
*/
hobby?: any;
/**
* 健康状况
*
* @returns {*}
* @memberof HREmployee
*/
health?: any;
/**
* 政治面貌
*
* @returns {*}
* @memberof HREmployee
*/
political?: any;
/**
* 参加工作时间
*
* @returns {*}
* @memberof HREmployee
*/
startworktime?: any;
/**
* 到本单位时间
*
* @returns {*}
* @memberof HREmployee
*/
startorgtime?: any;
/**
* 照片
*
* @returns {*}
* @memberof HREmployee
*/
photo?: any;
/**
* 第一学历
*
* @returns {*}
* @memberof HREmployee
*/
firstdegree?: any;
/**
* 最高学历
*
* @returns {*}
* @memberof HREmployee
*/
highestdegree?: any;
/**
* 技术职称
*
* @returns {*}
* @memberof HREmployee
*/
technicaltitle?: any;
/**
* 执业证书
*
* @returns {*}
* @memberof HREmployee
*/
certificates?: any;
/**
* 入职渠道
*
* @returns {*}
* @memberof HREmployee
*/
entrytype?: any;
/**
* 入党时间
*
* @returns {*}
* @memberof HREmployee
*/
politicaltime?: any;
/**
* 员工状态
*
* @returns {*}
* @memberof HREmployee
*/
empstate?: any;
/**
* 在岗状态
*
* @returns {*}
* @memberof HREmployee
*/
jobstate?: any;
/**
* 籍贯
*
* @returns {*}
* @memberof HREmployee
*/
nativeplace?: any;
} }
\ No newline at end of file
...@@ -2,15 +2,29 @@ export default { ...@@ -2,15 +2,29 @@ export default {
SysOperator: { SysOperator: {
"empty": "", "empty": "",
}, },
CL_HR_0009: {
"IDCARD": "身份证",
"PASSPORT": "护照",
"OTHER": "其他",
"empty": ""
},
CL_HR_0012: {
"FARM": "农业户口",
"NONFARM": "非农业户口",
"OTHER": "其他",
"empty": ""
},
YesNo: { YesNo: {
"1": "是", "1": "是",
"0": "否", "0": "否",
"empty": "" "empty": ""
}, },
CL_HR_0005: { CL_HR_0011: {
"HIGH": "高", "SINGLE": "未婚",
"MID": "中", "MARRIED": "已婚",
"LOW": "低", "WIDOWED": "丧偶",
"DIVORCED": "离异",
"OTHER": "其他",
"empty": "" "empty": ""
}, },
CL_HR_0004: { CL_HR_0004: {
...@@ -25,6 +39,42 @@ export default { ...@@ -25,6 +39,42 @@ export default {
"COMMERCIAL": "商业渠道", "COMMERCIAL": "商业渠道",
"empty": "" "empty": ""
}, },
CL_HR_0003: {
"TEL": "电话",
"EMAIL": "电子邮件地址",
"WECHAT": "微信",
"QQ": "QQ",
"FAX": "传真",
"empty": ""
},
OrganizationType: {
"LEGAL": "法人",
"OPERATIONUNIT": "运营单位",
"empty": ""
},
CL_HR_0010: {
"MALE": "男",
"FEMALE": "女",
"empty": ""
},
CL_HR_0007: {
"A": "A",
"B": "B",
"AB": "AB",
"O": "O",
"其他": "其他",
"empty": ""
},
CL_HR_0005: {
"HIGH": "高",
"MID": "中",
"LOW": "低",
"empty": ""
},
CL_HR_0008: {
"汉": "汉",
"empty": ""
},
CL_HR_0002: { CL_HR_0002: {
"BUSINESS": "业务", "BUSINESS": "业务",
"HOME": "家庭住址", "HOME": "家庭住址",
...@@ -43,17 +93,31 @@ export default { ...@@ -43,17 +93,31 @@ export default {
"OTHER": "其他", "OTHER": "其他",
"empty": "" "empty": ""
}, },
CL_HR_0003: { CL_HR_0016: {
"TEL": "电话", "empty": "",
"EMAIL": "电子邮件地址", },
"WECHAT": "微信", CL_HR_0015: {
"QQ": "QQ", "10": "校园招聘",
"FAX": "传真", "20": "社会招聘",
"40": "返聘",
"50": "军人安置",
"90": "其他",
"empty": "" "empty": ""
}, },
OrganizationType: { CL_HR_0013: {
"LEGAL": "法人", "10": "中共党员",
"OPERATIONUNIT": "运营单位", "30": "共青团员",
"40": "群众",
"50": "民进会员",
"60": "民革会员",
"70": "民盟会员",
"80": "民建会员",
"90": "农工党党员",
"100": "致公党党员",
"110": "台盟盟员",
"120": "九三学社社员",
"130": "无党派民主人士",
"140": "其他",
"empty": "" "empty": ""
}, },
}; };
\ No newline at end of file
...@@ -2,15 +2,29 @@ export default { ...@@ -2,15 +2,29 @@ export default {
SysOperator: { SysOperator: {
"empty": "", "empty": "",
}, },
CL_HR_0009: {
"IDCARD": "身份证",
"PASSPORT": "护照",
"OTHER": "其他",
"empty": "",
},
CL_HR_0012: {
"FARM": "农业户口",
"NONFARM": "非农业户口",
"OTHER": "其他",
"empty": "",
},
YesNo: { YesNo: {
"1": "是", "1": "是",
"0": "否", "0": "否",
"empty": "", "empty": "",
}, },
CL_HR_0005: { CL_HR_0011: {
"HIGH": "高", "SINGLE": "未婚",
"MID": "中", "MARRIED": "已婚",
"LOW": "低", "WIDOWED": "丧偶",
"DIVORCED": "离异",
"OTHER": "其他",
"empty": "", "empty": "",
}, },
CL_HR_0004: { CL_HR_0004: {
...@@ -25,6 +39,42 @@ export default { ...@@ -25,6 +39,42 @@ export default {
"COMMERCIAL": "商业渠道", "COMMERCIAL": "商业渠道",
"empty": "", "empty": "",
}, },
CL_HR_0003: {
"TEL": "电话",
"EMAIL": "电子邮件地址",
"WECHAT": "微信",
"QQ": "QQ",
"FAX": "传真",
"empty": "",
},
OrganizationType: {
"LEGAL": "法人",
"OPERATIONUNIT": "运营单位",
"empty": "",
},
CL_HR_0010: {
"MALE": "男",
"FEMALE": "女",
"empty": "",
},
CL_HR_0007: {
"A": "A",
"B": "B",
"AB": "AB",
"O": "O",
"其他": "其他",
"empty": "",
},
CL_HR_0005: {
"HIGH": "高",
"MID": "中",
"LOW": "低",
"empty": "",
},
CL_HR_0008: {
"汉": "汉",
"empty": "",
},
CL_HR_0002: { CL_HR_0002: {
"BUSINESS": "业务", "BUSINESS": "业务",
"HOME": "家庭住址", "HOME": "家庭住址",
...@@ -43,17 +93,31 @@ export default { ...@@ -43,17 +93,31 @@ export default {
"OTHER": "其他", "OTHER": "其他",
"empty": "", "empty": "",
}, },
CL_HR_0003: { CL_HR_0016: {
"TEL": "电话",
"EMAIL": "电子邮件地址",
"WECHAT": "微信",
"QQ": "QQ",
"FAX": "传真",
"empty": "", "empty": "",
}, },
OrganizationType: { CL_HR_0015: {
"LEGAL": "法人", "10": "校园招聘",
"OPERATIONUNIT": "运营单位", "20": "社会招聘",
"40": "返聘",
"50": "军人安置",
"90": "其他",
"empty": "",
},
CL_HR_0013: {
"10": "中共党员",
"30": "共青团员",
"40": "群众",
"50": "民进会员",
"60": "民革会员",
"70": "民盟会员",
"80": "民建会员",
"90": "农工党党员",
"100": "致公党党员",
"110": "台盟盟员",
"120": "九三学社社员",
"130": "无党派民主人士",
"140": "其他",
"empty": "", "empty": "",
}, },
}; };
\ No newline at end of file
...@@ -69,6 +69,40 @@ export default { ...@@ -69,6 +69,40 @@ export default {
uiactions: { uiactions: {
}, },
}, },
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "Save", caption: "Save",
...@@ -115,38 +149,4 @@ export default { ...@@ -115,38 +149,4 @@ export default {
tip: "Help", tip: "Help",
}, },
}, },
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
}; };
\ No newline at end of file
...@@ -68,6 +68,40 @@ export default { ...@@ -68,6 +68,40 @@ export default {
uiactions: { uiactions: {
}, },
}, },
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "保存", caption: "保存",
...@@ -114,38 +148,4 @@ export default { ...@@ -114,38 +148,4 @@ export default {
tip: "帮助", tip: "帮助",
}, },
}, },
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "新建",
tip: "新建",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
}; };
\ No newline at end of file
...@@ -7,14 +7,45 @@ export default { ...@@ -7,14 +7,45 @@ export default {
employeeid: "员工标识", employeeid: "员工标识",
updatedate: "更新时间", updatedate: "更新时间",
createdate: "建立时间", createdate: "建立时间",
organizationid: "组织", organizationid: "组织ID",
employeecode: "员工编号", employeecode: "员工编号",
certtype: "证件类型", certtype: "证件类型",
certnum: "证件号码", certnum: "证件号码",
birthday: "出生日期", birthday: "出生日期",
age: "年龄", age: "年龄",
organizationname: "单位",
sex: "性别",
bloodtype: "血型",
telephone: "固定电话",
mobile: "移动电话",
email: "电子邮箱",
marriage: "婚姻状况",
nation: "民族",
nativetype: "户口类型",
nativeaddress: "户籍地址",
birthaddress: "出生地",
postaladdress: "通讯地址",
hobby: "爱好特长",
health: "健康状况",
political: "政治面貌",
startworktime: "参加工作时间",
startorgtime: "到本单位时间",
photo: "照片",
firstdegree: "第一学历",
highestdegree: "最高学历",
technicaltitle: "技术职称",
certificates: "执业证书",
entrytype: "入职渠道",
politicaltime: "入党时间",
empstate: "员工状态",
jobstate: "在岗状态",
nativeplace: "籍贯",
}, },
views: { views: {
editview2: {
caption: "员工",
title: "员工编辑视图",
},
pickupgridview: { pickupgridview: {
caption: "员工", caption: "员工",
title: "员工选择表格视图", title: "员工选择表格视图",
...@@ -34,10 +65,13 @@ export default { ...@@ -34,10 +65,13 @@ export default {
}, },
main_form: { main_form: {
details: { details: {
group1: "员工基本信息", grouppanel1: "分组面板",
grouppanel2: "first",
grouppanel4: "联系信息",
grouppanel3: "补充信息",
grouppanel5: "工作相关",
group1: "基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "员工标识", srfkey: "员工标识",
...@@ -46,6 +80,35 @@ export default { ...@@ -46,6 +80,35 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
employeename: "员工姓名",
employeecode: "员工编号",
empstate: "员工状态",
certtype: "证件类型",
certnum: "证件号码",
sex: "性别",
birthday: "出生日期",
age: "年龄",
nation: "民族",
organizationname: "单位",
photo: "照片",
mobile: "移动电话",
telephone: "固定电话",
email: "电子邮箱",
postaladdress: "通讯地址",
nativetype: "户口类型",
nativeplace: "籍贯",
marriage: "婚姻状况",
bloodtype: "血型",
nativeaddress: "户籍地址",
birthaddress: "出生地",
hobby: "爱好特长",
health: "健康状况",
political: "政治面貌",
politicaltime: "入党时间",
entrytype: "入职渠道",
startworktime: "参加工作时间",
startorgtime: "到本单位时间",
organizationid: "组织ID",
employeeid: "员工标识", employeeid: "员工标识",
}, },
uiactions: { uiactions: {
...@@ -69,6 +132,52 @@ export default { ...@@ -69,6 +132,52 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editview2toolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "Help",
tip: "Help",
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "New", caption: "New",
......
...@@ -6,14 +6,45 @@ export default { ...@@ -6,14 +6,45 @@ export default {
employeeid: "员工标识", employeeid: "员工标识",
updatedate: "更新时间", updatedate: "更新时间",
createdate: "建立时间", createdate: "建立时间",
organizationid: "组织", organizationid: "组织ID",
employeecode: "员工编号", employeecode: "员工编号",
certtype: "证件类型", certtype: "证件类型",
certnum: "证件号码", certnum: "证件号码",
birthday: "出生日期", birthday: "出生日期",
age: "年龄", age: "年龄",
organizationname: "单位",
sex: "性别",
bloodtype: "血型",
telephone: "固定电话",
mobile: "移动电话",
email: "电子邮箱",
marriage: "婚姻状况",
nation: "民族",
nativetype: "户口类型",
nativeaddress: "户籍地址",
birthaddress: "出生地",
postaladdress: "通讯地址",
hobby: "爱好特长",
health: "健康状况",
political: "政治面貌",
startworktime: "参加工作时间",
startorgtime: "到本单位时间",
photo: "照片",
firstdegree: "第一学历",
highestdegree: "最高学历",
technicaltitle: "技术职称",
certificates: "执业证书",
entrytype: "入职渠道",
politicaltime: "入党时间",
empstate: "员工状态",
jobstate: "在岗状态",
nativeplace: "籍贯",
}, },
views: { views: {
editview2: {
caption: "员工",
title: "员工编辑视图",
},
pickupgridview: { pickupgridview: {
caption: "员工", caption: "员工",
title: "员工选择表格视图", title: "员工选择表格视图",
...@@ -33,10 +64,13 @@ export default { ...@@ -33,10 +64,13 @@ export default {
}, },
main_form: { main_form: {
details: { details: {
group1: "员工基本信息", grouppanel1: "分组面板",
grouppanel2: "first",
grouppanel4: "联系信息",
grouppanel3: "补充信息",
grouppanel5: "工作相关",
group1: "基本信息",
formpage1: "基本信息", formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
srfkey: "员工标识", srfkey: "员工标识",
...@@ -45,6 +79,35 @@ export default { ...@@ -45,6 +79,35 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
employeename: "员工姓名",
employeecode: "员工编号",
empstate: "员工状态",
certtype: "证件类型",
certnum: "证件号码",
sex: "性别",
birthday: "出生日期",
age: "年龄",
nation: "民族",
organizationname: "单位",
photo: "照片",
mobile: "移动电话",
telephone: "固定电话",
email: "电子邮箱",
postaladdress: "通讯地址",
nativetype: "户口类型",
nativeplace: "籍贯",
marriage: "婚姻状况",
bloodtype: "血型",
nativeaddress: "户籍地址",
birthaddress: "出生地",
hobby: "爱好特长",
health: "健康状况",
political: "政治面貌",
politicaltime: "入党时间",
entrytype: "入职渠道",
startworktime: "参加工作时间",
startorgtime: "到本单位时间",
organizationid: "组织ID",
employeeid: "员工标识", employeeid: "员工标识",
}, },
uiactions: { uiactions: {
...@@ -68,6 +131,52 @@ export default { ...@@ -68,6 +131,52 @@ export default {
uiactions: { uiactions: {
}, },
}, },
editview2toolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
tbitem16: {
caption: "-",
tip: "",
},
tbitem22: {
caption: "帮助",
tip: "帮助",
},
},
gridviewtoolbar_toolbar: { gridviewtoolbar_toolbar: {
tbitem3: { tbitem3: {
caption: "新建", caption: "新建",
......
...@@ -15,6 +15,80 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -15,6 +15,80 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"appdedataset":"", "appdedataset":"",
"items": [] "items": []
}, },
{
srfkey: "CL_HR_0009",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "IDCARD",
label: "身份证",
text: "身份证",
"data":"",
"codename":"Idcard",
value: "IDCARD",
disabled: false,
},
{
id: "PASSPORT",
label: "护照",
text: "护照",
"data":"",
"codename":"Passport",
value: "PASSPORT",
disabled: false,
},
{
id: "OTHER",
label: "其他",
text: "其他",
"data":"",
"codename":"Other",
value: "OTHER",
disabled: false,
},
]
},
{
srfkey: "CL_HR_0012",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "FARM",
label: "农业户口",
text: "农业户口",
"data":"",
"codename":"Farm",
value: "FARM",
disabled: false,
},
{
id: "NONFARM",
label: "非农业户口",
text: "非农业户口",
"data":"",
"codename":"Nonfarm",
value: "NONFARM",
disabled: false,
},
{
id: "OTHER",
label: "其他",
text: "其他",
"data":"",
"codename":"Other",
value: "OTHER",
disabled: false,
},
]
},
{ {
srfkey: "YesNo", srfkey: "YesNo",
emptytext: "未定义", emptytext: "未定义",
...@@ -43,37 +117,57 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -43,37 +117,57 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
] ]
}, },
{ {
srfkey: "CL_HR_0005", srfkey: "CL_HR_0011",
emptytext: "未定义", emptytext: "未定义",
"codelisttype":"static", "codelisttype":"static",
items: [ items: [
{ {
id: "HIGH", id: "SINGLE",
label: "", label: "未婚",
text: "", text: "未婚",
"data":"", "data":"",
"codename":"High", "codename":"Single",
value: "HIGH", value: "SINGLE",
disabled: false, disabled: false,
}, },
{ {
id: "MID", id: "MARRIED",
label: "", label: "已婚",
text: "", text: "已婚",
"data":"", "data":"",
"codename":"Mid", "codename":"Married",
value: "MID", value: "MARRIED",
disabled: false, disabled: false,
}, },
{ {
id: "LOW", id: "WIDOWED",
label: "", label: "丧偶",
text: "", text: "丧偶",
"data":"", "data":"",
"codename":"Low", "codename":"Widowed",
value: "LOW", value: "WIDOWED",
disabled: false,
},
{
id: "DIVORCED",
label: "离异",
text: "离异",
"data":"",
"codename":"Divorced",
value: "DIVORCED",
disabled: false,
},
{
id: "OTHER",
label: "其他",
text: "其他",
"data":"",
"codename":"Other",
value: "OTHER",
disabled: false, disabled: false,
}, },
...@@ -153,6 +247,228 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -153,6 +247,228 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
}, },
] ]
}, },
{
srfkey: "CL_HR_0003",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "TEL",
label: "电话",
text: "电话",
"data":"",
"codename":"Tel",
value: "TEL",
disabled: false,
},
{
id: "EMAIL",
label: "电子邮件地址",
text: "电子邮件地址",
"data":"",
"codename":"Email",
value: "EMAIL",
disabled: false,
},
{
id: "WECHAT",
label: "微信",
text: "微信",
"data":"",
"codename":"Wechat",
value: "WECHAT",
disabled: false,
},
{
id: "QQ",
label: "QQ",
text: "QQ",
"data":"",
"codename":"Qq",
value: "QQ",
disabled: false,
},
{
id: "FAX",
label: "传真",
text: "传真",
"data":"",
"codename":"Fax",
value: "FAX",
disabled: false,
},
]
},
{
srfkey: "OrganizationType",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "LEGAL",
label: "法人",
text: "法人",
"data":"",
"codename":"Legal",
value: "LEGAL",
disabled: false,
},
{
id: "OPERATIONUNIT",
label: "运营单位",
text: "运营单位",
"data":"",
"codename":"Operationunit",
value: "OPERATIONUNIT",
disabled: false,
},
]
},
{
srfkey: "CL_HR_0010",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "MALE",
label: "男",
text: "男",
"data":"",
"codename":"Male",
value: "MALE",
disabled: false,
},
{
id: "FEMALE",
label: "女",
text: "女",
"data":"",
"codename":"Female",
value: "FEMALE",
disabled: false,
},
]
},
{
srfkey: "CL_HR_0007",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "A",
label: "A",
text: "A",
"data":"",
"codename":"A",
value: "A",
disabled: false,
},
{
id: "B",
label: "B",
text: "B",
"data":"",
"codename":"B",
value: "B",
disabled: false,
},
{
id: "AB",
label: "AB",
text: "AB",
"data":"",
"codename":"Ab",
value: "AB",
disabled: false,
},
{
id: "O",
label: "O",
text: "O",
"data":"",
"codename":"O",
value: "O",
disabled: false,
},
{
id: "其他",
label: "其他",
text: "其他",
"data":"",
"codename":"Item_5",
value: "其他",
disabled: false,
},
]
},
{
srfkey: "CL_HR_0005",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "HIGH",
label: "高",
text: "高",
"data":"",
"codename":"High",
value: "HIGH",
disabled: false,
},
{
id: "MID",
label: "中",
text: "中",
"data":"",
"codename":"Mid",
value: "MID",
disabled: false,
},
{
id: "LOW",
label: "低",
text: "低",
"data":"",
"codename":"Low",
value: "LOW",
disabled: false,
},
]
},
{
srfkey: "CL_HR_0008",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "汉",
label: "汉",
text: "汉",
"data":"",
"codename":"Item_1",
value: "汉",
disabled: false,
},
]
},
{ {
srfkey: "CL_HR_0002", srfkey: "CL_HR_0002",
emptytext: "未定义", emptytext: "未定义",
...@@ -311,84 +627,202 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -311,84 +627,202 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
] ]
}, },
{ {
srfkey: "CL_HR_0003", "srfkey": "CL_HR_0016",
"emptytext": "未定义",
"codelisttype":"dynamic",
"appdataentity":"",
"appdedataset":"",
"items": []
},
{
srfkey: "CL_HR_0015",
emptytext: "未定义", emptytext: "未定义",
"codelisttype":"static", "codelisttype":"static",
items: [ items: [
{ {
id: "TEL", id: "10",
label: "电话", label: "校园招聘",
text: "电话", text: "校园招聘",
"data":"", "data":"",
"codename":"Tel", "codename":"Item_10",
value: "TEL", value: "10",
disabled: false, disabled: false,
}, },
{ {
id: "EMAIL", id: "20",
label: "电子邮件地址", label: "社会招聘",
text: "电子邮件地址", text: "社会招聘",
"data":"", "data":"",
"codename":"Email", "codename":"Item_20",
value: "EMAIL", value: "20",
disabled: false, disabled: false,
}, },
{ {
id: "WECHAT", id: "40",
label: "微信", label: "返聘",
text: "微信", text: "返聘",
"data":"", "data":"",
"codename":"Wechat", "codename":"Item_40",
value: "WECHAT", value: "40",
disabled: false, disabled: false,
}, },
{ {
id: "QQ", id: "50",
label: "QQ", label: "军人安置",
text: "QQ", text: "军人安置",
"data":"", "data":"",
"codename":"Qq", "codename":"Item_50",
value: "QQ", value: "50",
disabled: false, disabled: false,
}, },
{ {
id: "FAX", id: "90",
label: "传真", label: "其他",
text: "传真", text: "其他",
"data":"", "data":"",
"codename":"Fax", "codename":"Item_90",
value: "FAX", value: "90",
disabled: false, disabled: false,
}, },
] ]
}, },
{ {
srfkey: "OrganizationType", srfkey: "CL_HR_0013",
emptytext: "未定义", emptytext: "未定义",
"codelisttype":"static", "codelisttype":"static",
items: [ items: [
{ {
id: "LEGAL", id: "10",
label: "法人", label: "中共党员",
text: "法人", text: "中共党员",
"data":"", "data":"",
"codename":"Legal", "codename":"Item_10",
value: "LEGAL", value: "10",
disabled: false, disabled: false,
}, },
{ {
id: "OPERATIONUNIT", id: "30",
label: "运营单位", label: "共青团员",
text: "运营单位", text: "共青团员",
"data":"", "data":"",
"codename":"Operationunit", "codename":"Item_30",
value: "OPERATIONUNIT", value: "30",
disabled: false,
},
{
id: "40",
label: "群众",
text: "群众",
"data":"",
"codename":"Item_40",
value: "40",
disabled: false,
},
{
id: "50",
label: "民进会员",
text: "民进会员",
"data":"",
"codename":"Item_50",
value: "50",
disabled: false,
},
{
id: "60",
label: "民革会员",
text: "民革会员",
"data":"",
"codename":"Item_60",
value: "60",
disabled: false,
},
{
id: "70",
label: "民盟会员",
text: "民盟会员",
"data":"",
"codename":"Item_70",
value: "70",
disabled: false,
},
{
id: "80",
label: "民建会员",
text: "民建会员",
"data":"",
"codename":"Item_80",
value: "80",
disabled: false,
},
{
id: "90",
label: "农工党党员",
text: "农工党党员",
"data":"",
"codename":"Item_90",
value: "90",
disabled: false,
},
{
id: "100",
label: "致公党党员",
text: "致公党党员",
"data":"",
"codename":"Item_100",
value: "100",
disabled: false,
},
{
id: "110",
label: "台盟盟员",
text: "台盟盟员",
"data":"",
"codename":"Item_110",
value: "110",
disabled: false,
},
{
id: "120",
label: "九三学社社员",
text: "九三学社社员",
"data":"",
"codename":"Item_120",
value: "120",
disabled: false,
},
{
id: "130",
label: "无党派民主人士",
text: "无党派民主人士",
"data":"",
"codename":"Item_130",
value: "130",
disabled: false,
},
{
id: "140",
label: "其他",
text: "其他",
"data":"",
"codename":"Item_140",
value: "140",
disabled: false, disabled: false,
}, },
......
...@@ -143,6 +143,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -143,6 +143,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "HROperationUnitV_002", "viewname": "HROperationUnitV_002",
"viewtag": "26838780ace211d1714a2887e9039888" "viewtag": "26838780ace211d1714a2887e9039888"
}, },
"hremployeeeditview2": {
"title": "员工编辑视图",
"caption": "员工",
"viewtype": "DEEDITVIEW2",
"viewmodule": "HumanResource",
"viewname": "HREmployeeEditView2",
"viewtag": "2845c606caf1ce6ad990cfc0adef801b"
},
"hroperationunitgridview": { "hroperationunitgridview": {
"title": "运营单位", "title": "运营单位",
"caption": "运营单位", "caption": "运营单位",
......
import { Subject } from 'rxjs';
import { EditView2Base } from '@/studio-core';
import HREmployeeService from '@/service/hremployee/hremployee-service';
import HREmployeeAuthService from '@/authservice/hremployee/hremployee-auth-service';
import EditView2Engine from '@engine/view/edit-view2-engine';
import HREmployeeUIService from '@/uiservice/hremployee/hremployee-ui-service';
/**
* 员工编辑视图视图基类
*
* @export
* @class HREmployeeEditView2Base
* @extends {EditView2Base}
*/
export class HREmployeeEditView2Base extends EditView2Base {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof HREmployeeEditView2Base
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof HREmployeeEditView2Base
*/
protected appDeKey: string = 'employeeid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof HREmployeeEditView2Base
*/
protected appDeMajor: string = 'employeename';
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof HREmployeeEditView2Base
*/
protected appEntityService: HREmployeeService = new HREmployeeService;
/**
* 实体权限服务对象
*
* @type HREmployeeUIService
* @memberof HREmployeeEditView2Base
*/
public appUIService: HREmployeeUIService = new HREmployeeUIService(this.$store);
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof HREmployeeEditView2Base
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof HREmployeeEditView2Base
*/
protected model: any = {
srfCaption: 'entities.hremployee.views.editview2.caption',
srfTitle: 'entities.hremployee.views.editview2.title',
srfSubTitle: 'entities.hremployee.views.editview2.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof HREmployeeEditView2Base
*/
protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_form: { name: 'form', type: 'FORM' },
view_drbar: { name: 'drbar', type: 'DRBAR' },
};
/**
* 工具栏模型
*
* @type {*}
* @memberof HREmployeeEditView2
*/
public toolBarModels: any = {
tbitem3: { name: 'tbitem3', caption: '保存', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存', iconcls: 'fa fa-save', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '', class: '' } },
tbitem4: { name: 'tbitem4', caption: '保存并新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并新建', iconcls: 'sx-tb-saveandnew', icon: '../sasrfex/images/default/icon_saveandnew.png', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndNew', target: '', class: '' } },
tbitem5: { name: 'tbitem5', caption: '保存并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '保存并关闭', iconcls: 'fa fa-power-off', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '', class: '' } },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem7: { name: 'tbitem7', caption: '删除并关闭', 'isShowCaption': true, 'isShowIcon': true, tooltip: '删除并关闭', iconcls: 'fa fa-remove', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'RemoveAndExit', target: 'SINGLEKEY', class: '' } },
tbitem8: { name: 'tbitem8', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem12: { name: 'tbitem12', caption: '新建', 'isShowCaption': true, 'isShowIcon': true, tooltip: '新建', iconcls: 'fa fa-file-text-o', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '', class: '' } },
tbitem13: { name: 'tbitem13', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem14: { name: 'tbitem14', caption: '拷贝', 'isShowCaption': true, 'isShowIcon': true, tooltip: '拷贝', iconcls: 'fa fa-copy', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY', class: '' } },
tbitem16: { name: 'tbitem16', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem22: { name: 'tbitem22', caption: '帮助', 'isShowCaption': true, 'isShowIcon': true, tooltip: '帮助', iconcls: 'fa fa-question', icon: '', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Help', target: '', class: '' } },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '2845c606caf1ce6ad990cfc0adef801b';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof HREmployeeEditView2Base
*/
public engine: EditView2Engine = new EditView2Engine();
/**
* 引擎初始化
*
* @public
* @memberof HREmployeeEditView2Base
*/
public engineInit(): void {
this.engine.init({
view: this,
drbar: this.$refs.drbar,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'hremployee',
majorPSDEField: 'employeename',
isLoadDefault: true,
});
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeEditView2Base
*/
public toolbar_click($event: any, $event2?: any): void {
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem4')) {
this.toolbar_tbitem4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem10')) {
this.toolbar_tbitem10_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem12')) {
this.toolbar_tbitem12_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem14')) {
this.toolbar_tbitem14_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem15')) {
this.toolbar_tbitem15_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem22')) {
this.toolbar_tbitem22_click(null, '', $event2);
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeEditView2Base
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeEditView2Base
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeEditView2Base
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* drbar 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeEditView2Base
*/
public drbar_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('drbar', 'selectionchange', $event);
}
/**
* drbar 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof HREmployeeEditView2Base
*/
public drbar_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('drbar', 'load', $event);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Save(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndNew(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem7_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.RemoveAndExit(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem10_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.ViewWFStep(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem12_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.New(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem14_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Print(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem22_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.form;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Help(datas, contextJO,paramJO, $event, xData,this,"HREmployee");
}
/**
* 保存
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
// 界面行为容器对象 _this
const _this: any = this;
if (xData && xData.save instanceof Function) {
xData.save().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
_this.$emit('viewdataschange', [{ ...response.data }]);
});
} else if (_this.save && _this.save instanceof Function) {
_this.save();
}
}
/**
* 保存并新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public SaveAndNew(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.saveAndNew instanceof Function)) {
return;
}
xData.saveAndNew().then((response: any) => {
if (!response || response.status !== 200) {
_this.$emit('viewdataschange', JSON.stringify({status:'error',action:'saveAndNew'}));
return;
}
_this.$emit('viewdataschange', JSON.stringify({status:'success',action:'saveAndNew',data:response.data}));
if (xData.autoLoad instanceof Function) {
xData.autoLoad();
}
});
}
/**
* 保存并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.saveAndExit instanceof Function) {
xData.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.saveAndExit && _this.saveAndExit instanceof Function) {
_this.saveAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 删除并关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public RemoveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.removeAndExit instanceof Function) {
xData.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
} else if (_this.removeAndExit && _this.removeAndExit instanceof Function) {
_this.removeAndExit().then((response: any) => {
if (!response || response.status !== 200) {
return;
}
if(window.parent){
window.parent.postMessage([{ ...response.data }],'*');
}
});
}
}
/**
* 开始流程
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public SaveAndStart(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.wfstart instanceof Function)) {
return;
}
xData.wfstart(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if(window.parent){
window.parent.postMessage({ ..._data },'*');
}
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
}else if (this.$tabPageExp) {
this.$tabPageExp.onClose(this.$route.fullPath);
}
});
}
/**
* 当前流程步骤
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public ViewWFStep(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.wfsubmit instanceof Function)) {
return;
}
xData.wfsubmit(args).then((response: any) => {
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if (_this.viewdata) {
_this.$emit('viewdataschange', [{ ..._data }]);
_this.$emit('close');
} else if (_this.$tabPageExp) {
_this.$tabPageExp.onClose(_this.$route.fullPath);
}
});
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (_this.newdata && _this.newdata instanceof Function) {
const data: any = {};
_this.newdata([{ ...data }],[{ ...data }], params, $event, xData);
} else {
_this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { hremployee: args[0].hremployee });
}
if(!params) params = {};
Object.assign(params,{copymode:true});
_this.opendata([{ ...data }], params, $event, xData);
} else {
Object.assign(this.viewparams,{copymode:true});
}
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let _this:any = this;
if (!xData || !(xData.print instanceof Function) || !$event) {
return ;
}
xData.print();
}
/**
* 帮助
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof HREmployeeEditView2Base
*/
public Help(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.$Notice.error({ title: '错误', desc: '帮助未支持' });
}
}
\ No newline at end of file
!!!!模版产生代码错误:----
FTL stack trace ("~" means nesting-related):
- Failed at: ${P.getLayoutCode("VIEW.vue").code} [in template "TEMPLCODE_en_US" at line 1, column 1]
----
无法获取指定部件[VIEWLAYOUTPANEL#APPDEEDITVIEW2_STYLE2]发布代码[VIEW.vue]
\ No newline at end of file
!!!!模版产生代码错误:----
FTL stack trace ("~" means nesting-related):
- Failed at: ${P.getLayoutCode().code} [in template "TEMPLCODE_en_US" at line 1, column 1]
----
无法获取指定部件[VIEWLAYOUTPANEL#APPDEEDITVIEW2_STYLE2]发布代码[VIEW.less]
\ No newline at end of file
<template src="./hremployee-edit-view2.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { HREmployeeEditView2Base } from './hremployee-edit-view2-base';
import view_form from '@widgets/hremployee/main-form/main-form.vue';
import view_drbar from '@widgets/hremployee/default-drbar/default-drbar.vue';
/**
* 员工编辑视图视图
*
* @export
* @class HREmployeeEditView2
* @extends {HREmployeeEditView2Base}
*/
@Component({
components: {
view_form,
view_drbar,
}
})
@VueLifeCycleProcessing()
export default class HREmployeeEditView2 extends HREmployeeEditView2Base { }
</script>
...@@ -598,7 +598,7 @@ export class HREmployeeGridViewBase extends GridViewBase { ...@@ -598,7 +598,7 @@ export class HREmployeeGridViewBase extends GridViewBase {
const deResParameters: any[] = []; const deResParameters: any[] = [];
const parameters: any[] = [ const parameters: any[] = [
{ pathName: 'hremployees', parameterName: 'hremployee' }, { pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'editview', parameterName: 'editview' }, { pathName: 'editview2', parameterName: 'editview2' },
]; ];
const _this: any = this; const _this: any = this;
const openIndexViewTab = (data: any) => { const openIndexViewTab = (data: any) => {
......
export const PageComponents = { export const PageComponents = {
install(Vue: any, opt: any) { install(Vue: any, opt: any) {
Vue.component('hremployee-pickup-view', () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue')); Vue.component('hrpost-v-004', () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'));
Vue.component('hrpost-v-004', () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue')); Vue.component('hremployee-pickup-view', () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'));
Vue.component('hroperation-unit-edit-view', () => import('@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue')); Vue.component('hroperation-unit-edit-view', () => import('@pages/base/hroperation-unit-edit-view/hroperation-unit-edit-view.vue'));
Vue.component('hrpost-grid-view', () => import('@pages/human-resource/hrpost-grid-view/hrpost-grid-view.vue')); Vue.component('hrpost-grid-view', () => import('@pages/human-resource/hrpost-grid-view/hrpost-grid-view.vue'));
Vue.component('hrduty-v-001', () => import('@pages/human-resource/hrduty-v-001/hrduty-v-001.vue')); Vue.component('hrduty-v-001', () => import('@pages/human-resource/hrduty-v-001/hrduty-v-001.vue'));
Vue.component('hremployee-edit-view2', () => import('@pages/human-resource/hremployee-edit-view2/hremployee-edit-view2.vue'));
Vue.component('hromhierarchy-cat-tab-exp-view', () => import('@pages/base/hromhierarchy-cat-tab-exp-view/hromhierarchy-cat-tab-exp-view.vue')); Vue.component('hromhierarchy-cat-tab-exp-view', () => import('@pages/base/hromhierarchy-cat-tab-exp-view/hromhierarchy-cat-tab-exp-view.vue'));
Vue.component('hrpost-v-002', () => import('@pages/human-resource/hrpost-v-002/hrpost-v-002.vue')); Vue.component('hrpost-v-002', () => import('@pages/human-resource/hrpost-v-002/hrpost-v-002.vue'));
Vue.component('hrdistribution-edit-view', () => import('@pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.vue')); Vue.component('hrdistribution-edit-view', () => import('@pages/human-resource/hrdistribution-edit-view/hrdistribution-edit-view.vue'));
...@@ -22,9 +23,9 @@ export const PageComponents = { ...@@ -22,9 +23,9 @@ export const PageComponents = {
Vue.component('hrduty-skill-v-002', () => import('@pages/human-resource/hrduty-skill-v-002/hrduty-skill-v-002.vue')); Vue.component('hrduty-skill-v-002', () => import('@pages/human-resource/hrduty-skill-v-002/hrduty-skill-v-002.vue'));
Vue.component('hrpost-rel-v-002', () => import('@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue')); Vue.component('hrpost-rel-v-002', () => import('@pages/human-resource/hrpost-rel-v-002/hrpost-rel-v-002.vue'));
Vue.component('hremployee-pickup-grid-view', () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue')); Vue.component('hremployee-pickup-grid-view', () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'));
Vue.component('hrorganization-pickup-view', () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'));
Vue.component('hromhierarchy-cat-dashboard-view', () => import('@pages/base/hromhierarchy-cat-dashboard-view/hromhierarchy-cat-dashboard-view.vue')); Vue.component('hromhierarchy-cat-dashboard-view', () => import('@pages/base/hromhierarchy-cat-dashboard-view/hromhierarchy-cat-dashboard-view.vue'));
Vue.component('hrduty-edu-grid-view', () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue')); Vue.component('hrduty-edu-grid-view', () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue'));
Vue.component('hrorganization-pickup-view', () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'));
Vue.component('hromhierarchy-tree-exp-view', () => import('@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue')); Vue.component('hromhierarchy-tree-exp-view', () => import('@pages/base/hromhierarchy-tree-exp-view/hromhierarchy-tree-exp-view.vue'));
Vue.component('hrlegal-grid-view', () => import('@pages/base/hrlegal-grid-view/hrlegal-grid-view.vue')); Vue.component('hrlegal-grid-view', () => import('@pages/base/hrlegal-grid-view/hrlegal-grid-view.vue'));
Vue.component('hrpost-v-006', () => import('@pages/human-resource/hrpost-v-006/hrpost-v-006.vue')); Vue.component('hrpost-v-006', () => import('@pages/human-resource/hrpost-v-006/hrpost-v-006.vue'));
...@@ -34,8 +35,8 @@ export const PageComponents = { ...@@ -34,8 +35,8 @@ export const PageComponents = {
Vue.component('hrpost-pickup-view', () => import('@pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue')); Vue.component('hrpost-pickup-view', () => import('@pages/human-resource/hrpost-pickup-view/hrpost-pickup-view.vue'));
Vue.component('hrduty-cert-v-001', () => import('@pages/human-resource/hrduty-cert-v-001/hrduty-cert-v-001.vue')); Vue.component('hrduty-cert-v-001', () => import('@pages/human-resource/hrduty-cert-v-001/hrduty-cert-v-001.vue'));
Vue.component('hrduty-tab-exp-view', () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue')); Vue.component('hrduty-tab-exp-view', () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue'));
Vue.component('hrorganization-pickup-grid-view', () => import('@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'));
Vue.component('hrlegal-dashboard-view', () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue')); Vue.component('hrlegal-dashboard-view', () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'));
Vue.component('hrorganization-pickup-grid-view', () => import('@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'));
Vue.component('hrlegal-v-001', () => import('@pages/base/hrlegal-v-001/hrlegal-v-001.vue')); Vue.component('hrlegal-v-001', () => import('@pages/base/hrlegal-v-001/hrlegal-v-001.vue'));
Vue.component('hrpost-pickup-grid-view', () => import('@pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue')); Vue.component('hrpost-pickup-grid-view', () => import('@pages/human-resource/hrpost-pickup-grid-view/hrpost-pickup-grid-view.vue'));
Vue.component('hrduty-skill-grid-view', () => import('@pages/human-resource/hrduty-skill-grid-view/hrduty-skill-grid-view.vue')); Vue.component('hrduty-skill-grid-view', () => import('@pages/human-resource/hrduty-skill-grid-view/hrduty-skill-grid-view.vue'));
...@@ -60,9 +61,9 @@ export const PageComponents = { ...@@ -60,9 +61,9 @@ export const PageComponents = {
Vue.component('hrpost-v-005', () => import('@pages/human-resource/hrpost-v-005/hrpost-v-005.vue')); Vue.component('hrpost-v-005', () => import('@pages/human-resource/hrpost-v-005/hrpost-v-005.vue'));
Vue.component('hrlegal-edit-view', () => import('@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue')); Vue.component('hrlegal-edit-view', () => import('@pages/base/hrlegal-edit-view/hrlegal-edit-view.vue'));
Vue.component('hromhierarchy-edit-view', () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue')); Vue.component('hromhierarchy-edit-view', () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'));
Vue.component('hrpost-rel-grid-view', () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'));
Vue.component('hrorganization-grid-view', () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue')); Vue.component('hrorganization-grid-view', () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'));
Vue.component('hrduty-pickup-view', () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue')); Vue.component('hrduty-pickup-view', () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'));
Vue.component('hrpost-rel-grid-view', () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'));
Vue.component('hromhierarchy-cat-edit-view', () => import('@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue')); Vue.component('hromhierarchy-cat-edit-view', () => import('@pages/base/hromhierarchy-cat-edit-view/hromhierarchy-cat-edit-view.vue'));
Vue.component('hrorg-contact-edit-view', () => import('@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue')); Vue.component('hrorg-contact-edit-view', () => import('@pages/base/hrorg-contact-edit-view/hrorg-contact-edit-view.vue'));
Vue.component('hromhierarchy-cat-v-002', () => import('@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue')); Vue.component('hromhierarchy-cat-v-002', () => import('@pages/base/hromhierarchy-cat-v-002/hromhierarchy-cat-v-002.vue'));
......
...@@ -44,32 +44,32 @@ const router = new Router({ ...@@ -44,32 +44,32 @@ const router = new Router({
component: () => import('@pages/ungroup/pim/pim.vue'), component: () => import('@pages/ungroup/pim/pim.vue'),
children: [ children: [
{ {
path: 'hremployees/:hremployee?/pickupview/:pickupview?', path: 'hrposts/:hrpost?/v_004/:v_004?',
meta: { meta: {
caption: 'entities.hremployee.views.pickupview.title', caption: 'entities.hrpost.views.v_004.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' }, { pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'pickupview', parameterName: 'pickupview' }, { pathName: 'v_004', parameterName: 'v_004' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'), component: () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'),
}, },
{ {
path: 'hrposts/:hrpost?/v_004/:v_004?', path: 'hremployees/:hremployee?/pickupview/:pickupview?',
meta: { meta: {
caption: 'entities.hrpost.views.v_004.title', caption: 'entities.hremployee.views.pickupview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' }, { pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'v_004', parameterName: 'v_004' }, { pathName: 'pickupview', parameterName: 'pickupview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/human-resource/hrpost-v-004/hrpost-v-004.vue'), component: () => import('@pages/human-resource/hremployee-pickup-view/hremployee-pickup-view.vue'),
}, },
{ {
path: 'hroperationunits/:hroperationunit?/editview/:editview?', path: 'hroperationunits/:hroperationunit?/editview/:editview?',
...@@ -113,6 +113,20 @@ const router = new Router({ ...@@ -113,6 +113,20 @@ const router = new Router({
}, },
component: () => import('@pages/human-resource/hrduty-v-001/hrduty-v-001.vue'), component: () => import('@pages/human-resource/hrduty-v-001/hrduty-v-001.vue'),
}, },
{
path: 'hremployees/:hremployee?/editview2/:editview2?',
meta: {
caption: 'entities.hremployee.views.editview2.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hremployees', parameterName: 'hremployee' },
{ pathName: 'editview2', parameterName: 'editview2' },
],
requireAuth: true,
},
component: () => import('@pages/human-resource/hremployee-edit-view2/hremployee-edit-view2.vue'),
},
{ {
path: 'hromhierarchycats/:hromhierarchycat?/tabexpview/:tabexpview?', path: 'hromhierarchycats/:hromhierarchycat?/tabexpview/:tabexpview?',
meta: { meta: {
...@@ -531,6 +545,20 @@ const router = new Router({ ...@@ -531,6 +545,20 @@ const router = new Router({
}, },
component: () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'), component: () => import('@pages/human-resource/hremployee-pickup-grid-view/hremployee-pickup-grid-view.vue'),
}, },
{
path: 'hrorganizations/:hrorganization?/pickupview/:pickupview?',
meta: {
caption: 'entities.hrorganization.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'),
},
{ {
path: 'hromhierarchycats/:hromhierarchycat?/dashboardview/:dashboardview?', path: 'hromhierarchycats/:hromhierarchycat?/dashboardview/:dashboardview?',
meta: { meta: {
...@@ -574,20 +602,6 @@ const router = new Router({ ...@@ -574,20 +602,6 @@ const router = new Router({
}, },
component: () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue'), component: () => import('@pages/human-resource/hrduty-edu-grid-view/hrduty-edu-grid-view.vue'),
}, },
{
path: 'hrorganizations/:hrorganization?/pickupview/:pickupview?',
meta: {
caption: 'entities.hrorganization.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/base/hrorganization-pickup-view/hrorganization-pickup-view.vue'),
},
{ {
path: 'hromhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/treeexpview/:treeexpview?', path: 'hromhierarchycats/:hromhierarchycat?/hromhierarchies/:hromhierarchy?/treeexpview/:treeexpview?',
meta: { meta: {
...@@ -775,32 +789,32 @@ const router = new Router({ ...@@ -775,32 +789,32 @@ const router = new Router({
component: () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue'), component: () => import('@pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.vue'),
}, },
{ {
path: 'hrorganizations/:hrorganization?/pickupgridview/:pickupgridview?', path: 'hrlegals/:hrlegal?/dashboardview/:dashboardview?',
meta: { meta: {
caption: 'entities.hrorganization.views.pickupgridview.title', caption: 'entities.hrlegal.views.dashboardview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' }, { pathName: 'hrlegals', parameterName: 'hrlegal' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' }, { pathName: 'dashboardview', parameterName: 'dashboardview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'), component: () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'),
}, },
{ {
path: 'hrlegals/:hrlegal?/dashboardview/:dashboardview?', path: 'hrorganizations/:hrorganization?/pickupgridview/:pickupgridview?',
meta: { meta: {
caption: 'entities.hrlegal.views.dashboardview.title', caption: 'entities.hrorganization.views.pickupgridview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrlegals', parameterName: 'hrlegal' }, { pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'dashboardview', parameterName: 'dashboardview' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/base/hrlegal-dashboard-view/hrlegal-dashboard-view.vue'), component: () => import('@pages/base/hrorganization-pickup-grid-view/hrorganization-pickup-grid-view.vue'),
}, },
{ {
path: 'hrlegals/:hrlegal?/v_001/:v_001?', path: 'hrlegals/:hrlegal?/v_001/:v_001?',
...@@ -1274,61 +1288,61 @@ const router = new Router({ ...@@ -1274,61 +1288,61 @@ const router = new Router({
component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'), component: () => import('@pages/base/hromhierarchy-edit-view/hromhierarchy-edit-view.vue'),
}, },
{ {
path: 'hrorganizations/:hrorganization?/gridview/:gridview?', path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?',
meta: { meta: {
caption: 'entities.hrorganization.views.gridview.title', caption: 'entities.hrpostrel.views.gridview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrorganizations', parameterName: 'hrorganization' }, { pathName: 'hrposts', parameterName: 'hrpost' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' }, { pathName: 'gridview', parameterName: 'gridview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'), component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
}, },
{ {
path: 'hrduties/:hrduty?/pickupview/:pickupview?', path: 'hrpostrels/:hrpostrel?/gridview/:gridview?',
meta: { meta: {
caption: 'entities.hrduty.views.pickupview.title', caption: 'entities.hrpostrel.views.gridview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrduties', parameterName: 'hrduty' }, { pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'pickupview', parameterName: 'pickupview' }, { pathName: 'gridview', parameterName: 'gridview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'), component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'),
}, },
{ {
path: 'hrposts/:hrpost?/hrpostrels/:hrpostrel?/gridview/:gridview?', path: 'hrorganizations/:hrorganization?/gridview/:gridview?',
meta: { meta: {
caption: 'entities.hrpostrel.views.gridview.title', caption: 'entities.hrorganization.views.gridview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrposts', parameterName: 'hrpost' }, { pathName: 'hrorganizations', parameterName: 'hrorganization' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' },
{ pathName: 'gridview', parameterName: 'gridview' }, { pathName: 'gridview', parameterName: 'gridview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'), component: () => import('@pages/base/hrorganization-grid-view/hrorganization-grid-view.vue'),
}, },
{ {
path: 'hrpostrels/:hrpostrel?/gridview/:gridview?', path: 'hrduties/:hrduty?/pickupview/:pickupview?',
meta: { meta: {
caption: 'entities.hrpostrel.views.gridview.title', caption: 'entities.hrduty.views.pickupview.title',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'pim', parameterName: 'pim' }, { pathName: 'pim', parameterName: 'pim' },
{ pathName: 'hrpostrels', parameterName: 'hrpostrel' }, { pathName: 'hrduties', parameterName: 'hrduty' },
{ pathName: 'gridview', parameterName: 'gridview' }, { pathName: 'pickupview', parameterName: 'pickupview' },
], ],
requireAuth: true, requireAuth: true,
}, },
component: () => import('@pages/human-resource/hrpost-rel-grid-view/hrpost-rel-grid-view.vue'), component: () => import('@pages/human-resource/hrduty-pickup-view/hrduty-pickup-view.vue'),
}, },
{ {
path: 'hromhierarchycats/:hromhierarchycat?/editview/:editview?', path: 'hromhierarchycats/:hromhierarchycat?/editview/:editview?',
......
import SysOperator from '@/codelist/sys-operator'; import SysOperator from '@/codelist/sys-operator';
import CL_HR_0016 from '@/codelist/cl-hr-0016';
import { Store } from 'vuex'; import { Store } from 'vuex';
/** /**
...@@ -58,6 +59,14 @@ export default class CodeListService { ...@@ -58,6 +59,14 @@ export default class CodeListService {
*/ */
public SysOperator: SysOperator = new SysOperator(); public SysOperator: SysOperator = new SysOperator();
/**
* 代码表--员工状态
*
* @type {CL_HR_0016}
* @memberof CodeListService
*/
public CL_HR_0016: CL_HR_0016 = new CL_HR_0016();
/** /**
* 获取动态代码表 * 获取动态代码表
* *
......
...@@ -155,6 +155,17 @@ export const viewstate: any = { ...@@ -155,6 +155,17 @@ export const viewstate: any = {
'3110aca6f6c27996e9874cfb924c569f', '3110aca6f6c27996e9874cfb924c569f',
], ],
}, },
{
viewtag: '2845c606caf1ce6ad990cfc0adef801b',
viewmodule: 'HumanResource',
viewname: 'HREmployeeEditView2',
viewaction: '',
viewdatachange: false,
refviews: [
'6395cba44e6d6151f19e543b55d88845',
'e7ba37699bd458dc8dd5c02abac8dadd',
],
},
{ {
viewtag: '286e8ac9eca7b6eb8058fde93995db10', viewtag: '286e8ac9eca7b6eb8058fde93995db10',
viewmodule: 'Base', viewmodule: 'Base',
...@@ -484,6 +495,7 @@ export const viewstate: any = { ...@@ -484,6 +495,7 @@ export const viewstate: any = {
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'b932c0eb66409c638c29ee27ba4fda37', 'b932c0eb66409c638c29ee27ba4fda37',
'2845c606caf1ce6ad990cfc0adef801b',
], ],
}, },
{ {
...@@ -576,6 +588,7 @@ export const viewstate: any = { ...@@ -576,6 +588,7 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'e7ba37699bd458dc8dd5c02abac8dadd',
], ],
}, },
{ {
......
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
>.user-head { >.user-head {
height: 100%; height: 100%;
border-radius: 2px; border-radius: 2px;
font-size: 20px; font-size: 16px;
font-weight: 900; font-weight: 900;
text-align: center; text-align: center;
padding: 0px 5px; padding: 4px 5px;
} }
>span { >span {
fill: var(--app-header-color); fill: currentColor;
svg { svg {
vertical-align: -5px; vertical-align: -5px;
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
>.user-info:hover { >.user-info:hover {
background-color: var(--app-header-background-color-active); background-color: var(--app-header-background-color-active);
color: var(--app-header-font-color-active);
} }
} }
} }
\ No newline at end of file
...@@ -1210,10 +1210,15 @@ div::-webkit-scrollbar-thumb { ...@@ -1210,10 +1210,15 @@ div::-webkit-scrollbar-thumb {
margin-bottom: 10px; margin-bottom: 10px;
} }
.single-card-data.selected, .single-card-data:hover {
transform: scale(1.1);
}
.single-card-data { .single-card-data {
height: 100%; height: 100%;
width: 100%; width: 100%;
cursor: pointer; cursor: pointer;
transition: transform 0.3s ease-in-out;
.single-card-img { .single-card-img {
...@@ -1222,6 +1227,11 @@ div::-webkit-scrollbar-thumb { ...@@ -1222,6 +1227,11 @@ div::-webkit-scrollbar-thumb {
height: 100%; height: 100%;
} }
} }
.single-card-default {
line-height: normal;
padding: 1px 5px;
}
} }
} }
......
...@@ -89,6 +89,7 @@ export default class HREmployeeUIServiceBase extends UIService { ...@@ -89,6 +89,7 @@ export default class HREmployeeUIServiceBase extends UIService {
* @memberof HREmployeeUIServiceBase * @memberof HREmployeeUIServiceBase
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set(':',{viewname:'editview2',srfappde:'hremployees'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'hremployees'}); this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'hremployees'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hremployees'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'hremployees'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hremployees'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'hremployees'});
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, MainControlBase } from '@/studio-core';
import HREmployeeService from '@/service/hremployee/hremployee-service';
import DefaultService from './default-drbar-service';
import HREmployeeUIService from '@/uiservice/hremployee/hremployee-ui-service';
/**
* drbar部件基类
*
* @export
* @class MainControlBase
* @extends {DefaultDRBarBase}
*/
export class DefaultDRBarBase extends MainControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DefaultDRBarBase
*/
protected controlType: string = 'DRBAR';
/**
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof DefaultDRBarBase
*/
public service: DefaultService = new DefaultService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {HREmployeeService}
* @memberof DefaultDRBarBase
*/
public appEntityService: HREmployeeService = new HREmployeeService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultDRBarBase
*/
protected appDeName: string = 'hremployee';
/**
* 应用实体中文名称
*
* @protected
* @type {string}
* @memberof DefaultDRBarBase
*/
protected appDeLogicName: string = '员工';
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof Default
*/
public getDatas(): any[] {
return this.items;
}
/**
* 获取单项树
*
* @returns {*}
* @memberof Default
*/
public getData(): any {
return this.selection;
}
/**
* 加载行为
*
* @type {string}
* @memberof Default
*/
@Prop() public loadAction?: string;
/**
* 表单数据
*
* @type {*}
* @memberof DefaultBase
*/
@Prop({default:{}}) public formData?:any;
/**
* 数据选中项
*
* @type {*}
* @memberof Default
*/
public selection: any = {};
/**
* 关系栏数据项
*
* @type {any[]}
* @memberof Default
*/
public items: any[] = [
{
text: "主表单",
disabled: false,
id: "form",
},
{
text: "工作分配",
disabled: false,
id: "dritem1",
},
];
/**
* 关系栏数据项导航参数集合
*
* @type {any[]}
* @memberof DefaultBase
*/
public navParamsArray:Array<any> = [
{
id:'dritem1',
localContext:null,
localViewParam:null
}
];
/**
* 默认打开项
*
* @type {string[]}
* @memberof Default
*/
public defaultOpeneds: string[] = [];
/**
* 父数据
*
* @public
* @type {*}
* @memberof Default
*/
public parentData: any = {};
/**
* 宽度
*
* @type {number}
* @memberof Default
*/
public width: number = 240;
/**
* 生命周期
*
* @memberof Default
*/
public created(): void {
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
if (Object.is('state', action)) {
const state = !this.context.hremployee ? true : false;
this.setItemDisabled(this.items, state);
}
});
}
this.$nextTick(() => {
this.onSelect(this.items[0].id)
this.$emit('selectionchange', [this.items[0]]);
});
}
/**
* vue 生命周期
*
* @memberof Default
*/
public destroyed() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
/**
* 获取关系项
*
* @public
* @param {*} [arg={}]
* @returns {*}
* @memberof Default
*/
public getDRBarItem(arg: any = {}): any {
let expmode = arg.nodetype;
if (!expmode) {
expmode = '';
}
if (Object.is(expmode, 'dritem1')) {
return {
viewname: 'hrdistribution-grid-view',
parentdatajo: {},
};
}
return undefined;
}
/**
* 处理数据
*
* @public
* @param {any[]} items
* @memberof Default
*/
public dataProcess(items: any[]): void {
items.forEach((_item: any) => {
if (_item.expanded) {
this.defaultOpeneds.push(_item.id);
}
_item.disabled = false;
if (_item.items && Array.isArray(_item.items) && _item.items.length > 0) {
this.dataProcess(_item.items);
}
});
}
/**
* 获取子项
*
* @param {any[]} items
* @param {string} id
* @returns {*}
* @memberof Default
*/
public getItem(items: any[], id: string): any {
const item: any = {};
items.some((_item: any) => {
if (Object.is(_item.id, id)) {
Object.assign(item, _item);
return true;
}
if (_item.items && _item.items.length > 0) {
const subItem = this.getItem(_item.items, id);
if (Object.keys(subItem).length > 0) {
Object.assign(item, subItem);
return true;
}
}
return false;
});
return item;
}
/**
* 初始化导航参数
*
* @param {*} drItem
* @memberof DefaultBase
*/
public initNavParam(drItem:any){
let returnNavParam:any = {};
if(drItem && drItem.id){
let curDRItem:any = this.navParamsArray.find((item:any) =>{
return Object.is(item.id,drItem.id);
})
if(curDRItem){
let localContext:any = curDRItem.localContext;
let localViewParam:any = curDRItem.localViewParam;
if(localContext && Object.keys(localContext).length >0){
let _context:any = this.$util.computedNavData(this.formData,this.context,this.viewparams,localContext);
returnNavParam.localContext = _context;
}
if(localViewParam && Object.keys(localViewParam).length >0){
let _params:any = this.$util.computedNavData(this.formData,this.context,this.viewparams,localViewParam);
returnNavParam.localViewParam = _params;
}
return returnNavParam;
}else{
return null;
}
}
}
/**
* 节点选中
*
* @param {*} $event
* @memberof Default
*/
public onSelect($event: any): void {
const item = this.getItem(this.items, $event);
if (Object.is(item.id, this.selection.id)) {
return;
}
this.$emit('selectionchange', [item]);
let localNavParam:any = this.initNavParam(item);
const refview = this.getDRBarItem({ nodetype: item.id });
this.selection = {};
const _context: any = { ...JSON.parse(JSON.stringify(this.context)) };
if(localNavParam && localNavParam.localContext){
Object.assign(_context,localNavParam.localContext);
}
const _params: any = {};
if(localNavParam && localNavParam.localViewParam){
Object.assign(_params,localNavParam.localViewParam);
}
if (refview && refview.parentdatajo) {
Object.assign(_context, refview.parentdatajo);
Object.assign(this.selection, { view: { viewname: refview.viewname }, data: _context, param: _params });
}
Object.assign(this.selection, item);
}
/**
* 子节点打开
*
* @param {*} $event
* @memberof Default
*/
public onOpen($event: any): void {
const item = this.getItem(this.items, $event);
if (Object.is(item.id, this.selection.id)) {
return;
}
this.selection = {};
Object.assign(this.selection, item);
if (Object.is(item.id, 'form') || (item.viewname && !Object.is(item.viewname, ''))) {
this.$emit('selectionchange', [this.selection]);
}
}
/**
* 子节点关闭
*
* @param {*} $event
* @memberof Default
*/
public onClose($event: any): void {
const item = this.getItem(this.items, $event);
if (Object.is(item.id, this.selection.id)) {
return;
}
this.selection = {};
Object.assign(this.selection, item);
if (Object.is(item.id, 'form') || (item.viewname && !Object.is(item.viewname, ''))) {
this.$emit('selectionchange', [this.selection]);
}
}
/**
* 设置关系项状态
*
* @param {any[]} items
* @param {boolean} state
* @memberof Default
*/
public setItemDisabled(items: any[], state: boolean) {
items.forEach((item: any) => {
if (!Object.is(item.id, 'form')) {
item.disabled = state;
}
if (item.items && Array.isArray(item.items)) {
this.setItemDisabled(item.items, state);
}
});
}
}
\ No newline at end of file
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'employeename',
},
{
name: 'updateman',
},
{
name: 'createman',
},
{
name: 'hremployee',
prop: 'employeeid',
},
{
name: 'updatedate',
},
{
name: 'createdate',
},
{
name: 'organizationid',
},
{
name: 'employeecode',
},
{
name: 'certtype',
},
{
name: 'certnum',
},
{
name: 'birthday',
},
{
name: 'age',
},
{
name: 'organizationname',
},
{
name: 'sex',
},
{
name: 'bloodtype',
},
{
name: 'telephone',
},
{
name: 'mobile',
},
{
name: 'email',
},
{
name: 'marriage',
},
{
name: 'nation',
},
{
name: 'nativetype',
},
{
name: 'nativeaddress',
},
{
name: 'birthaddress',
},
{
name: 'postaladdress',
},
{
name: 'hobby',
},
{
name: 'health',
},
{
name: 'political',
},
{
name: 'startworktime',
},
{
name: 'startorgtime',
},
{
name: 'photo',
},
{
name: 'firstdegree',
},
{
name: 'highestdegree',
},
{
name: 'technicaltitle',
},
{
name: 'certificates',
},
{
name: 'entrytype',
},
{
name: 'politicaltime',
},
{
name: 'empstate',
},
{
name: 'jobstate',
},
{
name: 'nativeplace',
},
]
}
}
\ No newline at end of file
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Default 部件服务对象
*
* @export
* @class DefaultService
*/
export default class DefaultService extends ControlService {
}
\ No newline at end of file
<layout class='app-dr-bar'>
<sider :width="width">
<el-menu
:default-openeds="defaultOpeneds"
:default-active="items[0].id"
@select="onSelect.apply(_self, arguments)"
@open="onOpen.apply(_self, arguments)"
@close="onClose.apply(_self, arguments)">
<app-sider-menus :menus="items"></app-sider-menus>
</el-menu>
</sider>
<content :style="{ width: `calc(100% - ${this.width + 1}px)` }">
<div class='main-data' v-show="Object.is(this.selection.id, 'form')">
<slot></slot>
</div>
<component
v-if="!Object.is(this.selection.id, 'form') && this.selection.view && !Object.is(this.selection.view.viewname, '')"
:is="selection.view.viewname"
class="viewcontainer2"
:viewDefaultUsage="false"
:viewdata="JSON.stringify(selection.data)"
:viewparam="JSON.stringify(selection.param)"
:key="this.$util.createUUID()">
</component>
</content>
</layout>
\ No newline at end of file
<template src="./default-drbar.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DefaultDRBarBase } from './default-drbar-base';
/**
* drbar部件
*
* @export
* @class DefaultDRBar
* @extends {DefaultDRBarBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DefaultDRBar extends DefaultDRBarBase { }
</script>
...@@ -82,6 +82,35 @@ export class MainEditFormBase extends EditFormControlBase { ...@@ -82,6 +82,35 @@ export class MainEditFormBase extends EditFormControlBase {
srfuf: null, srfuf: null,
srfdeid: null, srfdeid: null,
srfsourcekey: null, srfsourcekey: null,
employeename: null,
employeecode: null,
empstate: null,
certtype: null,
certnum: null,
sex: null,
birthday: null,
age: null,
nation: null,
organizationname: null,
photo: null,
mobile: null,
telephone: null,
email: null,
postaladdress: null,
nativetype: null,
nativeplace: null,
marriage: null,
bloodtype: null,
nativeaddress: null,
birthaddress: null,
hobby: null,
health: null,
political: null,
politicaltime: null,
entrytype: null,
startworktime: null,
startorgtime: null,
organizationid: null,
employeeid: null, employeeid: null,
hremployee:null, hremployee:null,
}; };
...@@ -111,13 +140,19 @@ export class MainEditFormBase extends EditFormControlBase { ...@@ -111,13 +140,19 @@ export class MainEditFormBase extends EditFormControlBase {
* @memberof MainEditFormBase * @memberof MainEditFormBase
*/ */
public detailsModel: any = { public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '员工基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }), grouppanel1: new FormGroupPanelModel({ caption: '分组面板', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: false, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }), grouppanel2: new FormGroupPanelModel({ caption: 'first', detailType: 'GROUPPANEL', name: 'grouppanel2', visible: true, isShowCaption: false, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }),
grouppanel4: new FormGroupPanelModel({ caption: '联系信息', detailType: 'GROUPPANEL', name: 'grouppanel4', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }),
grouppanel3: new FormGroupPanelModel({ caption: '补充信息', detailType: 'GROUPPANEL', name: 'grouppanel3', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }),
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }), grouppanel5: new FormGroupPanelModel({ caption: '工作相关', detailType: 'GROUPPANEL', name: 'grouppanel5', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }),
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }), group1: new FormGroupPanelModel({ caption: '基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.hremployee.main_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, showMoreMode: 0 }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }), srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
...@@ -135,8 +170,65 @@ export class MainEditFormBase extends EditFormControlBase { ...@@ -135,8 +170,65 @@ export class MainEditFormBase extends EditFormControlBase {
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }), srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
employeename: new FormItemModel({ caption: '员工姓名', detailType: 'FORMITEM', name: 'employeename', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
employeecode: new FormItemModel({ caption: '员工编号', detailType: 'FORMITEM', name: 'employeecode', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
empstate: new FormItemModel({ caption: '员工状态', detailType: 'FORMITEM', name: 'empstate', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
certtype: new FormItemModel({ caption: '证件类型', detailType: 'FORMITEM', name: 'certtype', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
certnum: new FormItemModel({ caption: '证件号码', detailType: 'FORMITEM', name: 'certnum', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
sex: new FormItemModel({ caption: '性别', detailType: 'FORMITEM', name: 'sex', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
birthday: new FormItemModel({ caption: '出生日期', detailType: 'FORMITEM', name: 'birthday', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
age: new FormItemModel({ caption: '年龄', detailType: 'FORMITEM', name: 'age', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
nation: new FormItemModel({ caption: '民族', detailType: 'FORMITEM', name: 'nation', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
organizationname: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'organizationname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
photo: new FormItemModel({ caption: '照片', detailType: 'FORMITEM', name: 'photo', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
mobile: new FormItemModel({ caption: '移动电话', detailType: 'FORMITEM', name: 'mobile', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
telephone: new FormItemModel({ caption: '固定电话', detailType: 'FORMITEM', name: 'telephone', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
email: new FormItemModel({ caption: '电子邮箱', detailType: 'FORMITEM', name: 'email', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
postaladdress: new FormItemModel({ caption: '通讯地址', detailType: 'FORMITEM', name: 'postaladdress', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
nativetype: new FormItemModel({ caption: '户口类型', detailType: 'FORMITEM', name: 'nativetype', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
nativeplace: new FormItemModel({ caption: '籍贯', detailType: 'FORMITEM', name: 'nativeplace', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
marriage: new FormItemModel({ caption: '婚姻状况', detailType: 'FORMITEM', name: 'marriage', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
bloodtype: new FormItemModel({ caption: '血型', detailType: 'FORMITEM', name: 'bloodtype', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
nativeaddress: new FormItemModel({ caption: '户籍地址', detailType: 'FORMITEM', name: 'nativeaddress', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
birthaddress: new FormItemModel({ caption: '出生地', detailType: 'FORMITEM', name: 'birthaddress', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
hobby: new FormItemModel({ caption: '爱好特长', detailType: 'FORMITEM', name: 'hobby', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
health: new FormItemModel({ caption: '健康状况', detailType: 'FORMITEM', name: 'health', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
political: new FormItemModel({ caption: '政治面貌', detailType: 'FORMITEM', name: 'political', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
politicaltime: new FormItemModel({ caption: '入党时间', detailType: 'FORMITEM', name: 'politicaltime', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
entrytype: new FormItemModel({ caption: '入职渠道', detailType: 'FORMITEM', name: 'entrytype', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
startworktime: new FormItemModel({ caption: '参加工作时间', detailType: 'FORMITEM', name: 'startworktime', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
startorgtime: new FormItemModel({ caption: '到本单位时间', detailType: 'FORMITEM', name: 'startorgtime', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
organizationid: new FormItemModel({ caption: '组织ID', detailType: 'FORMITEM', name: 'organizationid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
employeeid: new FormItemModel({ caption: '员工标识', detailType: 'FORMITEM', name: 'employeeid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }), employeeid: new FormItemModel({ caption: '员工标识', detailType: 'FORMITEM', name: 'employeeid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
}; };
} }
\ No newline at end of file
...@@ -55,6 +55,151 @@ export default class MainModel { ...@@ -55,6 +55,151 @@ export default class MainModel {
{ {
name: 'srfsourcekey', name: 'srfsourcekey',
}, },
{
name: 'employeename',
prop: 'employeename',
dataType: 'TEXT',
},
{
name: 'employeecode',
prop: 'employeecode',
dataType: 'TEXT',
},
{
name: 'empstate',
prop: 'empstate',
dataType: 'PICKUP',
},
{
name: 'certtype',
prop: 'certtype',
dataType: 'SSCODELIST',
},
{
name: 'certnum',
prop: 'certnum',
dataType: 'TEXT',
},
{
name: 'sex',
prop: 'sex',
dataType: 'SSCODELIST',
},
{
name: 'birthday',
prop: 'birthday',
dataType: 'DATE',
},
{
name: 'age',
prop: 'age',
dataType: 'TEXT',
},
{
name: 'nation',
prop: 'nation',
dataType: 'SSCODELIST',
},
{
name: 'organizationname',
prop: 'organizationname',
dataType: 'PICKUPTEXT',
},
{
name: 'photo',
prop: 'photo',
dataType: 'TEXT',
},
{
name: 'mobile',
prop: 'mobile',
dataType: 'TEXT',
},
{
name: 'telephone',
prop: 'telephone',
dataType: 'TEXT',
},
{
name: 'email',
prop: 'email',
dataType: 'TEXT',
},
{
name: 'postaladdress',
prop: 'postaladdress',
dataType: 'TEXT',
},
{
name: 'nativetype',
prop: 'nativetype',
dataType: 'SSCODELIST',
},
{
name: 'nativeplace',
prop: 'nativeplace',
dataType: 'TEXT',
},
{
name: 'marriage',
prop: 'marriage',
dataType: 'SSCODELIST',
},
{
name: 'bloodtype',
prop: 'bloodtype',
dataType: 'SSCODELIST',
},
{
name: 'nativeaddress',
prop: 'nativeaddress',
dataType: 'TEXT',
},
{
name: 'birthaddress',
prop: 'birthaddress',
dataType: 'TEXT',
},
{
name: 'hobby',
prop: 'hobby',
dataType: 'TEXT',
},
{
name: 'health',
prop: 'health',
dataType: 'TEXT',
},
{
name: 'political',
prop: 'political',
dataType: 'SSCODELIST',
},
{
name: 'politicaltime',
prop: 'politicaltime',
dataType: 'DATE',
},
{
name: 'entrytype',
prop: 'entrytype',
dataType: 'SSCODELIST',
},
{
name: 'startworktime',
prop: 'startworktime',
dataType: 'DATE',
},
{
name: 'startorgtime',
prop: 'startorgtime',
dataType: 'DATE',
},
{
name: 'organizationid',
prop: 'organizationid',
dataType: 'PICKUP',
},
{ {
name: 'employeeid', name: 'employeeid',
prop: 'employeeid', prop: 'employeeid',
......
...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils'; ...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service'; import ControlService from '@/widgets/control-service';
import HREmployeeService from '@/service/hremployee/hremployee-service'; import HREmployeeService from '@/service/hremployee/hremployee-service';
import MainModel from './main-form-model'; import MainModel from './main-form-model';
import HROrganizationService from '@/service/hrorganization/hrorganization-service';
/** /**
...@@ -41,6 +42,14 @@ export default class MainService extends ControlService { ...@@ -41,6 +42,14 @@ export default class MainService extends ControlService {
this.model = new MainModel(); this.model = new MainModel();
} }
/**
* 组织服务对象
*
* @type {HROrganizationService}
* @memberof MainService
*/
public hrorganizationService: HROrganizationService = new HROrganizationService();
/** /**
* 处理数据 * 处理数据
* *
...@@ -82,6 +91,9 @@ export default class MainService extends ControlService { ...@@ -82,6 +91,9 @@ export default class MainService extends ControlService {
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> { public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0; data.page = data.page ? data.page : 0;
data.size = data.size ? data.size : 1000; data.size = data.size ? data.size : 1000;
if (Object.is(serviceName, 'HROrganizationService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.hrorganizationService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'organizationid', 'hrorganization');
}
return Promise.reject([]) return Promise.reject([])
} }
......
<i-form :model="this.data" class='app-form' ref='form' id='hremployee_main' style=""> <i-form :model="this.data" class='app-form' ref='form' id='hremployee_main' style="">
<input style="display:none;" /> <input style="display:none;" />
<row > <row >
<tabs :animated="false" size="small" name='main' :value="detailsModel.form.activiedPage"
@on-click="detailsModel.form.clickPage($event)">
<tab-pane v-show="detailsModel.formpage1.visible" name='formpage1' :index="0" tab='main' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.hremployee.main_form.details.formpage1')
])
}">
<i-col class="form-layout-container" v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <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.hremployee.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" > <app-form-group :model="detailsModel.group1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hremployee.main_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group1" :data="data" :context="context" :viewparams="viewparams"/> <app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group1" :data="data" :context="context" :viewparams="viewparams"/>
<row> <row>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel2" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hremployee.main_form.details.grouppanel2')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel2" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel1.visible" :style="{}" :sm="{ span: 18, offset: 0 }" :md="{ span: 18, offset: 0 }" :lg="{ span: 18, offset: 0 }" :xl="{ span: 18, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel1" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hremployee.main_form.details.grouppanel1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel1" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.employeename.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='employeename' :itemRules="this.rules.employeename" class='' :caption="$t('entities.hremployee.main_form.details.employeename')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.employeename.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.employeename"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.employeename.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.employeecode.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='employeecode' :itemRules="this.rules.employeecode" class='' :caption="$t('entities.hremployee.main_form.details.employeecode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.employeecode.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.employeecode"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.employeecode.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.empstate.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='empstate' :itemRules="this.rules.empstate" class='' :caption="$t('entities.hremployee.main_form.details.empstate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.empstate.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.empstate"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.empstate.disabled"
valueType="string"
tag='CL_HR_0016'
codelistType='DYNAMIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.certtype.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='certtype' :itemRules="this.rules.certtype" class='' :caption="$t('entities.hremployee.main_form.details.certtype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.certtype.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.certtype"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.certtype.disabled"
valueType="string"
tag='CL_HR_0009'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.certnum.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='certnum' :itemRules="this.rules.certnum" class='' :caption="$t('entities.hremployee.main_form.details.certnum')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.certnum.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.certnum"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.certnum.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.sex.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='sex' :itemRules="this.rules.sex" class='' :caption="$t('entities.hremployee.main_form.details.sex')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sex.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.sex"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.sex.disabled"
valueType="string"
tag='CL_HR_0010'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.birthday.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='birthday' :itemRules="this.rules.birthday" class='' :caption="$t('entities.hremployee.main_form.details.birthday')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.birthday.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.birthday" :disabled="detailsModel.birthday.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.birthday = val1 }"></date-picker>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.age.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='age' :itemRules="this.rules.age" class='' :caption="$t('entities.hremployee.main_form.details.age')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.age.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='age' :value="data.age" dataType="TEXT" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.nation.visible" :style="{}" :lg="{ span: 8, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='nation' :itemRules="this.rules.nation" class='' :caption="$t('entities.hremployee.main_form.details.nation')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.nation.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.nation"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.nation.disabled"
valueType="string"
tag='CL_HR_0008'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.organizationname.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 24, offset: 0 }">
<app-form-item name='organizationname' :itemRules="this.rules.organizationname" class='' :caption="$t('entities.hremployee.main_form.details.organizationname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.organizationname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.organizationname.disabled"
name='organizationname'
deMajorField='organizationname'
deKeyField='hrorganization'
:service="service"
:acParams="{ serviceName: 'HROrganizationService', interfaceName: 'FetchDefault'}"
valueitem='organizationid'
:value="data.organizationname"
: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>
</row> </row>
</app-form-group> </app-form-group>
</i-col> </i-col>
<i-col class="form-layout-container" v-show="detailsModel.photo.visible" :style="{}" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='photo' :itemRules="this.rules.photo" class='' :caption="$t('entities.hremployee.main_form.details.photo')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.photo.error" :isEmptyCaption="false" labelPos="LEFT">
<app-image-upload :multiple="false" :formState="formState" :ignorefieldvaluechange="ignorefieldvaluechange" @formitemvaluechange="onFormItemValueChange($event)" :data="JSON.stringify(this.data)" name='photo' :value="data.photo" :disabled="detailsModel.photo.disabled" :uploadparams='{}' :exportparams='{}' ></app-image-upload>
</app-form-item>
</i-col>
</row>
</app-form-group>
</tab-pane> </i-col>
<tab-pane v-show="detailsModel.formpage2.visible" name='formpage2' :index="1" tab='main' class='' <i-col class="form-layout-container" v-show="detailsModel.grouppanel4.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
:label="(h) =>{ <app-form-group :model="detailsModel.grouppanel4" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel4.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hremployee.main_form.details.grouppanel4')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="false" >
return h('span',{ <app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel4" :data="data" :context="context" :viewparams="viewparams"/>
class:'caption'
},[
$t('entities.hremployee.main_form.details.formpage2')
])
}">
<i-col class="form-layout-container" v-show="detailsModel.group2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.group2" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hremployee.main_form.details.group2')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.group2" :data="data" :context="context" :viewparams="viewparams"/>
<row> <row>
<i-col class="form-layout-container" v-show="detailsModel.mobile.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='mobile' :itemRules="this.rules.mobile" class='' :caption="$t('entities.hremployee.main_form.details.mobile')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.mobile.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.mobile"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.mobile.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.telephone.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='telephone' :itemRules="this.rules.telephone" class='' :caption="$t('entities.hremployee.main_form.details.telephone')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.telephone.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.telephone"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.telephone.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.email.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='email' :itemRules="this.rules.email" class='' :caption="$t('entities.hremployee.main_form.details.email')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.email.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.email"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.email.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.postaladdress.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='postaladdress' :itemRules="this.rules.postaladdress" class='' :caption="$t('entities.hremployee.main_form.details.postaladdress')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.postaladdress.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.postaladdress"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.postaladdress.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel3.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel3" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel3.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hremployee.main_form.details.grouppanel3')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel3" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.nativetype.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='nativetype' :itemRules="this.rules.nativetype" class='' :caption="$t('entities.hremployee.main_form.details.nativetype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.nativetype.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.nativetype"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.nativetype.disabled"
valueType="string"
tag='CL_HR_0012'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.nativeplace.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='nativeplace' :itemRules="this.rules.nativeplace" class='' :caption="$t('entities.hremployee.main_form.details.nativeplace')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.nativeplace.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.nativeplace"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.nativeplace.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.marriage.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='marriage' :itemRules="this.rules.marriage" class='' :caption="$t('entities.hremployee.main_form.details.marriage')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.marriage.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.marriage"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.marriage.disabled"
valueType="string"
tag='CL_HR_0011'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.bloodtype.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='bloodtype' :itemRules="this.rules.bloodtype" class='' :caption="$t('entities.hremployee.main_form.details.bloodtype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.bloodtype.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.bloodtype"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.bloodtype.disabled"
valueType="string"
tag='CL_HR_0007'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.nativeaddress.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='nativeaddress' :itemRules="this.rules.nativeaddress" class='' :caption="$t('entities.hremployee.main_form.details.nativeaddress')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.nativeaddress.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.nativeaddress"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.nativeaddress.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.birthaddress.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='birthaddress' :itemRules="this.rules.birthaddress" class='' :caption="$t('entities.hremployee.main_form.details.birthaddress')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.birthaddress.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.birthaddress"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.birthaddress.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.hobby.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='hobby' :itemRules="this.rules.hobby" class='' :caption="$t('entities.hremployee.main_form.details.hobby')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.hobby.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.hobby"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.hobby.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.health.visible" :style="{}" :sm="{ span: 24, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='health' :itemRules="this.rules.health" class='' :caption="$t('entities.hremployee.main_form.details.health')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.health.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.health"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.health.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.political.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='political' :itemRules="this.rules.political" class='' :caption="$t('entities.hremployee.main_form.details.political')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.political.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.political"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.political.disabled"
valueType="string"
tag='CL_HR_0013'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.politicaltime.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='politicaltime' :itemRules="this.rules.politicaltime" class='' :caption="$t('entities.hremployee.main_form.details.politicaltime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.politicaltime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.politicaltime" :disabled="detailsModel.politicaltime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.politicaltime = val1 }"></date-picker>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.grouppanel5.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :model="detailsModel.grouppanel5" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel5.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.hremployee.main_form.details.grouppanel5')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="1" :isInfoGroupMode="false" >
<app-form-group-data-panel slot="dataInfoPanel" :model="detailsModel.grouppanel5" :data="data" :context="context" :viewparams="viewparams"/>
<row>
<i-col class="form-layout-container" v-show="detailsModel.entrytype.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='entrytype' :itemRules="this.rules.entrytype" class='' :caption="$t('entities.hremployee.main_form.details.entrytype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entrytype.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.entrytype"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.entrytype.disabled"
valueType="string"
tag='CL_HR_0015'
codelistType='STATIC'
placeholder='请选择...'
/>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.startworktime.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='startworktime' :itemRules="this.rules.startworktime" class='' :caption="$t('entities.hremployee.main_form.details.startworktime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.startworktime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.startworktime" :disabled="detailsModel.startworktime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.startworktime = val1 }"></date-picker>
</app-form-item>
</i-col>
<i-col class="form-layout-container" v-show="detailsModel.startorgtime.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='startorgtime' :itemRules="this.rules.startorgtime" class='' :caption="$t('entities.hremployee.main_form.details.startorgtime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.startorgtime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.startorgtime" :disabled="detailsModel.startorgtime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.startorgtime = val1 }"></date-picker>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row> </row>
</app-form-group> </app-form-group>
</i-col> </i-col>
</tab-pane>
</tabs>
</row> </row>
</i-form> </i-form>
\ No newline at end of file
...@@ -36,6 +36,11 @@ export default class MainModel { ...@@ -36,6 +36,11 @@ export default class MainModel {
prop: 'birthday', prop: 'birthday',
dataType: 'DATE', dataType: 'DATE',
}, },
{
name: 'empstate',
prop: 'empstate',
dataType: 'PICKUP',
},
{ {
name: 'employeename', name: 'employeename',
prop: 'employeename', prop: 'employeename',
......
...@@ -51,6 +51,87 @@ export default class PickupViewpickupviewpanelModel { ...@@ -51,6 +51,87 @@ export default class PickupViewpickupviewpanelModel {
{ {
name: 'age', name: 'age',
}, },
{
name: 'organizationname',
},
{
name: 'sex',
},
{
name: 'bloodtype',
},
{
name: 'telephone',
},
{
name: 'mobile',
},
{
name: 'email',
},
{
name: 'marriage',
},
{
name: 'nation',
},
{
name: 'nativetype',
},
{
name: 'nativeaddress',
},
{
name: 'birthaddress',
},
{
name: 'postaladdress',
},
{
name: 'hobby',
},
{
name: 'health',
},
{
name: 'political',
},
{
name: 'startworktime',
},
{
name: 'startorgtime',
},
{
name: 'photo',
},
{
name: 'firstdegree',
},
{
name: 'highestdegree',
},
{
name: 'technicaltitle',
},
{
name: 'certificates',
},
{
name: 'entrytype',
},
{
name: 'politicaltime',
},
{
name: 'empstate',
},
{
name: 'jobstate',
},
{
name: 'nativeplace',
},
] ]
} }
......
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
git clone -b master $para2 ibizhumanresources/ git clone -b master $para2 ibizhumanresources/
export NODE_OPTIONS=--max-old-space-size=4096 export NODE_OPTIONS=--max-old-space-size=4096
cd ibizhumanresources/ cd ibizhumanresources/
mvn clean package -Phrapi mvn clean package -Ppim
cd humanresource-provider/humanresource-provider-hrapi cd humanresource-app/humanresource-app-pim
mvn -Phrapi docker:build mvn -Ppim docker:build
mvn -Phrapi docker:push mvn -Ppim docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-provider-hrapi.yaml iBizEE --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/humanresource-app-pim.yaml iBizEE --with-registry-auth
</command> </command>
</hudson.tasks.Shell> </hudson.tasks.Shell>
</builders> </builders>
......
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-app-pim.jar
EXPOSE 8080 EXPOSE 10327
ADD humanresource-app-pim.jar /humanresource-app-pim.jar ADD humanresource-app-pim.jar /humanresource-app-pim.jar
...@@ -3,9 +3,25 @@ services: ...@@ -3,9 +3,25 @@ services:
humanresource-app-pim: humanresource-app-pim:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-app-pim:latest
ports: ports:
- "8080:8080" - "10327:10327"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10327
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy: deploy:
resources: resources:
limits: limits:
......
...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \ ...@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \ sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /humanresource-provider-hrapi.jar
EXPOSE 10317 EXPOSE 8081
ADD humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar ADD humanresource-provider-hrapi.jar /humanresource-provider-hrapi.jar
...@@ -3,25 +3,9 @@ services: ...@@ -3,25 +3,9 @@ services:
humanresource-provider-hrapi: humanresource-provider-hrapi:
image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest image: registry.cn-shanghai.aliyuncs.com/ibizsys/humanresource-provider-hrapi:latest
ports: ports:
- "10317:10317" - "8081:8081"
networks: networks:
- agent_network - agent_network
environment:
- SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
- SERVER_PORT=10317
- SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
- SPRING_REDIS_HOST=172.16.240.110
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_DATABASE=0
- SPRING_DATASOURCE_USERNAME=a_LAB01_e85d8801c
- SPRING_DATASOURCE_PASSWORD=b1@@@772
- SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_e85d8801c?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
- SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_e85d8801c
- CAS=https://passport.ibizlab.cn
- NACOS=172.16.240.110:8848
- SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
- SEATA_ENABLED=true
deploy: deploy:
resources: resources:
limits: limits:
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册