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

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

上级 9450461f
......@@ -1220,7 +1220,33 @@ export default class IBIZOrderDetailUsr2GridView9Base extends Vue {
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null;
let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
const data: any = {};
if(args[0].srfsourcekey){
data.srfsourcekey = args[0].srfsourcekey;
}
let tempContext = JSON.parse(JSON.stringify(this.context));
delete tempContext.ibizorderdetail;
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.ibizorder && true){
deResParameters = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
]
}
const parameters: any[] = [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'f7editview', parameterName: 'f7editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
}
openIndexViewTab(data);
}
......@@ -1244,7 +1270,30 @@ export default class IBIZOrderDetailUsr2GridView9Base extends Vue {
}
let localContext:any = null;
let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' });
const data: any = {};
let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){
Object.assign(tempContext,args[0]);
}
let deResParameters: any[] = [];
if(tempContext.ibizorder && true){
deResParameters = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
]
}
const parameters: any[] = [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'f7editview', parameterName: 'f7editview' },
];
const _this: any = this;
if(fullargs && fullargs.copymode){
Object.assign(data,{copymode:true});
}
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
}
openIndexViewTab(data);
}
......
......@@ -128,6 +128,7 @@ export const PageComponents = {
Vue.component('ibizorder-type-usr2-edit-view', () => import('@pages/sample/ibizorder-type-usr2-edit-view/ibizorder-type-usr2-edit-view.vue'));
Vue.component('ibizbookrow-edit-grid-view', () => import('@pages/sample/ibizbookrow-edit-grid-view/ibizbookrow-edit-grid-view.vue'));
Vue.component('ibizhardware-index-pickup-view', () => import('@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue'));
Vue.component('ibizorder-detail-f7-edit-view', () => import('@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'));
Vue.component('ibizhardware-grid-view9', () => import('@pages/sample/ibizhardware-grid-view9/ibizhardware-grid-view9.vue'));
Vue.component('ibizorder-sf3-edit-view', () => import('@pages/sample/ibizorder-sf3-edit-view/ibizorder-sf3-edit-view.vue'));
Vue.component('ibizcustomer-usr2-mpickup-view', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view/ibizcustomer-usr2-mpickup-view.vue'));
......
......@@ -2036,6 +2036,35 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizhardware-index-pickup-view/ibizhardware-index-pickup-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/f7editview/:f7editview?',
meta: {
caption: 'entities.ibizorderdetail.views.f7editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'f7editview', parameterName: 'f7editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'),
},
{
path: 'ibizorderdetails/:ibizorderdetail?/f7editview/:f7editview?',
meta: {
caption: 'entities.ibizorderdetail.views.f7editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'f7editview', parameterName: 'f7editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'),
},
{
path: 'ibizhardwares/:ibizhardware?/gridview9/:gridview9?',
meta: {
......@@ -4584,6 +4613,33 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsoftware-suit-sgrid-view/ibizsoftware-suit-sgrid-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/ibizorderdetails/:ibizorderdetail?/f7editview/:f7editview?',
meta: {
caption: 'entities.ibizorderdetail.views.f7editview.caption',
info:'',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'f7editview', parameterName: 'f7editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'),
},
{
path: '/ibizorderdetails/:ibizorderdetail?/f7editview/:f7editview?',
meta: {
caption: 'entities.ibizorderdetail.views.f7editview.caption',
info:'',
parameters: [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'f7editview', parameterName: 'f7editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizorder-detail-f7-edit-view/ibizorder-detail-f7-edit-view.vue'),
},
{
path: '/ibizsample0021s/:ibizsample0021?/editview/:editview?',
meta: {
......
......@@ -1439,7 +1439,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}): void {
if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailEditView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailF7EditView' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return;
}
const arg: any = { ...opt };
......@@ -1474,7 +1474,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public loadDraft(opt: any = {}): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailEditView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailF7EditView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return;
}
const arg: any = { ...opt } ;
......@@ -1535,7 +1535,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailEditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailF7EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1643,7 +1643,7 @@ export default class MainBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailEditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailF7EditView' + (this.$t('app.formpage.notconfig.actionname') as string) });
return;
}
Object.assign(arg,{viewparams:this.viewparams});
......@@ -1720,7 +1720,7 @@ export default class MainBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailEditView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDetailF7EditView' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return;
}
const arg: any = opt[0];
......
......@@ -29,7 +29,7 @@ export default class MainService extends ControlService {
* @memberof MainService
*/
public setTempMode(){
this.isTempMode = false;
this.isTempMode = true;
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册