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

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

上级 71484ba5
<template> <template>
<div :class="curClassName" :style="curStyle"> <div :class="curClassName" :style="curStyle">
<slot></slot> <template v-if="Object.is(renderMode, 'TEXT')">
<span class="view__caption__info">
<slot></slot>
</span>
</template>
<template v-else-if="Object.is(renderMode, 'HEADING1')">
<h1 class="view__caption__info">
<slot></slot>
</h1>
</template>
<template v-else-if="Object.is(renderMode, 'HEADING2')">
<h2 class="view__caption__info">
<slot></slot>
</h2>
</template>
<template v-else-if="Object.is(renderMode, 'HEADING3')">
<h3 class="view__caption__info">
<slot></slot>
</h3>
</template>
<template v-else-if="Object.is(renderMode, 'HEADING4')">
<h4 class="view__caption__info">
<slot></slot>
</h4>
</template>
<template v-else-if="Object.is(renderMode, 'HEADING5')">
<h5 class="view__caption__info">
<slot></slot>
</h5>
</template>
<template v-else-if="Object.is(renderMode, 'HEADING6')">
<h6 class="view__caption__info">
<slot></slot>
</h6>
</template>
<template v-else-if="Object.is(renderMode, 'PARAGRAPH')">
<p class="view__caption__info">
<slot></slot>
</p>
</template>
</div> </div>
</template> </template>
...@@ -9,7 +48,6 @@ import { Vue, Component, Prop } from "vue-property-decorator"; ...@@ -9,7 +48,6 @@ import { Vue, Component, Prop } from "vue-property-decorator";
@Component({}) @Component({})
export default class AppPresetCaption extends Vue { export default class AppPresetCaption extends Vue {
/** /**
* 名称 * 名称
* *
...@@ -44,6 +82,19 @@ export default class AppPresetCaption extends Vue { ...@@ -44,6 +82,19 @@ export default class AppPresetCaption extends Vue {
return this.index ? `${this.name}_${this.index}` : this.name; return this.index ? `${this.name}_${this.index}` : this.name;
} }
/**
* 绘制模式
*
* @type {*}
* @memberof AppPresetCaption
*/
get renderMode() {
const layoutModel = this.layoutModelDetails[this.itemName];
if (layoutModel) {
return layoutModel.renderMode || "TEXT";
}
}
/** /**
* 类名 * 类名
* *
...@@ -58,7 +109,7 @@ export default class AppPresetCaption extends Vue { ...@@ -58,7 +109,7 @@ export default class AppPresetCaption extends Vue {
/** /**
* 当前容器样式 * 当前容器样式
* *
* @memberof AppPresetCaption * @memberof AppPresetCaption
*/ */
get curStyle() { get curStyle() {
......
...@@ -408,6 +408,7 @@ function getAppLocale(){ ...@@ -408,6 +408,7 @@ function getAppLocale(){
menuitem226: commonLogic.appcommonhandle("工作流动态操作视图",null), menuitem226: commonLogic.appcommonhandle("工作流动态操作视图",null),
menuitem227: commonLogic.appcommonhandle("其他视图",null), menuitem227: commonLogic.appcommonhandle("其他视图",null),
menuitem230: commonLogic.appcommonhandle("自定义视图",null), menuitem230: commonLogic.appcommonhandle("自定义视图",null),
menuitem201: commonLogic.appcommonhandle("测试界面逻辑",null),
}, },
}, },
formpage:{ formpage:{
......
...@@ -408,6 +408,7 @@ function getAppLocale(){ ...@@ -408,6 +408,7 @@ function getAppLocale(){
menuitem226: commonLogic.appcommonhandle("工作流动态操作视图",null), menuitem226: commonLogic.appcommonhandle("工作流动态操作视图",null),
menuitem227: commonLogic.appcommonhandle("其他视图",null), menuitem227: commonLogic.appcommonhandle("其他视图",null),
menuitem230: commonLogic.appcommonhandle("自定义视图",null), menuitem230: commonLogic.appcommonhandle("自定义视图",null),
menuitem201: commonLogic.appcommonhandle("测试界面逻辑",null),
}, },
}, },
formpage:{ formpage:{
......
...@@ -408,6 +408,7 @@ function getAppLocale(){ ...@@ -408,6 +408,7 @@ function getAppLocale(){
menuitem226: commonLogic.appcommonhandle("工作流动态操作视图",null), menuitem226: commonLogic.appcommonhandle("工作流动态操作视图",null),
menuitem227: commonLogic.appcommonhandle("其他视图",null), menuitem227: commonLogic.appcommonhandle("其他视图",null),
menuitem230: commonLogic.appcommonhandle("自定义视图",null), menuitem230: commonLogic.appcommonhandle("自定义视图",null),
menuitem201: commonLogic.appcommonhandle("测试界面逻辑",null),
}, },
}, },
formpage:{ formpage:{
......
...@@ -55,6 +55,14 @@ export class PanelFieldModel extends PanelDetailModel { ...@@ -55,6 +55,14 @@ export class PanelFieldModel extends PanelDetailModel {
* @memberof PanelFieldModel * @memberof PanelFieldModel
*/ */
public dataItemName: string | undefined = undefined; public dataItemName: string | undefined = undefined;
/**
* 绘制模式
*
* @private
* @type {('TEXT' | 'HEADING1' | 'HEADING2' | 'HEADING3' | 'HEADING4' | 'HEADING5' | 'HEADING6' | 'PARAGRAPH')}
* @memberof PanelFieldModel
*/
public renderMode: 'TEXT' | 'HEADING1' | 'HEADING2' | 'HEADING3' | 'HEADING4' | 'HEADING5' | 'HEADING6' | 'PARAGRAPH' = 'TEXT';
/** /**
* Creates an instance of PanelFieldModel. * Creates an instance of PanelFieldModel.
...@@ -69,6 +77,7 @@ export class PanelFieldModel extends PanelDetailModel { ...@@ -69,6 +77,7 @@ export class PanelFieldModel extends PanelDetailModel {
this.enableCond = opts.enableCond; this.enableCond = opts.enableCond;
this.fieldState = opts.fieldState; this.fieldState = opts.fieldState;
this.dataItemName = opts.dataItemName; this.dataItemName = opts.dataItemName;
this.renderMode = opts.renderMode;
} }
/** /**
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZBOOKTestLogicCustomViewBase from './ibizbooktest-logic-custom-view-base.vue';
import view_form from '@widgets/ibizbook/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZBOOKTestLogicCustomView extends IBIZBOOKTestLogicCustomViewBase {
}
</script>
\ No newline at end of file
...@@ -137,6 +137,7 @@ export const PageComponents = { ...@@ -137,6 +137,7 @@ export const PageComponents = {
Vue.component('ibizsample0021-grid-view-layout', () => import('@pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.vue')); Vue.component('ibizsample0021-grid-view-layout', () => import('@pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.vue'));
Vue.component('ibizsample0021-wfdyna-action-view-layout', () => import('@pages/sample/ibizsample0021-wfdyna-action-view-layout/ibizsample0021-wfdyna-action-view-layout.vue')); Vue.component('ibizsample0021-wfdyna-action-view-layout', () => import('@pages/sample/ibizsample0021-wfdyna-action-view-layout/ibizsample0021-wfdyna-action-view-layout.vue'));
Vue.component('ibizbookcustom-view-layout', () => import('@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue')); Vue.component('ibizbookcustom-view-layout', () => import('@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue'));
Vue.component('ibizbooktest-logic-custom-view', () => import('@pages/sample/ibizbooktest-logic-custom-view/ibizbooktest-logic-custom-view.vue'));
Vue.component('ibizappviewgrid-view', () => import('@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue')); Vue.component('ibizappviewgrid-view', () => import('@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue'));
Vue.component('ibizappviewlist-view', () => import('@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue')); Vue.component('ibizappviewlist-view', () => import('@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue'));
Vue.component('ibizappctrlgrid-view', () => import('@pages/sample/ibizappctrlgrid-view/ibizappctrlgrid-view.vue')); Vue.component('ibizappctrlgrid-view', () => import('@pages/sample/ibizappctrlgrid-view/ibizappctrlgrid-view.vue'));
......
...@@ -2084,6 +2084,20 @@ const router = new Router({ ...@@ -2084,6 +2084,20 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue'), component: () => import('@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue'),
}, },
{
path: 'ibizbooks/:ibizbook?/testlogiccustomview/:testlogiccustomview?',
meta: {
caption: 'entities.ibizbook.views.testlogiccustomview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testlogiccustomview', parameterName: 'testlogiccustomview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktest-logic-custom-view/ibizbooktest-logic-custom-view.vue'),
},
{ {
path: 'ibizappviews/:ibizappview?/gridview/:gridview?', path: 'ibizappviews/:ibizappview?/gridview/:gridview?',
meta: { meta: {
...@@ -5942,6 +5956,19 @@ const router = new Router({ ...@@ -5942,6 +5956,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-state40-edit-view2/ibizorder-state40-edit-view2.vue'), component: () => import('@pages/sample/ibizorder-state40-edit-view2/ibizorder-state40-edit-view2.vue'),
}, },
{
path: '/ibizbooks/:ibizbook?/testlogiccustomview/:testlogiccustomview?',
meta: {
caption: 'entities.ibizbook.views.testlogiccustomview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testlogiccustomview', parameterName: 'testlogiccustomview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktest-logic-custom-view/ibizbooktest-logic-custom-view.vue'),
},
{ {
path: '/ibizcustomers/:ibizcustomer?/usr2pickupview_layout/:usr2pickupview_layout?', path: '/ibizcustomers/:ibizcustomer?/usr2pickupview_layout/:usr2pickupview_layout?',
meta: { meta: {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<app-panel-field name="field_textbox2" :data="layoutData" :value="layoutData.field_textbox2"> <input-box type="number" :precision="2" :value="layoutData.field_textbox2" :disabled="layoutModelDetails.field_textbox2.disabled" @change="(value) => handleValueChange({ name: 'field_textbox2', value})"> </input-box> </app-panel-field> <app-panel-field name="field_textbox2" :data="layoutData" :value="layoutData.field_textbox2"> <input-box type="number" :precision="2" :value="layoutData.field_textbox2" :disabled="layoutModelDetails.field_textbox2.disabled" @change="(value) => handleValueChange({ name: 'field_textbox2', value})"> </input-box> </app-panel-field>
</template> </template>
<template #field_textbox3> <template #field_textbox3>
<app-panel-field name="field_textbox3" :data="layoutData" :value="layoutData.field_textbox3"> </app-panel-field> <app-panel-field name="field_textbox3" :data="layoutData" :value="layoutData.field_textbox3"> <input-box type="password" name="field_textbox3" :value="layoutData.field_textbox3" :disabled="layoutModelDetails.field_textbox3.disabled" @change="(value) => handleValueChange({ name: 'field_textbox3', value})"> </input-box> </app-panel-field>
</template> </template>
<template #field_qrcode> <template #field_qrcode>
<app-preset-qrcode name="field_qrcode" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_qrcode" /> <app-preset-qrcode name="field_qrcode" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_qrcode" />
......
...@@ -2736,6 +2736,19 @@ const router = new Router({ ...@@ -2736,6 +2736,19 @@ const router = new Router({
}, },
component: () => import('@pages/sample/ibizorder-state40-edit-view2/ibizorder-state40-edit-view2.vue'), component: () => import('@pages/sample/ibizorder-state40-edit-view2/ibizorder-state40-edit-view2.vue'),
}, },
{
path: '/ibizbooks/:ibizbook?/testlogiccustomview/:testlogiccustomview?',
meta: {
caption: 'entities.ibizbook.views.testlogiccustomview.caption',
info:'',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testlogiccustomview', parameterName: 'testlogiccustomview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizbooktest-logic-custom-view/ibizbooktest-logic-custom-view.vue'),
},
{ {
path: '/ibizcustomers/:ibizcustomer?/usr2pickupview_layout/:usr2pickupview_layout?', path: '/ibizcustomers/:ibizcustomer?/usr2pickupview_layout/:usr2pickupview_layout?',
meta: { meta: {
......
...@@ -919,6 +919,7 @@ export const viewstate: any = { ...@@ -919,6 +919,7 @@ export const viewstate: any = {
'ef0aa2f297f599cdbc14fc8393b78a1d', 'ef0aa2f297f599cdbc14fc8393b78a1d',
'a6d2ee3618dcfb23c3db981c9dbc4340', 'a6d2ee3618dcfb23c3db981c9dbc4340',
'fa2731c1873f3c86aa065e73cff4667b', 'fa2731c1873f3c86aa065e73cff4667b',
'E74D4E6C-CFF5-4CBA-8195-FD943B3B910F',
], ],
}, },
{ {
...@@ -2095,6 +2096,15 @@ export const viewstate: any = { ...@@ -2095,6 +2096,15 @@ export const viewstate: any = {
'6bc6e690dc5abfc6d89703e4459c785c', '6bc6e690dc5abfc6d89703e4459c785c',
], ],
}, },
{
viewtag: 'E74D4E6C-CFF5-4CBA-8195-FD943B3B910F',
viewmodule: 'Sample',
viewname: 'IBIZBOOKTestLogicCustomView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{ {
viewtag: 'e7f12b95864b12114256d9c4dbbb559c', viewtag: 'e7f12b95864b12114256d9c4dbbb559c',
viewmodule: 'Sample', viewmodule: 'Sample',
......
...@@ -1023,6 +1023,9 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -1023,6 +1023,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc124': case 'AppFunc124':
this.clickAppFunc124(item); this.clickAppFunc124(item);
return; return;
case 'UsrAppFunc1108357066':
this.clickUsrAppFunc1108357066(item);
return;
default: default:
console.warn('未指定应用功能'); console.warn('未指定应用功能');
} }
...@@ -4224,6 +4227,29 @@ export default class MainMenuBase extends Vue implements ControlInterface { ...@@ -4224,6 +4227,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
this.$router.push(path); this.$router.push(path);
}) })
} }
/**
* 测试界面逻辑(表单加载)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickUsrAppFunc1108357066(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'testlogiccustomview', parameterName: 'testlogiccustomview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/** /**
* 数据加载 * 数据加载
......
...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -1808,7 +1808,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1808,7 +1808,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestLogicCustomView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1843,7 +1843,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1843,7 +1843,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {}): void { public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestLogicCustomView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1905,7 +1905,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1905,7 +1905,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestLogicCustomView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -2013,7 +2013,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2013,7 +2013,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestLogicCustomView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -2090,7 +2090,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2090,7 +2090,7 @@ export default class MainBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKOptionView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestLogicCustomView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
...@@ -629,7 +629,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface ...@@ -629,7 +629,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKDataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -665,7 +665,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface ...@@ -665,7 +665,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKDataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -665,7 +665,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -665,7 +665,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/ */
public load(opt: any = {}, isReset: boolean = false): void { public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -744,7 +744,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -744,7 +744,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -853,7 +853,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -853,7 +853,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -861,7 +861,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -861,7 +861,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){ if(item.ibizorder){
......
...@@ -299,7 +299,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -299,7 +299,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源 * @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件 * @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderPickupGridViewBase * @memberof IBIZOrderSF1GridViewBase
*/ */
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
...@@ -421,6 +421,20 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -421,6 +421,20 @@ export default class MainBase extends Vue implements ControlInterface {
return this.selections[0]; return this.selections[0];
} }
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public opendata: any;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
...@@ -953,7 +967,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -953,7 +967,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}, pageReset: boolean = false): void { public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(pageReset){ if(pageReset){
...@@ -1048,7 +1062,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1048,7 +1062,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -1154,7 +1168,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1154,7 +1168,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -2071,7 +2085,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2071,7 +2085,7 @@ export default class MainBase extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -2079,7 +2093,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2079,7 +2093,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){ if(item.ibizorder){
...@@ -2146,7 +2160,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2146,7 +2160,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public newRow(args: any[], params?: any, $event?: any, xData?: any): void { public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return; return;
} }
let _this = this; let _this = this;
......
...@@ -104,6 +104,21 @@ export default class MainModel { ...@@ -104,6 +104,21 @@ export default class MainModel {
prop: 'n_ibizordername_like', prop: 'n_ibizordername_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_orderstate_eq',
prop: 'n_orderstate_eq',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_gt',
prop: 'n_ordertime_gt',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_lt',
prop: 'n_ordertime_lt',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -4262,6 +4262,24 @@ ...@@ -4262,6 +4262,24 @@
"layout" : "TABLE_24COL" "layout" : "TABLE_24COL"
}, },
"tooltip" : "视图" "tooltip" : "视图"
}, {
"accUserMode" : 2,
"caption" : "测试界面逻辑",
"itemType" : "MENUITEM",
"name" : "menuitem201",
"getPSAppFunc" : {
"modelref" : true,
"id" : "UsrAppFunc1108357066"
},
"getPSLayout" : {
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"tooltip" : "测试界面逻辑"
} ], } ],
"getPSLayout" : { "getPSLayout" : {
"columnCount" : 24, "columnCount" : 24,
......
...@@ -2379,6 +2379,16 @@ ...@@ -2379,6 +2379,16 @@
"tooltip" : "其他视图" "tooltip" : "其他视图"
} ], } ],
"tooltip" : "视图" "tooltip" : "视图"
}, {
"accUserMode" : 2,
"caption" : "测试界面逻辑",
"itemType" : "MENUITEM",
"name" : "menuitem201",
"getPSAppFunc" : {
"modelref" : true,
"id" : "UsrAppFunc1108357066"
},
"tooltip" : "测试界面逻辑"
} ], } ],
"tooltip" : "视图布局面板测试" "tooltip" : "视图布局面板测试"
} ], } ],
......
...@@ -2997,6 +2997,16 @@ ...@@ -2997,6 +2997,16 @@
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4EditView.json", "path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4EditView.json",
"viewType" : "DEEDITVIEW" "viewType" : "DEEDITVIEW"
} }
}, {
"appFuncType" : "APPVIEW",
"codeName" : "UsrAppFunc1108357066",
"name" : "测试界面逻辑(表单加载)",
"openMode" : "INDEXVIEWTAB",
"getPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTestLogicCustomView.json",
"viewType" : "DECUSTOMVIEW"
}
}, { }, {
"appFuncType" : "APPVIEW", "appFuncType" : "APPVIEW",
"codeName" : "AppFunc114", "codeName" : "AppFunc114",
...@@ -19188,6 +19198,24 @@ ...@@ -19188,6 +19198,24 @@
"layout" : "TABLE_24COL" "layout" : "TABLE_24COL"
}, },
"tooltip" : "视图" "tooltip" : "视图"
}, {
"accUserMode" : 2,
"caption" : "测试界面逻辑",
"itemType" : "MENUITEM",
"name" : "menuitem201",
"getPSAppFunc" : {
"modelref" : true,
"id" : "UsrAppFunc1108357066"
},
"getPSLayout" : {
"columnCount" : 24,
"layout" : "TABLE_24COL"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"tooltip" : "测试界面逻辑"
} ], } ],
"getPSLayout" : { "getPSLayout" : {
"columnCount" : 24, "columnCount" : 24,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册