Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
8aba2d21
提交
8aba2d21
编写于
6月 18, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码
上级
7018448f
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
136 行增加
和
48 行删除
+136
-48
view-config.json
app_BusinessCentral/public/assets/json/view-config.json
+10
-0
ibiz-list_en_US.ts
...l/src/locale/lanres/entities/ibiz-list/ibiz-list_en_US.ts
+30
-0
ibiz-list_zh_CN.ts
...l/src/locale/lanres/entities/ibiz-list/ibiz-list_zh_CN.ts
+30
-0
list-account_en_US.ts
...locale/lanres/entities/list-account/list-account_en_US.ts
+1
-0
list-account_zh_CN.ts
...locale/lanres/entities/list-account/list-account_zh_CN.ts
+1
-0
viewconfig.ts
app_BusinessCentral/src/mock/viewconfig/viewconfig.ts
+8
-0
ibiz-list-ui-service-base.ts
...tral/src/uiservice/ibiz-list/ibiz-list-ui-service-base.ts
+1
-0
inner-pickip-grid-base.vue
...gets/account/inner-pickip-grid/inner-pickip-grid-base.vue
+3
-38
quick-create-by-list-form-base.vue
...ck-create-by-list-form/quick-create-by-list-form-base.vue
+35
-10
quick-create-by-list-form-model.ts
...ck-create-by-list-form/quick-create-by-list-form-model.ts
+5
-0
quick-create-by-list-form-service.ts
...-create-by-list-form/quick-create-by-list-form-service.ts
+12
-0
未找到文件。
app_BusinessCentral/public/assets/json/view-config.json
浏览文件 @
8aba2d21
...
...
@@ -239,6 +239,16 @@
"viewtag"
:
"2e9c7792c3a728896ca8902634f71983"
,
"memo"
:
""
},
"ibizlistinfo_abstract"
:
{
"title"
:
"市场营销列表编辑视图"
,
"caption"
:
"市场营销列表"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Marketing"
,
"viewname"
:
"IBizListInfo_Abstract"
,
"viewfilename"
:
"ibiz-list-info-abstract"
,
"viewtag"
:
"2eba43abd437c023437f1f2effb1fccb"
,
"memo"
:
""
},
"salesliteratureeditview"
:
{
"title"
:
"salesliterature编辑视图"
,
"caption"
:
"销售宣传资料"
,
...
...
app_BusinessCentral/src/locale/lanres/entities/ibiz-list/ibiz-list_en_US.ts
浏览文件 @
8aba2d21
...
...
@@ -42,6 +42,10 @@ export default {
gridview
:
{
caption
:
"市场营销列表"
,
title
:
'list表格视图'
,
},
info_abstract
:
{
caption
:
"市场营销列表"
,
title
:
'市场营销列表编辑视图'
,
},
quickcreate
:
{
caption
:
"快速新建"
,
...
...
@@ -97,6 +101,32 @@ export default {
uiactions
:
{
},
},
abstractinfo_form
:
{
details
:
{
group1
:
"市场营销列表基本信息"
,
formpage1
:
"基本信息"
,
srfupdatedate
:
"更新时间"
,
srforikey
:
""
,
srfkey
:
"列表"
,
srfmajortext
:
"名称"
,
srftempmode
:
""
,
srfuf
:
""
,
srfdeid
:
""
,
srfsourcekey
:
""
,
listname
:
"名称"
,
type
:
"类型"
,
purpose
:
"用途"
,
membertype
:
"目标对象"
,
source
:
"来源"
,
transactioncurrencyname
:
"货币"
,
cost
:
"成本"
,
owneridyominame
:
"负责人"
,
description
:
"说明"
,
listid
:
"列表"
,
},
uiactions
:
{
},
},
main_form
:
{
details
:
{
group1
:
"list基本信息"
,
...
...
app_BusinessCentral/src/locale/lanres/entities/ibiz-list/ibiz-list_zh_CN.ts
浏览文件 @
8aba2d21
...
...
@@ -41,6 +41,10 @@ export default {
gridview
:
{
caption
:
'市场营销列表'
,
title
:
'list表格视图'
,
},
info_abstract
:
{
caption
:
'市场营销列表'
,
title
:
'市场营销列表编辑视图'
,
},
quickcreate
:
{
caption
:
'快速新建'
,
...
...
@@ -96,6 +100,32 @@ export default {
uiactions
:
{
},
},
abstractinfo_form
:
{
details
:
{
group1
:
'市场营销列表基本信息'
,
formpage1
:
'基本信息'
,
srfupdatedate
:
'更新时间'
,
srforikey
:
''
,
srfkey
:
'列表'
,
srfmajortext
:
'名称'
,
srftempmode
:
''
,
srfuf
:
''
,
srfdeid
:
''
,
srfsourcekey
:
''
,
listname
:
'名称'
,
type
:
'类型'
,
purpose
:
'用途'
,
membertype
:
'目标对象'
,
source
:
'来源'
,
transactioncurrencyname
:
'货币'
,
cost
:
'成本'
,
owneridyominame
:
'负责人'
,
description
:
'说明'
,
listid
:
'列表'
,
},
uiactions
:
{
},
},
main_form
:
{
details
:
{
group1
:
'list基本信息'
,
...
...
app_BusinessCentral/src/locale/lanres/entities/list-account/list-account_en_US.ts
浏览文件 @
8aba2d21
...
...
@@ -40,6 +40,7 @@ export default {
srfdeid
:
""
,
srfsourcekey
:
""
,
entity2name
:
"客户"
,
entity2id
:
"客户"
,
relationshipsid
:
"关系标识"
,
},
uiactions
:
{
...
...
app_BusinessCentral/src/locale/lanres/entities/list-account/list-account_zh_CN.ts
浏览文件 @
8aba2d21
...
...
@@ -39,6 +39,7 @@ export default {
srfdeid
:
''
,
srfsourcekey
:
''
,
entity2name
:
'客户'
,
entity2id
:
'客户'
,
relationshipsid
:
'关系标识'
,
},
uiactions
:
{
...
...
app_BusinessCentral/src/mock/viewconfig/viewconfig.ts
浏览文件 @
8aba2d21
...
...
@@ -199,6 +199,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"AccountInfo"
,
"viewtag"
:
"2e9c7792c3a728896ca8902634f71983"
},
"ibizlistinfo_abstract"
:
{
"title"
:
"市场营销列表编辑视图"
,
"caption"
:
"市场营销列表"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Marketing"
,
"viewname"
:
"IBizListInfo_Abstract"
,
"viewtag"
:
"2eba43abd437c023437f1f2effb1fccb"
},
"salesliteratureeditview"
:
{
"title"
:
"salesliterature编辑视图"
,
"caption"
:
"销售宣传资料"
,
...
...
app_BusinessCentral/src/uiservice/ibiz-list/ibiz-list-ui-service-base.ts
浏览文件 @
8aba2d21
...
...
@@ -80,6 +80,7 @@ export default class IBizListUIServiceBase extends UIService {
*/
public
initViewMap
(){
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'ibizlists'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'info_abstract'
,
srfappde
:
'ibizlists'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'quickcreate'
,
srfappde
:
'ibizlists'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'summary'
,
srfappde
:
'ibizlists'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'ibizlists'
});
...
...
app_BusinessCentral/src/widgets/account/inner-pickip-grid/inner-pickip-grid-base.vue
浏览文件 @
8aba2d21
...
...
@@ -51,41 +51,6 @@
<el-table-column></el-table-column>
</
template
>
</el-table>
<row
class=
'grid-pagination'
v-show=
"items.length > 0"
>
<page
class=
'pull-right'
@
on-change=
"pageOnChange($event)"
@
on-page-size-change=
"onPageSizeChange($event)"
:transfer=
"true"
:total=
"totalrow"
show-sizer
:current=
"curPage"
:page-size=
"limit"
:page-size-opts=
"[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]"
show-elevator
show-total
>
<span>
<span
class=
"page-column"
>
<poptip
transfer
placement=
"top-start"
>
<i-button
icon=
"md-menu"
>
{{$t('app.gridpage.choicecolumns')}}
</i-button>
<div
slot=
"content"
>
<
template
v-for=
"col in allColumns"
>
<div
:key=
"col.name"
><el-checkbox
v-model=
"col.show"
@
change=
"onColChange()"
>
{{
$t
(
col
.
langtag
)
}}
</el-checkbox></div>
</
template
>
</div>
</poptip>
</span>
<span
v-if=
"selections.length > 0"
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
<span>
<
template
v-if=
"items.length === 1"
>
1
</
template
>
<
template
v-else
>
<span>
{{
(
curPage
-
1
)
*
limit
+
1
}}
-
{{
totalrow
>
curPage
*
limit
?
curPage
*
limit
:
totalrow
}}
</span>
</
template
>
</span>
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}
{{totalrow}}
{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form>
</div>
</template>
...
...
@@ -323,7 +288,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {boolean}
* @memberof InnerPickip
*/
public
isEnablePagingBar
:
boolean
=
tru
e
;
public
isEnablePagingBar
:
boolean
=
fals
e
;
/**
* 是否禁用排序
...
...
@@ -355,7 +320,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {number}
* @memberof InnerPickip
*/
public
limit
:
number
=
2
0
;
public
limit
:
number
=
6
0
;
/**
* 是否显示标题
...
...
@@ -363,7 +328,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {boolean}
* @memberof InnerPickip
*/
public
isHideHeader
:
boolean
=
fals
e
;
public
isHideHeader
:
boolean
=
tru
e
;
/**
* 是否默认选中第一条数据
...
...
app_BusinessCentral/src/widgets/list-account/quick-create-by-list-form/quick-create-by-list-form-base.vue
浏览文件 @
8aba2d21
...
...
@@ -9,21 +9,24 @@
<i-col
v-show=
"detailsModel.entity2name.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'entity2name'
:itemRules=
"this.rules.entity2name"
class=
''
:caption=
"$t('entities.listaccount.quickcreatebylist_form.details.entity2name')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.entity2name.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-
embed-picker
<app-
picker-select-view
:formState=
"formState"
:data=
"
JSON.stringify(this.data)"
:data=
"
data"
:context=
"context"
:viewparams=
"viewparams"
:ignorefieldvaluechange=
"ignorefieldvaluechange"
:value=
"data.entity2name"
name=
"entity2name"
:localContext =
'
{ }'
:localParam ='{ }'
valueItem=''
refviewname="account-inner-pickup-view"
@formitemvaluechange="onFormItemValueChange"
style="">
</app-embed-picker>
:disabled="detailsModel.entity2name.disabled"
name='entity2name'
deMajorField='accountname'
deKeyField='account'
:service="service"
valueitem='entity2id'
:value="data.entity2name"
:pickupView="{ viewname: 'account-inner-pickup-view', title: $t('entities.account.views.innerpickupview.title'), deResParameters: [], parameters: [{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'innerpickupview', parameterName: 'innerpickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker-select-view>
</app-form-item>
...
...
@@ -340,6 +343,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfdeid
:
null
,
srfsourcekey
:
null
,
entity2name
:
null
,
entity2id
:
null
,
relationshipsid
:
null
,
listaccount
:
null
,
};
...
...
@@ -437,6 +441,12 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
{
required
:
false
,
type
:
'string'
,
message
:
'客户 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'客户 值不能为空'
,
trigger
:
'blur'
},
],
entity2id
:
[
{
type
:
'string'
,
message
:
'客户 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'客户 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'客户 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'客户 值不能为空'
,
trigger
:
'blur'
},
],
relationshipsid
:
[
{
type
:
'string'
,
message
:
'关系标识 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'关系标识 值必须为字符串类型'
,
trigger
:
'blur'
},
...
...
@@ -473,6 +483,8 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfsourcekey
:
new
FormItemModel
({
caption
:
''
,
detailType
:
'FORMITEM'
,
name
:
'srfsourcekey'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
entity2name
:
new
FormItemModel
({
caption
:
'客户'
,
detailType
:
'FORMITEM'
,
name
:
'entity2name'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
entity2id
:
new
FormItemModel
({
caption
:
'客户'
,
detailType
:
'FORMITEM'
,
name
:
'entity2id'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
relationshipsid
:
new
FormItemModel
({
caption
:
'关系标识'
,
detailType
:
'FORMITEM'
,
name
:
'relationshipsid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
...
...
@@ -586,6 +598,18 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
this
.
formDataChange
({
name
:
'entity2name'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 entity2id 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreateByList
*/
@
Watch
(
'data.entity2id'
)
onEntity2idChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'entity2id'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 relationshipsid 值
*
...
...
@@ -646,6 +670,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
}
/**
...
...
app_BusinessCentral/src/widgets/list-account/quick-create-by-list-form/quick-create-by-list-form-model.ts
浏览文件 @
8aba2d21
...
...
@@ -60,6 +60,11 @@ export default class QuickCreateByListModel {
prop
:
'entity2name'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'entity2id'
,
prop
:
'entity2id'
,
dataType
:
'PICKUP'
,
},
{
name
:
'relationshipsid'
,
prop
:
'relationshipsid'
,
...
...
app_BusinessCentral/src/widgets/list-account/quick-create-by-list-form/quick-create-by-list-form-service.ts
浏览文件 @
8aba2d21
...
...
@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import
ControlService
from
'@/widgets/control-service'
;
import
ListAccountService
from
'@/service/list-account/list-account-service'
;
import
QuickCreateByListModel
from
'./quick-create-by-list-form-model'
;
import
AccountService
from
'@/service/account/account-service'
;
/**
...
...
@@ -41,6 +42,14 @@ export default class QuickCreateByListService extends ControlService {
this
.
model
=
new
QuickCreateByListModel
();
}
/**
* 客户服务对象
*
* @type {AccountService}
* @memberof QuickCreateByListService
*/
public
accountService
:
AccountService
=
new
AccountService
();
/**
* 处理数据
*
...
...
@@ -80,6 +89,9 @@ export default class QuickCreateByListService extends ControlService {
*/
@
Errorlog
public
getItems
(
serviceName
:
string
,
interfaceName
:
string
,
context
:
any
=
{},
data
:
any
,
isloading
?:
boolean
):
Promise
<
any
[]
>
{
if
(
Object
.
is
(
serviceName
,
'AccountService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
accountService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'accountid'
,
'account'
);
}
return
Promise
.
reject
([])
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录