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

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

上级 4b7ffe38
......@@ -36,46 +36,39 @@
<template #headerBottom>
<div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem1.visabled" :disabled="toolBarModels.tbitem1.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem1' }, $event)">
<i-button v-show="toolBarModels.deuiaction1.visabled" :disabled="toolBarModels.deuiaction1.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction1' }, $event)">
<i class='fa fa-file-text-o'></i>
<span class='caption'>{{$t('TBB.TEXT.*.NEW', '新建')}}</span>
</i-button>
<div slot='content'>{{$t('TBB.TEXT.*.NEW', '新建')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem2.visabled" :disabled="toolBarModels.tbitem2.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem2' }, $event)">
<i-button v-show="toolBarModels.deuiaction2.visabled" :disabled="toolBarModels.deuiaction2.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction2' }, $event)">
<i class='fa fa-edit'></i>
<span class='caption'>{{$t('TBB.TEXT.*.EDIT', '编辑')}}</span>
</i-button>
<div slot='content'>{{$t('TBB.TEXT.*.EDIT', '编辑')}}</div>
</tooltip>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem3.visabled" :disabled="toolBarModels.tbitem3.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem3' }, $event)">
<i class='fa fa-copy'></i>
</i-button>
<div slot='content'>{{$t('TBB.TEXT.*.COPY', '拷贝')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem5.visabled" :disabled="toolBarModels.tbitem5.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem5' }, $event)">
<i-button v-show="toolBarModels.deuiaction3.visabled" :disabled="toolBarModels.deuiaction3.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction3' }, $event)">
<i class='fa fa-remove'></i>
<span class='caption'>{{$t('TBB.TEXT.*.REMOVE', '删除')}}</span>
</i-button>
<div slot='content'>{{$t('TBB.TEXT.*.REMOVE', '删除')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<app-export-excel :item="toolBarModels.tbitem9" :caption="$t('TBB.TEXT.*.EXPORT', '导出')" @exportexcel="toolbar_click({ tag: 'tbitem9' }, $event)"></app-export-excel>
<div slot='content'>{{$t('TBB.TEXT.*.EXPORT', '导出')}}</div>
<i-button v-show="toolBarModels.deuiaction4.visabled" :disabled="toolBarModels.deuiaction4.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction4' }, $event)">
<i class='fa fa-copy'></i>
<span class='caption'>{{$t('TBB.TEXT.*.COPY', '拷贝')}}</span>
</i-button>
<div slot='content'>{{$t('TBB.TEXT.*.COPY', '拷贝')}}</div>
</tooltip>
<span class='seperator'>|</span>
<tooltip :transfer="true" :max-width="600">
<i-button v-show="toolBarModels.tbitem7.visabled" :disabled="toolBarModels.tbitem7.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'tbitem7' }, $event)">
<i class='fa fa-refresh'></i>
<i-button v-show="toolBarModels.deuiaction5.visabled" :disabled="toolBarModels.deuiaction5.disabled" class=' srfactionlevel100' v-button-loading:i-button @click="toolbar_click({ tag: 'deuiaction5' }, $event)">
<i class='fa fa-sign-out'></i>
<span class='caption'>{{$t('TBB.TEXT.EDITVIEW.CLOSE', '关闭')}}</span>
</i-button>
<div slot='content'>{{'刷新'}}</div>
<div slot='content'>{{$t('TBB.TEXT.EDITVIEW.CLOSE', '关闭')}}</div>
</tooltip>
</div>
</template>
......@@ -329,20 +322,15 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @memberof IBIZOrderDetailGridView9
*/
public toolBarModels: any = {
tbitem1: { name: 'tbitem1', actiontarget: 'NONE', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
tbitem2: { name: 'tbitem2', actiontarget: 'NONE', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } },
tbitem3: { name: 'tbitem3', actiontarget: 'NONE', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' } },
deuiaction2: { name: 'deuiaction2', actiontarget: 'NONE', caption: '编辑', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Edit', target: 'SINGLEKEY' } },
tbitem4: { name: 'tbitem4', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem5: { name: 'tbitem5', actiontarget: 'NONE', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
deuiaction3: { name: 'deuiaction3', actiontarget: 'NONE', caption: '删除', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Remove', target: 'MULTIKEY' } },
tbitem6: { name: 'tbitem6', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem9: { name: 'tbitem9', actiontarget: 'NONE', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'ExportExcel', target: '' }, MaxRowCount: 1000 },
deuiaction4: { name: 'deuiaction4', actiontarget: 'NONE', caption: '拷贝', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Copy', target: 'SINGLEKEY' } },
tbitem8: { name: 'tbitem8', type: 'SEPERATOR', visabled: true, dataaccaction: '', uiaction: { } },
tbitem7: { name: 'tbitem7', actiontarget: 'NONE', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Refresh', target: '' } },
deuiaction5: { name: 'deuiaction5', actiontarget: 'NONE', caption: '关闭', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Exit', target: '' } },
};
......@@ -802,23 +790,20 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @memberof IBIZOrderDetailGridView9Base
*/
public toolbar_click($event: any, $event2?: any) {
if (Object.is($event.tag, 'tbitem1')) {
this.toolbar_tbitem1_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction1')) {
this.toolbar_deuiaction1_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem2')) {
this.toolbar_tbitem2_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction2')) {
this.toolbar_deuiaction2_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem3')) {
this.toolbar_tbitem3_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction3')) {
this.toolbar_deuiaction3_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem5')) {
this.toolbar_tbitem5_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction4')) {
this.toolbar_deuiaction4_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem9')) {
this.toolbar_tbitem9_click(null, '', $event2);
}
if (Object.is($event.tag, 'tbitem7')) {
this.toolbar_tbitem7_click(null, '', $event2);
if (Object.is($event.tag, 'deuiaction5')) {
this.toolbar_deuiaction5_click(null, '', $event2);
}
}
......@@ -831,7 +816,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem1_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -859,7 +844,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem2_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction2_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -887,35 +872,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
let xData: any = null;
// _this 指向容器对象
const _this: any = this;
let paramJO:any = {};
let contextJO:any = {};
xData = this.$refs.grid;
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = [...xData.getDatas()];
}
if(params){
datas = [params];
}
// 界面行为
this.Copy(datas, contextJO,paramJO, $event, xData,this,"IBIZOrderDetail");
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction3_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -943,7 +900,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction4_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -960,7 +917,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
datas = [params];
}
// 界面行为
this.ExportExcel(datas, contextJO,paramJO, $event, xData,this,"IBIZOrderDetail");
this.Copy(datas, contextJO,paramJO, $event, xData,this,"IBIZOrderDetail");
}
/**
......@@ -971,7 +928,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @param {*} [$event]
* @memberof
*/
public toolbar_tbitem7_click(params: any = {}, tag?: any, $event?: any) {
public toolbar_deuiaction5_click(params: any = {}, tag?: any, $event?: any) {
// 参数
// 取数
let datas: any[] = [];
......@@ -988,7 +945,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
datas = [params];
}
// 界面行为
this.Refresh(datas, contextJO,paramJO, $event, xData,this,"IBIZOrderDetail");
this.Exit(datas, contextJO,paramJO, $event, xData,this,"IBIZOrderDetail");
}
/**
......@@ -1078,34 +1035,6 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
_this.$Notice.error({ title: '错误', desc: 'opendata 视图处理逻辑不存在,请添加!' });
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderDetailGridView9Base
*/
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { ibizorderdetail: args[0].ibizorderdetail });
}
if(!params) params = {};
Object.assign(args,{copymode:true});
_this.opendata([{ ...data }], args, params, $event, xData);
} else {
Object.assign(this.viewparams,{copymode:true});
}
}
/**
* 删除
*
......@@ -1126,7 +1055,7 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
}
/**
* 导出
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
......@@ -1136,15 +1065,25 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderDetailGridView9Base
*/
public ExportExcel(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
public Copy(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) {
return;
}
const _this: any = this;
if (!xData || !(xData.exportExcel instanceof Function) || !$event) {
return ;
if (_this.opendata && _this.opendata instanceof Function) {
const data: any = { };
if (args.length > 0) {
Object.assign(data, { ibizorderdetail: args[0].ibizorderdetail });
}
if(!params) params = {};
Object.assign(args,{copymode:true});
_this.opendata([{ ...data }], args, params, $event, xData);
} else {
Object.assign(this.viewparams,{copymode:true});
}
xData.exportExcel($event.exportparms);
}
/**
* 刷新
* 关闭
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
......@@ -1154,15 +1093,14 @@ export default class IBIZOrderDetailGridView9Base extends Vue {
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderDetailGridView9Base
*/
public Refresh(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
} else if (_this.refresh && _this.refresh instanceof Function) {
_this.refresh(args);
public Exit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
this.closeView(args);
if(window.parent){
window.parent.postMessage([{ ...args }],'*');
}
}
/**
* 关闭视图
*
......
......@@ -639,7 +639,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -675,7 +675,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return;
}
const arg: any = { ...opt } ;
......
......@@ -718,7 +718,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -812,7 +812,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -928,7 +928,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
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 {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){
......
......@@ -70,6 +70,11 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
......
......@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) {
this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderDetailGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
desc: "IBIZOrderDetailSGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
});
return;
}
......@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) {
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
});
return;
}
......@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if (Object.is(item.rowDataState, 'create')) {
if (!this.createAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if (Object.is(item.rowDataState, 'update')){
if (!this.updateAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailGridView9'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailSGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
} else {
Object.assign(item, { viewparams: this.viewparams });
const tempContext = Util.deepCopy(this.context);
......@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){
this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
desc: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
});
return;
}
......
......@@ -768,7 +768,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/
public async load(opt: any = {}, isReset: boolean = false): Promise<any> {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return;
}
const arg: any = {...opt};
......@@ -862,7 +862,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -978,7 +978,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -986,7 +986,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){
......
......@@ -40,69 +40,58 @@
} ]
} ],
"getPSAppViewLogics" : [ {
"eventArg" : "tbitem1",
"eventArg" : "deuiaction1",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "toolbar_tbitem1_click",
"name" : "toolbar_deuiaction1_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem1"
"id" : "toolbar_deuiaction1"
},
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem2",
"eventArg" : "deuiaction2",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "toolbar_tbitem2_click",
"name" : "toolbar_deuiaction2_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem2"
"id" : "toolbar_deuiaction2"
},
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem3",
"eventArg" : "deuiaction3",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "toolbar_tbitem3_click",
"name" : "toolbar_deuiaction3_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem3"
"id" : "toolbar_deuiaction3"
},
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem5",
"eventArg" : "deuiaction4",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "toolbar_tbitem5_click",
"name" : "toolbar_deuiaction4_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem5"
"id" : "toolbar_deuiaction4"
},
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem9",
"eventArg" : "deuiaction5",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "toolbar_tbitem9_click",
"name" : "toolbar_deuiaction5_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem9"
},
"getPSViewCtrlName" : "toolbar"
}, {
"eventArg" : "tbitem7",
"eventNames" : "CLICK",
"logicTrigger" : "CTRLEVENT",
"logicType" : "APPVIEWUIACTION",
"name" : "toolbar_tbitem7_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem7"
"id" : "toolbar_deuiaction5"
},
"getPSViewCtrlName" : "toolbar"
}, {
......@@ -130,14 +119,14 @@
}
} ],
"getPSAppViewUIActions" : [ {
"name" : "toolbar_tbitem1",
"name" : "toolbar_deuiaction1",
"getPSUIAction" : {
"modelref" : true,
"id" : "New"
},
"xDataControlName" : "grid"
}, {
"name" : "toolbar_tbitem2",
"name" : "toolbar_deuiaction2",
"getPSUIAction" : {
"modelref" : true,
"id" : "Edit"
......@@ -145,15 +134,7 @@
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid"
}, {
"name" : "toolbar_tbitem3",
"getPSUIAction" : {
"modelref" : true,
"id" : "Copy"
},
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid"
}, {
"name" : "toolbar_tbitem5",
"name" : "toolbar_deuiaction3",
"getPSUIAction" : {
"modelref" : true,
"id" : "Remove"
......@@ -161,17 +142,18 @@
"uIActionTarget" : "MULTIKEY",
"xDataControlName" : "grid"
}, {
"name" : "toolbar_tbitem9",
"name" : "toolbar_deuiaction4",
"getPSUIAction" : {
"modelref" : true,
"id" : "ExportExcel"
"id" : "Copy"
},
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid"
}, {
"name" : "toolbar_tbitem7",
"name" : "toolbar_deuiaction5",
"getPSUIAction" : {
"modelref" : true,
"id" : "Refresh"
"id" : "Exit"
},
"xDataControlName" : "grid"
} ],
......@@ -620,7 +602,7 @@
"codeName" : "GridView9toolbar",
"controlType" : "TOOLBAR",
"hookEventNames" : [ "CLICK" ],
"logicName" : "工具栏模板(表单嵌入数据列表界面)",
"logicName" : "嵌入",
"mOSFilePath" : "psmodules/Sample/psdataentities/IBIZORDERDETAIL/psdetoolbars/GridView9toolbar",
"name" : "toolbar",
"getPSAppDataEntity" : {
......@@ -628,64 +610,54 @@
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrderDetail.json"
},
"getPSControlLogics" : [ {
"eventArg" : "tbitem1",
"eventNames" : "CLICK",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "toolbar_tbitem1_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "toolbar_tbitem1_click"
}
}, {
"eventArg" : "tbitem2",
"eventArg" : "deuiaction1",
"eventNames" : "CLICK",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "toolbar_tbitem2_click",
"name" : "toolbar_deuiaction1_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "toolbar_tbitem2_click"
"id" : "toolbar_deuiaction1_click"
}
}, {
"eventArg" : "tbitem3",
"eventArg" : "deuiaction2",
"eventNames" : "CLICK",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "toolbar_tbitem3_click",
"name" : "toolbar_deuiaction2_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "toolbar_tbitem3_click"
"id" : "toolbar_deuiaction2_click"
}
}, {
"eventArg" : "tbitem5",
"eventArg" : "deuiaction3",
"eventNames" : "CLICK",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "toolbar_tbitem5_click",
"name" : "toolbar_deuiaction3_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "toolbar_tbitem5_click"
"id" : "toolbar_deuiaction3_click"
}
}, {
"eventArg" : "tbitem9",
"eventArg" : "deuiaction4",
"eventNames" : "CLICK",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "toolbar_tbitem9_click",
"name" : "toolbar_deuiaction4_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "toolbar_tbitem9_click"
"id" : "toolbar_deuiaction4_click"
}
}, {
"eventArg" : "tbitem7",
"eventArg" : "deuiaction5",
"eventNames" : "CLICK",
"logicTag" : "toolbar",
"logicType" : "APPVIEWLOGIC",
"name" : "toolbar_tbitem7_click",
"name" : "toolbar_deuiaction5_click",
"getPSAppViewLogic" : {
"modelref" : true,
"id" : "toolbar_tbitem7_click"
"id" : "toolbar_deuiaction5_click"
}
} ],
"getPSControlParam" : {
......@@ -700,11 +672,11 @@
"caption" : "新建",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem1",
"name" : "deuiaction1",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem1"
"id" : "toolbar_deuiaction1"
},
"getPSSysImage" : {
"glyph" : "xf0f6@FontAwesome",
......@@ -720,12 +692,12 @@
"codeName" : "New",
"fullCodeName" : "New",
"mOSFilePath" : "pssysapps/Web/pssysappdeuiactions/New",
"name" : "表格界面_新建操作",
"name" : "编辑界面_新建操作",
"getPSSysImage" : {
"glyph" : "xf0f6@FontAwesome",
"cssClass" : "fa fa-file-text-o"
},
"predefinedType" : "GRIDVIEW_NEWACTION",
"predefinedType" : "EDITVIEW_NEWACTION",
"rTMOSFilePath" : "pssysapps/Web/pssysappdeuiactions/New",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
......@@ -743,7 +715,7 @@
"mOSFilePath" : "pslanguageres/Auto274",
"rTMOSFilePath" : "pslanguageres/Auto274"
},
"showCaption" : false,
"showCaption" : true,
"showIcon" : true
}, {
"getCapPSLanguageRes" : {
......@@ -754,11 +726,11 @@
"caption" : "编辑",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem2",
"name" : "deuiaction2",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem2"
"id" : "toolbar_deuiaction2"
},
"getPSSysImage" : {
"glyph" : "xf044@FontAwesome",
......@@ -798,67 +770,8 @@
"mOSFilePath" : "pslanguageres/Auto834",
"rTMOSFilePath" : "pslanguageres/Auto834"
},
"showCaption" : false,
"showIcon" : true
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.*.COPY",
"mOSFilePath" : "pslanguageres/Auto514",
"rTMOSFilePath" : "pslanguageres/Auto514"
},
"caption" : "拷贝",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem3",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem3"
},
"getPSSysImage" : {
"glyph" : "xf0c5@FontAwesome",
"cssClass" : "fa fa-copy"
},
"getPSUIAction" : {
"actionTarget" : "SINGLEKEY",
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.*.COPY",
"mOSFilePath" : "pslanguageres/Auto514",
"rTMOSFilePath" : "pslanguageres/Auto514"
},
"caption" : "拷贝",
"codeName" : "Copy",
"fullCodeName" : "Copy",
"mOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Copy",
"name" : "表格界面_拷贝操作",
"getPSSysImage" : {
"glyph" : "xf0c5@FontAwesome",
"cssClass" : "fa fa-copy"
},
"predefinedType" : "GRIDVIEW_COPYACTION",
"rTMOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Copy",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"lanResTag" : "TBB.TOOLTIP.*.COPY",
"mOSFilePath" : "pslanguageres/Auto1542",
"rTMOSFilePath" : "pslanguageres/Auto1542"
},
"uIActionMode" : "SYS",
"uIActionTag" : "Copy",
"uIActionType" : "DEUIACTION"
},
"tooltip" : "拷贝",
"getTooltipPSLanguageRes" : {
"lanResTag" : "TBB.TOOLTIP.*.COPY",
"mOSFilePath" : "pslanguageres/Auto1542",
"rTMOSFilePath" : "pslanguageres/Auto1542"
},
"showCaption" : false,
"showCaption" : true,
"showIcon" : true
}, {
"itemType" : "SEPERATOR",
"name" : "tbitem4",
"spanMode" : false
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.*.REMOVE",
......@@ -868,11 +781,11 @@
"caption" : "删除",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem5",
"name" : "deuiaction3",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem5"
"id" : "toolbar_deuiaction3"
},
"getPSSysImage" : {
"glyph" : "xf00d@FontAwesome",
......@@ -912,107 +825,120 @@
"mOSFilePath" : "pslanguageres/Auto1782",
"rTMOSFilePath" : "pslanguageres/Auto1782"
},
"showCaption" : false,
"showCaption" : true,
"showIcon" : true
}, {
"itemType" : "SEPERATOR",
"name" : "tbitem6",
"spanMode" : false
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.*.EXPORT",
"mOSFilePath" : "pslanguageres/Auto1675",
"rTMOSFilePath" : "pslanguageres/Auto1675"
"lanResTag" : "TBB.TEXT.*.COPY",
"mOSFilePath" : "pslanguageres/Auto514",
"rTMOSFilePath" : "pslanguageres/Auto514"
},
"caption" : "导出",
"caption" : "拷贝",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem9",
"name" : "deuiaction4",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem9"
"id" : "toolbar_deuiaction4"
},
"getPSSysImage" : {
"glyph" : "xf1c3@FontAwesome",
"cssClass" : "fa fa-file-excel-o"
"glyph" : "xf0c5@FontAwesome",
"cssClass" : "fa fa-copy"
},
"getPSUIAction" : {
"actionTarget" : "SINGLEKEY",
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.*.EXPORT",
"mOSFilePath" : "pslanguageres/Auto1675",
"rTMOSFilePath" : "pslanguageres/Auto1675"
"lanResTag" : "TBB.TEXT.*.COPY",
"mOSFilePath" : "pslanguageres/Auto514",
"rTMOSFilePath" : "pslanguageres/Auto514"
},
"caption" : "导出",
"codeName" : "ExportExcel",
"fullCodeName" : "ExportExcel",
"mOSFilePath" : "pssysapps/Web/pssysappdeuiactions/ExportExcel",
"name" : "表格界面_导出操作(Excel)",
"caption" : "拷贝",
"codeName" : "Copy",
"fullCodeName" : "Copy",
"mOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Copy",
"name" : "表格界面_拷贝操作",
"getPSSysImage" : {
"glyph" : "xf1c3@FontAwesome",
"cssClass" : "fa fa-file-excel-o"
"glyph" : "xf0c5@FontAwesome",
"cssClass" : "fa fa-copy"
},
"predefinedType" : "GRIDVIEW_EXPORTACTION",
"rTMOSFilePath" : "pssysapps/Web/pssysappdeuiactions/ExportExcel",
"predefinedType" : "GRIDVIEW_COPYACTION",
"rTMOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Copy",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"lanResTag" : "TBB.TOOLTIP.*.EXPORT",
"mOSFilePath" : "pslanguageres/Auto160",
"rTMOSFilePath" : "pslanguageres/Auto160"
"lanResTag" : "TBB.TOOLTIP.*.COPY",
"mOSFilePath" : "pslanguageres/Auto1542",
"rTMOSFilePath" : "pslanguageres/Auto1542"
},
"uIActionMode" : "SYS",
"uIActionTag" : "ExportExcel",
"uIActionTag" : "Copy",
"uIActionType" : "DEUIACTION"
},
"tooltip" : "导出",
"tooltip" : "拷贝",
"getTooltipPSLanguageRes" : {
"lanResTag" : "TBB.TOOLTIP.*.EXPORT",
"mOSFilePath" : "pslanguageres/Auto160",
"rTMOSFilePath" : "pslanguageres/Auto160"
"lanResTag" : "TBB.TOOLTIP.*.COPY",
"mOSFilePath" : "pslanguageres/Auto1542",
"rTMOSFilePath" : "pslanguageres/Auto1542"
},
"showCaption" : false,
"showCaption" : true,
"showIcon" : true
}, {
"itemType" : "SEPERATOR",
"name" : "tbitem8",
"spanMode" : false
}, {
"caption" : "刷新",
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.EDITVIEW.CLOSE",
"mOSFilePath" : "pslanguageres/Auto1363",
"rTMOSFilePath" : "pslanguageres/Auto1363"
},
"caption" : "关闭",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem7",
"name" : "deuiaction5",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem7"
"id" : "toolbar_deuiaction5"
},
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
"glyph" : "xf08b@FontAwesome",
"cssClass" : "fa fa-sign-out"
},
"getPSUIAction" : {
"caption" : "刷新",
"codeName" : "Refresh",
"fullCodeName" : "Refresh",
"mOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Refresh",
"name" : "表格界面_刷新操作",
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.EDITVIEW.CLOSE",
"mOSFilePath" : "pslanguageres/Auto1363",
"rTMOSFilePath" : "pslanguageres/Auto1363"
},
"caption" : "关闭",
"codeName" : "Exit",
"fullCodeName" : "Exit",
"mOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Exit",
"name" : "编辑界面_退出操作",
"getPSSysImage" : {
"glyph" : "xf021@FontAwesome",
"cssClass" : "fa fa-refresh"
"glyph" : "xf08b@FontAwesome",
"cssClass" : "fa fa-sign-out"
},
"predefinedType" : "GRIDVIEW_REFRESHACTION",
"rTMOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Refresh",
"predefinedType" : "EDITVIEW_EXITACTION",
"rTMOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Exit",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"lanResTag" : "TBB.TOOLTIP.EDITVIEW.CLOSE",
"mOSFilePath" : "pslanguageres/Auto607",
"rTMOSFilePath" : "pslanguageres/Auto607"
},
"uIActionMode" : "SYS",
"uIActionTag" : "Refresh",
"uIActionTag" : "Exit",
"uIActionType" : "DEUIACTION"
},
"tooltip" : "刷新",
"showCaption" : false,
"tooltip" : "关闭",
"getTooltipPSLanguageRes" : {
"lanResTag" : "TBB.TOOLTIP.EDITVIEW.CLOSE",
"mOSFilePath" : "pslanguageres/Auto607",
"rTMOSFilePath" : "pslanguageres/Auto607"
},
"showCaption" : true,
"showIcon" : true
} ],
"rTMOSFilePath" : "pssysapps/Web/psappdeviews/IBIZOrderDetailGridView9/psappviewctrls/toolbar",
"modelid" : "6f51fd0c1d4d11cbae46c0ce36c75cb3",
"modelid" : "6B5DFD4F-EC0A-4854-9831-3CF5D31E8EBB",
"modeltype" : "PSDETOOLBAR"
} ],
"getPSDEViewCodeName" : "GridView9",
......
......@@ -1171,6 +1171,32 @@
"uIActionMode" : "SYS",
"uIActionTag" : "Edit",
"uIActionType" : "DEUIACTION"
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.EDITVIEW.CLOSE",
"mOSFilePath" : "pslanguageres/Auto1363",
"rTMOSFilePath" : "pslanguageres/Auto1363"
},
"caption" : "关闭",
"codeName" : "Exit",
"fullCodeName" : "Exit",
"mOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Exit",
"name" : "编辑界面_退出操作",
"getPSSysImage" : {
"glyph" : "xf08b@FontAwesome",
"cssClass" : "fa fa-sign-out"
},
"predefinedType" : "EDITVIEW_EXITACTION",
"rTMOSFilePath" : "pssysapps/Web/pssysappdeuiactions/Exit",
"timeout" : 60000,
"getTooltipPSLanguageRes" : {
"lanResTag" : "TBB.TOOLTIP.EDITVIEW.CLOSE",
"mOSFilePath" : "pslanguageres/Auto607",
"rTMOSFilePath" : "pslanguageres/Auto607"
},
"uIActionMode" : "SYS",
"uIActionTag" : "Exit",
"uIActionType" : "DEUIACTION"
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.*.EXPORT",
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册