Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
d21d09a5
提交
d21d09a5
编写于
6月 19, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
354a4665
变更
11
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
265 行增加
和
125 行删除
+265
-125
view-config.json
app_BusinessCentral/public/assets/json/view-config.json
+10
-0
contact_en_US.ts
...ntral/src/locale/lanres/entities/contact/contact_en_US.ts
+2
-0
contact_zh_CN.ts
...ntral/src/locale/lanres/entities/contact/contact_zh_CN.ts
+2
-0
lead_en_US.ts
...nessCentral/src/locale/lanres/entities/lead/lead_en_US.ts
+10
-7
lead_zh_CN.ts
...nessCentral/src/locale/lanres/entities/lead/lead_zh_CN.ts
+10
-7
viewconfig.ts
app_BusinessCentral/src/mock/viewconfig/viewconfig.ts
+8
-0
contact-ui-service-base.ts
...sCentral/src/uiservice/contact/contact-ui-service-base.ts
+64
-0
lead-ui-service-base.ts
...usinessCentral/src/uiservice/lead/lead-ui-service-base.ts
+1
-0
by-account-grid-base.vue
.../widgets/contact/by-account-grid/by-account-grid-base.vue
+57
-0
quick-create-form-base.vue
...widgets/lead/quick-create-form/quick-create-form-base.vue
+86
-101
quick-create-form-model.ts
...widgets/lead/quick-create-form/quick-create-form-model.ts
+15
-10
未找到文件。
app_BusinessCentral/public/assets/json/view-config.json
浏览文件 @
d21d09a5
...
...
@@ -839,6 +839,16 @@
"viewtag"
:
"a69ba7dd2f8bdac8a3c733dcc79c0ee5"
,
"memo"
:
""
},
"leadquickcreateview"
:
{
"title"
:
"潜在顾客选项操作视图"
,
"caption"
:
"潜在顾客"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"Sales"
,
"viewname"
:
"LeadQuickCreateView"
,
"viewfilename"
:
"lead-quick-create-view"
,
"viewtag"
:
"a942d813792298be53badd6f5bf8b105"
,
"memo"
:
""
},
"phonecalleditview"
:
{
"title"
:
"电话联络编辑视图"
,
"caption"
:
"电话联络"
,
...
...
app_BusinessCentral/src/locale/lanres/entities/contact/contact_en_US.ts
浏览文件 @
d21d09a5
...
...
@@ -559,8 +559,10 @@ export default {
emailaddress1
:
"电子邮件"
,
parentcustomerid
:
"公司名称"
,
telephone1
:
"商务电话"
,
uagridcolumn1
:
"主联系人"
,
},
uiactions
:
{
setprimary
:
"设置为主要联系人"
,
},
},
main_grid
:
{
...
...
app_BusinessCentral/src/locale/lanres/entities/contact/contact_zh_CN.ts
浏览文件 @
d21d09a5
...
...
@@ -558,8 +558,10 @@ export default {
emailaddress1
:
'电子邮件'
,
parentcustomerid
:
'公司名称'
,
telephone1
:
'商务电话'
,
uagridcolumn1
:
'主联系人'
,
},
uiactions
:
{
setprimary
:
'设置为主要联系人'
,
},
},
main_grid
:
{
...
...
app_BusinessCentral/src/locale/lanres/entities/lead/lead_en_US.ts
浏览文件 @
d21d09a5
...
...
@@ -178,13 +178,15 @@ export default {
caption
:
"潜在顾客"
,
title
:
'潜在顾客选择表格视图'
,
},
quickcreateview
:
{
caption
:
"潜在顾客"
,
title
:
'潜在顾客选项操作视图'
,
},
},
quickcreate_form
:
{
details
:
{
group1
:
"
lead基本
信息"
,
group1
:
"
联系人
信息"
,
formpage1
:
"基本信息"
,
group2
:
"操作信息"
,
formpage2
:
"其它"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"潜在顾客"
,
...
...
@@ -193,11 +195,12 @@ export default {
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
subject
:
"主题"
,
fullname
:
"姓名"
,
createman
:
"建立人
"
,
createdate
:
"建立时间
"
,
updateman
:
"更新人
"
,
updatedate
:
"更新时间
"
,
jobtitle
:
"职务
"
,
telephone1
:
"商务电话
"
,
mobilephone
:
"移动电话
"
,
emailaddress1
:
"电子邮件
"
,
leadid
:
"潜在顾客"
,
},
uiactions
:
{
...
...
app_BusinessCentral/src/locale/lanres/entities/lead/lead_zh_CN.ts
浏览文件 @
d21d09a5
...
...
@@ -177,13 +177,15 @@ export default {
caption
:
'潜在顾客'
,
title
:
'潜在顾客选择表格视图'
,
},
quickcreateview
:
{
caption
:
'潜在顾客'
,
title
:
'潜在顾客选项操作视图'
,
},
},
quickcreate_form
:
{
details
:
{
group1
:
'
lead基本
信息'
,
group1
:
'
联系人
信息'
,
formpage1
:
'基本信息'
,
group2
:
'操作信息'
,
formpage2
:
'其它'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'潜在顾客'
,
...
...
@@ -192,11 +194,12 @@ export default {
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
subject
:
'主题'
,
fullname
:
'姓名'
,
createman
:
'建立人
'
,
createdate
:
'建立时间
'
,
updateman
:
'更新人
'
,
updatedate
:
'更新时间
'
,
jobtitle
:
'职务
'
,
telephone1
:
'商务电话
'
,
mobilephone
:
'移动电话
'
,
emailaddress1
:
'电子邮件
'
,
leadid
:
'潜在顾客'
,
},
uiactions
:
{
...
...
app_BusinessCentral/src/mock/viewconfig/viewconfig.ts
浏览文件 @
d21d09a5
...
...
@@ -679,6 +679,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"AccountQuickCreate"
,
"viewtag"
:
"a69ba7dd2f8bdac8a3c733dcc79c0ee5"
},
"leadquickcreateview"
:
{
"title"
:
"潜在顾客选项操作视图"
,
"caption"
:
"潜在顾客"
,
"viewtype"
:
"DEOPTVIEW"
,
"viewmodule"
:
"Sales"
,
"viewname"
:
"LeadQuickCreateView"
,
"viewtag"
:
"a942d813792298be53badd6f5bf8b105"
},
"phonecalleditview"
:
{
"title"
:
"电话联络编辑视图"
,
"caption"
:
"电话联络"
,
...
...
app_BusinessCentral/src/uiservice/contact/contact-ui-service-base.ts
浏览文件 @
d21d09a5
...
...
@@ -444,6 +444,70 @@ export default class ContactUIServiceBase extends UIService {
openDrawer
(
view
,
data
);
}
/**
* 设置为主要联系人
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
Contact_SetPrimary
(
args
:
any
[],
context
:
any
=
{},
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
){
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'SINGLEKEY'
;
Object
.
assign
(
context
,
{
contact
:
'%contact%'
});
Object
.
assign
(
params
,
{
contactid
:
'%contact%'
});
Object
.
assign
(
params
,
{
fullname
:
'%fullname%'
});
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
// 直接调实体服务需要转换的数据
if
(
context
&&
context
.
srfsessionid
){
context
.
srfsessionkey
=
context
.
srfsessionid
;
delete
context
.
srfsessionid
;
}
const
backend
=
()
=>
{
const
curService
:
ContactService
=
new
ContactService
();
curService
.
Get
(
context
,
data
,
true
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
response
.
message
});
return
;
}
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'设置为主要联系人成功!'
});
const
_this
:
any
=
actionContext
;
return
response
;
}).
catch
((
response
:
any
)
=>
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'系统异常!'
});
return
;
}
if
(
response
.
status
===
401
)
{
return
;
}
return
response
;
});
};
backend
();
}
/**
* 编辑
*
...
...
app_BusinessCentral/src/uiservice/lead/lead-ui-service-base.ts
浏览文件 @
d21d09a5
...
...
@@ -84,6 +84,7 @@ export default class LeadUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'leads'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'quickcreate'
,
srfappde
:
'leads'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'pickupgridview'
,
srfappde
:
'leads'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'quickcreateview'
,
srfappde
:
'leads'
});
}
/**
...
...
app_BusinessCentral/src/widgets/contact/by-account-grid/by-account-grid-base.vue
浏览文件 @
d21d09a5
...
...
@@ -71,6 +71,24 @@
</
template
>
</el-table-column>
</template>
<
template
v-if=
"getColumnState('uagridcolumn1')"
>
<el-table-column
:column-key=
"'uagridcolumn1'"
:label=
"$t('entities.contact.byaccount_grid.columns.uagridcolumn1')"
:width=
"100"
:align=
"'right'"
>
<template
v-slot:header=
"
{column}">
<span
class=
"column-header "
>
{{
$t
(
'entities.contact.byaccount_grid.columns.uagridcolumn1'
)
}}
</span>
</
template
>
<
template
slot-scope=
"scope"
>
<span>
<a
@
click=
"uiAction(scope.row, 'SetPrimary', $event)"
>
<i
class=
'fa fa-check'
></i>
</a>
</span>
</
template
>
</el-table-column>
</template>
<
template
v-if=
"adaptiveState"
>
<el-table-column></el-table-column>
</
template
>
...
...
@@ -87,6 +105,7 @@ import { UIActionTool,Util } from '@/utils';
import
ContactService
from
'@/service/contact/contact-service'
;
import
ByAccountService
from
'./by-account-grid-service'
;
import
ContactUIService
from
'@/uiservice/contact/contact-ui-service'
;
import
CodeListService
from
"@service/app/codelist-service"
;
import
{
FormItemModel
}
from
'@/model/form-detail'
;
...
...
@@ -176,6 +195,34 @@ export default class ByAccountBase extends Vue implements ControlInterface {
public
appEntityService
:
ContactService
=
new
ContactService
({
$store
:
this
.
$store
});
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
grid_uagridcolumn1_u0a2fe00_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
:
ContactUIService
=
new
ContactUIService
();
curUIService
.
Contact_SetPrimary
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"Contact"
);
}
/**
* 关闭视图
...
...
@@ -541,6 +588,13 @@ export default class ByAccountBase extends Vue implements ControlInterface {
show
:
true
,
util
:
'PX'
},
{
name
:
'uagridcolumn1'
,
label
:
'主联系人'
,
langtag
:
'entities.contact.byaccount_grid.columns.uagridcolumn1'
,
show
:
true
,
util
:
'PX'
},
]
/**
...
...
@@ -1275,6 +1329,9 @@ export default class ByAccountBase extends Vue implements ControlInterface {
*/
public
uiAction
(
row
:
any
,
tag
:
any
,
$event
:
any
)
{
$event
.
stopPropagation
();
if
(
Object
.
is
(
'SetPrimary'
,
tag
))
{
this
.
grid_uagridcolumn1_u0a2fe00_click
(
row
,
tag
,
$event
);
}
}
/**
...
...
app_BusinessCentral/src/widgets/lead/quick-create-form/quick-create-form-base.vue
浏览文件 @
d21d09a5
...
...
@@ -2,71 +2,43 @@
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'lead_quickcreate'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<tabs
:animated=
"false"
size=
"small"
name=
'quickcreate'
:value=
"detailsModel.form.activiedPage"
@
on-click=
"detailsModel.form.clickPage($event)"
>
<tab-pane
v-show=
"detailsModel.formpage1.visible"
name=
'formpage1'
:index=
"0"
tab=
'quickcreate'
class=
''
:label=
"(h) =>
{
return h('span',{
class:'caption'
},[
$t('entities.lead.quickcreate_form.details.formpage1')
])
}">
<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.lead.quickcreate_form.details.group1')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<row>
<i-col
v-show=
"detailsModel.
fullname.visible"
:style=
"
{}" :lg
="{ span: 24, offset: 0 }">
<app-form-item
name=
'
fullname'
:itemRules=
"this.rules.fullname"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.fullname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.fullname
.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.
fullname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.fullname
.disabled"
type=
'text'
style=
""
></input-box>
<i-col
v-show=
"detailsModel.
subject.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }" :xl
="{ span: 24, offset: 0 }">
<app-form-item
name=
'
subject'
:itemRules=
"this.rules.subject"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.subject')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.subject
.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.
subject"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.subject
.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
<i-col
v-show=
"detailsModel.fullname.visible"
:style=
"
{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item
name=
'fullname'
:itemRules=
"this.rules.fullname"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.fullname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.fullname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.fullname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.fullname.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
</tab-pane>
<tab-pane
v-show=
"detailsModel.formpage2.visible"
name=
'formpage2'
:index=
"1"
tab=
'quickcreate'
class=
''
:label=
"(h) =>
{
return h('span',{
class:'caption'
},[
$t('entities.lead.quickcreate_form.details.formpage2')
])
}">
<i-col
v-show=
"detailsModel.group2.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-group
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group2.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.lead.quickcreate_form.details.group2')"
:isShowCaption=
"true"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<row>
<i-col
v-show=
"detailsModel.createman.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'createman'
:itemRules=
"this.rules.createman"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.createman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createman'
:value=
"data.createman"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
<i-col
v-show=
"detailsModel.jobtitle.visible"
:style=
"
{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item
name=
'jobtitle'
:itemRules=
"this.rules.jobtitle"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.jobtitle')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.jobtitle.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.jobtitle"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.jobtitle.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.createdate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'createdate'
:itemRules=
"this.rules.createdate"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.createdate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.createdate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'createdate'
:value=
"data.createdate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
<i-col
v-show=
"detailsModel.telephone1.visible"
:style=
"
{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item
name=
'telephone1'
:itemRules=
"this.rules.telephone1"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.telephone1')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.telephone1.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.telephone1"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.telephone1.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.updateman.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'updateman'
:itemRules=
"this.rules.updateman"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.updateman')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updateman.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updateman'
:value=
"data.updateman"
tag=
'SysOperator'
codelistType=
'DYNAMIC'
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
<i-col
v-show=
"detailsModel.mobilephone.visible"
:style=
"
{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item
name=
'mobilephone'
:itemRules=
"this.rules.mobilephone"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.mobilephone')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.mobilephone.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.mobilephone"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.mobilephone.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.updatedate.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'updatedate'
:itemRules=
"this.rules.updatedate"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.updatedate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.updatedate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'updatedate'
:value=
"data.updatedate"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
<i-col
v-show=
"detailsModel.emailaddress1.visible"
:style=
"
{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item
name=
'emailaddress1'
:itemRules=
"this.rules.emailaddress1"
class=
''
:caption=
"$t('entities.lead.quickcreate_form.details.emailaddress1')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.emailaddress1.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.emailaddress1"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.emailaddress1.disabled"
type=
'text'
style=
""
></input-box>
</app-form-item>
</i-col>
...
...
@@ -77,8 +49,6 @@
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
</
template
>
...
...
@@ -383,11 +353,12 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
srfuf
:
null
,
srfdeid
:
null
,
srfsourcekey
:
null
,
subject
:
null
,
fullname
:
null
,
createman
:
null
,
createdate
:
null
,
updateman
:
null
,
updatedate
:
null
,
jobtitle
:
null
,
telephone1
:
null
,
mobilephone
:
null
,
emailaddress1
:
null
,
leadid
:
null
,
lead
:
null
,
};
...
...
@@ -479,35 +450,41 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
{
required
:
false
,
type
:
'string'
,
message
:
' 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
' 值不能为空'
,
trigger
:
'blur'
},
],
subject
:
[
{
type
:
'string'
,
message
:
'主题 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'主题 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
true
,
type
:
'string'
,
message
:
'主题 值不能为空'
,
trigger
:
'change'
},
{
required
:
true
,
type
:
'string'
,
message
:
'主题 值不能为空'
,
trigger
:
'blur'
},
],
fullname
:
[
{
type
:
'string'
,
message
:
'姓名 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'姓名 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'姓名 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'姓名 值不能为空'
,
trigger
:
'blur'
},
],
createman
:
[
{
type
:
'string'
,
message
:
'
建立人
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
建立人
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
建立人
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
建立人
值不能为空'
,
trigger
:
'blur'
},
jobtitle
:
[
{
type
:
'string'
,
message
:
'
职务
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
职务
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
职务
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
职务
值不能为空'
,
trigger
:
'blur'
},
],
createdate
:
[
{
type
:
'string'
,
message
:
'
建立时间
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
建立时间
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
建立时间
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
建立时间
值不能为空'
,
trigger
:
'blur'
},
telephone1
:
[
{
type
:
'string'
,
message
:
'
商务电话
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
商务电话
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
商务电话
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
商务电话
值不能为空'
,
trigger
:
'blur'
},
],
updateman
:
[
{
type
:
'string'
,
message
:
'
更新人
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
更新人
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
更新人
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
更新人
值不能为空'
,
trigger
:
'blur'
},
mobilephone
:
[
{
type
:
'string'
,
message
:
'
移动电话
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
移动电话
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
移动电话
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
移动电话
值不能为空'
,
trigger
:
'blur'
},
],
updatedate
:
[
{
type
:
'string'
,
message
:
'
更新时间
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
更新时间
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
更新时间
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
更新时间
值不能为空'
,
trigger
:
'blur'
},
emailaddress1
:
[
{
type
:
'string'
,
message
:
'
电子邮件
值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'
电子邮件
值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
电子邮件
值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'
电子邮件
值不能为空'
,
trigger
:
'blur'
},
],
leadid
:
[
{
type
:
'string'
,
message
:
'潜在顾客 值必须为字符串类型'
,
trigger
:
'change'
},
...
...
@@ -524,13 +501,9 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
* @memberof QuickCreate
*/
public
detailsModel
:
any
=
{
group1
:
new
FormGroupPanelModel
({
caption
:
'
lead基本
信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.lead.quickcreate_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
})
group1
:
new
FormGroupPanelModel
({
caption
:
'
联系人
信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.lead.quickcreate_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
})
,
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
group2
:
new
FormGroupPanelModel
({
caption
:
'操作信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.lead.quickcreate_form'
,
extractMode
:
'ITEM'
,
details
:
[]
}
})
,
formpage2
:
new
FormPageModel
({
caption
:
'其它'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage2'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
srfupdatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'srfupdatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
0
})
,
...
...
@@ -547,20 +520,21 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
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
})
,
subject
:
new
FormItemModel
({
caption
:
'主题'
,
detailType
:
'FORMITEM'
,
name
:
'subject'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
fullname
:
new
FormItemModel
({
caption
:
'姓名'
,
detailType
:
'FORMITEM'
,
name
:
'fullname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
createman
:
new
FormItemModel
({
caption
:
'建立人'
,
detailType
:
'FORMITEM'
,
name
:
'createman'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
0
})
jobtitle
:
new
FormItemModel
({
caption
:
'职务'
,
detailType
:
'FORMITEM'
,
name
:
'jobtitle'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
createdate
:
new
FormItemModel
({
caption
:
'建立时间'
,
detailType
:
'FORMITEM'
,
name
:
'createdate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
0
})
telephone1
:
new
FormItemModel
({
caption
:
'商务电话'
,
detailType
:
'FORMITEM'
,
name
:
'telephone1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
updateman
:
new
FormItemModel
({
caption
:
'更新人'
,
detailType
:
'FORMITEM'
,
name
:
'updateman'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
0
})
mobilephone
:
new
FormItemModel
({
caption
:
'移动电话'
,
detailType
:
'FORMITEM'
,
name
:
'mobilephone'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
updatedate
:
new
FormItemModel
({
caption
:
'更新时间'
,
detailType
:
'FORMITEM'
,
name
:
'updatedate'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
0
})
emailaddress1
:
new
FormItemModel
({
caption
:
'电子邮件'
,
detailType
:
'FORMITEM'
,
name
:
'emailaddress1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
leadid
:
new
FormItemModel
({
caption
:
'潜在顾客'
,
detailType
:
'FORMITEM'
,
name
:
'leadid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
1
})
,
form
:
new
FormTabPanelModel
({
caption
:
'form'
,
detailType
:
'TABPANEL'
,
name
:
'form'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
tabPages
:
[{
name
:
'formpage1'
,
index
:
0
,
visible
:
true
},
{
name
:
'formpage2'
,
index
:
1
,
visible
:
true
}]
}),
};
/**
...
...
@@ -659,6 +633,18 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
this
.
formDataChange
({
name
:
'srfsourcekey'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 subject 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreate
*/
@
Watch
(
'data.subject'
)
onSubjectChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'subject'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 fullname 值
*
...
...
@@ -672,51 +658,51 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
}
/**
* 监控表单属性
createman
值
* 监控表单属性
jobtitle
值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreate
*/
@
Watch
(
'data.
createman
'
)
on
Createman
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
createman
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
@
Watch
(
'data.
jobtitle
'
)
on
Jobtitle
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
jobtitle
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性
createdate
值
* 监控表单属性
telephone1
值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreate
*/
@
Watch
(
'data.
createdate
'
)
on
Createdate
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
createdate
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
@
Watch
(
'data.
telephone1
'
)
on
Telephone1
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
telephone1
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性
updateman
值
* 监控表单属性
mobilephone
值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreate
*/
@
Watch
(
'data.
updateman
'
)
on
Updateman
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
updateman
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
@
Watch
(
'data.
mobilephone
'
)
on
Mobilephone
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
mobilephone
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性
updatedate
值
* 监控表单属性
emailaddress1
值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreate
*/
@
Watch
(
'data.
updatedate
'
)
on
Updatedate
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
updatedate
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
@
Watch
(
'data.
emailaddress1
'
)
on
Emailaddress1
Change
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'
emailaddress1
'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
...
...
@@ -784,7 +770,6 @@ export default class QuickCreateBase extends Vue implements ControlInterface {
}
/**
...
...
app_BusinessCentral/src/widgets/lead/quick-create-form/quick-create-form-model.ts
浏览文件 @
d21d09a5
...
...
@@ -55,30 +55,35 @@ export default class QuickCreateModel {
{
name
:
'srfsourcekey'
,
},
{
name
:
'subject'
,
prop
:
'subject'
,
dataType
:
'TEXT'
,
},
{
name
:
'fullname'
,
prop
:
'fullname'
,
dataType
:
'TEXT'
,
},
{
name
:
'
createman
'
,
prop
:
'
createman
'
,
name
:
'
jobtitle
'
,
prop
:
'
jobtitle
'
,
dataType
:
'TEXT'
,
},
{
name
:
'
createdate
'
,
prop
:
'
createdate
'
,
dataType
:
'
DATETIME
'
,
name
:
'
telephone1
'
,
prop
:
'
telephone1
'
,
dataType
:
'
TEXT
'
,
},
{
name
:
'
updateman
'
,
prop
:
'
updateman
'
,
name
:
'
mobilephone
'
,
prop
:
'
mobilephone
'
,
dataType
:
'TEXT'
,
},
{
name
:
'
updatedate
'
,
prop
:
'
updatedate
'
,
dataType
:
'
DATETIME
'
,
name
:
'
emailaddress1
'
,
prop
:
'
emailaddress1
'
,
dataType
:
'
TEXT
'
,
},
{
name
:
'leadid'
,
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录