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

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

上级 d104de73
...@@ -481,6 +481,7 @@ function getLocaleResourceBase(){ ...@@ -481,6 +481,7 @@ function getLocaleResourceBase(){
ibizcustomername: commonLogic.appcommonhandle("客户名称",null), ibizcustomername: commonLogic.appcommonhandle("客户名称",null),
ordertype: commonLogic.appcommonhandle("订单类型",null), ordertype: commonLogic.appcommonhandle("订单类型",null),
amount: commonLogic.appcommonhandle("总计",null), amount: commonLogic.appcommonhandle("总计",null),
formitem: commonLogic.appcommonhandle("文件上传",null),
detailnum: commonLogic.appcommonhandle("明细数",null), detailnum: commonLogic.appcommonhandle("明细数",null),
orderstate: commonLogic.appcommonhandle("订单状态",null), orderstate: commonLogic.appcommonhandle("订单状态",null),
memo: commonLogic.appcommonhandle("备注",null), memo: commonLogic.appcommonhandle("备注",null),
......
...@@ -481,6 +481,7 @@ function getLocaleResourceBase(){ ...@@ -481,6 +481,7 @@ function getLocaleResourceBase(){
ibizcustomername: commonLogic.appcommonhandle("客户名称",null), ibizcustomername: commonLogic.appcommonhandle("客户名称",null),
ordertype: commonLogic.appcommonhandle("订单类型",null), ordertype: commonLogic.appcommonhandle("订单类型",null),
amount: commonLogic.appcommonhandle("总计",null), amount: commonLogic.appcommonhandle("总计",null),
formitem: commonLogic.appcommonhandle("文件上传",null),
detailnum: commonLogic.appcommonhandle("明细数",null), detailnum: commonLogic.appcommonhandle("明细数",null),
orderstate: commonLogic.appcommonhandle("订单状态",null), orderstate: commonLogic.appcommonhandle("订单状态",null),
memo: commonLogic.appcommonhandle("备注",null), memo: commonLogic.appcommonhandle("备注",null),
......
...@@ -481,6 +481,7 @@ function getLocaleResourceBase(){ ...@@ -481,6 +481,7 @@ function getLocaleResourceBase(){
ibizcustomername: commonLogic.appcommonhandle("客户名称",null), ibizcustomername: commonLogic.appcommonhandle("客户名称",null),
ordertype: commonLogic.appcommonhandle("订单类型",null), ordertype: commonLogic.appcommonhandle("订单类型",null),
amount: commonLogic.appcommonhandle("总计",null), amount: commonLogic.appcommonhandle("总计",null),
formitem: commonLogic.appcommonhandle("文件上传",null),
detailnum: commonLogic.appcommonhandle("明细数",null), detailnum: commonLogic.appcommonhandle("明细数",null),
orderstate: commonLogic.appcommonhandle("订单状态",null), orderstate: commonLogic.appcommonhandle("订单状态",null),
memo: commonLogic.appcommonhandle("备注",null), memo: commonLogic.appcommonhandle("备注",null),
......
...@@ -639,7 +639,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -639,7 +639,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: '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; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -675,7 +675,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -675,7 +675,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: '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; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -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: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (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: 'IBIZBOOKUsr4ListView_layout' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -1378,7 +1378,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1378,7 +1378,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/ */
public async load(opt: any = {}): Promise<any> { public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1429,7 +1429,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1429,7 +1429,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
*/ */
public async loadDraft(opt: any = {}): Promise<any> { public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) { if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1499,7 +1499,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1499,7 +1499,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1607,7 +1607,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1607,7 +1607,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg, { viewparams: this.viewparams }); Object.assign(arg, { viewparams: this.viewparams });
...@@ -1799,7 +1799,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface ...@@ -1799,7 +1799,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
...@@ -1344,7 +1344,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1344,7 +1344,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/ */
public async load(opt: any = {}): Promise<any> { public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1395,7 +1395,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1395,7 +1395,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/ */
public async loadDraft(opt: any = {}): Promise<any> { public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) { if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1465,7 +1465,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1465,7 +1465,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1573,7 +1573,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1573,7 +1573,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg, { viewparams: this.viewparams }); Object.assign(arg, { viewparams: this.viewparams });
...@@ -1765,7 +1765,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -1765,7 +1765,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
...@@ -1447,7 +1447,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1447,7 +1447,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/ */
public async load(opt: any = {}): Promise<any> { public async load(opt: any = {}): Promise<any> {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loadaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loadaction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -1499,7 +1499,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1499,7 +1499,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
*/ */
public async loadDraft(opt: any = {}): Promise<any> { public async loadDraft(opt: any = {}): Promise<any> {
if (!this.loaddraftAction) { if (!this.loaddraftAction) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.loaddraftaction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
...@@ -1569,7 +1569,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1569,7 +1569,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg,{viewparams:this.viewparams}); Object.assign(arg,{viewparams:this.viewparams});
...@@ -1677,7 +1677,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1677,7 +1677,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction; const action: any = Object.is(data.srfuf, '1') ? this.updateAction : this.createAction;
if(!action){ if(!action){
let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction"; let actionName:any = Object.is(data.srfuf, '1')?"updateAction":"createAction";
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.actionname') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.actionname') as string) });
return; return;
} }
Object.assign(arg, { viewparams: this.viewparams }); Object.assign(arg, { viewparams: this.viewparams });
...@@ -1869,7 +1869,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface { ...@@ -1869,7 +1869,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> { public remove(opt:Array<any> = [],showResultInfo?: boolean): Promise<any> {
return new Promise((resolve: any, reject: any) => { return new Promise((resolve: any, reject: any) => {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView' + (this.$t('app.formpage.notconfig.removeaction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKWizardView_layout' + (this.$t('app.formpage.notconfig.removeaction') as string) });
return; return;
} }
const arg: any = opt[0]; const arg: any = opt[0];
......
...@@ -698,7 +698,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -698,7 +698,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};
...@@ -792,7 +792,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -792,7 +792,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[] = [];
...@@ -908,7 +908,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -908,7 +908,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);
...@@ -916,7 +916,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -916,7 +916,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'
},
{ {
......
...@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -933,7 +933,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: "IBIZOrderDetailSGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string), desc: "IBIZOrderDetailGridView9" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
}); });
return; return;
} }
...@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1073,7 +1073,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: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string) desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.removeAction') as string)
}); });
return; return;
} }
...@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1187,7 +1187,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: 'IBIZOrderDetailSGridView'+(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){
...@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2082,7 +2082,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: 'IBIZOrderDetailSGridView'+(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);
...@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2091,7 +2091,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: 'IBIZOrderDetailSGridView'+(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);
...@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2167,7 +2167,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: 'IBIZOrderDetailSGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string) desc: 'IBIZOrderDetailGridView9' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
}); });
return; return;
} }
......
...@@ -117,6 +117,29 @@ ...@@ -117,6 +117,29 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='formitem' :itemRules="this.rules().formitem" class='' :caption="$t('entities.ibizorder.main_form.details.formitem')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem.error" :isEmptyCaption="false" labelPos="LEFT">
<app-ey-upload
:data="data"
formItemName="formitem"
:value="data.formitem"
:formState="formState"
folder="ibizorder"
ownertype="formitem"
:ownerid="data.srfkey"
:show-ocrview="false"
:show-preview="false"
:show-edit="false"
:show-drag="false"
:persistence="false"
:show-download="false"
:disabled="detailsModel.formitem.disabled"
:show-delete="false"
@formitemvaluechange="onFormItemValueChange">
</app-ey-upload>
</app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.detailnum.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }"> <i-col v-show="detailsModel.detailnum.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='detailnum' :itemRules="this.rules().detailnum" class='' :caption="$t('entities.ibizorder.main_form.details.detailnum')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.detailnum.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='detailnum' :itemRules="this.rules().detailnum" class='' :caption="$t('entities.ibizorder.main_form.details.detailnum')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.detailnum.error" :isEmptyCaption="false" labelPos="LEFT">
...@@ -657,6 +680,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -657,6 +680,7 @@ export default class MainBase extends Vue implements ControlInterface {
ibizcustomername: null, ibizcustomername: null,
ordertype: null, ordertype: null,
amount: null, amount: null,
formitem: null,
detailnum: null, detailnum: null,
orderstate: null, orderstate: null,
memo: null, memo: null,
...@@ -745,6 +769,10 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -745,6 +769,10 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.amount.required, type: 'number', message: '总计 值不能为空', trigger: 'change' }, { required: this.detailsModel.amount.required, type: 'number', message: '总计 值不能为空', trigger: 'change' },
{ required: this.detailsModel.amount.required, type: 'number', message: '总计 值不能为空', trigger: 'blur' }, { required: this.detailsModel.amount.required, type: 'number', message: '总计 值不能为空', trigger: 'blur' },
], ],
formitem: [
{ required: this.detailsModel.formitem.required, type: 'string', message: '文件上传 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '文件上传 值不能为空', trigger: 'blur' },
],
detailnum: [ detailnum: [
{ required: this.detailsModel.detailnum.required, type: 'number', message: '明细数 值不能为空', trigger: 'change' }, { required: this.detailsModel.detailnum.required, type: 'number', message: '明细数 值不能为空', trigger: 'change' },
{ required: this.detailsModel.detailnum.required, type: 'number', message: '明细数 值不能为空', trigger: 'blur' }, { required: this.detailsModel.detailnum.required, type: 'number', message: '明细数 值不能为空', trigger: 'blur' },
...@@ -905,6 +933,8 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -905,6 +933,8 @@ export default class MainBase extends Vue implements ControlInterface {
ordertype: new FormItemModel({ caption: '订单类型', detailType: 'FORMITEM', name: 'ordertype', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ordertype: new FormItemModel({ caption: '订单类型', detailType: 'FORMITEM', name: 'ordertype', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
amount: new FormItemModel({ caption: '总计', detailType: 'FORMITEM', name: 'amount', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) amount: new FormItemModel({ caption: '总计', detailType: 'FORMITEM', name: 'amount', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: '文件上传', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
detailnum: new FormItemModel({ caption: '明细数', detailType: 'FORMITEM', name: 'detailnum', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) detailnum: new FormItemModel({ caption: '明细数', detailType: 'FORMITEM', name: 'detailnum', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -1122,6 +1152,18 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1122,6 +1152,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'amount', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'amount', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 formitem 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.formitem')
onFormitemChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 detailnum 值 * 监控表单属性 detailnum 值
* *
...@@ -1260,6 +1302,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1260,6 +1302,7 @@ export default class MainBase extends Vue implements ControlInterface {
} }
......
...@@ -99,6 +99,11 @@ export default class MainModel { ...@@ -99,6 +99,11 @@ export default class MainModel {
prop: 'amount', prop: 'amount',
dataType: 'FLOAT', dataType: 'FLOAT',
}, },
{
name: 'formitem',
prop: 'tp',
dataType: 'LONGTEXT',
},
{ {
name: 'detailnum', name: 'detailnum',
prop: 'detailnum', prop: 'detailnum',
......
...@@ -141,6 +141,13 @@ ...@@ -141,6 +141,13 @@
"name" : "AMOUNT", "name" : "AMOUNT",
"codeName" : "Amount" "codeName" : "Amount"
} }
}, {
"id" : "formitem",
"dataType" : 21,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
}
}, { }, {
"id" : "detailnum", "id" : "detailnum",
"dataType" : 9, "dataType" : 9,
...@@ -537,6 +544,51 @@ ...@@ -537,6 +544,51 @@
"enableItemPriv" : true, "enableItemPriv" : true,
"enableUnitName" : true, "enableUnitName" : true,
"showCaption" : true "showCaption" : true
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TP",
"mOSFilePath" : "pslanguageres/Auto1423",
"rTMOSFilePath" : "pslanguageres/Auto1423"
},
"caption" : "文件上传",
"codeName" : "formitem",
"dataType" : 21,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem",
"name" : "formitem",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
},
"getPSEditor" : {
"editorParams" : {
"FILEEXTS" : "",
"MAXFILESIZE" : "",
"MINFILECNT" : "",
"MAXFILECNT" : ""
},
"editorStyle" : "EY",
"editorType" : "FILEUPLOADER",
"maxFileCount" : -1,
"maxFileSize" : -1,
"minFileCount" : 0,
"name" : "formitem"
},
"getPSLayoutPos" : {
"colMD" : 6,
"colSM" : 6,
"colXS" : 6,
"layout" : "TABLE_24COL"
},
"rTMOSFilePath" : "psdeformdetail_formitems/formitem",
"allowEmpty" : true,
"showCaption" : true
}, { }, {
"getCapPSLanguageRes" : { "getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.DETAILNUM", "lanResTag" : "DEF.LNAME.DETAILNUM",
......
...@@ -1123,6 +1123,13 @@ ...@@ -1123,6 +1123,13 @@
"name" : "AMOUNT", "name" : "AMOUNT",
"codeName" : "Amount" "codeName" : "Amount"
} }
}, {
"id" : "formitem",
"dataType" : 21,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
}
}, { }, {
"id" : "detailnum", "id" : "detailnum",
"dataType" : 9, "dataType" : 9,
...@@ -1519,6 +1526,51 @@ ...@@ -1519,6 +1526,51 @@
"enableItemPriv" : true, "enableItemPriv" : true,
"enableUnitName" : true, "enableUnitName" : true,
"showCaption" : true "showCaption" : true
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TP",
"mOSFilePath" : "pslanguageres/Auto1423",
"rTMOSFilePath" : "pslanguageres/Auto1423"
},
"caption" : "文件上传",
"codeName" : "formitem",
"dataType" : 21,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem",
"name" : "formitem",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
},
"getPSEditor" : {
"editorParams" : {
"FILEEXTS" : "",
"MAXFILESIZE" : "",
"MINFILECNT" : "",
"MAXFILECNT" : ""
},
"editorStyle" : "EY",
"editorType" : "FILEUPLOADER",
"maxFileCount" : -1,
"maxFileSize" : -1,
"minFileCount" : 0,
"name" : "formitem"
},
"getPSLayoutPos" : {
"colMD" : 6,
"colSM" : 6,
"colXS" : 6,
"layout" : "TABLE_24COL"
},
"rTMOSFilePath" : "psdeformdetail_formitems/formitem",
"allowEmpty" : true,
"showCaption" : true
}, { }, {
"getCapPSLanguageRes" : { "getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.DETAILNUM", "lanResTag" : "DEF.LNAME.DETAILNUM",
......
...@@ -1572,6 +1572,13 @@ ...@@ -1572,6 +1572,13 @@
"name" : "AMOUNT", "name" : "AMOUNT",
"codeName" : "Amount" "codeName" : "Amount"
} }
}, {
"id" : "formitem",
"dataType" : 21,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
}
}, { }, {
"id" : "detailnum", "id" : "detailnum",
"dataType" : 9, "dataType" : 9,
...@@ -1968,6 +1975,51 @@ ...@@ -1968,6 +1975,51 @@
"enableItemPriv" : true, "enableItemPriv" : true,
"enableUnitName" : true, "enableUnitName" : true,
"showCaption" : true "showCaption" : true
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TP",
"mOSFilePath" : "pslanguageres/Auto1423",
"rTMOSFilePath" : "pslanguageres/Auto1423"
},
"caption" : "文件上传",
"codeName" : "formitem",
"dataType" : 21,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem",
"name" : "formitem",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
},
"getPSEditor" : {
"editorParams" : {
"FILEEXTS" : "",
"MAXFILESIZE" : "",
"MINFILECNT" : "",
"MAXFILECNT" : ""
},
"editorStyle" : "EY",
"editorType" : "FILEUPLOADER",
"maxFileCount" : -1,
"maxFileSize" : -1,
"minFileCount" : 0,
"name" : "formitem"
},
"getPSLayoutPos" : {
"colMD" : 6,
"colSM" : 6,
"colXS" : 6,
"layout" : "TABLE_24COL"
},
"rTMOSFilePath" : "psdeformdetail_formitems/formitem",
"allowEmpty" : true,
"showCaption" : true
}, { }, {
"getCapPSLanguageRes" : { "getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.DETAILNUM", "lanResTag" : "DEF.LNAME.DETAILNUM",
......
...@@ -716,6 +716,13 @@ ...@@ -716,6 +716,13 @@
"name" : "AMOUNT", "name" : "AMOUNT",
"codeName" : "Amount" "codeName" : "Amount"
} }
}, {
"id" : "formitem",
"dataType" : 21,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
}
}, { }, {
"id" : "detailnum", "id" : "detailnum",
"dataType" : 9, "dataType" : 9,
...@@ -1112,6 +1119,51 @@ ...@@ -1112,6 +1119,51 @@
"enableItemPriv" : true, "enableItemPriv" : true,
"enableUnitName" : true, "enableUnitName" : true,
"showCaption" : true "showCaption" : true
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TP",
"mOSFilePath" : "pslanguageres/Auto1423",
"rTMOSFilePath" : "pslanguageres/Auto1423"
},
"caption" : "文件上传",
"codeName" : "formitem",
"dataType" : 21,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem",
"name" : "formitem",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
},
"getPSEditor" : {
"editorParams" : {
"FILEEXTS" : "",
"MAXFILESIZE" : "",
"MINFILECNT" : "",
"MAXFILECNT" : ""
},
"editorStyle" : "EY",
"editorType" : "FILEUPLOADER",
"maxFileCount" : -1,
"maxFileSize" : -1,
"minFileCount" : 0,
"name" : "formitem"
},
"getPSLayoutPos" : {
"colMD" : 6,
"colSM" : 6,
"colXS" : 6,
"layout" : "TABLE_24COL"
},
"rTMOSFilePath" : "psdeformdetail_formitems/formitem",
"allowEmpty" : true,
"showCaption" : true
}, { }, {
"getCapPSLanguageRes" : { "getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.DETAILNUM", "lanResTag" : "DEF.LNAME.DETAILNUM",
......
...@@ -251,6 +251,13 @@ ...@@ -251,6 +251,13 @@
"name" : "AMOUNT", "name" : "AMOUNT",
"codeName" : "Amount" "codeName" : "Amount"
} }
}, {
"id" : "formitem",
"dataType" : 21,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
}
}, { }, {
"id" : "detailnum", "id" : "detailnum",
"dataType" : 9, "dataType" : 9,
...@@ -647,6 +654,51 @@ ...@@ -647,6 +654,51 @@
"enableItemPriv" : true, "enableItemPriv" : true,
"enableUnitName" : true, "enableUnitName" : true,
"showCaption" : true "showCaption" : true
}, {
"getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.TP",
"mOSFilePath" : "pslanguageres/Auto1423",
"rTMOSFilePath" : "pslanguageres/Auto1423"
},
"caption" : "文件上传",
"codeName" : "formitem",
"dataType" : 21,
"detailStyle" : "DEFAULT",
"detailType" : "FORMITEM",
"enableCond" : 3,
"ignoreInput" : 0,
"labelPos" : "LEFT",
"labelWidth" : 130,
"mOSFilePath" : "psdeformdetail_formitems/formitem",
"name" : "formitem",
"noPrivDisplayMode" : 1,
"getPSAppDEField" : {
"name" : "TP",
"codeName" : "Tp"
},
"getPSEditor" : {
"editorParams" : {
"FILEEXTS" : "",
"MAXFILESIZE" : "",
"MINFILECNT" : "",
"MAXFILECNT" : ""
},
"editorStyle" : "EY",
"editorType" : "FILEUPLOADER",
"maxFileCount" : -1,
"maxFileSize" : -1,
"minFileCount" : 0,
"name" : "formitem"
},
"getPSLayoutPos" : {
"colMD" : 6,
"colSM" : 6,
"colXS" : 6,
"layout" : "TABLE_24COL"
},
"rTMOSFilePath" : "psdeformdetail_formitems/formitem",
"allowEmpty" : true,
"showCaption" : true
}, { }, {
"getCapPSLanguageRes" : { "getCapPSLanguageRes" : {
"lanResTag" : "DEF.LNAME.DETAILNUM", "lanResTag" : "DEF.LNAME.DETAILNUM",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册