Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
3f4eefff
提交
3f4eefff
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
f5b59005
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
101 行增加
和
91 行删除
+101
-91
view-config.json
app_Web/public/assets/json/view-config.json
+2
-2
view-message-group.json
app_Web/public/assets/json/view-message-group.json
+3
-0
ibizorder-detail_en_US.ts
...anres/entities/ibizorder-detail/ibizorder-detail_en_US.ts
+1
-3
ibizorder-detail_zh_CN.ts
...anres/entities/ibizorder-detail/ibizorder-detail_zh_CN.ts
+2
-4
message-service-register.ts
app_Web/src/message/message-service-register.ts
+1
-0
view-msg27-message-base.ts
app_Web/src/message/view-msg27/view-msg27-message-base.ts
+63
-0
view-msg27-message.ts
app_Web/src/message/view-msg27/view-msg27-message.ts
+21
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+5
-2
ibizorder-detail-sf2-edit-view-base.vue
...ail-sf2-edit-view/ibizorder-detail-sf2-edit-view-base.vue
+3
-3
main3-form-base.vue
...c/widgets/ibizorder-detail/main3-form/main3-form-base.vue
+0
-67
main3-form-model.ts
...c/widgets/ibizorder-detail/main3-form/main3-form-model.ts
+0
-10
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
3f4eefff
...
...
@@ -576,8 +576,8 @@
"viewtag"
:
"875222727b7ab7dcaccc45808fd38b09"
},
"ibizorderdetailsf2editview"
:
{
"title"
:
"
订单明细编辑视图
"
,
"caption"
:
"
订单明细
"
,
"title"
:
"
表单项更新
"
,
"caption"
:
"
表单项更新
"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderDetailSF2EditView"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/public/assets/json/view-message-group.json
浏览文件 @
3f4eefff
...
...
@@ -65,6 +65,9 @@
"VMGroup17"
:[
{
"tag"
:
"ViewMsg16"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup28"
:[
{
"tag"
:
"ViewMsg27"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup22"
:[
{
"tag"
:
"ViewMsg21"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizorder-detail/ibizorder-detail_en_US.ts
浏览文件 @
3f4eefff
...
...
@@ -41,7 +41,7 @@ export default {
},
sf2editview
:
{
caption
:
"orderdetail"
,
title
:
"
订单明细编辑视图
"
,
title
:
"
表单项更新
"
,
},
sgridview9
:
{
caption
:
"orderdetail"
,
...
...
@@ -173,8 +173,6 @@ export default {
ibizuniproductname
:
"产品名称"
,
unit
:
"单位"
,
unitprice
:
"单价"
,
quantity
:
"数量"
,
amount
:
"小计"
,
ibizuniproductid
:
"统一产品标识"
,
ibizorderid
:
"订单标识"
,
ibizorderdetailid
:
"订单明细标识"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizorder-detail/ibizorder-detail_zh_CN.ts
浏览文件 @
3f4eefff
...
...
@@ -39,8 +39,8 @@ export default {
title
:
"订单明细编辑视图"
,
},
sf2editview
:
{
caption
:
"
订单明细
"
,
title
:
"
订单明细编辑视图
"
,
caption
:
"
表单项更新
"
,
title
:
"
表单项更新
"
,
},
sgridview9
:
{
caption
:
"订单明细"
,
...
...
@@ -172,8 +172,6 @@ export default {
ibizuniproductname
:
"产品名称"
,
unit
:
"单位"
,
unitprice
:
"单价"
,
quantity
:
"数量"
,
amount
:
"小计"
,
ibizuniproductid
:
"统一产品标识"
,
ibizorderid
:
"订单标识"
,
ibizorderdetailid
:
"订单明细标识"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/message/message-service-register.ts
浏览文件 @
3f4eefff
...
...
@@ -56,6 +56,7 @@ export class MessageServiceRegister {
this
.
allMessageService
.
set
(
'ViewMsg13'
,
()
=>
import
(
'@/message/view-msg13/view-msg13-message'
));
this
.
allMessageService
.
set
(
'ViewMsg8'
,
()
=>
import
(
'@/message/view-msg8/view-msg8-message'
));
this
.
allMessageService
.
set
(
'ViewMsg'
,
()
=>
import
(
'@/message/view-msg/view-msg-message'
));
this
.
allMessageService
.
set
(
'ViewMsg27'
,
()
=>
import
(
'@/message/view-msg27/view-msg27-message'
));
this
.
allMessageService
.
set
(
'ViewMsg9'
,
()
=>
import
(
'@/message/view-msg9/view-msg9-message'
));
this
.
allMessageService
.
set
(
'ViewMsg18'
,
()
=>
import
(
'@/message/view-msg18/view-msg18-message'
));
this
.
allMessageService
.
set
(
'ViewMsg12'
,
()
=>
import
(
'@/message/view-msg12/view-msg12-message'
));
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/message/view-msg27/view-msg27-message-base.ts
0 → 100644
浏览文件 @
3f4eefff
import
ViewMessageService
from
'../view-message-service'
;
/**
* 表单项更新视图消息服务对象基类
*
* @export
* @class ViewMsg27MessageServiceBase
*/
export
default
class
ViewMsg27MessageServiceBase
extends
ViewMessageService
{
/**
* Creates an instance of ViewMsg27MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg27MessageServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg27MessageServiceBase
*/
public
initBasicParam
(){
this
.
id
=
"E7036F63-2FDE-42C5-A85A-806CDD320E37"
;
this
.
name
=
"表单项更新"
;
this
.
codename
=
"ViewMsg27"
;
this
.
title
=
""
;
this
.
content
=
"本示例展示表单的表单项更新功能;展示内容包含通过商品获取单位和单价"
;
this
.
closeMode
=
0
;
this
.
position
=
"TOP"
;
this
.
type
=
"error"
;
this
.
isEnableRemove
=
false
;
this
.
order
=
1
;
this
.
dynamicMode
=
"STATIC"
;
this
.
hasMessageTemp
=
false
;
this
.
messageType
=
"TEXT"
;
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg27MessageServiceBase
*/
public
translateMessageTemp
(
target
:
any
,
context
:
any
,
viewparam
:
any
,
item
?:
any
){
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"HTML"
)){
Object
.
assign
(
target
,{
title
:
``
});
Object
.
assign
(
target
,{
content
:
``
});
}
if
(
this
.
hasMessageTemp
&&
Object
.
is
(
this
.
messageType
,
"TEXT"
)){
Object
.
assign
(
target
,{
title
:
""
});
Object
.
assign
(
target
,{
content
:
""
});
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/message/view-msg27/view-msg27-message.ts
0 → 100644
浏览文件 @
3f4eefff
import
ViewMsg27MessageServiceBase
from
'./view-msg27-message-base'
;
/**
* 表单项更新视图消息服务对象
*
* @export
* @class ViewMsg27MessageService
*/
export
default
class
ViewMsg27MessageService
extends
ViewMsg27MessageServiceBase
{
/**
* Creates an instance of ViewMsg27MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg27MessageService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
3f4eefff
...
...
@@ -584,8 +584,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"875222727b7ab7dcaccc45808fd38b09"
},
"ibizorderdetailsf2editview"
:
{
"title"
:
"
订单明细编辑视图
"
,
"caption"
:
"
订单明细
"
,
"title"
:
"
表单项更新
"
,
"caption"
:
"
表单项更新
"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderDetailSF2EditView"
,
...
...
@@ -1280,6 +1280,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup17"
:[
{
"tag"
:
"ViewMsg16"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup28"
:[
{
"tag"
:
"ViewMsg27"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup22"
:[
{
"tag"
:
"ViewMsg21"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizorder-detail-sf2-edit-view/ibizorder-detail-sf2-edit-view-base.vue
浏览文件 @
3f4eefff
...
...
@@ -8,10 +8,10 @@
</div>
<div
class=
'view-top-messages'
>
</div>
<
app-alert-group
position=
'TOP'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup28'
viewname=
'ibizorderdetailsf2editview'
></app-alert-group>
<
/div>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
</div>
<
app-alert-group
position=
'BODY'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup28'
viewname=
'ibizorderdetailsf2editview'
></app-alert-group>
<
/div>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
@@ -36,7 +36,7 @@
</view
_form
>
</div>
<div
class=
'view-bottom-messages'
>
</div>
<
app-alert-group
position=
'BOTTOM'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup28'
viewname=
'ibizorderdetailsf2editview'
></app-alert-group>
<
/div>
</card>
</div>
</
template
>
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder-detail/main3-form/main3-form-base.vue
浏览文件 @
3f4eefff
...
...
@@ -80,30 +80,6 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.quantity.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item
name=
'quantity'
:itemRules=
"this.rules().quantity"
class=
''
:caption=
"$t('entities.ibizorderdetail.main3_form.details.quantity')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.quantity.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.quantity"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.quantity.disabled"
type=
'number'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.amount.visible"
:style=
"
{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item
name=
'amount'
:itemRules=
"this.rules().amount"
class=
''
:caption=
"$t('entities.ibizorderdetail.main3_form.details.amount')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.amount.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'amount'
:value=
"data.amount"
dataType=
"FLOAT"
:precision=
"2"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
</row>
...
...
@@ -509,8 +485,6 @@ export default class Main3Base extends Vue implements ControlInterface {
ibizuniproductname
:
null
,
unit
:
null
,
unitprice
:
null
,
quantity
:
null
,
amount
:
null
,
ibizuniproductid
:
null
,
ibizorderid
:
null
,
ibizorderdetailid
:
null
,
...
...
@@ -581,14 +555,6 @@ export default class Main3Base extends Vue implements ControlInterface {
{
required
:
this
.
detailsModel
.
unitprice
.
required
,
type
:
'number'
,
message
:
'单价 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
unitprice
.
required
,
type
:
'number'
,
message
:
'单价 值不能为空'
,
trigger
:
'blur'
},
],
quantity
:
[
{
required
:
this
.
detailsModel
.
quantity
.
required
,
type
:
'number'
,
message
:
'数量 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
quantity
.
required
,
type
:
'number'
,
message
:
'数量 值不能为空'
,
trigger
:
'blur'
},
],
amount
:
[
{
required
:
this
.
detailsModel
.
amount
.
required
,
type
:
'number'
,
message
:
'小计 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
amount
.
required
,
type
:
'number'
,
message
:
'小计 值不能为空'
,
trigger
:
'blur'
},
],
}
}
...
...
@@ -721,10 +687,6 @@ export default class Main3Base extends Vue implements ControlInterface {
unit
:
new
FormItemModel
({
caption
:
'单位'
,
detailType
:
'FORMITEM'
,
name
:
'unit'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
unitprice
:
new
FormItemModel
({
caption
:
'单价'
,
detailType
:
'FORMITEM'
,
name
:
'unitprice'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
quantity
:
new
FormItemModel
({
caption
:
'数量'
,
detailType
:
'FORMITEM'
,
name
:
'quantity'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
amount
:
new
FormItemModel
({
caption
:
'小计'
,
detailType
:
'FORMITEM'
,
name
:
'amount'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
ibizuniproductid
:
new
FormItemModel
({
caption
:
'统一产品标识'
,
detailType
:
'FORMITEM'
,
name
:
'ibizuniproductid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
...
...
@@ -878,30 +840,6 @@ export default class Main3Base extends Vue implements ControlInterface {
this
.
formDataChange
({
name
:
'unitprice'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 quantity 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main3Base
*/
@
Watch
(
'data.quantity'
)
onQuantityChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'quantity'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 amount 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof Main3Base
*/
@
Watch
(
'data.amount'
)
onAmountChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'amount'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizuniproductid 值
*
...
...
@@ -965,9 +903,6 @@ export default class Main3Base extends Vue implements ControlInterface {
* @memberof Main3Base
*/
public
resetFormData
({
name
,
newVal
,
oldVal
}:
{
name
:
string
,
newVal
:
any
,
oldVal
:
any
}):
void
{
if
(
Object
.
is
(
name
,
'IBIZuniproductname'
))
{
this
.
onFormItemValueChange
({
name
:
'quantity'
,
value
:
null
});
}
}
/**
...
...
@@ -1012,8 +947,6 @@ export default class Main3Base extends Vue implements ControlInterface {
if
(
Object
.
is
(
name
,
'ibizuniproductname'
)){
const
details
:
string
[]
=
[
'unitprice'
,
'unit'
];
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder-detail/main3-form/main3-form-model.ts
浏览文件 @
3f4eefff
...
...
@@ -75,16 +75,6 @@ export default class Main3Model {
prop
:
'unitprice'
,
dataType
:
'PICKUPDATA'
,
},
{
name
:
'quantity'
,
prop
:
'quantity'
,
dataType
:
'INT'
,
},
{
name
:
'amount'
,
prop
:
'amount'
,
dataType
:
'FLOAT'
,
},
{
name
:
'ibizuniproductid'
,
prop
:
'ibizuniproductid'
,
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录