提交 3df2b754 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 73bcbd73
...@@ -4476,6 +4476,33 @@ ...@@ -4476,6 +4476,33 @@
} }
] ]
}, },
{
"srfkey": "Account__StatusCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "停用",
"text": "停用",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "可用",
"text": "可用",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
]
},
{ {
"srfkey": "Metric__AmountDataType", "srfkey": "Metric__AmountDataType",
"emptytext": "未定义", "emptytext": "未定义",
......
...@@ -580,6 +580,11 @@ export default { ...@@ -580,6 +580,11 @@ export default {
"1": "男", "1": "男",
"empty": "" "empty": ""
}, },
Account__StatusCode: {
"2": "停用",
"1": "可用",
"empty": ""
},
Metric__AmountDataType: { Metric__AmountDataType: {
"1": "十进制", "1": "十进制",
"2": "整数", "2": "整数",
......
...@@ -580,6 +580,11 @@ export default { ...@@ -580,6 +580,11 @@ export default {
"1": "男", "1": "男",
"empty": "", "empty": "",
}, },
Account__StatusCode: {
"2": "停用",
"1": "可用",
"empty": "",
},
Metric__AmountDataType: { Metric__AmountDataType: {
"1": "十进制", "1": "十进制",
"2": "整数", "2": "整数",
......
...@@ -441,6 +441,24 @@ export default { ...@@ -441,6 +441,24 @@ export default {
uiactions: { uiactions: {
}, },
}, },
quicksummary_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
statuscode: "状态描述",
accountid: "客户",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "账户信息", group1: "账户信息",
......
...@@ -440,6 +440,24 @@ export default { ...@@ -440,6 +440,24 @@ export default {
uiactions: { uiactions: {
}, },
}, },
quicksummary_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
statuscode: "状态描述",
accountid: "客户",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "账户信息", group1: "账户信息",
......
...@@ -4484,6 +4484,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -4484,6 +4484,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
}, },
] ]
}, },
{
srfkey: "Account__StatusCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "2",
label: "停用",
text: "停用",
"data":"",
"codename":"Item_2",
value: "2",
disabled: false,
},
{
id: "1",
label: "可用",
text: "可用",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
]
},
{ {
srfkey: "Metric__AmountDataType", srfkey: "Metric__AmountDataType",
emptytext: "未定义", emptytext: "未定义",
......
...@@ -54,7 +54,7 @@ export class AccountInfoBase extends TabExpViewBase { ...@@ -54,7 +54,7 @@ export class AccountInfoBase extends TabExpViewBase {
*/ */
protected containerModel: any = { protected containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' }, view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_quicksummary: { name: 'quicksummary', type: 'CUSTOM' }, view_quicksummary: { name: 'quicksummary', type: 'FORM' },
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' }, view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
}; };
......
...@@ -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 { AccountInfoBase } from './account-info-base'; import { AccountInfoBase } from './account-info-base';
import view_quicksummary from '@widgets/account/infoquicksummary-custom/infoquicksummary-custom.vue'; import view_quicksummary from '@widgets/account/quick-summary-form/quick-summary-form.vue';
import view_tabexppanel from '@widgets/account/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue'; import view_tabexppanel from '@widgets/account/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue';
/** /**
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import AccountService from '@/service/account/account-service';
import QuickSummaryService from './quick-summary-form-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* quicksummary部件基类
*
* @export
* @class EditFormControlBase
* @extends {QuickSummaryEditFormBase}
*/
export class QuickSummaryEditFormBase extends EditFormControlBase {
/**
* 建构部件服务对象
*
* @type {QuickSummaryService}
* @memberof QuickSummaryEditFormBase
*/
public service: QuickSummaryService = new QuickSummaryService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof QuickSummaryEditFormBase
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof QuickSummaryEditFormBase
*/
protected appDeName: string = 'account';
/**
* 表单数据对象
*
* @type {*}
* @memberof QuickSummaryEditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
statuscode: null,
accountid: null,
account:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof QuickSummaryEditFormBase
*/
public rules: any = {
}
/**
* 详情模型集合
*
* @type {*}
* @memberof QuickSummaryEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '客户基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.account.quicksummary_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfkey: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfmajortext: new FormItemModel({ caption: '客户名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
statuscode: new FormItemModel({ caption: '状态描述', detailType: 'FORMITEM', name: 'statuscode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
accountid: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'accountid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
};
}
\ No newline at end of file
/**
* QuickSummary 部件模型
*
* @export
* @class QuickSummaryModel
*/
export default class QuickSummaryModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof QuickSummaryModel
*/
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: 'accountid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'accountname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'statuscode',
prop: 'statuscode',
dataType: 'NSCODELIST',
},
{
name: 'accountid',
prop: 'accountid',
dataType: 'GUID',
},
{
name: 'account',
prop: 'accountid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-form' ref='quicksummary' id='account_quicksummary' style="">
<input style="display:none;" />
<row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.account.quicksummary_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.statuscode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='statuscode' :itemRules="this.rules.statuscode" class='' :caption="$t('entities.account.quicksummary_form.details.statuscode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.statuscode.error" :isEmptyCaption="false" labelPos="TOP">
<dropdown-list
v-model="data.statuscode"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.statuscode.disabled"
tag='Account__StatusCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
<template src="./quick-summary-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { QuickSummaryEditFormBase } from './quick-summary-form-base';
/**
* quicksummary部件
*
* @export
* @class QuickSummaryEditForm
* @extends {QuickSummaryEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class QuickSummaryEditForm extends QuickSummaryEditFormBase { }
</script>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册