提交 2763f456 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 e308dddc
......@@ -2914,6 +2914,35 @@
}
]
},
{
"srfkey": "Contact__StatusCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "停用",
"text": "停用",
"data":"",
"codename":"Item_2",
"color": "rgba(255, 25, 0, 1)",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "可用",
"text": "可用",
"data":"",
"codename":"Item_1",
"color": "rgba(0, 255, 72, 1)",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "PickDataType",
"emptytext": "未定义",
......@@ -3451,6 +3480,23 @@
}
]
},
{
"srfkey": "Contact__CustomerSizeCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "默认值",
"text": "默认值",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "Goal__FiscalYear",
"emptytext": "未定义",
......
......@@ -1289,6 +1289,16 @@
"viewtag": "78862ad65295f145e7520291f1183604",
"memo": "系统自动添加"
},
"contactedit_datapanelview": {
"title": "头部信息编辑",
"caption": "联系人",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "ContactEdit_DataPanelView",
"viewfilename": "contact-edit-data-panel-view",
"viewtag": "791f1cf310878383aaec921c83adb1d5",
"memo": ""
},
"leadinfo_contact": {
"title": "潜在顾客信息",
"caption": "潜在顾客",
......
......@@ -74,6 +74,7 @@ import ContextMenuDrag from './components/context-menu-drag/context-menu-drag.vu
import AppOrgSelect from './components/app-org-select/app-org-select.vue'
import AppDepartmentSelect from './components/app-department-select/app-department-select.vue'
import AppGroupSelect from './components/app-group-select/app-group-select.vue'
import FilterTree from './components/filter-tree/filter-tree.vue';
// 全局挂载UI实体服务注册中心
window['uiServiceRegister'] = uiServiceRegister;
// 全局挂载功能服务注册中心
......@@ -159,5 +160,6 @@ export const AppComponents = {
v.component('app-wf-approval',AppWFApproval);
v.component('app-transfer',AppTransfer);
v.component('context-menu-drag',ContextMenuDrag);
v.component('filter-tree',FilterTree);
},
};
\ No newline at end of file
......@@ -364,6 +364,11 @@ export default {
"2": "送货地址",
"empty": ""
},
Contact__StatusCode: {
"2": "停用",
"1": "可用",
"empty": ""
},
PickDataType: {
"ACCOUNT": "客户",
"CONTACT": "联系人",
......@@ -443,6 +448,10 @@ export default {
"5": "已暂停",
"empty": ""
},
Contact__CustomerSizeCode: {
"1": "默认值",
"empty": ""
},
Goal__FiscalYear: {
"1970": "1970 财年",
"1971": "1971 财年",
......
......@@ -364,6 +364,11 @@ export default {
"2": "送货地址",
"empty": "",
},
Contact__StatusCode: {
"2": "停用",
"1": "可用",
"empty": "",
},
PickDataType: {
"ACCOUNT": "客户",
"CONTACT": "联系人",
......@@ -443,6 +448,10 @@ export default {
"5": "已暂停",
"empty": "",
},
Contact__CustomerSizeCode: {
"1": "默认值",
"empty": "",
},
Goal__FiscalYear: {
"1970": "1970 财年",
"1971": "1971 财年",
......
......@@ -249,6 +249,10 @@ export default {
caption: "地址信息",
title: "联系人选项操作视图",
},
edit_datapanelview: {
caption: "联系人",
title: "头部信息编辑",
},
pickupgridview: {
caption: "联系人",
title: "联系人选择表格视图",
......@@ -387,6 +391,26 @@ export default {
uiactions: {
},
},
datepanel_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
customersizecode: "客户规模",
statuscode: "状态",
owneridyominame: "负责人",
contactid: "联系人",
},
uiactions: {
},
},
marketedit_form: {
details: {
group1: "联系人基本信息",
......@@ -496,6 +520,26 @@ export default {
uiactions: {
},
},
edit_datapanel_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
customersizecode: "客户规模",
statuscode: "状态",
owneridyominame: "负责人",
contactid: "联系人",
},
uiactions: {
},
},
addressinfo_form: {
details: {
group1: "联系人基本信息",
......
......@@ -248,6 +248,10 @@ export default {
caption: "地址信息",
title: "联系人选项操作视图",
},
edit_datapanelview: {
caption: "联系人",
title: "头部信息编辑",
},
pickupgridview: {
caption: "联系人",
title: "联系人选择表格视图",
......@@ -386,6 +390,26 @@ export default {
uiactions: {
},
},
datepanel_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
customersizecode: "客户规模",
statuscode: "状态",
owneridyominame: "负责人",
contactid: "联系人",
},
uiactions: {
},
},
marketedit_form: {
details: {
group1: "联系人基本信息",
......@@ -495,6 +519,26 @@ export default {
uiactions: {
},
},
edit_datapanel_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
customersizecode: "客户规模",
statuscode: "状态",
owneridyominame: "负责人",
contactid: "联系人",
},
uiactions: {
},
},
addressinfo_form: {
details: {
group1: "联系人基本信息",
......
......@@ -2922,6 +2922,35 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Contact__StatusCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "2",
label: "停用",
text: "停用",
"data":"",
"codename":"Item_2",
"color": "rgba(255, 25, 0, 1)",
value: "2",
disabled: false,
},
{
id: "1",
label: "可用",
text: "可用",
"data":"",
"codename":"Item_1",
"color": "rgba(0, 255, 72, 1)",
value: "1",
disabled: false,
},
]
},
{
srfkey: "PickDataType",
emptytext: "未定义",
......@@ -3459,6 +3488,23 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Contact__CustomerSizeCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "1",
label: "默认值",
text: "默认值",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
]
},
{
srfkey: "Goal__FiscalYear",
emptytext: "未定义",
......
......@@ -1039,6 +1039,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "QuoteOppQuaGridView",
"viewtag": "78862ad65295f145e7520291f1183604"
},
"contactedit_datapanelview": {
"title": "头部信息编辑",
"caption": "联系人",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "ContactEdit_DataPanelView",
"viewtag": "791f1cf310878383aaec921c83adb1d5"
},
"leadinfo_contact": {
"title": "潜在顾客信息",
"caption": "潜在顾客",
......
......@@ -80,7 +80,7 @@ export class ContactInfoBase extends TabExpViewBase {
* @memberof ContactInfoBase
*/
protected containerModel: any = {
view_datapanel: { name: 'datapanel', type: 'PANEL' },
view_datapanel: { name: 'datapanel', type: 'FORM' },
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
};
......
......@@ -3,16 +3,25 @@
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="dataPanel">
<layout_datapanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:parentRef="thisRef"
:inputData="inputData"
@panelDataChange="($event)=>{onPanelDataChange(item,$event)}"
name="datapanel"
ref='datapanel'>
</layout_datapanel>
<view_datapanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="datapanel"
ref='datapanel'
@closeview="closeView($event)">
</view_datapanel>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
......
......@@ -3,7 +3,7 @@
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { ContactInfoBase } from './contact-info-base';
import layout_datapanel from '@widgets/contact/data-panel-panel/data-panel-panel.vue';
import view_datapanel from '@widgets/contact/date-panel-form/date-panel-form.vue';
import view_tabexppanel from '@widgets/contact/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue';
/**
......@@ -15,7 +15,7 @@ import view_tabexppanel from '@widgets/contact/infotabexppanel-tabexppanel/infot
*/
@Component({
components: {
layout_datapanel,
view_datapanel,
view_tabexppanel,
}
})
......
......@@ -90,6 +90,7 @@ export default class ContactUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'summaryview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'stopgridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'editaddress',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'edit_datapanelview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'byaccount',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'info_address',srfappde:'contacts'});
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import ContactService from '@/service/contact/contact-service';
import DatePanelService from './date-panel-form-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* datapanel部件基类
*
* @export
* @class EditFormControlBase
* @extends {DatePanelEditFormBase}
*/
export class DatePanelEditFormBase extends EditFormControlBase {
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DatePanelEditFormBase
*/
protected controlType: string = 'FORM';
/**
* 建构部件服务对象
*
* @type {DatePanelService}
* @memberof DatePanelEditFormBase
*/
public service: DatePanelService = new DatePanelService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {ContactService}
* @memberof DatePanelEditFormBase
*/
public appEntityService: ContactService = new ContactService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DatePanelEditFormBase
*/
protected appDeName: string = 'contact';
/**
* 表单数据对象
*
* @type {*}
* @memberof DatePanelEditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
customersizecode: null,
statuscode: null,
owneridyominame: null,
contactid: null,
contact:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof DatePanelEditFormBase
*/
public rules: any = {
}
/**
* 详情模型集合
*
* @type {*}
* @memberof DatePanelEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '联系人基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.contact.datepanel_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 }),
customersizecode: new FormItemModel({ caption: '客户规模', detailType: 'FORMITEM', name: 'customersizecode', 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 }),
owneridyominame: new FormItemModel({ caption: '负责人', detailType: 'FORMITEM', name: 'owneridyominame', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
contactid: new FormItemModel({ caption: '联系人', detailType: 'FORMITEM', name: 'contactid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
};
}
\ No newline at end of file
/**
* DatePanel 部件模型
*
* @export
* @class DatePanelModel
*/
export default class DatePanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DatePanelModel
*/
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: 'contactid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'fullname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'customersizecode',
prop: 'customersizecode',
dataType: 'SSCODELIST',
},
{
name: 'statuscode',
prop: 'statuscode',
dataType: 'NSCODELIST',
},
{
name: 'owneridyominame',
prop: 'owneridyominame',
dataType: 'TEXT',
},
{
name: 'contactid',
prop: 'contactid',
dataType: 'GUID',
},
{
name: 'contact',
prop: 'contactid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-form info-form-mode' ref='datapanel' id='contact_datepanel' style="">
<input style="display:none;" />
<row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="FLEX" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.contact.datepanel_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="true" >
<div style="height: 100%;display: flex;justify-content: space-between;">
<div v-show="detailsModel.customersizecode.visible" :style="{}">
<app-form-item name='customersizecode' :itemRules="this.rules.customersizecode" class='datapanel-style' labelStyle="datapanel-label-style" :caption="$t('entities.contact.datepanel_form.details.customersizecode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.customersizecode.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-span name='customersizecode' :value="data.customersizecode" tag='Contact__CustomerSizeCode' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</div>
<div v-show="detailsModel.statuscode.visible" :style="{}">
<app-form-item name='statuscode' :itemRules="this.rules.statuscode" class='datapanel-style' labelStyle="datapanel-label-style" :caption="$t('entities.contact.datepanel_form.details.statuscode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.statuscode.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-span name='statuscode' :value="data.statuscode" tag='Contact__StatusCode' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</div>
<div v-show="detailsModel.owneridyominame.visible" :style="{}">
<app-form-item name='owneridyominame' :itemRules="this.rules.owneridyominame" class='datapanel-style' labelStyle="datapanel-label-style" :caption="$t('entities.contact.datepanel_form.details.owneridyominame')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.owneridyominame.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-span name='owneridyominame' :value="data.owneridyominame" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</div>
</div>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
.datapanel-style {
color:rgba(209, 196, 233, 1);font-size:20px;font-weight:bold;margin:0px 10px 0px 0px;text-align:left
}
.datapanel-label-style {
color:rgba(245, 244, 244, 1);font-size:12px;margin:0px 0px 0px 0px
}
<template src="./date-panel-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DatePanelEditFormBase } from './date-panel-form-base';
/**
* datapanel部件
*
* @export
* @class DatePanelEditForm
* @extends {DatePanelEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DatePanelEditForm extends DatePanelEditFormBase { }
</script>
<style lang='less'>
@import './date-panel-form.less';
</style>
......@@ -20,26 +20,23 @@
<i-col v-show="detailsModel.owneridyominame.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='owneridyominame' :itemRules="this.rules.owneridyominame" class='' :caption="$t('entities.task.quickcreate_form.details.owneridyominame')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.owneridyominame.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.owneridyominame.disabled"
name='owneridyominame'
deMajorField='pickdataname'
deKeyField='multipickdata'
:service="service"
:acParams="{ serviceName: 'MultiPickDataService', interfaceName: 'FetchAC'}"
valueitem=''
:value="data.owneridyominame"
editortype=""
:pickupView="{ viewname: 'multi-pick-data-ac', title: $t('entities.multipickdata.views.ac.title'), deResParameters: [], parameters: [{ pathName: 'multipickdata', parameterName: 'multipickdata' }, { pathName: 'ac', parameterName: 'ac' } ], width: 1024, height: 800, placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange($event)">
</app-picker>
<app-mpicker
:activeData="data"
:disabled="detailsModel.owneridyominame.disabled"
:curvalue="data.owneridyominame"
name="owneridyominame"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:service="service"
deMajorField='pickdataname'
deKeyField='multipickdata'
:acParams="{ serviceName: 'MultiPickDataService', interfaceName: 'FetchAC'}"
:pickupView="{ viewname: 'multi-pick-data-ac', title: $t('entities.multipickdata.views.ac.title'), deResParameters: [], parameters: [{ pathName: 'multipickdata', parameterName: 'multipickdata' }, { pathName: 'ac', parameterName: 'ac' } ], width: 1024, placement:'' }"
@formitemvaluechange="onFormItemValueChange($event)"
style="">
</app-mpicker>
</app-form-item>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册