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

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

上级 3524b063
...@@ -494,13 +494,9 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue { ...@@ -494,13 +494,9 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizbook'); const service = await window.entityServiceRegister.getService('ibizbook');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(key) || data.hasOwnProperty(name)) {
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(context, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} else {
Object.assign(context, { [name]: data[name] });
}
action = 'Update'; action = 'Update';
} else { } else {
action = 'Create'; action = 'Create';
......
...@@ -702,13 +702,9 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue { ...@@ -702,13 +702,9 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizbook'); const service = await window.entityServiceRegister.getService('ibizbook');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(key) || data.hasOwnProperty(name)) {
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(context, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} else {
Object.assign(context, { [name]: data[name] });
}
action = 'Update'; action = 'Update';
} else { } else {
action = 'Create'; action = 'Create';
...@@ -747,10 +743,7 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue { ...@@ -747,10 +743,7 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizbook'); const service = await window.entityServiceRegister.getService('ibizbook');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(name)) {
Object.assign(tempContext, { [name]: data[name] });
}
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(tempContext, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} }
......
...@@ -478,13 +478,9 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue { ...@@ -478,13 +478,9 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizcustomer'); const service = await window.entityServiceRegister.getService('ibizcustomer');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(key) || data.hasOwnProperty(name)) {
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(context, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} else {
Object.assign(context, { [name]: data[name] });
}
action = 'Update'; action = 'Update';
} else { } else {
action = 'Create'; action = 'Create';
......
...@@ -477,13 +477,9 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue { ...@@ -477,13 +477,9 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizcustomer'); const service = await window.entityServiceRegister.getService('ibizcustomer');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(key) || data.hasOwnProperty(name)) {
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(context, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} else {
Object.assign(context, { [name]: data[name] });
}
action = 'Update'; action = 'Update';
} else { } else {
action = 'Create'; action = 'Create';
......
...@@ -478,13 +478,9 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue { ...@@ -478,13 +478,9 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizcustomer'); const service = await window.entityServiceRegister.getService('ibizcustomer');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(key) || data.hasOwnProperty(name)) {
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(context, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} else {
Object.assign(context, { [name]: data[name] });
}
action = 'Update'; action = 'Update';
} else { } else {
action = 'Create'; action = 'Create';
......
...@@ -477,13 +477,9 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue { ...@@ -477,13 +477,9 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizcustomer'); const service = await window.entityServiceRegister.getService('ibizcustomer');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(key) || data.hasOwnProperty(name)) {
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(context, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} else {
Object.assign(context, { [name]: data[name] });
}
action = 'Update'; action = 'Update';
} else { } else {
action = 'Create'; action = 'Create';
......
...@@ -773,13 +773,9 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -773,13 +773,9 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizcustomer'); const service = await window.entityServiceRegister.getService('ibizcustomer');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(key) || data.hasOwnProperty(name)) {
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(context, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} else {
Object.assign(context, { [name]: data[name] });
}
action = 'Update'; action = 'Update';
} else { } else {
action = 'Create'; action = 'Create';
...@@ -971,10 +967,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -971,10 +967,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
const service = await window.entityServiceRegister.getService('ibizcustomer'); const service = await window.entityServiceRegister.getService('ibizcustomer');
if (service) { if (service) {
const key = service.APPDEKEY.toLowerCase(); const key = service.APPDEKEY.toLowerCase();
const name = service.APPDENAME.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase();
if (data.hasOwnProperty(name)) {
Object.assign(tempContext, { [name]: data[name] });
}
if (data.hasOwnProperty(key)) { if (data.hasOwnProperty(key)) {
Object.assign(tempContext, { [name]: data[key] }); Object.assign(tempContext, { [name]: data[key] });
} }
......
...@@ -711,7 +711,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -711,7 +711,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: 'IBIZBOOKUsr3GridView' + (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 };
...@@ -747,7 +747,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -747,7 +747,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: 'IBIZBOOKUsr3GridView' + (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 } ;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册