Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
9a4869ea
提交
9a4869ea
编写于
7月 08, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码
上级
6354f9b1
变更
11
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
750 行增加
和
3 行删除
+750
-3
account_en_US.ts
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
+1
-1
account_zh_CN.ts
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
+1
-1
account-info.vue
app_CRM/src/pages/base/account-info/account-info.vue
+1
-1
studio-view-base.tsx
...c/studio-core/components/studio-view/studio-view-base.tsx
+3
-0
studio-view.less
...M/src/studio-core/components/studio-view/studio-view.less
+4
-0
info-data-panel-form-base.tsx
...ccount/info-data-panel-form/info-data-panel-form-base.tsx
+169
-0
info-data-panel-form-model.ts
...ccount/info-data-panel-form/info-data-panel-form-model.ts
+101
-0
info-data-panel-form-service.ts
...ount/info-data-panel-form/info-data-panel-form-service.ts
+371
-0
info-data-panel-form.html
...ts/account/info-data-panel-form/info-data-panel-form.html
+66
-0
info-data-panel-form.less
...ts/account/info-data-panel-form/info-data-panel-form.less
+8
-0
info-data-panel-form.vue
...ets/account/info-data-panel-form/info-data-panel-form.vue
+25
-0
未找到文件。
app_CRM/src/locale/lanres/entities/account/account_en_US.ts
浏览文件 @
9a4869ea
...
...
@@ -404,7 +404,7 @@ export default {
uiactions
:
{
},
},
datapanel_form
:
{
info_
datapanel_form
:
{
details
:
{
button1
:
"头部信息编辑"
,
group1
:
"客户基本信息"
,
...
...
app_CRM/src/locale/lanres/entities/account/account_zh_CN.ts
浏览文件 @
9a4869ea
...
...
@@ -403,7 +403,7 @@ export default {
uiactions
:
{
},
},
datapanel_form
:
{
info_
datapanel_form
:
{
details
:
{
button1
:
"头部信息编辑"
,
group1
:
"客户基本信息"
,
...
...
app_CRM/src/pages/base/account-info/account-info.vue
浏览文件 @
9a4869ea
...
...
@@ -3,7 +3,7 @@
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { AccountInfoBase } from './account-info-base';
import view_datapanel from '@widgets/account/
data-panel-form/
data-panel-form.vue';
import view_datapanel from '@widgets/account/
info-data-panel-form/info-
data-panel-form.vue';
import view_tabexppanel from '@widgets/account/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue';
/**
...
...
app_CRM/src/studio-core/components/studio-view/studio-view-base.tsx
浏览文件 @
9a4869ea
...
...
@@ -101,6 +101,9 @@ export class StudioViewBase extends Vue {
{
this
.
$slots
.
searchForm
?
<
div
class=
"search-form-wrapper"
>
{
this
.
$slots
.
searchForm
}
</
div
>
:
null
}
{
this
.
$slots
.
searchBar
?
<
div
class=
"search-bar-wrapper"
>
{
this
.
$slots
.
searchBar
}
</
div
>
:
null
}
<
div
class=
"content-wrapper"
>
{
this
.
$slots
.
default
}
</
div
>
...
...
app_CRM/src/studio-core/components/studio-view/studio-view.less
浏览文件 @
9a4869ea
...
...
@@ -90,6 +90,10 @@
flex-shrink: 0;
}
>.search-bar-wrapper {
flex-shrink: 0;
}
>.content-wrapper {
flex-grow: 1;
overflow-y: auto;
...
...
app_CRM/src/widgets/account/info-data-panel-form/info-data-panel-form-base.tsx
0 → 100644
浏览文件 @
9a4869ea
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
Info_DataPanelService
from
'./info-data-panel-form-service'
;
import
AccountUIService
from
'@/uiservice/account/account-ui-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
/**
* datapanel部件基类
*
* @export
* @class EditFormControlBase
* @extends {Info_DataPanelEditFormBase}
*/
export
class
Info_DataPanelEditFormBase
extends
EditFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof Info_DataPanelEditFormBase
*/
protected
controlType
:
string
=
'FORM'
;
/**
* 建构部件服务对象
*
* @type {Info_DataPanelService}
* @memberof Info_DataPanelEditFormBase
*/
public
service
:
Info_DataPanelService
=
new
Info_DataPanelService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof Info_DataPanelEditFormBase
*/
public
appEntityService
:
AccountService
=
new
AccountService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof Info_DataPanelEditFormBase
*/
protected
appDeName
:
string
=
'account'
;
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
datapanel_button1_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
AccountUIService
=
new
AccountUIService
();
curUIService
.
Account_Edit_DataPanel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Account"
);
}
/**
* 表单数据对象
*
* @type {*}
* @memberof Info_DataPanelEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
industrycode
:
null
,
telephone1
:
null
,
revenue
:
null
,
numberofemployees
:
null
,
statuscode
:
null
,
owneridyominame
:
null
,
accountid
:
null
,
account
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof Info_DataPanelEditFormBase
*/
public
rules
:
any
=
{
}
/**
* 详情模型集合
*
* @type {*}
* @memberof Info_DataPanelEditFormBase
*/
public
detailsModel
:
any
=
{
button1
:
new
FormButtonModel
({
caption
:
'头部信息编辑'
,
detailType
:
'BUTTON'
,
name
:
'button1'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
uiaction
:
{
type
:
'DEUIACTION'
,
tag
:
'Edit_DataPanel'
,
actiontarget
:
'SINGLEKEY'
}
}),
group1
:
new
FormGroupPanelModel
({
caption
:
'客户基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.account.info_datapanel_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
}),
industrycode
:
new
FormItemModel
({
caption
:
'行业'
,
detailType
:
'FORMITEM'
,
name
:
'industrycode'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
telephone1
:
new
FormItemModel
({
caption
:
'主要电话'
,
detailType
:
'FORMITEM'
,
name
:
'telephone1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
revenue
:
new
FormItemModel
({
caption
:
'年收入'
,
detailType
:
'FORMITEM'
,
name
:
'revenue'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
numberofemployees
:
new
FormItemModel
({
caption
:
'员工人数'
,
detailType
:
'FORMITEM'
,
name
:
'numberofemployees'
,
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
}),
accountid
:
new
FormItemModel
({
caption
:
'客户'
,
detailType
:
'FORMITEM'
,
name
:
'accountid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
};
/**
* 表单 头部信息编辑 事件
*
* @memberof @memberof Info_DataPanelEditFormBase
*/
public
button1_click
(
$event
:
any
):
void
{
this
.
datapanel_button1_click
(
null
,
null
,
$event
);
}
}
\ No newline at end of file
app_CRM/src/widgets/account/info-data-panel-form/info-data-panel-form-model.ts
0 → 100644
浏览文件 @
9a4869ea
/**
* Info_DataPanel 部件模型
*
* @export
* @class Info_DataPanelModel
*/
export
default
class
Info_DataPanelModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Info_DataPanelModel
*/
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
:
'industrycode'
,
prop
:
'industrycode'
,
dataType
:
'SSCODELIST'
,
},
{
name
:
'telephone1'
,
prop
:
'telephone1'
,
dataType
:
'TEXT'
,
},
{
name
:
'revenue'
,
prop
:
'revenue'
,
dataType
:
'BIGDECIMAL'
,
},
{
name
:
'numberofemployees'
,
prop
:
'numberofemployees'
,
dataType
:
'INT'
,
},
{
name
:
'statuscode'
,
prop
:
'statuscode'
,
dataType
:
'NSCODELIST'
,
},
{
name
:
'owneridyominame'
,
prop
:
'owneridyominame'
,
dataType
:
'TEXT'
,
},
{
name
:
'accountid'
,
prop
:
'accountid'
,
dataType
:
'GUID'
,
},
{
name
:
'account'
,
prop
:
'accountid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_CRM/src/widgets/account/info-data-panel-form/info-data-panel-form-service.ts
0 → 100644
浏览文件 @
9a4869ea
此差异已折叠。
点击以展开。
app_CRM/src/widgets/account/info-data-panel-form/info-data-panel-form.html
0 → 100644
浏览文件 @
9a4869ea
<i-form
:model=
"this.data"
class=
'app-form info-form-mode'
ref=
'datapanel'
id=
'account_info_datapanel'
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.account.info_datapanel_form.details.group1')"
:isShowCaption=
"false"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"true"
>
<div
style=
"height: 100%;display: flex;"
>
<div
v-show=
"detailsModel.industrycode.visible"
:style=
"{}"
>
<app-form-item
name=
'industrycode'
:itemRules=
"this.rules.industrycode"
class=
'datapanel-style'
labelStyle=
"datapanel-label-style"
:caption=
"$t('entities.account.info_datapanel_form.details.industrycode')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.industrycode.error"
:isEmptyCaption=
"false"
labelPos=
"BOTTOM"
>
<app-span
name=
'industrycode'
:value=
"data.industrycode"
tag=
'Account__IndustryCode'
codelistType=
'STATIC'
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
></app-span>
</app-form-item>
</div>
<div
v-show=
"detailsModel.telephone1.visible"
:style=
"{}"
>
<app-form-item
name=
'telephone1'
:itemRules=
"this.rules.telephone1"
class=
'datapanel-style'
labelStyle=
"datapanel-label-style"
:caption=
"$t('entities.account.info_datapanel_form.details.telephone1')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.telephone1.error"
:isEmptyCaption=
"false"
labelPos=
"BOTTOM"
>
<app-span
name=
'telephone1'
:value=
"data.telephone1"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
></app-span>
</app-form-item>
</div>
<div
v-show=
"detailsModel.revenue.visible"
:style=
"{}"
>
<app-form-item
name=
'revenue'
:itemRules=
"this.rules.revenue"
class=
'datapanel-style'
labelStyle=
"datapanel-label-style"
:caption=
"$t('entities.account.info_datapanel_form.details.revenue')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.revenue.error"
:isEmptyCaption=
"false"
labelPos=
"BOTTOM"
>
<app-span
name=
'revenue'
:value=
"data.revenue"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
></app-span>
</app-form-item>
</div>
<div
v-show=
"detailsModel.numberofemployees.visible"
:style=
"{}"
>
<app-form-item
name=
'numberofemployees'
:itemRules=
"this.rules.numberofemployees"
class=
'datapanel-style'
labelStyle=
"datapanel-label-style"
:caption=
"$t('entities.account.info_datapanel_form.details.numberofemployees')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.numberofemployees.error"
:isEmptyCaption=
"false"
labelPos=
"BOTTOM"
>
<app-span
name=
'numberofemployees'
:value=
"data.numberofemployees"
: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.account.info_datapanel_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=
'Account__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.account.info_datapanel_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
v-show=
"detailsModel.button1.visible"
:style=
"{}"
>
<i-button
type=
"primary"
@
click=
"button1_click($event)"
style=
""
>
<i
class=
"fa fa-angle-down"
style=
"margin-right: 2px;"
></i>
</i-button>
</div>
</div>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
app_CRM/src/widgets/account/info-data-panel-form/info-data-panel-form.less
0 → 100644
浏览文件 @
9a4869ea
.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
}
app_CRM/src/widgets/account/info-data-panel-form/info-data-panel-form.vue
0 → 100644
浏览文件 @
9a4869ea
<
template
src=
"./info-data-panel-form.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { Info_DataPanelEditFormBase } from './info-data-panel-form-base';
/**
* datapanel部件
*
* @export
* @class Info_DataPanelEditForm
* @extends {Info_DataPanelEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class Info_DataPanelEditForm extends Info_DataPanelEditFormBase { }
</script>
<style
lang=
'less'
>
@import
'./info-data-panel-form.less'
;
</style>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录