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

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

上级 292e08f7
...@@ -201,7 +201,7 @@ spring: ...@@ -201,7 +201,7 @@ spring:
uri: lb://${ibiz.ref.service.demosys-demoapi:demosys-demoapi} uri: lb://${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
order: 200 order: 200
predicates: predicates:
- Path=/ibizcustomer_intfs/** - Path=/ibizcustomerinfts/**
- id: ibizsample0007 - id: ibizsample0007
uri: lb://${ibiz.ref.service.demosys-demoapi:demosys-demoapi} uri: lb://${ibiz.ref.service.demosys-demoapi:demosys-demoapi}
order: 200 order: 200
......
...@@ -70,7 +70,7 @@ export class AuthServiceRegister { ...@@ -70,7 +70,7 @@ export class AuthServiceRegister {
this.allAuthService.set('ibizsample0018', () => import('@/authservice/ibizsample0018/ibizsample0018-auth-service')); this.allAuthService.set('ibizsample0018', () => import('@/authservice/ibizsample0018/ibizsample0018-auth-service'));
this.allAuthService.set('ibizsample0015', () => import('@/authservice/ibizsample0015/ibizsample0015-auth-service')); this.allAuthService.set('ibizsample0015', () => import('@/authservice/ibizsample0015/ibizsample0015-auth-service'));
this.allAuthService.set('ibizsample0001', () => import('@/authservice/ibizsample0001/ibizsample0001-auth-service')); this.allAuthService.set('ibizsample0001', () => import('@/authservice/ibizsample0001/ibizsample0001-auth-service'));
this.allAuthService.set('ibizcustomer_intf', () => import('@/authservice/ibizcustomer-intf/ibizcustomer-intf-auth-service')); this.allAuthService.set('ibizcustomerinft', () => import('@/authservice/ibizcustomer-inft/ibizcustomer-inft-auth-service'));
this.allAuthService.set('ibizsample0007', () => import('@/authservice/ibizsample0007/ibizsample0007-auth-service')); this.allAuthService.set('ibizsample0007', () => import('@/authservice/ibizsample0007/ibizsample0007-auth-service'));
this.allAuthService.set('ibizsample0004', () => import('@/authservice/ibizsample0004/ibizsample0004-auth-service')); this.allAuthService.set('ibizsample0004', () => import('@/authservice/ibizsample0004/ibizsample0004-auth-service'));
this.allAuthService.set('ibizsample0008', () => import('@/authservice/ibizsample0008/ibizsample0008-auth-service')); this.allAuthService.set('ibizsample0008', () => import('@/authservice/ibizsample0008/ibizsample0008-auth-service'));
......
import AuthService from '../auth-service';
/**
* 客户权限服务对象基类
* 基于 APP/src/authservice/%DE_PKGPATH%/%DE_PKGPATH%-auth-service-base.ts.ftl 生成
* @export
* @class IBIZCustomerInftAuthServiceBase
* @extends {AuthService}
*/
export default class IBIZCustomerInftAuthServiceBase extends AuthService {
/**
* Creates an instance of IBIZCustomerInftAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZCustomerInftAuthServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZCustomerInftAuthServiceBase
*/
public getOPPrivs(mainSateOPPrivs:any):any{
let curDefaultOPPrivs:any = this.getSysOPPrivs();
let copyDefaultOPPrivs:any = JSON.parse(JSON.stringify(curDefaultOPPrivs));
if(mainSateOPPrivs){
Object.assign(curDefaultOPPrivs,mainSateOPPrivs);
}
// 统一资源优先
Object.keys(curDefaultOPPrivs).forEach((name:string) => {
if(this.sysOPPrivsMap.get(name) && copyDefaultOPPrivs[name] === 0){
curDefaultOPPrivs[name] = copyDefaultOPPrivs[name];
}
});
return curDefaultOPPrivs;
}
}
\ No newline at end of file
import IBIZCustomerInftAuthServiceBase from './ibizcustomer-inft-auth-service-base';
/**
* 客户权限服务对象
* 基于 APP/src/authservice/%DE_PKGPATH%/%DE_PKGPATH%-auth-service.ts.ftl 生成
* @export
* @class IBIZCustomerInftAuthService
* @extends {IBIZCustomerInftAuthServiceBase}
*/
export default class IBIZCustomerInftAuthService extends IBIZCustomerInftAuthServiceBase {
/**
* Creates an instance of IBIZCustomerInftAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZCustomerInftAuthService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -30,7 +30,7 @@ const entityMapping: any = { ...@@ -30,7 +30,7 @@ const entityMapping: any = {
'ibizsample0018s':'ibizsample0018', 'ibizsample0018s':'ibizsample0018',
'ibizsample0015s':'ibizsample0015', 'ibizsample0015s':'ibizsample0015',
'ibizsample0001s':'ibizsample0001', 'ibizsample0001s':'ibizsample0001',
'ibizcustomer_intfs':'ibizcustomer_intf', 'ibizcustomerinfts':'ibizcustomerinft',
'ibizsample0007s':'ibizsample0007', 'ibizsample0007s':'ibizsample0007',
'ibizsample0004s':'ibizsample0004', 'ibizsample0004s':'ibizsample0004',
'ibizsample0008s':'ibizsample0008', 'ibizsample0008s':'ibizsample0008',
......
...@@ -38,7 +38,7 @@ import './entity/ibizappviews/ibizappviews'; ...@@ -38,7 +38,7 @@ import './entity/ibizappviews/ibizappviews';
import './entity/ibizsample0018s/ibizsample0018s'; import './entity/ibizsample0018s/ibizsample0018s';
import './entity/ibizsample0015s/ibizsample0015s'; import './entity/ibizsample0015s/ibizsample0015s';
import './entity/ibizsample0001s/ibizsample0001s'; import './entity/ibizsample0001s/ibizsample0001s';
import './entity/ibizcustomer-intfs/ibizcustomer-intfs'; import './entity/ibizcustomer-infts/ibizcustomer-infts';
import './entity/ibizsample0007s/ibizsample0007s'; import './entity/ibizsample0007s/ibizsample0007s';
import './entity/ibizsample0004s/ibizsample0004s'; import './entity/ibizsample0004s/ibizsample0004s';
import './entity/ibizsample0008s/ibizsample0008s'; import './entity/ibizsample0008s/ibizsample0008s';
......
...@@ -1867,13 +1867,13 @@ const router = new Router({ ...@@ -1867,13 +1867,13 @@ const router = new Router({
component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'), component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'),
}, },
{ {
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/mpickupview/:mpickupview?', path: '/ibizcustomerinfts/:ibizcustomerinft?/mpickupview/:mpickupview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' }, { pathName: 'mpickupview', parameterName: 'mpickupview' },
], ],
requireAuth: true, requireAuth: true,
...@@ -3379,13 +3379,13 @@ const router = new Router({ ...@@ -3379,13 +3379,13 @@ const router = new Router({
component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'), component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'),
}, },
{ {
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/pickupgridview/:pickupgridview?', path: '/ibizcustomerinfts/:ibizcustomerinft?/pickupgridview/:pickupgridview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' },
], ],
requireAuth: true, requireAuth: true,
......
...@@ -69,12 +69,12 @@ import axios from 'axios'; ...@@ -69,12 +69,12 @@ import axios from 'axios';
import { AppMessageBox } from '@/utils/app-message-box/app-message-box'; import { AppMessageBox } from '@/utils/app-message-box/app-message-box';
import NavDataService from '@/service/app/navdata-service'; import NavDataService from '@/service/app/navdata-service';
import { Subject,Subscription } from 'rxjs'; import { Subject,Subscription } from 'rxjs';
import IBIZCustomer_INTFService from '@/service/ibizcustomer-intf/ibizcustomer-intf-service'; import IBIZCustomerInftService from '@/service/ibizcustomer-inft/ibizcustomer-inft-service';
import IBIZCustomer_INTFAuthService from '@/authservice/ibizcustomer-intf/ibizcustomer-intf-auth-service'; import IBIZCustomerInftAuthService from '@/authservice/ibizcustomer-inft/ibizcustomer-inft-auth-service';
import MPickupViewEngine from '@engine/view/mpickup-view-engine'; import MPickupViewEngine from '@engine/view/mpickup-view-engine';
import IBIZCustomer_INTFUIService from '@/uiservice/ibizcustomer-intf/ibizcustomer-intf-ui-service'; import IBIZCustomerInftUIService from '@/uiservice/ibizcustomer-inft/ibizcustomer-inft-ui-service';
@Component({ @Component({
...@@ -86,18 +86,18 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue { ...@@ -86,18 +86,18 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue {
/** /**
* 实体服务对象 * 实体服务对象
* *
* @type {IBIZCustomer_INTFService} * @type {IBIZCustomerInftService}
* @memberof IBIZCustomer_INTFMPickupViewBase * @memberof IBIZCustomer_INTFMPickupViewBase
*/ */
public appEntityService: IBIZCustomer_INTFService = new IBIZCustomer_INTFService(); public appEntityService: IBIZCustomerInftService = new IBIZCustomerInftService();
/** /**
* 实体UI服务对象 * 实体UI服务对象
* *
* @type IBIZCustomer_INTFUIService * @type IBIZCustomerInftUIService
* @memberof IBIZCustomer_INTFMPickupViewBase * @memberof IBIZCustomer_INTFMPickupViewBase
*/ */
public appUIService: IBIZCustomer_INTFUIService = new IBIZCustomer_INTFUIService(); public appUIService: IBIZCustomerInftUIService = new IBIZCustomerInftUIService();
/** /**
* 数据变化 * 数据变化
...@@ -307,7 +307,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue { ...@@ -307,7 +307,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue {
this.engine.init({ this.engine.init({
view: this, view: this,
pickupviewpanel: this.$refs.pickupviewpanel, pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'ibizcustomer_intf', keyPSDEField: 'ibizcustomerinft',
majorPSDEField: 'ibizcustomername', majorPSDEField: 'ibizcustomername',
isLoadDefault: true, isLoadDefault: true,
}); });
...@@ -430,7 +430,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue { ...@@ -430,7 +430,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue {
}); });
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams); this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
if(inputvalue){ if(inputvalue){
Object.assign(this.context,{'ibizcustomer_intf':inputvalue}); Object.assign(this.context,{'ibizcustomerinft':inputvalue});
} }
//初始化视图唯一标识 //初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()}); Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
...@@ -522,7 +522,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue { ...@@ -522,7 +522,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue {
*/ */
public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){ public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){ if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){
this.navDataService.addNavData({id:'ibizcustomer-intfmpickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizcustomer_intf,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath}); this.navDataService.addNavData({id:'ibizcustomer-intfmpickup-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizcustomerinft,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
} }
} }
...@@ -533,7 +533,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue { ...@@ -533,7 +533,7 @@ export default class IBIZCustomer_INTFMPickupViewBase extends Vue {
*/ */
public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){ public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){ if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){
this.navDataService.addNavDataByOnly({id:'ibizcustomer-intfmpickup-view',tag:this.viewtag,srfkey:this.context.ibizcustomer_intf,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd); this.navDataService.addNavDataByOnly({id:'ibizcustomer-intfmpickup-view',tag:this.viewtag,srfkey:this.context.ibizcustomerinft,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd);
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import IBIZCustomer_INTFMPickupViewBase from './ibizcustomer-intfmpickup-view-base.vue'; import IBIZCustomer_INTFMPickupViewBase from './ibizcustomer-intfmpickup-view-base.vue';
import view_pickupviewpanel from '@widgets/ibizcustomer-intf/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue'; import view_pickupviewpanel from '@widgets/ibizcustomer-inft/mpickup-viewpickupviewpanel-pickupviewpanel/mpickup-viewpickupviewpanel-pickupviewpanel.vue';
// 基于 @VIEW/实体数据多项选择视图/VIEW.vue.ftl 生成 // 基于 @VIEW/实体数据多项选择视图/VIEW.vue.ftl 生成
@Component({ @Component({
......
...@@ -54,12 +54,12 @@ import axios from 'axios'; ...@@ -54,12 +54,12 @@ import axios from 'axios';
import { AppMessageBox } from '@/utils/app-message-box/app-message-box'; import { AppMessageBox } from '@/utils/app-message-box/app-message-box';
import NavDataService from '@/service/app/navdata-service'; import NavDataService from '@/service/app/navdata-service';
import { Subject,Subscription } from 'rxjs'; import { Subject,Subscription } from 'rxjs';
import IBIZCustomer_INTFService from '@/service/ibizcustomer-intf/ibizcustomer-intf-service'; import IBIZCustomerInftService from '@/service/ibizcustomer-inft/ibizcustomer-inft-service';
import IBIZCustomer_INTFAuthService from '@/authservice/ibizcustomer-intf/ibizcustomer-intf-auth-service'; import IBIZCustomerInftAuthService from '@/authservice/ibizcustomer-inft/ibizcustomer-inft-auth-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine'; import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
import IBIZCustomer_INTFUIService from '@/uiservice/ibizcustomer-intf/ibizcustomer-intf-ui-service'; import IBIZCustomerInftUIService from '@/uiservice/ibizcustomer-inft/ibizcustomer-inft-ui-service';
@Component({ @Component({
...@@ -71,18 +71,18 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue { ...@@ -71,18 +71,18 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue {
/** /**
* 实体服务对象 * 实体服务对象
* *
* @type {IBIZCustomer_INTFService} * @type {IBIZCustomerInftService}
* @memberof IBIZCustomer_INTFPickupGridViewBase * @memberof IBIZCustomer_INTFPickupGridViewBase
*/ */
public appEntityService: IBIZCustomer_INTFService = new IBIZCustomer_INTFService(); public appEntityService: IBIZCustomerInftService = new IBIZCustomerInftService();
/** /**
* 实体UI服务对象 * 实体UI服务对象
* *
* @type IBIZCustomer_INTFUIService * @type IBIZCustomerInftUIService
* @memberof IBIZCustomer_INTFPickupGridViewBase * @memberof IBIZCustomer_INTFPickupGridViewBase
*/ */
public appUIService: IBIZCustomer_INTFUIService = new IBIZCustomer_INTFUIService(); public appUIService: IBIZCustomerInftUIService = new IBIZCustomerInftUIService();
/** /**
* 数据变化 * 数据变化
...@@ -295,7 +295,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue { ...@@ -295,7 +295,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue {
view: this, view: this,
grid: this.$refs.grid, grid: this.$refs.grid,
searchform: this.$refs.searchform, searchform: this.$refs.searchform,
keyPSDEField: 'ibizcustomer_intf', keyPSDEField: 'ibizcustomerinft',
majorPSDEField: 'ibizcustomername', majorPSDEField: 'ibizcustomername',
isLoadDefault: true, isLoadDefault: true,
}); });
...@@ -418,7 +418,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue { ...@@ -418,7 +418,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue {
}); });
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams); this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
if(inputvalue){ if(inputvalue){
Object.assign(this.context,{'ibizcustomer_intf':inputvalue}); Object.assign(this.context,{'ibizcustomerinft':inputvalue});
} }
//初始化视图唯一标识 //初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()}); Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
...@@ -510,7 +510,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue { ...@@ -510,7 +510,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue {
*/ */
public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){ public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){ if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){
this.navDataService.addNavData({id:'ibizcustomer-intfpickup-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizcustomer_intf,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath}); this.navDataService.addNavData({id:'ibizcustomer-intfpickup-grid-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizcustomerinft,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath});
} }
} }
...@@ -521,7 +521,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue { ...@@ -521,7 +521,7 @@ export default class IBIZCustomer_INTFPickupGridViewBase extends Vue {
*/ */
public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){ public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){
if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){ if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){
this.navDataService.addNavDataByOnly({id:'ibizcustomer-intfpickup-grid-view',tag:this.viewtag,srfkey:this.context.ibizcustomer_intf,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd); this.navDataService.addNavDataByOnly({id:'ibizcustomer-intfpickup-grid-view',tag:this.viewtag,srfkey:this.context.ibizcustomerinft,title:this.model.srfCaption,data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd);
} }
} }
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
import { Component } from 'vue-property-decorator'; import { Component } from 'vue-property-decorator';
import IBIZCustomer_INTFPickupGridViewBase from './ibizcustomer-intfpickup-grid-view-base.vue'; import IBIZCustomer_INTFPickupGridViewBase from './ibizcustomer-intfpickup-grid-view-base.vue';
import view_grid from '@widgets/ibizcustomer-intf/main-grid/main-grid.vue'; import view_grid from '@widgets/ibizcustomer-inft/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibizcustomer-intf/default-searchform/default-searchform.vue'; import view_searchform from '@widgets/ibizcustomer-inft/default-searchform/default-searchform.vue';
// 基于 @VIEW/实体选择表格视图/VIEW.vue.ftl 生成 // 基于 @VIEW/实体选择表格视图/VIEW.vue.ftl 生成
@Component({ @Component({
......
...@@ -3282,14 +3282,14 @@ const router = new Router({ ...@@ -3282,14 +3282,14 @@ const router = new Router({
component: () => import('@pages/sample/ibizbookpickup-view/ibizbookpickup-view.vue'), component: () => import('@pages/sample/ibizbookpickup-view/ibizbookpickup-view.vue'),
}, },
{ {
path: 'ibizcustomer_intfs/:ibizcustomer_intf?/mpickupview/:mpickupview?', path: 'ibizcustomerinfts/:ibizcustomerinft?/mpickupview/:mpickupview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'index', parameterName: 'index' }, { pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' }, { pathName: 'mpickupview', parameterName: 'mpickupview' },
], ],
requireAuth: true, requireAuth: true,
...@@ -4152,14 +4152,14 @@ const router = new Router({ ...@@ -4152,14 +4152,14 @@ const router = new Router({
component: () => import('@pages/sample/ibizbookpickup-grid-view/ibizbookpickup-grid-view.vue'), component: () => import('@pages/sample/ibizbookpickup-grid-view/ibizbookpickup-grid-view.vue'),
}, },
{ {
path: 'ibizcustomer_intfs/:ibizcustomer_intf?/pickupgridview/:pickupgridview?', path: 'ibizcustomerinfts/:ibizcustomerinft?/pickupgridview/:pickupgridview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'index', parameterName: 'index' }, { pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' },
], ],
requireAuth: true, requireAuth: true,
...@@ -5939,13 +5939,13 @@ const router = new Router({ ...@@ -5939,13 +5939,13 @@ const router = new Router({
component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'), component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'),
}, },
{ {
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/mpickupview/:mpickupview?', path: '/ibizcustomerinfts/:ibizcustomerinft?/mpickupview/:mpickupview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' }, { pathName: 'mpickupview', parameterName: 'mpickupview' },
], ],
requireAuth: true, requireAuth: true,
...@@ -7451,13 +7451,13 @@ const router = new Router({ ...@@ -7451,13 +7451,13 @@ const router = new Router({
component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'), component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'),
}, },
{ {
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/pickupgridview/:pickupgridview?', path: '/ibizcustomerinfts/:ibizcustomerinft?/pickupgridview/:pickupgridview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' },
], ],
requireAuth: true, requireAuth: true,
......
...@@ -3281,14 +3281,14 @@ const router = new Router({ ...@@ -3281,14 +3281,14 @@ const router = new Router({
component: () => import('@pages/sample/ibizbookpickup-view/ibizbookpickup-view.vue'), component: () => import('@pages/sample/ibizbookpickup-view/ibizbookpickup-view.vue'),
}, },
{ {
path: 'ibizcustomer_intfs/:ibizcustomer_intf?/mpickupview/:mpickupview?', path: 'ibizcustomerinfts/:ibizcustomerinft?/mpickupview/:mpickupview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'appindexview', parameterName: 'appindexview' }, { pathName: 'appindexview', parameterName: 'appindexview' },
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' }, { pathName: 'mpickupview', parameterName: 'mpickupview' },
], ],
requireAuth: true, requireAuth: true,
...@@ -4151,14 +4151,14 @@ const router = new Router({ ...@@ -4151,14 +4151,14 @@ const router = new Router({
component: () => import('@pages/sample/ibizbookpickup-grid-view/ibizbookpickup-grid-view.vue'), component: () => import('@pages/sample/ibizbookpickup-grid-view/ibizbookpickup-grid-view.vue'),
}, },
{ {
path: 'ibizcustomer_intfs/:ibizcustomer_intf?/pickupgridview/:pickupgridview?', path: 'ibizcustomerinfts/:ibizcustomerinft?/pickupgridview/:pickupgridview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'appindexview', parameterName: 'appindexview' }, { pathName: 'appindexview', parameterName: 'appindexview' },
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' },
], ],
requireAuth: true, requireAuth: true,
...@@ -5938,13 +5938,13 @@ const router = new Router({ ...@@ -5938,13 +5938,13 @@ const router = new Router({
component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'), component: () => import('@pages/sample/ibizhardware-sgrid-view/ibizhardware-sgrid-view.vue'),
}, },
{ {
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/mpickupview/:mpickupview?', path: '/ibizcustomerinfts/:ibizcustomerinft?/mpickupview/:mpickupview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' }, { pathName: 'mpickupview', parameterName: 'mpickupview' },
], ],
requireAuth: true, requireAuth: true,
...@@ -7450,13 +7450,13 @@ const router = new Router({ ...@@ -7450,13 +7450,13 @@ const router = new Router({
component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'), component: () => import('@pages/sample/ibizorder-gantt-view/ibizorder-gantt-view.vue'),
}, },
{ {
path: '/ibizcustomer_intfs/:ibizcustomer_intf?/pickupgridview/:pickupgridview?', path: '/ibizcustomerinfts/:ibizcustomerinft?/pickupgridview/:pickupgridview?',
meta: { meta: {
caption: '客户', caption: '客户',
captionLanResTag: 'DE.LNAME.IBIZCUSTOMER', captionLanResTag: 'DE.LNAME.IBIZCUSTOMER',
info:'', info:'',
parameters: [ parameters: [
{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' },
], ],
requireAuth: true, requireAuth: true,
......
...@@ -70,7 +70,7 @@ export class EntityServiceRegister { ...@@ -70,7 +70,7 @@ export class EntityServiceRegister {
this.allEntityService.set('ibizsample0018', () => import('@/service/ibizsample0018/ibizsample0018-service')); this.allEntityService.set('ibizsample0018', () => import('@/service/ibizsample0018/ibizsample0018-service'));
this.allEntityService.set('ibizsample0015', () => import('@/service/ibizsample0015/ibizsample0015-service')); this.allEntityService.set('ibizsample0015', () => import('@/service/ibizsample0015/ibizsample0015-service'));
this.allEntityService.set('ibizsample0001', () => import('@/service/ibizsample0001/ibizsample0001-service')); this.allEntityService.set('ibizsample0001', () => import('@/service/ibizsample0001/ibizsample0001-service'));
this.allEntityService.set('ibizcustomer_intf', () => import('@/service/ibizcustomer-intf/ibizcustomer-intf-service')); this.allEntityService.set('ibizcustomerinft', () => import('@/service/ibizcustomer-inft/ibizcustomer-inft-service'));
this.allEntityService.set('ibizsample0007', () => import('@/service/ibizsample0007/ibizsample0007-service')); this.allEntityService.set('ibizsample0007', () => import('@/service/ibizsample0007/ibizsample0007-service'));
this.allEntityService.set('ibizsample0004', () => import('@/service/ibizsample0004/ibizsample0004-service')); this.allEntityService.set('ibizsample0004', () => import('@/service/ibizsample0004/ibizsample0004-service'));
this.allEntityService.set('ibizsample0008', () => import('@/service/ibizsample0008/ibizsample0008-service')); this.allEntityService.set('ibizsample0008', () => import('@/service/ibizsample0008/ibizsample0008-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 客户服务对象基类
* 基于 APP/src/service/%DE_PKGPATH%/%DE_PKGPATH%-service-base.ts.ftl 生成
* @export
* @class IBIZCustomerInftServiceBase
* @extends {EntityServie}
*/
export default class IBIZCustomerInftServiceBase extends EntityService {
/**
* Creates an instance of IBIZCustomerInftServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZCustomerInftServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof IBIZCustomerInftServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='ibizcustomerinft';
this.APPDEKEY = 'ibizcustomerid';
this.APPDENAME = 'ibizcustomerinfts';
this.APPDETEXT = 'ibizcustomername';
this.APPNAME = 'web';
this.SYSTEMNAME = 'demosys';
}
// 实体接口
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/ibizcustomerinfts/${context.ibizcustomerinft}/checkkey`,data,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/ibizcustomerinfts`,data,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizcustomerinfts/${context.ibizcustomerinft}`,{},isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizcustomerinfts/getdraft`,{},isloading);
res.data.ibizcustomerinft = data.ibizcustomerinft;
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().delete(`/ibizcustomerinfts/${context.ibizcustomerinft}`,{},isloading);
return res;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/ibizcustomerinfts/${context.ibizcustomerinft}/save`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/ibizcustomerinfts/${context.ibizcustomerinft}`,data,isloading);
return res;
}
/**
* XXX接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async XXX(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().post(`/ibizcustomerinfts/${context.ibizcustomerinft}/xxx`,data,isloading);
return res;
}
/**
* XXXBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async XXXBatch(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/ibizcustomerinfts/xxxbatch`,tempData,isloading);
}
/**
* FetchCurCustomer接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async FetchCurCustomer(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().post(`/ibizcustomerinfts/fetchcurcustomer`,tempData,isloading);
return res;
}
/**
* searchCurCustomer接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async searchCurCustomer(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/ibizcustomerinfts/searchcurcustomer`,tempData,isloading);
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
let res:any = Http.getInstance().get(`/ibizcustomerinfts/fetchdefault`,tempData,isloading);
return res;
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async searchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return await Http.getInstance().post(`/ibizcustomerinfts/searchdefault`,tempData,isloading);
}
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZCustomerInftServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = Http.getInstance().get(`/ibizcustomerinfts/${context.ibizcustomerinft}/select`,{},isloading);
return res;
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import IBIZCustomerInftServiceBase from './ibizcustomer-inft-service-base';
/**
* 客户服务对象
* 基于 APP/src/service/%DE_PKGPATH%/%DE_PKGPATH%-service.ts.ftl 生成
* @export
* @class IBIZCustomerInftService
* @extends {IBIZCustomerInftServiceBase}
*/
export default class IBIZCustomerInftService extends IBIZCustomerInftServiceBase {
/**
* Creates an instance of IBIZCustomerInftService.
*
* @param {*} [opts={}]
* @memberof IBIZCustomerInftService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { Environment } from '@/environments/environment';
import { UIActionTool, Util } from '@/utils';
import axios from 'axios';
import AppCenterService from "@service/app/app-center-service";
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import IBIZCustomerInftService from '@/service/ibizcustomer-inft/ibizcustomer-inft-service';
import IBIZCustomerInftAuthService from '@/authservice/ibizcustomer-inft/ibizcustomer-inft-auth-service';
/**
* 客户UI服务对象基类
* 基于 APP/src/uiservice/%DE_PKGPATH%/%DE_PKGPATH%-ui-service-base.ts.ftl 生成
* @export
* @class IBIZCustomerInftUIServiceBase
*/
export default class IBIZCustomerInftUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 是否支持实体主状态
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public isEnableDEMainState:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public dataService:IBIZCustomerInftService = new IBIZCustomerInftService();
/**
* 状态值
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* 主状态操作标识Map
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public allDeMainStateOPPrivsMap:Map<string,any> = new Map();
/**
* Creates an instance of IBIZCustomerInftUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZCustomerInftUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.authService = new IBIZCustomerInftAuthService(opts);
this.initViewMap();
this.initDeMainStateMap();
this.initDeMainStateOPPrivsMap();
}
/**
* 初始化视图Map
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('MPICKUPVIEW:',{viewname:'mpickupview',viewType:'DEMPICKUPVIEW',srfappde:'ibizcustomerinfts',component:'ibizcustomer-intfmpickup-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',viewType:'DEPICKUPVIEW',srfappde:'ibizcustomerinfts',component:'ibizcustomer-intfpickup-view'});
this.allViewMap.set(':',{viewname:'pickupgridview',viewType:'DEPICKUPGRIDVIEW',srfappde:'ibizcustomerinfts',component:'ibizcustomer-intfpickup-grid-view'});
}
/**
* 初始化主状态集合
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public initDeMainStateOPPrivsMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof IBIZCustomerInftUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({ibizcustomerinft:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
if (this.isEnableWorkflow) {
return this.getWFView();
} else {
if ((args && args.viewParam && args.viewParam.srfwf && this.InWorkflowArray.indexOf(args.viewParam.srfwf) !== -1)) {
return this.getWFView();
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof IBIZCustomerInftUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZCustomerInftUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const multiFormDEField:string|null =null;
if (multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW:'+objFormValue;
}
return 'EDITVIEW:'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBIZCustomerInftUIServiceBase
*/
public getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.warn(`当前数据对象不包含属性「${singleMainField}」,根据「${singleMainField}」属性进行的主状态计算默认为空值`);
}
})
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]] != null && curData[this.mainStateFields[0]] !== "")?(i == 0) ? `${curData[this.mainStateFields[0]]}` : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]] != null && curData[this.mainStateFields[1]] !== "")?`${strTag}__${(j == 0) ? `${curData[this.mainStateFields[1]]}` : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]] != null && curData[this.mainStateFields[2]] !== "")?`${strTag2}__${(k == 0) ? `${curData[this.mainStateFields[2]]}` : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof IBIZCustomerInftUIServiceBase
*/
public getDEMainStateOPPrivs(data:any){
if(this.getDEMainStateTag(data)){
return this.allDeMainStateOPPrivsMap.get((this.getDEMainStateTag(data) as string));
}else{
return null;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZCustomerInftUIServiceBase
*/
public getAllOPPrivs(data:any){
return this.authService.getOPPrivs(this.getDEMainStateOPPrivs(data));
}
/**
* 执行界面逻辑
*
* @param {string} name
* @param {any[]} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof UIService
*/
public async executeUILogic(name: string, args: any[], context?: any, params?: any, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string | undefined): Promise<any> {
// 转化参数
let data: any = null;
if (args && Array.isArray(args) && args.length > 0) {
data = args[0];
} else {
data = (Object.keys(args).length > 0) ? args : {};
}
}
}
\ No newline at end of file
import IBIZCustomerInftUIServiceBase from './ibizcustomer-inft-ui-service-base';
/**
* 客户UI服务对象
* 基于 APP/src/uiservice/%DE_PKGPATH%/%DE_PKGPATH%-ui-service.ts.ftl 生成
* @export
* @class IBIZCustomerInftUIService
*/
export default class IBIZCustomerInftUIService extends IBIZCustomerInftUIServiceBase {
/**
* Creates an instance of IBIZCustomerInftUIService.
*
* @param {*} [opts={}]
* @memberof IBIZCustomerInftUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -70,7 +70,7 @@ export class UIServiceRegister { ...@@ -70,7 +70,7 @@ export class UIServiceRegister {
this.allUIService.set('ibizsample0018', () => import('@/uiservice/ibizsample0018/ibizsample0018-ui-service')); this.allUIService.set('ibizsample0018', () => import('@/uiservice/ibizsample0018/ibizsample0018-ui-service'));
this.allUIService.set('ibizsample0015', () => import('@/uiservice/ibizsample0015/ibizsample0015-ui-service')); this.allUIService.set('ibizsample0015', () => import('@/uiservice/ibizsample0015/ibizsample0015-ui-service'));
this.allUIService.set('ibizsample0001', () => import('@/uiservice/ibizsample0001/ibizsample0001-ui-service')); this.allUIService.set('ibizsample0001', () => import('@/uiservice/ibizsample0001/ibizsample0001-ui-service'));
this.allUIService.set('ibizcustomer_intf', () => import('@/uiservice/ibizcustomer-intf/ibizcustomer-intf-ui-service')); this.allUIService.set('ibizcustomerinft', () => import('@/uiservice/ibizcustomer-inft/ibizcustomer-inft-ui-service'));
this.allUIService.set('ibizsample0007', () => import('@/uiservice/ibizsample0007/ibizsample0007-ui-service')); this.allUIService.set('ibizsample0007', () => import('@/uiservice/ibizsample0007/ibizsample0007-ui-service'));
this.allUIService.set('ibizsample0004', () => import('@/uiservice/ibizsample0004/ibizsample0004-ui-service')); this.allUIService.set('ibizsample0004', () => import('@/uiservice/ibizsample0004/ibizsample0004-ui-service'));
this.allUIService.set('ibizsample0008', () => import('@/uiservice/ibizsample0008/ibizsample0008-ui-service')); this.allUIService.set('ibizsample0008', () => import('@/uiservice/ibizsample0008/ibizsample0008-ui-service'));
......
...@@ -712,7 +712,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -712,7 +712,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: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -748,7 +748,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -748,7 +748,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public async loadDraft(opt: any = {},mode?:string): Promise<any> { public async loadDraft(opt: any = {},mode?:string): Promise<any> {
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: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
:service="service" :service="service"
valueitem='' valueitem=''
:acParams="{ }" :acParams="{ }"
:pickupView="{ viewname: 'ibizcustomer-intfmpickup-view', title: $t('DE.LNAME.IBIZCUSTOMER', '客户'), deResParameters: [], parameters: [{ pathName: 'ibizcustomer_intfs', parameterName: 'ibizcustomer_intf' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }" :pickupView="{ viewname: 'ibizcustomer-intfmpickup-view', title: $t('DE.LNAME.IBIZCUSTOMER', '客户'), deResParameters: [], parameters: [{ pathName: 'ibizcustomerinfts', parameterName: 'ibizcustomerinft' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange" @formitemvaluechange="onFormItemValueChange"
style=""> style="">
</app-mpicker> </app-mpicker>
......
...@@ -670,7 +670,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface ...@@ -670,7 +670,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: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -706,7 +706,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface ...@@ -706,7 +706,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/ */
public async loadDraft(opt: any = {},mode?:string): Promise<any> { public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKCalendarView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -11,7 +11,7 @@ export default class Usr2Model { ...@@ -11,7 +11,7 @@ export default class Usr2Model {
* 获取数据项集合 * 获取数据项集合
* *
* @returns {any[]} * @returns {any[]}
* @memberof Usr2Dataviewexpbar_dataviewMode * @memberof Usr2DataViewMode
*/ */
public getDataItems(): any[] { public getDataItems(): any[] {
return [ return [
...@@ -43,6 +43,17 @@ export default class Usr2Model { ...@@ -43,6 +43,17 @@ export default class Usr2Model {
dataType: 'FONTKEY', dataType: 'FONTKEY',
}, },
{
name: 'n_ibizbookname_like',
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -718,7 +718,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -718,7 +718,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public async load(opt: any = {}, isReset: boolean = false): Promise<any> { public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -812,7 +812,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -812,7 +812,7 @@ export default class Usr4Base 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: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -928,7 +928,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -928,7 +928,7 @@ export default class Usr4Base 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: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (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);
...@@ -936,7 +936,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -936,7 +936,7 @@ export default class Usr4Base 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: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){ if(item.ibizbook){
......
...@@ -70,11 +70,6 @@ export default class Usr4Model { ...@@ -70,11 +70,6 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like', prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
......
// 基于 @CONTROL/搜索表单/MODEL.ts.ftl 生成
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'formitem',
prop: 'ibizcustomername',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
// 基于 @CONTROL/搜索表单/CONTROL.less.ftl 生成
.ivu-tabs-no-animation>.ivu-tabs-content{
padding: 0 16px;
}
.ivu-card-head{
padding: 14px 0;
}
.app-search-form {
padding: 8px 14px 0;
.ivu-form-item{
margin-bottom: 8px;
}
.search_reset {
margin-right: 12px;
margin-bottom: 8px;
}
.search-button{
text-align: right;
}
}
.app-search-form-flex {
height: 100%;
> .ivu-row {
height: 100%;
> .ivu-tabs {
height: 100%;
display: flex;
flex-direction: column;
> .ivu-tabs-content {
flex-grow: 1;
overflow: auto;
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
}
}
.app-tabpanel-flex {
height: 100%;
> .ivu-tabs-content {
height: calc(100% - 52px);
> .ivu-tabs-tabpane {
height: 100%;
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
// 基于 @CONTROL/搜索表单/CONTROL.vue.ftl 生成
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
// 基于 @CONTROL/表格/MODEL.ts.ftl 生成
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export default class MainModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof MainGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'sn',
prop: 'sn',
dataType: 'TEXT',
},
{
name: 'ibizcustomername',
prop: 'ibizcustomername',
dataType: 'TEXT',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
dataType: 'GUID',
},
{
name: 'srfkey',
prop: 'ibizcustomerid',
dataType: 'GUID',
isEditable:true
},
{
name: 'srfdataaccaction',
prop: 'ibizcustomerid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizcustomername',
dataType: 'TEXT',
},
{
name: 'ibizcustomerinft',
prop: 'ibizcustomerid',
},
{
name: 'formitem',
prop: 'formitem',
dataType: 'QUERYPARAM'
},
{
name:'size',
prop:'size',
dataType: 'QUERYPARAM'
},
{
name:'query',
prop:'query',
dataType: 'QUERYPARAM'
},
{
name:'filter',
prop:'filter',
dataType: 'QUERYPARAM'
},
{
name:'page',
prop:'page',
dataType: 'QUERYPARAM'
},
{
name:'sort',
prop:'sort',
dataType: 'QUERYPARAM'
},
{
name:'srfparentdata',
prop:'srfparentdata',
dataType: 'QUERYPARAM'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
// 预置工作流数据字段
{
name: 'srfprocessdefinitionkey',
prop: 'srfprocessdefinitionkey',
dataType: 'TEXT'
},
{
name: 'srftaskdefinitionkey',
prop: 'srftaskdefinitionkey',
dataType: 'TEXT'
},
{
name: 'srftaskid',
prop: 'srftaskid',
dataType: 'TEXT'
}
]
}
}
}
\ No newline at end of file
// 基于 @CONTROL/表格/CONTROL.less.ftl 生成
.grid {
flex-grow: 1;
height: 100%;
overflow: auto;
.el-table__body-wrapper::-webkit-scrollbar {
/*滚动条整体样式*/
width: 10px !important;
/*高宽分别对应横竖滚动条的尺寸*/
height: 10px !important;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
/*滚动条颜色*/
border-radius: 10px !important;
background-color: #cecece !important;
}
.el-table__body-wrapper::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
background: #ededed !important;
border-radius: 10px !important;
}
/*表格文字过长省略*/
.el-table th>.cell,
.el-table td>.cell {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.el-table-column--selection .cell {
padding-left: 10px;
padding-right: 10px;
.el-checkbox {
margin-right: 0;
}
}
.app-column-link,
.app-format-data {
display: inline;
}
.el-table {
height: 100%;
border-left: none;
// 去除表格右侧边框
&::after {
width: 0;
}
.el-table__row {
.grid-uiaction-divider {
padding: 0 10px 0 10px;
border-left: 1px #b3b3b3 solid;
}
.grid-first-uiaction {
padding: 0 10px 0 10px;
}
}
// 表格头最小高度为45px
.el-table__header-wrapper,
.el-table__fixed-header-wrapper {
min-height: 60px;
height: auto;
.el-table__header {
height: 100%;
}
}
// 表格内容最大高度为100% - 45px
.el-table__body-wrapper,
.el-table__fixed-body-wrapper {
max-height: calc(100% - 60px);
}
.quick-toolbar {
display: inline-block;
button {
background: #ebf3fb;
color: #2575ca;
border: 0;
}
}
.el-tooltip {
.ivu-form-item {
margin-bottom: unset !important;
}
}
.el-table__body .edit-cell {
padding: 0;
.app-form-item {
margin-top: 20px;
margin-bottom: 20px;
}
}
}
.grid-pagination {
height: 50px;
padding: 6px 0px;
.page-button {
button {
padding: 0;
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
}
}
.page-column {
position: absolute;
left: 0;
}
.batch-toolbar {
position: absolute;
left: 105px;
>.toolbar-container {
button {
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
margin-top: 0;
margin-bottom: 0;
}
}
}
}
}
.ivu-modal-content {
.footer {
.ivu-row {
text-align: right;
}
}
}
.cell-indeterminate {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:before {
content: "";
position: absolute;
display: block;
background-color: #fff;
height: 2px;
transform: scale(.5);
left: 0;
right: 0;
top: 5px;
}
}
>span.is-checked {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
border: 0px;
}
}
}
}
.cell-select-all {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
box-sizing: content-box;
content: "";
border: 1px solid #fff;
border-left: 0;
border-top: 0;
height: 7px;
left: 4px;
position: absolute;
top: 1px;
transform: rotate(45deg) scaleY(1);
width: 3px;
transition: transform .15s ease-in .05s;
transform-origin: center;
}
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MainBase from './main-grid-base.vue';
// 基于 @CONTROL/表格/CONTROL.vue.ftl 生成
@Component({
components: {
}
})
export default class Main extends MainBase {
}
</script>
\ No newline at end of file
// 基于 @CONTROL/选择视图面板/MODEL.ts.ftl 生成
/**
* MPickupViewpickupviewpanel 部件模型
*
* @export
* @class MPickupViewpickupviewpanelModel
*/
export default class MPickupViewpickupviewpanelModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MPickupViewpickupviewpanelModel
*/
public getDataItems(): any[] {
return [
{
name: 'updatedate',
},
{
name: 'sn',
},
{
name: 'customeruid',
},
{
name: 'orgid',
},
{
name: 'createman',
},
{
name: 'updateman',
},
{
name: 'address',
},
{
name: 'ibizcustomername',
},
{
name: 'createdate',
},
{
name: 'ibizcustomerinft',
prop: 'ibizcustomerid',
},
]
}
}
\ No newline at end of file
// 基于 @CONTROL/选择视图面板/SERVICE.ts.ftl 生成
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* MPickupViewpickupviewpanel 部件服务对象
*
* @export
* @class MPickupViewpickupviewpanelService
*/
export default class MPickupViewpickupviewpanelService extends ControlService {
}
\ No newline at end of file
// 基于 @CONTROL/选择视图面板/CONTROL.less.ftl 生成
// this is less
.pickupviewpanel{
width: 100%;
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import MPickupViewpickupviewpanelBase from './mpickup-viewpickupviewpanel-pickupviewpanel-base.vue';
// 基于 @CONTROL/选择视图面板/CONTROL.vue.ftl 生成
@Component({
components: {
}
})
export default class MPickupViewpickupviewpanel extends MPickupViewpickupviewpanelBase {
}
</script>
\ No newline at end of file
...@@ -964,7 +964,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -964,7 +964,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) { if (!this.fetchAction) {
this.$Notice.error({ this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string, title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderDetailSGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string), desc: "IBIZOrderDetailGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
}); });
return; return;
} }
...@@ -1123,7 +1123,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1123,7 +1123,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) { if (!this.removeAction) {
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string) desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string)
}); });
return; return;
} }
...@@ -1237,7 +1237,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1237,7 +1237,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: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -2132,7 +2132,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2132,7 +2132,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: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2141,7 +2141,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2141,7 +2141,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: 'IBIZOrderDetailSGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else { } else {
Object.assign(item, { viewparams: this.viewparams }); Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2217,7 +2217,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2217,7 +2217,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailSGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string) desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
}); });
return; return;
} }
......
...@@ -488,10 +488,10 @@ ...@@ -488,10 +488,10 @@
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomer.json" "path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomer.json"
}, { }, {
"modelref" : true, "modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerMG.json" "path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft.json"
}, { }, {
"modelref" : true, "modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomer_INTF.json" "path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerMG.json"
}, { }, {
"modelref" : true, "modelref" : true,
"path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZHardware.json" "path" : "PSMODULES/Sample/PSDATAENTITIES/IBIZHardware.json"
......
{
"actionMode" : "CHECKKEY",
"actionType" : "BUILTIN",
"codeName" : "CheckKey",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/CheckKey.json",
"logicName" : "CheckKey",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/CheckKey",
"name" : "CheckKey",
"getPSDEActionInput" : {
"name" : "CheckKeyInput",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO"
},
"getPSDEActionReturn" : {
"name" : "CheckKeyResult",
"stdDataType" : 9,
"type" : "SIMPLE"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/CheckKey",
"builtinAction" : true
}
\ No newline at end of file
{
"actionMode" : "CREATE",
"actionType" : "BUILTIN",
"codeName" : "Create",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/Create.json",
"logicName" : "Create",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Create",
"name" : "Create",
"orderValue" : 1,
"getPSDEActionInput" : {
"name" : "CreateInput",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO",
"output" : true
},
"getPSDEActionReturn" : {
"name" : "CreateResult",
"type" : "VOID"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Create",
"builtinAction" : true
}
\ No newline at end of file
{
"actionMode" : "READ",
"actionType" : "BUILTIN",
"codeName" : "Get",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/Get.json",
"logicName" : "Get",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Get",
"name" : "Get",
"orderValue" : 31,
"getPSDEActionInput" : {
"getKeyPSDEField" : {
"name" : "IBIZCUSTOMERID",
"codeName" : "IBIZCustomerId"
},
"name" : "GetInput",
"type" : "KEYFIELD"
},
"getPSDEActionReturn" : {
"name" : "GetResult",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Get",
"builtinAction" : true
}
\ No newline at end of file
{
"actionMode" : "GETDRAFT",
"actionType" : "BUILTIN",
"codeName" : "GetDraft",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/GetDraft.json",
"logicName" : "GetDraft",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/GetDraft",
"name" : "GetDraft",
"orderValue" : 41,
"getPSDEActionInput" : {
"name" : "GetDraftInput",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO"
},
"getPSDEActionReturn" : {
"name" : "GetDraftResult",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/GetDraft",
"builtinAction" : true
}
\ No newline at end of file
{
"actionMode" : "DELETE",
"actionType" : "BUILTIN",
"batchActionMode" : 1,
"codeName" : "Remove",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/Remove.json",
"logicName" : "Remove",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Remove",
"name" : "Remove",
"orderValue" : 21,
"getPSDEActionInput" : {
"getKeyPSDEField" : {
"name" : "IBIZCUSTOMERID",
"codeName" : "IBIZCustomerId"
},
"name" : "RemoveInput",
"type" : "KEYFIELDS"
},
"getPSDEActionReturn" : {
"name" : "RemoveResult",
"type" : "VOID"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Remove",
"batchAction" : true,
"builtinAction" : true
}
\ No newline at end of file
{
"actionMode" : "UNKNOWN",
"actionType" : "BUILTIN",
"codeName" : "Save",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/Save.json",
"logicName" : "Save",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Save",
"name" : "Save",
"getPSDEActionInput" : {
"name" : "SaveInput",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO"
},
"getPSDEActionReturn" : {
"name" : "SaveResult",
"type" : "VOID"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Save",
"builtinAction" : true
}
\ No newline at end of file
{
"actionMode" : "UPDATE",
"actionType" : "BUILTIN",
"codeName" : "Update",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/Update.json",
"logicName" : "Update",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Update",
"name" : "Update",
"orderValue" : 11,
"getPSDEActionInput" : {
"name" : "UpdateInput",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO",
"output" : true
},
"getPSDEActionReturn" : {
"name" : "UpdateResult",
"type" : "VOID"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/Update",
"builtinAction" : true
}
\ No newline at end of file
{
"actionMode" : "CUSTOM",
"actionType" : "USERCUSTOM",
"codeName" : "XXX",
"dynaModelFilePath" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEACTIONS/XXX.json",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/XXX",
"name" : "XXX",
"getPSDEActionInput" : {
"name" : "XXXInput",
"getPSDEMethodDTO" : {
"modelref" : true,
"id" : "IBIZCustomerInftDTO"
},
"type" : "DTO"
},
"getPSDEActionReturn" : {
"name" : "XXXResult",
"type" : "VOID"
},
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdeactions/XXX"
}
\ No newline at end of file
{
"dBType" : "DM",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/DM",
"name" : "DM",
"getPSDEDataQueryCodeConds" : [ {
"condType" : "CUSTOM",
"customCond" : "( t1.ORGID = ${srfdatacontext('orgid','{\"defname\":\"ORGID\",\"dename\":\"IBIZCUSTOMER_INTF\"}')} )",
"name" : "查询条件"
} ],
"getPSDEDataQueryCodeExps" : [ {
"expression" : "t1.ADDRESS",
"name" : "ADDRESS"
}, {
"expression" : "t1.CREATEDATE",
"name" : "CREATEDATE"
}, {
"expression" : "t1.CREATEMAN",
"name" : "CREATEMAN"
}, {
"expression" : "t1.CUSTOMERUID",
"name" : "CUSTOMERUID"
}, {
"expression" : "t1.IBIZCUSTOMERID",
"name" : "IBIZCUSTOMERID"
}, {
"expression" : "t1.IBIZCUSTOMERNAME",
"name" : "IBIZCUSTOMERNAME"
}, {
"expression" : "t1.ORGID",
"name" : "ORGID"
}, {
"expression" : "t1.SN",
"name" : "SN"
}, {
"expression" : "t1.UPDATEDATE",
"name" : "UPDATEDATE"
}, {
"expression" : "t1.UPDATEMAN",
"name" : "UPDATEMAN"
} ],
"queryCode" : "SELECT\nt1.ADDRESS,\nt1.CREATEDATE,\nt1.CREATEMAN,\nt1.CUSTOMERUID,\nt1.IBIZCUSTOMERID,\nt1.IBIZCUSTOMERNAME,\nt1.ORGID,\nt1.SN,\nt1.UPDATEDATE,\nt1.UPDATEMAN\nFROM T_IBIZCUSTOMER t1 \n",
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/DM",
"id" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEDATAQUERIES/CurCustomer/PSDEDQCODES/DM.json"
}
\ No newline at end of file
{
"dBType" : "MYSQL5",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/MYSQL5",
"name" : "MySQL5",
"getPSDEDataQueryCodeConds" : [ {
"condType" : "CUSTOM",
"customCond" : "( t1.`ORGID` = #{ctx.datacontext.orgid} )",
"name" : "查询条件"
} ],
"getPSDEDataQueryCodeExps" : [ {
"expression" : "t1.`ADDRESS`",
"name" : "ADDRESS"
}, {
"expression" : "t1.`CREATEDATE`",
"name" : "CREATEDATE"
}, {
"expression" : "t1.`CREATEMAN`",
"name" : "CREATEMAN"
}, {
"expression" : "t1.`CUSTOMERUID`",
"name" : "CUSTOMERUID"
}, {
"expression" : "t1.`IBIZCUSTOMERID`",
"name" : "IBIZCUSTOMERID"
}, {
"expression" : "t1.`IBIZCUSTOMERNAME`",
"name" : "IBIZCUSTOMERNAME"
}, {
"expression" : "t1.`ORGID`",
"name" : "ORGID"
}, {
"expression" : "t1.`SN`",
"name" : "SN"
}, {
"expression" : "t1.`UPDATEDATE`",
"name" : "UPDATEDATE"
}, {
"expression" : "t1.`UPDATEMAN`",
"name" : "UPDATEMAN"
} ],
"queryCode" : "SELECT\nt1.`ADDRESS`,\nt1.`CREATEDATE`,\nt1.`CREATEMAN`,\nt1.`CUSTOMERUID`,\nt1.`IBIZCUSTOMERID`,\nt1.`IBIZCUSTOMERNAME`,\nt1.`ORGID`,\nt1.`SN`,\nt1.`UPDATEDATE`,\nt1.`UPDATEMAN`\nFROM `T_IBIZCUSTOMER` t1 \n",
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/MYSQL5",
"id" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEDATAQUERIES/CurCustomer/PSDEDQCODES/MYSQL5.json"
}
\ No newline at end of file
{
"dBType" : "POSTGRESQL",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/POSTGRESQL",
"name" : "PostgreSQL",
"getPSDEDataQueryCodeConds" : [ {
"condType" : "CUSTOM",
"customCond" : "( t1.ORGID = ${srfdatacontext('orgid','{\"defname\":\"ORGID\",\"dename\":\"IBIZCUSTOMER_INTF\"}')} )",
"name" : "查询条件"
} ],
"getPSDEDataQueryCodeExps" : [ {
"expression" : "t1.ADDRESS",
"name" : "ADDRESS"
}, {
"expression" : "t1.CREATEDATE",
"name" : "CREATEDATE"
}, {
"expression" : "t1.CREATEMAN",
"name" : "CREATEMAN"
}, {
"expression" : "t1.CUSTOMERUID",
"name" : "CUSTOMERUID"
}, {
"expression" : "t1.IBIZCUSTOMERID",
"name" : "IBIZCUSTOMERID"
}, {
"expression" : "t1.IBIZCUSTOMERNAME",
"name" : "IBIZCUSTOMERNAME"
}, {
"expression" : "t1.ORGID",
"name" : "ORGID"
}, {
"expression" : "t1.SN",
"name" : "SN"
}, {
"expression" : "t1.UPDATEDATE",
"name" : "UPDATEDATE"
}, {
"expression" : "t1.UPDATEMAN",
"name" : "UPDATEMAN"
} ],
"queryCode" : "SELECT\nt1.ADDRESS,\nt1.CREATEDATE,\nt1.CREATEMAN,\nt1.CUSTOMERUID,\nt1.IBIZCUSTOMERID,\nt1.IBIZCUSTOMERNAME,\nt1.ORGID,\nt1.SN,\nt1.UPDATEDATE,\nt1.UPDATEMAN\nFROM T_IBIZCUSTOMER t1 \n",
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/POSTGRESQL",
"id" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEDATAQUERIES/CurCustomer/PSDEDQCODES/POSTGRESQL.json"
}
\ No newline at end of file
{
"dBType" : "SQLSERVER",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/SQLSERVER",
"name" : "SqlServer",
"getPSDEDataQueryCodeConds" : [ {
"condType" : "CUSTOM",
"customCond" : "( t1.[CREATEMAN] = ${srfdatacontext('createman','{\"defname\":\"CREATEMAN\",\"dename\":\"IBIZCUSTOMER_INTF\"}')} )",
"name" : "查询条件"
} ],
"getPSDEDataQueryCodeExps" : [ {
"expression" : "t1.[ADDRESS]",
"name" : "ADDRESS"
}, {
"expression" : "t1.[CREATEDATE]",
"name" : "CREATEDATE"
}, {
"expression" : "t1.[CREATEMAN]",
"name" : "CREATEMAN"
}, {
"expression" : "t1.[CUSTOMERUID]",
"name" : "CUSTOMERUID"
}, {
"expression" : "t1.[IBIZCUSTOMERID]",
"name" : "IBIZCUSTOMERID"
}, {
"expression" : "t1.[IBIZCUSTOMERNAME]",
"name" : "IBIZCUSTOMERNAME"
}, {
"expression" : "t1.[SN]",
"name" : "SN"
}, {
"expression" : "t1.[UPDATEDATE]",
"name" : "UPDATEDATE"
}, {
"expression" : "t1.[UPDATEMAN]",
"name" : "UPDATEMAN"
} ],
"queryCode" : "SELECT\nt1.[ADDRESS],\nt1.[CREATEDATE],\nt1.[CREATEMAN],\nt1.[CUSTOMERUID],\nt1.[IBIZCUSTOMERID],\nt1.[IBIZCUSTOMERNAME],\nt1.[SN],\nt1.[UPDATEDATE],\nt1.[UPDATEMAN]\nFROM [T_IBIZCUSTOMER] t1 \n",
"rTMOSFilePath" : "psmodules/Sample/psdataentities/IBIZCUSTOMER_INTF/psdedataqueries/CurCustomer/psdedqcodes/SQLSERVER",
"id" : "PSMODULES/Sample/PSDATAENTITIES/IBIZCustomerInft/PSDEDATAQUERIES/CurCustomer/PSDEDQCODES/SQLSERVER.json"
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册