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

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

上级 fd710e13
...@@ -775,7 +775,8 @@ export default { ...@@ -775,7 +775,8 @@ export default {
}, },
default_searchform: { default_searchform: {
details: { details: {
formpage1: "", formpage1: "订单名称",
n_ibizordername_like: "订单名称(%)",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -774,7 +774,8 @@ export default { ...@@ -774,7 +774,8 @@ export default {
}, },
default_searchform: { default_searchform: {
details: { details: {
formpage1: "", formpage1: "订单名称",
n_ibizordername_like: "订单名称(%)",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -286,6 +286,7 @@ export default class IBIZOrderGridExpViewBase extends Vue { ...@@ -286,6 +286,7 @@ export default class IBIZOrderGridExpViewBase extends Vue {
* @memberof IBIZOrderGridExpViewBase * @memberof IBIZOrderGridExpViewBase
*/ */
public containerModel: any = { public containerModel: any = {
view_quicksearchform: { name: 'quicksearchform', type: 'SEARCHFORM' },
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' }, view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' }, view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
view_gridexpbar: { name: 'gridexpbar', type: 'GRIDEXPBAR' }, view_gridexpbar: { name: 'gridexpbar', type: 'GRIDEXPBAR' },
......
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import IBIZOrderGridExpViewBase from './ibizorder-grid-exp-view-base.vue'; import IBIZOrderGridExpViewBase from './ibizorder-grid-exp-view-base.vue';
import view_quicksearchform from '@widgets/ibizorder/uipart-0013-searchform/uipart-0013-searchform.vue';
import view_searchform from '@widgets/ibizorder/default-searchform/default-searchform.vue'; import view_searchform from '@widgets/ibizorder/default-searchform/default-searchform.vue';
import view_gridexpbar from '@widgets/ibizorder/grid-exp-viewgridexpbar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar.vue'; import view_gridexpbar from '@widgets/ibizorder/grid-exp-viewgridexpbar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar.vue';
@Component({ @Component({
components: { components: {
view_quicksearchform,
view_searchform, view_searchform,
view_gridexpbar, view_gridexpbar,
}, },
......
...@@ -118,10 +118,10 @@ ...@@ -118,10 +118,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -98,10 +98,10 @@ ...@@ -98,10 +98,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -113,10 +113,10 @@ ...@@ -113,10 +113,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -98,10 +98,10 @@ ...@@ -98,10 +98,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -98,10 +98,10 @@ ...@@ -98,10 +98,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -98,10 +98,10 @@ ...@@ -98,10 +98,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -82,10 +82,10 @@ ...@@ -82,10 +82,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -82,10 +82,10 @@ ...@@ -82,10 +82,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -118,10 +118,10 @@ ...@@ -118,10 +118,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -118,10 +118,10 @@ ...@@ -118,10 +118,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@closeview="closeView($event)"> @closeview="closeView($event)">
......
...@@ -68,10 +68,10 @@ ...@@ -68,10 +68,10 @@
:viewparams="viewparams" :viewparams="viewparams"
:context="context" :context="context"
:showBusyIndicator="true" :showBusyIndicator="true"
v-show="isExpandSearchForm" v-show="true"
loaddraftAction="FilterGetDraft" loaddraftAction="FilterGetDraft"
loadAction="FilterGet" loadAction="FilterGet"
@valuechange="quickFormValueChange"
name="searchform" name="searchform"
ref='searchform' ref='searchform'
@save="searchform_save($event)" @save="searchform_save($event)"
......
...@@ -4,12 +4,20 @@ ...@@ -4,12 +4,20 @@
<row> <row>
<i-col span="20" class="form-content"> <i-col span="20" class="form-content">
<row> <row>
</row> <i-col v-show="detailsModel.n_ibizordername_like.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='n_ibizordername_like' :itemRules="this.rules.n_ibizordername_like" class='' :caption="$t('entities.ibizorder.default_searchform.details.n_ibizordername_like')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.n_ibizordername_like.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.n_ibizordername_like"
@enter="onEnter($event)"
:disabled="detailsModel.n_ibizordername_like.disabled"
type='text'
style="width:100px;">
</input-box>
</app-form-item>
</i-col> </i-col>
<i-col span="4" class="search-button">
<row v-show="Object.keys(data).length>0">
<i-button class='search_reset' size="default" type="primary" @click="onSearch">{{$t('app.searchButton.search')}}</i-button>
<i-button class='search_reset' size="default" @click="onReset">{{this.$t('app.searchButton.reset')}}</i-button>
</row> </row>
</i-col> </i-col>
</row> </row>
...@@ -261,6 +269,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -261,6 +269,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public data: any = { public data: any = {
n_ibizordername_like: null,
}; };
/** /**
...@@ -270,7 +279,9 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -270,7 +279,9 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public detailsModel: any = { 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_ibizordername_like: new FormItemModel({ caption: '订单名称(%)', detailType: 'FORMITEM', name: 'n_ibizordername_like', visible: true, isShowCaption: true, form: this,required:false, disabled: false, enableCond: 3 })
, ,
}; };
...@@ -281,6 +292,24 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -281,6 +292,24 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase * @memberof DefaultBase
*/ */
public rules: any = { public rules: any = {
n_ibizordername_like: [
{ type: 'string', message: '订单名称(%) 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '订单名称(%) 值必须为字符串类型', trigger: 'blur' },
{ required: this.detailsModel.n_ibizordername_like.required, type: 'string', message: '订单名称(%) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.n_ibizordername_like.required, type: 'string', message: '订单名称(%) 值不能为空', trigger: 'blur' },
],
}
/**
* 监控表单属性 n_ibizordername_like 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@Watch('data.n_ibizordername_like')
onN_ibizordername_likeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'n_ibizordername_like', newVal: newVal, oldVal: oldVal });
} }
...@@ -304,6 +333,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -304,6 +333,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void { public formLogic({ name, newVal, oldVal }: { name: string, newVal: any, oldVal: any }): void {
} }
/** /**
...@@ -321,6 +351,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -321,6 +351,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
this.resetFormData({ name: name, newVal: newVal, oldVal: oldVal }); this.resetFormData({ name: name, newVal: newVal, oldVal: oldVal });
this.formLogic({ name: name, newVal: newVal, oldVal: oldVal }); this.formLogic({ name: name, newVal: newVal, oldVal: oldVal });
this.dataChang.next(JSON.stringify(this.data)); this.dataChang.next(JSON.stringify(this.data));
this.$emit('valuechange',this.data);
} }
/** /**
......
...@@ -25,6 +25,11 @@ export default class DefaultModel { ...@@ -25,6 +25,11 @@ export default class DefaultModel {
prop: 'srffrontuf', prop: 'srffrontuf',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'n_ibizordername_like',
prop: 'ibizordername',
dataType: 'TEXT',
},
] ]
} }
......
...@@ -84,6 +84,11 @@ export default class Main2Model { ...@@ -84,6 +84,11 @@ export default class Main2Model {
name: 'ibizorder', name: 'ibizorder',
prop: 'ibizorderid', prop: 'ibizorderid',
}, },
{
name: 'n_ibizordername_like',
prop: 'n_ibizordername_like',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册