Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
1f90b78c
提交
1f90b78c
编写于
12月 01, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
ce5698e0
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
226 行增加
和
3 行删除
+226
-3
ibizorder-detail_en_US.ts
...anres/entities/ibizorder-detail/ibizorder-detail_en_US.ts
+4
-0
ibizorder-detail_zh_CN.ts
...anres/entities/ibizorder-detail/ibizorder-detail_zh_CN.ts
+4
-0
ibizorder-detail-sgrid-view9-base.vue
...-detail-sgrid-view9/ibizorder-detail-sgrid-view9-base.vue
+41
-2
state.ts
app_Web/src/store/modules/view-action/state.ts
+2
-0
ui-0007-form-base.vue
...dgets/ibizorder-detail/ui-0007-form/ui-0007-form-base.vue
+143
-1
ui-0007-form-model.ts
...dgets/ibizorder-detail/ui-0007-form/ui-0007-form-model.ts
+20
-0
ui-0007-form-service.ts
...ets/ibizorder-detail/ui-0007-form/ui-0007-form-service.ts
+12
-0
未找到文件。
app_Web/src/locale/lanres/entities/ibizorder-detail/ibizorder-detail_en_US.ts
浏览文件 @
1f90b78c
...
...
@@ -80,6 +80,10 @@ export default {
quantity
:
"数量"
,
amount
:
"小计"
,
ibizorderid
:
"订单标识"
,
ibizorderdetailname
:
"订单明细名称"
,
unit
:
"单位"
,
unitprice
:
"单价"
,
ibizordername
:
"订单名称"
,
ibizuniproductid
:
"统一产品标识"
,
ibizorderdetailid
:
"订单明细标识"
,
},
...
...
app_Web/src/locale/lanres/entities/ibizorder-detail/ibizorder-detail_zh_CN.ts
浏览文件 @
1f90b78c
...
...
@@ -79,6 +79,10 @@ export default {
quantity
:
"数量"
,
amount
:
"小计"
,
ibizorderid
:
"订单标识"
,
ibizorderdetailname
:
"订单明细名称"
,
unit
:
"单位"
,
unitprice
:
"单价"
,
ibizordername
:
"订单名称"
,
ibizuniproductid
:
"统一产品标识"
,
ibizorderdetailid
:
"订单明细标识"
,
},
...
...
app_Web/src/pages/sample/ibizorder-detail-sgrid-view9/ibizorder-detail-sgrid-view9-base.vue
浏览文件 @
1f90b78c
...
...
@@ -937,7 +937,28 @@ export default class IBIZOrderDetailSGridView9Base extends Vue {
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
ibizorderdetail
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'seditview9'
,
parameterName
:
'seditview9'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
};
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
...
...
@@ -961,7 +982,25 @@ export default class IBIZOrderDetailSGridView9Base extends Vue {
}
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
this
.
$Notice
.
warning
({
title
:
'错误'
,
desc
:
'未指定关系视图'
});
const
data
:
any
=
{};
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizorderdetails'
,
parameterName
:
'ibizorderdetail'
},
{
pathName
:
'seditview9'
,
parameterName
:
'seditview9'
},
];
const
_this
:
any
=
this
;
if
(
fullargs
&&
fullargs
.
copymode
){
Object
.
assign
(
data
,{
copymode
:
true
});
}
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
1f90b78c
...
...
@@ -621,6 +621,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'17770b42972334457baccfe91828bd46'
,
'ec6cfd868c34a036250a813b24068519'
,
],
},
...
...
@@ -1207,6 +1208,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'55c0b817ceaaa2894e76b510d94da24c'
,
],
},
{
...
...
app_Web/src/widgets/ibizorder-detail/ui-0007-form/ui-0007-form-base.vue
浏览文件 @
1f90b78c
...
...
@@ -56,6 +56,68 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ibizorderdetailname.visible"
:style=
"
{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item
name=
'ibizorderdetailname'
:itemRules=
"this.rules().ibizorderdetailname"
class=
''
:caption=
"$t('entities.ibizorderdetail.ui_0007_form.details.ibizorderdetailname')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ibizorderdetailname.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.ibizorderdetailname"
@
enter=
"onEnter($event)"
unit=
""
:disabled=
"detailsModel.ibizorderdetailname.disabled"
type=
'text'
style=
""
>
</input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.unit.visible"
:style=
"
{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item
name=
'unit'
:itemRules=
"this.rules().unit"
class=
''
:caption=
"$t('entities.ibizorderdetail.ui_0007_form.details.unit')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.unit.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'unit'
:value=
"data.unit"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.unitprice.visible"
:style=
"
{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item
name=
'unitprice'
:itemRules=
"this.rules().unitprice"
class=
''
:caption=
"$t('entities.ibizorderdetail.ui_0007_form.details.unitprice')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.unitprice.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-span
name=
'unitprice'
:value=
"data.unitprice"
dataType=
"PICKUPDATA"
:precision=
"0"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ibizordername.visible"
:style=
"
{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item
name=
'ibizordername'
:itemRules=
"this.rules().ibizordername"
class=
''
:caption=
"$t('entities.ibizorderdetail.ui_0007_form.details.ibizordername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ibizordername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
:formState=
"formState"
:data=
"data"
:context=
"context"
:viewparams=
"viewparams"
:localContext =
'
{ }'
:localParam ='{ }'
:disabled="detailsModel.ibizordername.disabled"
name='ibizordername'
deMajorField='ibizordername'
deKeyField='ibizorder'
:service="service"
:acParams="{ serviceName: 'IBIZOrderService', interfaceName: 'FetchDefault'}"
valueitem='ibizorderid'
:value="data.ibizordername"
editortype=""
:pickupView="{ viewname: 'ibizorder-pickup-view', title: $t('entities.ibizorder.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizorders', parameterName: 'ibizorder' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
</i-col>
</row>
...
...
@@ -461,6 +523,10 @@ export default class UI_0007Base extends Vue implements ControlInterface {
quantity
:
null
,
amount
:
null
,
ibizorderid
:
null
,
ibizorderdetailname
:
null
,
unit
:
null
,
unitprice
:
null
,
ibizordername
:
null
,
ibizuniproductid
:
null
,
ibizorderdetailid
:
null
,
ibizorderdetail
:
null
,
...
...
@@ -504,7 +570,7 @@ export default class UI_0007Base extends Vue implements ControlInterface {
* @type {string}
* @memberof UI_0007Base
*/
public
majorMessageField
:
string
=
""
;
public
majorMessageField
:
string
=
"
ibizorderdetailname
"
;
/**
* 值规则
...
...
@@ -526,6 +592,22 @@ export default class UI_0007Base extends Vue implements ControlInterface {
{
required
:
this
.
detailsModel
.
amount
.
required
,
type
:
'number'
,
message
:
'小计 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
amount
.
required
,
type
:
'number'
,
message
:
'小计 值不能为空'
,
trigger
:
'blur'
},
],
ibizorderdetailname
:
[
{
required
:
this
.
detailsModel
.
ibizorderdetailname
.
required
,
type
:
'string'
,
message
:
'订单明细名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
ibizorderdetailname
.
required
,
type
:
'string'
,
message
:
'订单明细名称 值不能为空'
,
trigger
:
'blur'
},
],
unit
:
[
{
required
:
this
.
detailsModel
.
unit
.
required
,
type
:
'string'
,
message
:
'单位 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
unit
.
required
,
type
:
'string'
,
message
:
'单位 值不能为空'
,
trigger
:
'blur'
},
],
unitprice
:
[
{
required
:
this
.
detailsModel
.
unitprice
.
required
,
type
:
'number'
,
message
:
'单价 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
unitprice
.
required
,
type
:
'number'
,
message
:
'单价 值不能为空'
,
trigger
:
'blur'
},
],
ibizordername
:
[
{
required
:
this
.
detailsModel
.
ibizordername
.
required
,
type
:
'string'
,
message
:
'订单名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
ibizordername
.
required
,
type
:
'string'
,
message
:
'订单名称 值不能为空'
,
trigger
:
'blur'
},
],
}
}
...
...
@@ -658,6 +740,14 @@ export default class UI_0007Base extends Vue implements ControlInterface {
amount
:
new
FormItemModel
({
caption
:
'小计'
,
detailType
:
'FORMITEM'
,
name
:
'amount'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
ibizorderid
:
new
FormItemModel
({
caption
:
'订单标识'
,
detailType
:
'FORMITEM'
,
name
:
'ibizorderid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
ibizorderdetailname
:
new
FormItemModel
({
caption
:
'订单明细名称'
,
detailType
:
'FORMITEM'
,
name
:
'ibizorderdetailname'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
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
})
,
ibizordername
:
new
FormItemModel
({
caption
:
'订单名称'
,
detailType
:
'FORMITEM'
,
name
:
'ibizordername'
,
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
})
,
...
...
@@ -809,6 +899,54 @@ export default class UI_0007Base extends Vue implements ControlInterface {
this
.
formDataChange
({
name
:
'ibizorderid'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizorderdetailname 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@
Watch
(
'data.ibizorderdetailname'
)
onIbizorderdetailnameChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ibizorderdetailname'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 unit 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@
Watch
(
'data.unit'
)
onUnitChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'unit'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 unitprice 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@
Watch
(
'data.unitprice'
)
onUnitpriceChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'unitprice'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizordername 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@
Watch
(
'data.ibizordername'
)
onIbizordernameChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'ibizordername'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 ibizuniproductid 值
*
...
...
@@ -905,6 +1043,10 @@ export default class UI_0007Base extends Vue implements ControlInterface {
}
...
...
app_Web/src/widgets/ibizorder-detail/ui-0007-form/ui-0007-form-model.ts
浏览文件 @
1f90b78c
...
...
@@ -75,6 +75,26 @@ export default class UI_0007Model {
prop
:
'ibizorderid'
,
dataType
:
'PICKUP'
,
},
{
name
:
'ibizorderdetailname'
,
prop
:
'ibizorderdetailname'
,
dataType
:
'TEXT'
,
},
{
name
:
'unit'
,
prop
:
'unit'
,
dataType
:
'PICKUPDATA'
,
},
{
name
:
'unitprice'
,
prop
:
'unitprice'
,
dataType
:
'PICKUPDATA'
,
},
{
name
:
'ibizordername'
,
prop
:
'ibizordername'
,
dataType
:
'PICKUPTEXT'
,
},
{
name
:
'ibizuniproductid'
,
prop
:
'ibizuniproductid'
,
...
...
app_Web/src/widgets/ibizorder-detail/ui-0007-form/ui-0007-form-service.ts
浏览文件 @
1f90b78c
...
...
@@ -3,6 +3,7 @@ import ControlService from '@/widgets/control-service';
import
IBIZOrderDetailService
from
'@/service/ibizorder-detail/ibizorder-detail-service'
;
import
UI_0007Model
from
'./ui-0007-form-model'
;
import
IBIZUNIProductService
from
'@/service/ibizuniproduct/ibizuniproduct-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
/**
...
...
@@ -50,6 +51,14 @@ export default class UI_0007Service extends ControlService {
*/
public
ibizuniproductService
:
IBIZUNIProductService
=
new
IBIZUNIProductService
();
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof UI_0007Service
*/
public
ibizorderService
:
IBIZOrderService
=
new
IBIZOrderService
();
/**
* 远端数据
*
...
...
@@ -102,6 +111,9 @@ export default class UI_0007Service extends ControlService {
if
(
Object
.
is
(
serviceName
,
'IBIZUNIProductService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
ibizuniproductService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'ibizuniproductid'
,
'ibizuniproduct'
);
}
if
(
Object
.
is
(
serviceName
,
'IBIZOrderService'
)
&&
Object
.
is
(
interfaceName
,
'FetchDefault'
))
{
return
this
.
doItems
(
this
.
ibizorderService
.
FetchDefault
(
JSON
.
parse
(
JSON
.
stringify
(
context
)),
data
,
isloading
),
'ibizorderid'
,
'ibizorder'
);
}
return
Promise
.
reject
([])
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录