提交 e33bd02e 编写于 作者: ibizdev's avatar ibizdev

Mosher 发布系统代码 [后台服务,演示应用]

上级 5ca6ad70
......@@ -123,7 +123,8 @@ export default {
},
default_searchform: {
details: {
formpage1: "",
formpage1: "名称",
n_ibizcustomername_like: "客户名称(%)",
},
uiactions: {
},
......
......@@ -122,7 +122,8 @@ export default {
},
default_searchform: {
details: {
formpage1: "",
formpage1: "名称",
n_ibizcustomername_like: "客户名称(%)",
},
uiactions: {
},
......
......@@ -76,6 +76,11 @@ export default class AddDataGridModel {
name: 'ibizcustomer',
prop: 'ibizcustomerid',
},
{
name: 'n_ibizcustomername_like',
prop: 'n_ibizcustomername_like',
dataType: 'QUERYPARAM'
},
{
name:'size',
......
......@@ -4,7 +4,21 @@
<row>
<i-col span="20" class="form-content">
<row>
</row>
<i-col v-show="detailsModel.n_ibizcustomername_like.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='n_ibizcustomername_like' :itemRules="this.rules.n_ibizcustomername_like" class='' :caption="$t('entities.ibizcustomer.default_searchform.details.n_ibizcustomername_like')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_ibizcustomername_like.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.n_ibizcustomername_like"
@enter="onEnter($event)"
:disabled="detailsModel.n_ibizcustomername_like.disabled"
type='text'
style="width:100px;">
</input-box>
</app-form-item>
</i-col>
</row>
</i-col>
<i-col span="4" class="search-button">
<row v-show="Object.keys(data).length>0">
......@@ -261,6 +275,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public data: any = {
n_ibizcustomername_like: null,
};
/**
......@@ -270,7 +285,9 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public detailsModel: any = {
formpage1: new FormPageModel({ caption: '', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
formpage1: new FormPageModel({ caption: '名称', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
n_ibizcustomername_like: new FormItemModel({ caption: '客户名称(%)', detailType: 'FORMITEM', name: 'n_ibizcustomername_like', visible: true, isShowCaption: true, form: this,required:false, disabled: false, enableCond: 3 })
,
};
......@@ -281,6 +298,24 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
*/
public rules: any = {
n_ibizcustomername_like: [
{ type: 'string', message: '客户名称(%) 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '客户名称(%) 值必须为字符串类型', trigger: 'blur' },
{ required: this.detailsModel.n_ibizcustomername_like.required, type: 'string', message: '客户名称(%) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.n_ibizcustomername_like.required, type: 'string', message: '客户名称(%) 值不能为空', trigger: 'blur' },
],
}
/**
* 监控表单属性 n_ibizcustomername_like 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@Watch('data.n_ibizcustomername_like')
onN_ibizcustomername_likeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'n_ibizcustomername_like', newVal: newVal, oldVal: oldVal });
}
......@@ -304,6 +339,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
}
/**
......
......@@ -25,6 +25,11 @@ export default class DefaultModel {
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'n_ibizcustomername_like',
prop: 'ibizcustomername',
dataType: 'TEXT',
},
]
}
......
......@@ -76,6 +76,11 @@ export default class MainModel {
name: 'ibizcustomer',
prop: 'ibizcustomerid',
},
{
name: 'n_ibizcustomername_like',
prop: 'n_ibizcustomername_like',
dataType: 'QUERYPARAM'
},
{
name:'size',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册