提交 2d832af3 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 138bc672
...@@ -235,6 +235,34 @@ export default { ...@@ -235,6 +235,34 @@ export default {
uiactions: { uiactions: {
}, },
}, },
byparentkey_form: {
details: {
group1: "案例基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "案例",
srfmajortext: "案例标题",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
title: "案例标题",
subjectname: "主题",
caseorigincode: "起源",
productname: "产品",
entitlementname: "权利",
customerid: "客户",
customername: "客户",
customertype: "客户类型",
productid: "产品",
incidentid: "案例",
subjectid: "主题",
entitlementid: "权利",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "incident基本信息", group1: "incident基本信息",
......
...@@ -234,6 +234,34 @@ export default { ...@@ -234,6 +234,34 @@ export default {
uiactions: { uiactions: {
}, },
}, },
byparentkey_form: {
details: {
group1: "案例基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "案例",
srfmajortext: "案例标题",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
title: "案例标题",
subjectname: "主题",
caseorigincode: "起源",
productname: "产品",
entitlementname: "权利",
customerid: "客户",
customername: "客户",
customertype: "客户类型",
productid: "产品",
incidentid: "案例",
subjectid: "主题",
entitlementid: "权利",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "incident基本信息", group1: "incident基本信息",
......
...@@ -58,6 +58,19 @@ export class AccountInfoBase extends TabExpViewBase { ...@@ -58,6 +58,19 @@ export class AccountInfoBase extends TabExpViewBase {
*/ */
protected counterServiceArray: Array<any> = []; protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航上下文集合
*
* @protected
* @type {*}
* @memberof AccountInfoBase
*/
protected customViewNavContexts: any = {
'CUSTOMERTYPE': { isRawValue: true, value: 'ACCOUNT' },
'CUSTOMERNAME': { isRawValue: false, value: 'account' },
'CUSTOMERID': { isRawValue: false, value: 'account' }
};
/** /**
* 视图模型数据 * 视图模型数据
* *
......
...@@ -56,6 +56,19 @@ export class IncidentQuickCreateByParentKeyBase extends OptionViewBase { ...@@ -56,6 +56,19 @@ export class IncidentQuickCreateByParentKeyBase extends OptionViewBase {
*/ */
protected counterServiceArray: Array<any> = []; protected counterServiceArray: Array<any> = [];
/**
* 自定义视图导航参数集合
*
* @protected
* @type {*}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected customViewParams: any = {
'customertype': { isRawValue: false, value: 'customertype' },
'customerid': { isRawValue: false, value: 'customerid' },
'customername': { isRawValue: false, value: 'customername' }
};
/** /**
* 视图模型数据 * 视图模型数据
* *
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core'; import { VueLifeCycleProcessing } from '@/studio-core';
import { IncidentQuickCreateByParentKeyBase } from './incident-quick-create-by-parent-key-base'; import { IncidentQuickCreateByParentKeyBase } from './incident-quick-create-by-parent-key-base';
import view_form from '@widgets/incident/quick-create-form/quick-create-form.vue'; import view_form from '@widgets/incident/by-parent-key-form/by-parent-key-form.vue';
/** /**
* 快速新建视图 * 快速新建视图
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import IncidentService from '@/service/incident/incident-service';
import ByParentKeyService from './by-parent-key-form-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {ByParentKeyEditFormBase}
*/
export class ByParentKeyEditFormBase extends EditFormControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof ByParentKeyEditFormBase
*/
protected controlType: string = 'FORM';
/**
* 建构部件服务对象
*
* @type {ByParentKeyService}
* @memberof ByParentKeyEditFormBase
*/
public service: ByParentKeyService = new ByParentKeyService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {IncidentService}
* @memberof ByParentKeyEditFormBase
*/
public appEntityService: IncidentService = new IncidentService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof ByParentKeyEditFormBase
*/
protected appDeName: string = 'incident';
/**
* 表单数据对象
*
* @type {*}
* @memberof ByParentKeyEditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
title: null,
subjectname: null,
caseorigincode: null,
productname: null,
entitlementname: null,
customerid: null,
customername: null,
customertype: null,
productid: null,
incidentid: null,
subjectid: null,
entitlementid: null,
incident:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof ByParentKeyEditFormBase
*/
public rules: any = {
title: [
{ required: true, type: 'string', message: '案例标题 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '案例标题 值不能为空', trigger: 'blur' },
],
customerid: [
{ required: true, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
],
customername: [
{ required: true, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
],
customertype: [
{ required: true, type: 'string', message: '客户类型 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '客户类型 值不能为空', trigger: 'blur' },
],
}
/**
* 详情模型集合
*
* @type {*}
* @memberof ByParentKeyEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '案例基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, showMoreMode: 0, uiActionGroup: { caption: '', langbase: 'entities.incident.byparentkey_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: 0 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfkey: new FormItemModel({ caption: '案例', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfmajortext: new FormItemModel({ caption: '案例标题', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', 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 }),
title: new FormItemModel({ caption: '案例标题', detailType: 'FORMITEM', name: 'title', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
subjectname: new FormItemModel({ caption: '主题', detailType: 'FORMITEM', name: 'subjectname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
caseorigincode: new FormItemModel({ caption: '起源', detailType: 'FORMITEM', name: 'caseorigincode', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
productname: new FormItemModel({ caption: '产品', detailType: 'FORMITEM', name: 'productname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
entitlementname: new FormItemModel({ caption: '权利', detailType: 'FORMITEM', name: 'entitlementname', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
customerid: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'customerid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
customername: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'customername', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
customertype: new FormItemModel({ caption: '客户类型', detailType: 'FORMITEM', name: 'customertype', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
productid: new FormItemModel({ caption: '产品', detailType: 'FORMITEM', name: 'productid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
incidentid: new FormItemModel({ caption: '案例', detailType: 'FORMITEM', name: 'incidentid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
subjectid: new FormItemModel({ caption: '主题', detailType: 'FORMITEM', name: 'subjectid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
entitlementid: new FormItemModel({ caption: '权利', detailType: 'FORMITEM', name: 'entitlementid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
};
/**
* 新建默认值
* @memberof ByParentKeyEditFormBase
*/
public createDefault(){
if (this.data.hasOwnProperty('customerid')) {
this.data['customerid'] = this.viewparams['customerid'];
}
if (this.data.hasOwnProperty('customername')) {
this.data['customername'] = this.viewparams['customername'];
}
if (this.data.hasOwnProperty('customertype')) {
this.data['customertype'] = this.viewparams['customertype'];
}
}
}
\ No newline at end of file
/**
* ByParentKey 部件模型
*
* @export
* @class ByParentKeyModel
*/
export default class ByParentKeyModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ByParentKeyModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'incidentid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'title',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'title',
prop: 'title',
dataType: 'TEXT',
},
{
name: 'subjectname',
prop: 'subjectname',
dataType: 'PICKUPTEXT',
},
{
name: 'caseorigincode',
prop: 'caseorigincode',
dataType: 'SSCODELIST',
},
{
name: 'productname',
prop: 'productname',
dataType: 'PICKUPTEXT',
},
{
name: 'entitlementname',
prop: 'entitlementname',
dataType: 'PICKUPTEXT',
},
{
name: 'customerid',
prop: 'customerid',
dataType: 'TEXT',
},
{
name: 'customername',
prop: 'customername',
dataType: 'TEXT',
},
{
name: 'customertype',
prop: 'customertype',
dataType: 'TEXT',
},
{
name: 'productid',
prop: 'productid',
dataType: 'PICKUP',
},
{
name: 'incidentid',
prop: 'incidentid',
dataType: 'GUID',
},
{
name: 'subjectid',
prop: 'subjectid',
dataType: 'PICKUP',
},
{
name: 'entitlementid',
prop: 'entitlementid',
dataType: 'PICKUP',
},
{
name: 'incident',
prop: 'incidentid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-form' ref='form' id='incident_byparentkey' style="">
<input style="display:none;" />
<row >
<i-col 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.incident.byparentkey_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.title.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='title' :itemRules="this.rules.title" class='' :caption="$t('entities.incident.byparentkey_form.details.title')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.title.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.title" @enter="onEnter($event)" unit="" :disabled="detailsModel.title.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.subjectname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='subjectname' :itemRules="this.rules.subjectname" class='' :caption="$t('entities.incident.byparentkey_form.details.subjectname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.subjectname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.subjectname.disabled"
name='subjectname'
deMajorField='title'
deKeyField='subject'
:service="service"
:acParams="{ serviceName: 'SubjectService', interfaceName: 'FetchDefault'}"
valueitem='subjectid'
:value="data.subjectname"
editortype=""
:pickupView="{ viewname: 'subject-pickup-view', title: $t('entities.subject.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'subjects', parameterName: 'subject' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.caseorigincode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='caseorigincode' :itemRules="this.rules.caseorigincode" class='' :caption="$t('entities.incident.byparentkey_form.details.caseorigincode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.caseorigincode.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.caseorigincode"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.caseorigincode.disabled"
tag='Incident__CaseOriginCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.productname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='productname' :itemRules="this.rules.productname" class='' :caption="$t('entities.incident.byparentkey_form.details.productname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.productname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.productname.disabled"
name='productname'
deMajorField='productname'
deKeyField='product'
:service="service"
:acParams="{ serviceName: 'ProductService', interfaceName: 'FetchDefault'}"
valueitem='productid'
:value="data.productname"
editortype=""
:pickupView="{ viewname: 'product-pickup-view', title: $t('entities.product.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'products', parameterName: 'product' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.entitlementname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='entitlementname' :itemRules="this.rules.entitlementname" class='' :caption="$t('entities.incident.byparentkey_form.details.entitlementname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entitlementname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.entitlementname.disabled"
name='entitlementname'
deMajorField='entitlementname'
deKeyField='entitlement'
:service="service"
:acParams="{ serviceName: 'EntitlementService', interfaceName: 'FetchDefault'}"
valueitem='entitlementid'
:value="data.entitlementname"
editortype=""
:pickupView="{ viewname: 'entitlement-pickup-view', title: $t('entities.entitlement.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'entitlements', parameterName: 'entitlement' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.customerid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='customerid' :itemRules="this.rules.customerid" class='' :caption="$t('entities.incident.byparentkey_form.details.customerid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.customerid.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.customerid" @enter="onEnter($event)" unit="" :disabled="detailsModel.customerid.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.customername.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='customername' :itemRules="this.rules.customername" class='' :caption="$t('entities.incident.byparentkey_form.details.customername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.customername.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.customername.disabled"
name='customername'
deMajorField='customername'
deKeyField='incidentcustomer'
:service="service"
:acParams="{ serviceName: 'IncidentCustomerService', interfaceName: 'FetchDefault'}"
valueitem='customerid'
:value="data.customername"
editortype=""
:pickupView="{ viewname: 'incident-customer-pickup-view', title: $t('entities.incidentcustomer.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'incidentcustomers', parameterName: 'incidentcustomer' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.customertype.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='customertype' :itemRules="this.rules.customertype" class='' :caption="$t('entities.incident.byparentkey_form.details.customertype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.customertype.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.customertype" @enter="onEnter($event)" unit="" :disabled="detailsModel.customertype.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
<template src="./by-parent-key-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { ByParentKeyEditFormBase } from './by-parent-key-form-base';
/**
* form部件
*
* @export
* @class ByParentKeyEditForm
* @extends {ByParentKeyEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class ByParentKeyEditForm extends ByParentKeyEditFormBase { }
</script>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<div v-show="detailsModel.button1.visible" :style="{}"> <div v-show="detailsModel.button1.visible" :style="{}">
<i-button type="primary" @click="button1_click($event)" class="form-btn-noborder-transparent" <i-button type="primary" @click="button1_click($event)" class="form-btn-noborder-transparent"
style=""> style="">
<i class="fa fa-angle-down" style="margin-right: 2px;"></i>
</i-button> </i-button>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册