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

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

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