Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
5fba7f77
提交
5fba7f77
编写于
7月 08, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码
上级
dcf71877
变更
20
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
951 行增加
和
4 行删除
+951
-4
data-dictionary.json
app_CRM/public/assets/json/data-dictionary.json
+37
-0
view-config.json
app_CRM/public/assets/json/view-config.json
+10
-0
data-panel-engine.ts
app_CRM/src/engine/ctrl/data-panel-engine.ts
+1
-2
codelist_en_US.ts
app_CRM/src/locale/lanres/codelist/codelist_en_US.ts
+6
-0
codelist_zh_CN.ts
app_CRM/src/locale/lanres/codelist/codelist_zh_CN.ts
+6
-0
opportunity_en_US.ts
...c/locale/lanres/entities/opportunity/opportunity_en_US.ts
+28
-0
opportunity_zh_CN.ts
...c/locale/lanres/entities/opportunity/opportunity_zh_CN.ts
+28
-0
codelist.ts
app_CRM/src/mock/codelist/codelist.ts
+37
-0
viewconfig.ts
app_CRM/src/mock/viewconfig/viewconfig.ts
+8
-0
opportunity-info-base.tsx
...rc/pages/sales/opportunity-info/opportunity-info-base.tsx
+18
-0
opportunity-info.html
...RM/src/pages/sales/opportunity-info/opportunity-info.html
+21
-0
opportunity-info.vue
...CRM/src/pages/sales/opportunity-info/opportunity-info.vue
+2
-0
opportunity-ui-service-base.ts
.../src/uiservice/opportunity/opportunity-ui-service-base.ts
+1
-0
app-popover.tsx
app_CRM/src/utils/app-popover/app-popover.tsx
+2
-2
data-panel-form-base.tsx
...gets/opportunity/data-panel-form/data-panel-form-base.tsx
+183
-0
data-panel-form-model.ts
...gets/opportunity/data-panel-form/data-panel-form-model.ts
+91
-0
data-panel-form-service.ts
...ts/opportunity/data-panel-form/data-panel-form-service.ts
+371
-0
data-panel-form.html
.../widgets/opportunity/data-panel-form/data-panel-form.html
+60
-0
data-panel-form.less
.../widgets/opportunity/data-panel-form/data-panel-form.less
+16
-0
data-panel-form.vue
...c/widgets/opportunity/data-panel-form/data-panel-form.vue
+25
-0
未找到文件。
app_CRM/public/assets/json/data-dictionary.json
浏览文件 @
5fba7f77
...
...
@@ -3159,6 +3159,43 @@
}
]
},
{
"srfkey"
:
"Opportunity__StateCode"
,
"emptytext"
:
"未定义"
,
"codelisttype"
:
"static"
,
"items"
:
[
{
"id"
:
"2"
,
"label"
:
"丢单"
,
"text"
:
"丢单"
,
"data"
:
""
,
"codename"
:
"Item_2"
,
"value"
:
"2"
,
"disabled"
:
false
}
,
{
"id"
:
"0"
,
"label"
:
"已开始"
,
"text"
:
"已开始"
,
"data"
:
""
,
"codename"
:
"Item_0"
,
"value"
:
"0"
,
"disabled"
:
false
}
,
{
"id"
:
"1"
,
"label"
:
"赢单"
,
"text"
:
"赢单"
,
"data"
:
""
,
"codename"
:
"Item_1"
,
"value"
:
"1"
,
"disabled"
:
false
}
]
},
{
"srfkey"
:
"Opportunity__PurchaseProcess"
,
"emptytext"
:
"未定义"
,
...
...
app_CRM/public/assets/json/view-config.json
浏览文件 @
5fba7f77
...
...
@@ -2249,6 +2249,16 @@
"viewtag"
:
"d43728f22dd85502c1f3c27e93878162"
,
"memo"
:
"系统自动添加"
},
"opportunitylostgridview"
:
{
"title"
:
"商机信息"
,
"caption"
:
"商机信息"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sales"
,
"viewname"
:
"OpportunityLostGridView"
,
"viewfilename"
:
"opportunity-lost-grid-view"
,
"viewtag"
:
"d43a25ac94ca7cb20db961aae174ca53"
,
"memo"
:
"系统自动添加"
},
"leadcompetitorgridview"
:
{
"title"
:
"潜在客户对手表格视图"
,
"caption"
:
"潜在客户对手"
,
...
...
app_CRM/src/engine/ctrl/data-panel-engine.ts
浏览文件 @
5fba7f77
...
...
@@ -90,8 +90,7 @@ export default class DataPanelEngine extends ViewEngine {
}
}
else
if
(
Object
.
is
(
this
.
dataPanel
.
controlType
,
ctrl
.
type
.
Panel
))
{
if
(
data
&&
data
.
data
)
{
this
.
dataPanel
.
data
=
data
.
data
;
this
.
dataPanel
.
$forceUpdate
();
this
.
dataPanel
.
onInputDataChange
(
data
.
data
);
}
}
...
...
app_CRM/src/locale/lanres/codelist/codelist_en_US.ts
浏览文件 @
5fba7f77
...
...
@@ -400,6 +400,12 @@ export default {
"2"
:
"免收费用"
,
"empty"
:
""
},
Opportunity__StateCode
:
{
"2"
:
"丢单"
,
"0"
:
"已开始"
,
"1"
:
"赢单"
,
"empty"
:
""
},
Opportunity__PurchaseProcess
:
{
"0"
:
"个人"
,
"1"
:
"委员会"
,
...
...
app_CRM/src/locale/lanres/codelist/codelist_zh_CN.ts
浏览文件 @
5fba7f77
...
...
@@ -400,6 +400,12 @@ export default {
"2"
:
"免收费用"
,
"empty"
:
""
,
},
Opportunity__StateCode
:
{
"2"
:
"丢单"
,
"0"
:
"已开始"
,
"1"
:
"赢单"
,
"empty"
:
""
,
},
Opportunity__PurchaseProcess
:
{
"0"
:
"个人"
,
"1"
:
"委员会"
,
...
...
app_CRM/src/locale/lanres/entities/opportunity/opportunity_en_US.ts
浏览文件 @
5fba7f77
...
...
@@ -170,6 +170,10 @@ export default {
caption
:
"商机信息"
,
title
:
"商机信息"
,
},
lostgridview
:
{
caption
:
"商机信息"
,
title
:
"商机信息"
,
},
},
quickcreate_form
:
{
details
:
{
...
...
@@ -263,6 +267,30 @@ export default {
uiactions
:
{
},
},
datapanel_form
:
{
details
:
{
button1
:
"刷新"
,
grouppanel1
:
"分组面板"
,
group1
:
"商机基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"商机"
,
srfmajortext
:
"商机名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
estimatedclosedate
:
"预计结束日期"
,
estimatedvalue
:
"预计收入"
,
statecode
:
"状态"
,
owneridyominame
:
"负责人"
,
opportunityid
:
"商机"
,
},
uiactions
:
{
refresh
:
"刷新"
,
},
},
productinfo_form
:
{
details
:
{
group1
:
"价目表信息"
,
...
...
app_CRM/src/locale/lanres/entities/opportunity/opportunity_zh_CN.ts
浏览文件 @
5fba7f77
...
...
@@ -169,6 +169,10 @@ export default {
caption
:
"商机信息"
,
title
:
"商机信息"
,
},
lostgridview
:
{
caption
:
"商机信息"
,
title
:
"商机信息"
,
},
},
quickcreate_form
:
{
details
:
{
...
...
@@ -262,6 +266,30 @@ export default {
uiactions
:
{
},
},
datapanel_form
:
{
details
:
{
button1
:
"刷新"
,
grouppanel1
:
"分组面板"
,
group1
:
"商机基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"商机"
,
srfmajortext
:
"商机名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
estimatedclosedate
:
"预计结束日期"
,
estimatedvalue
:
"预计收入"
,
statecode
:
"状态"
,
owneridyominame
:
"负责人"
,
opportunityid
:
"商机"
,
},
uiactions
:
{
refresh
:
"刷新"
,
},
},
productinfo_form
:
{
details
:
{
group1
:
"价目表信息"
,
...
...
app_CRM/src/mock/codelist/codelist.ts
浏览文件 @
5fba7f77
...
...
@@ -3167,6 +3167,43 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey
:
"Opportunity__StateCode"
,
emptytext
:
"未定义"
,
"codelisttype"
:
"static"
,
items
:
[
{
id
:
"2"
,
label
:
"丢单"
,
text
:
"丢单"
,
"data"
:
""
,
"codename"
:
"Item_2"
,
value
:
"2"
,
disabled
:
false
,
},
{
id
:
"0"
,
label
:
"已开始"
,
text
:
"已开始"
,
"data"
:
""
,
"codename"
:
"Item_0"
,
value
:
"0"
,
disabled
:
false
,
},
{
id
:
"1"
,
label
:
"赢单"
,
text
:
"赢单"
,
"data"
:
""
,
"codename"
:
"Item_1"
,
value
:
"1"
,
disabled
:
false
,
},
]
},
{
srfkey
:
"Opportunity__PurchaseProcess"
,
emptytext
:
"未定义"
,
...
...
app_CRM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
5fba7f77
...
...
@@ -1807,6 +1807,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"LeadCompetitorEditView"
,
"viewtag"
:
"d43728f22dd85502c1f3c27e93878162"
},
"opportunitylostgridview"
:
{
"title"
:
"商机信息"
,
"caption"
:
"商机信息"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sales"
,
"viewname"
:
"OpportunityLostGridView"
,
"viewtag"
:
"d43a25ac94ca7cb20db961aae174ca53"
},
"leadcompetitorgridview"
:
{
"title"
:
"潜在客户对手表格视图"
,
"caption"
:
"潜在客户对手"
,
...
...
app_CRM/src/pages/sales/opportunity-info/opportunity-info-base.tsx
浏览文件 @
5fba7f77
import
{
Subject
}
from
'rxjs'
;
import
{
TabExpViewBase
}
from
'@/studio-core'
;
import
OpportunityService
from
'@/service/opportunity/opportunity-service'
;
import
DataPanelEngine
from
'@engine/ctrl/data-panel-engine'
;
import
TabExpViewEngine
from
'@engine/view/tab-exp-view-engine'
;
import
OpportunityUIService
from
'@/uiservice/opportunity/opportunity-ui-service'
;
...
...
@@ -79,6 +80,7 @@ export class OpportunityInfoBase extends TabExpViewBase {
* @memberof OpportunityInfoBase
*/
protected
containerModel
:
any
=
{
view_datapanel
:
{
name
:
'datapanel'
,
type
:
'FORM'
},
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_tabexppanel
:
{
name
:
'tabexppanel'
,
type
:
'TABEXPPANEL'
},
};
...
...
@@ -127,6 +129,15 @@ export class OpportunityInfoBase extends TabExpViewBase {
protected
viewtag
:
string
=
'8bfcd7acdd1f36afc1714f1071671f2c'
;
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof OpportunityInfoBase
*/
public
datapanel
:
DataPanelEngine
=
new
DataPanelEngine
();
/**
* 视图引擎
*
...
...
@@ -143,6 +154,13 @@ export class OpportunityInfoBase extends TabExpViewBase {
* @memberof OpportunityInfoBase
*/
public
engineInit
():
void
{
this
.
datapanel
.
init
({
view
:
this
,
datapanel
:
this
.
$refs
.
datapanel
,
keyPSDEField
:
'opportunity'
,
majorPSDEField
:
'opportunityname'
,
isLoadDefault
:
true
,
});
this
.
engine
.
init
({
view
:
this
,
keyPSDEField
:
'opportunity'
,
...
...
app_CRM/src/pages/sales/opportunity-info/opportunity-info.html
浏览文件 @
5fba7f77
<studio-view-style2
viewName=
"opportunityinfo"
viewTitle=
"商机信息"
class=
'detabexpview opportunity-info'
>
<template
slot=
"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>
<view
_tabexppanel
...
...
app_CRM/src/pages/sales/opportunity-info/opportunity-info.vue
浏览文件 @
5fba7f77
...
...
@@ -3,6 +3,7 @@
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { OpportunityInfoBase } from './opportunity-info-base';
import view_datapanel from '@widgets/opportunity/data-panel-form/data-panel-form.vue';
import view_tabexppanel from '@widgets/opportunity/infotabexppanel-tabexppanel/infotabexppanel-tabexppanel.vue';
/**
...
...
@@ -14,6 +15,7 @@ import view_tabexppanel from '@widgets/opportunity/infotabexppanel-tabexppanel/i
*/
@Component({
components: {
view_datapanel,
view_tabexppanel,
}
})
...
...
app_CRM/src/uiservice/opportunity/opportunity-ui-service-base.ts
浏览文件 @
5fba7f77
...
...
@@ -93,6 +93,7 @@ export default class OpportunityUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'quickcreate'
,
srfappde
:
'opportunities'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'info_product'
,
srfappde
:
'opportunities'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'wingridview'
,
srfappde
:
'opportunities'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'lostgridview'
,
srfappde
:
'opportunities'
});
}
/**
...
...
app_CRM/src/utils/app-popover/app-popover.tsx
浏览文件 @
5fba7f77
...
...
@@ -177,7 +177,8 @@ export class AppPopover {
props
:
{
viewdata
:
JSON
.
stringify
(
viewdata
),
viewDefaultUsage
:
false
,
viewparam
:
JSON
.
stringify
(
data
)
viewUsage
:
4
,
viewparam
:
JSON
.
stringify
(
data
)
},
on
:
{
viewdataschange
:
(
$event
:
any
)
=>
this
.
dataChange
(
$event
),
...
...
@@ -236,7 +237,6 @@ export class AppPopover {
*/
public
openPopover
(
event
:
any
,
content
?:
(
h
:
CreateElement
)
=>
any
,
title
?:
string
,
position
:
PopperJs
.
Placement
=
'left'
,
isAutoClose
:
boolean
=
true
,
width
?:
number
,
height
?:
number
):
void
{
// 阻止事件冒泡
event
.
stopPropagation
();
const
element
:
Element
=
event
.
toElement
||
event
.
srcElement
;
if
(
element
.
hasAttribute
(
'app-popover-tag'
))
{
...
...
app_CRM/src/widgets/opportunity/data-panel-form/data-panel-form-base.tsx
0 → 100644
浏览文件 @
5fba7f77
import
{
Prop
,
Provide
,
Emit
,
Model
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Watch
,
EditFormControlBase
}
from
'@/studio-core'
;
import
OpportunityService
from
'@/service/opportunity/opportunity-service'
;
import
DataPanelService
from
'./data-panel-form-service'
;
import
{
FormButtonModel
,
FormPageModel
,
FormItemModel
,
FormDRUIPartModel
,
FormPartModel
,
FormGroupPanelModel
,
FormIFrameModel
,
FormRowItemModel
,
FormTabPageModel
,
FormTabPanelModel
,
FormUserControlModel
}
from
'@/model/form-detail'
;
/**
* datapanel部件基类
*
* @export
* @class EditFormControlBase
* @extends {DataPanelEditFormBase}
*/
export
class
DataPanelEditFormBase
extends
EditFormControlBase
{
/**
* 获取部件类型
*
* @protected
* @type {string}
* @memberof DataPanelEditFormBase
*/
protected
controlType
:
string
=
'FORM'
;
/**
* 建构部件服务对象
*
* @type {DataPanelService}
* @memberof DataPanelEditFormBase
*/
public
service
:
DataPanelService
=
new
DataPanelService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {OpportunityService}
* @memberof DataPanelEditFormBase
*/
public
appEntityService
:
OpportunityService
=
new
OpportunityService
({
$store
:
this
.
$store
});
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DataPanelEditFormBase
*/
protected
appDeName
:
string
=
'opportunity'
;
/**
* 逻辑事件
*
* @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
];
}
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Opportunity"
);
}
/**
* 刷新
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof OpportunityInfoBase
*/
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
(
args
);
}
}
/**
* 表单数据对象
*
* @type {*}
* @memberof DataPanelEditFormBase
*/
public
data
:
any
=
{
srfupdatedate
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
srftempmode
:
null
,
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
estimatedclosedate
:
null
,
estimatedvalue
:
null
,
statecode
:
null
,
owneridyominame
:
null
,
opportunityid
:
null
,
opportunity
:
null
,
};
/**
* 属性值规则
*
* @type {*}
* @memberof DataPanelEditFormBase
*/
public
rules
:
any
=
{
}
/**
* 详情模型集合
*
* @type {*}
* @memberof DataPanelEditFormBase
*/
public
detailsModel
:
any
=
{
button1
:
new
FormButtonModel
({
caption
:
'刷新'
,
detailType
:
'BUTTON'
,
name
:
'button1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
uiaction
:
{
type
:
'DEUIACTION'
,
tag
:
'Refresh'
,
actiontarget
:
'SINGLEKEY'
}
}),
grouppanel1
:
new
FormGroupPanelModel
({
caption
:
'分组面板'
,
detailType
:
'GROUPPANEL'
,
name
:
'grouppanel1'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.opportunity.datapanel_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
}),
group1
:
new
FormGroupPanelModel
({
caption
:
'商机基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.opportunity.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
}),
estimatedclosedate
:
new
FormItemModel
({
caption
:
'预计结束日期'
,
detailType
:
'FORMITEM'
,
name
:
'estimatedclosedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
estimatedvalue
:
new
FormItemModel
({
caption
:
'预计收入'
,
detailType
:
'FORMITEM'
,
name
:
'estimatedvalue'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
statecode
:
new
FormItemModel
({
caption
:
'状态'
,
detailType
:
'FORMITEM'
,
name
:
'statecode'
,
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
}),
opportunityid
:
new
FormItemModel
({
caption
:
'商机'
,
detailType
:
'FORMITEM'
,
name
:
'opportunityid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
}),
};
/**
* 表单 刷新 事件
*
* @memberof @memberof DataPanelEditFormBase
*/
public
button1_click
(
$event
:
any
):
void
{
this
.
datapanel_button1_click
(
null
,
null
,
$event
);
}
}
\ No newline at end of file
app_CRM/src/widgets/opportunity/data-panel-form/data-panel-form-model.ts
0 → 100644
浏览文件 @
5fba7f77
/**
* DataPanel 部件模型
*
* @export
* @class DataPanelModel
*/
export
default
class
DataPanelModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof 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
:
'opportunityid'
,
dataType
:
'GUID'
,
},
{
name
:
'srfmajortext'
,
prop
:
'opportunityname'
,
dataType
:
'TEXT'
,
},
{
name
:
'srftempmode'
,
},
{
name
:
'srfuf'
,
},
{
name
:
'srfdeid'
,
},
{
name
:
'srfsourcekey'
,
},
{
name
:
'estimatedclosedate'
,
prop
:
'estimatedclosedate'
,
dataType
:
'DATETIME'
,
},
{
name
:
'estimatedvalue'
,
prop
:
'estimatedvalue'
,
dataType
:
'BIGDECIMAL'
,
},
{
name
:
'statecode'
,
prop
:
'statecode'
,
dataType
:
'NSCODELIST'
,
},
{
name
:
'owneridyominame'
,
prop
:
'owneridyominame'
,
dataType
:
'TEXT'
,
},
{
name
:
'opportunityid'
,
prop
:
'opportunityid'
,
dataType
:
'GUID'
,
},
{
name
:
'opportunity'
,
prop
:
'opportunityid'
,
dataType
:
'FONTKEY'
,
},
]
}
}
\ No newline at end of file
app_CRM/src/widgets/opportunity/data-panel-form/data-panel-form-service.ts
0 → 100644
浏览文件 @
5fba7f77
此差异已折叠。
点击以展开。
app_CRM/src/widgets/opportunity/data-panel-form/data-panel-form.html
0 → 100644
浏览文件 @
5fba7f77
<i-form
:model=
"this.data"
class=
'app-form info-form-mode'
ref=
'datapanel'
id=
'opportunity_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.opportunity.datapanel_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.estimatedclosedate.visible"
:style=
"{}"
>
<app-form-item
name=
'estimatedclosedate'
:itemRules=
"this.rules.estimatedclosedate"
class=
'datapanel-style'
labelStyle=
"datapanel-label-style"
:caption=
"$t('entities.opportunity.datapanel_form.details.estimatedclosedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.estimatedclosedate.error"
:isEmptyCaption=
"false"
labelPos=
"BOTTOM"
>
<app-span
name=
'estimatedclosedate'
:value=
"data.estimatedclosedate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
></app-span>
</app-form-item>
</div>
<div
v-show=
"detailsModel.estimatedvalue.visible"
:style=
"{}"
>
<app-form-item
name=
'estimatedvalue'
:itemRules=
"this.rules.estimatedvalue"
class=
'datapanel-style'
labelStyle=
"datapanel-label-style"
:caption=
"$t('entities.opportunity.datapanel_form.details.estimatedvalue')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.estimatedvalue.error"
:isEmptyCaption=
"false"
labelPos=
"BOTTOM"
>
<app-span
name=
'estimatedvalue'
:value=
"data.estimatedvalue"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'{ }'
:localParam =
'{ }'
style=
""
></app-span>
</app-form-item>
</div>
<div
v-show=
"detailsModel.statecode.visible"
:style=
"{}"
>
<app-form-item
name=
'statecode'
:itemRules=
"this.rules.statecode"
class=
'datapanel-style'
labelStyle=
"datapanel-label-style"
:caption=
"$t('entities.opportunity.datapanel_form.details.statecode')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.statecode.error"
:isEmptyCaption=
"false"
labelPos=
"BOTTOM"
>
<app-span
name=
'statecode'
:value=
"data.statecode"
tag=
'Opportunity__StateCode'
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.opportunity.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.grouppanel1.visible"
:style=
"{}"
>
<app-form-group
layoutType=
"FLEX"
titleStyle=
""
class=
' vertical-align'
:uiActionGroup=
"detailsModel.grouppanel1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.opportunity.datapanel_form.details.grouppanel1')"
:isShowCaption=
"false"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"true"
>
<div
style=
"height: 100%;display: flex;"
>
<div
v-show=
"detailsModel.button1.visible"
:style=
"{}"
>
<i-button
type=
"primary"
@
click=
"button1_click($event)"
class=
"form-btn-noborder-transparent"
style=
""
>
<i
class=
"fa fa-angle-down"
style=
"margin-right: 2px;"
></i>
<span
>
{{$t('entities.opportunity.datapanel_form.details.button1')}}
</span>
</i-button>
</div>
</div>
</app-form-group>
</div>
</div>
</app-form-group>
</i-col>
</row>
</i-form>
\ No newline at end of file
app_CRM/src/widgets/opportunity/data-panel-form/data-panel-form.less
0 → 100644
浏览文件 @
5fba7f77
.vertical-align {
vertical-align:middle
}
.datapanel-style {
color:rgba(209, 196, 233, 1);font-size:20px;font-weight:bold;margin:0px 10px 0px 0px;text-align:left
}
.form-btn-noborder-transparent {
background-color:rgba(255, 0, 0, 0);border-style:none;margin:0px 10px 0px 0px
}
.datapanel-label-style {
color:rgba(245, 244, 244, 1);font-size:12px;margin:0px 0px 0px 0px
}
app_CRM/src/widgets/opportunity/data-panel-form/data-panel-form.vue
0 → 100644
浏览文件 @
5fba7f77
<
template
src=
"./data-panel-form.html"
/>
<script
lang=
'tsx'
>
import
{ Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DataPanelEditFormBase } from './data-panel-form-base';
/**
* datapanel部件
*
* @export
* @class DataPanelEditForm
* @extends {DataPanelEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DataPanelEditForm extends DataPanelEditFormBase { }
</script>
<style
lang=
'less'
>
@import
'./data-panel-form.less'
;
</style>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录