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

xignzi006 发布系统代码

上级 78ff5afb
{
"ibizserviceeditview": {
"title": "服务编辑视图",
"caption": "服务",
"viewtype": "DEEDITVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceEditView",
"viewfilename": "ibiz-service-edit-view",
"viewtag": "0027cf632b1ee99cb364d2b6aa2b6511",
"memo": "系统自动添加"
},
"contacteditabstract": {
"title": "联系人选项操作视图",
"caption": "摘要信息",
......@@ -599,16 +589,6 @@
"viewtag": "7877d7e7e55fe21f48e8382e07579f33",
"memo": "系统自动添加"
},
"ibizservicegridview": {
"title": "服务表格视图",
"caption": "服务",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceGridView",
"viewfilename": "ibiz-service-grid-view",
"viewtag": "7b487e231caf16a33620396ad7c90634",
"memo": "系统自动添加"
},
"campaignresponsequickcreate": {
"title": "快速新建",
"caption": "快速新建",
......
......@@ -242,51 +242,6 @@ export default {
title: '客户编辑视图',
},
},
info_account_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
accountname: "客户名称",
telephone1: "主要电话",
fax: "传真",
websiteurl: "网站",
parentaccountname: "上级单位",
tickersymbol: "股票代号",
customertypecode: "关系类型",
defaultpricelevelname: "价目表",
accountid: "客户",
},
uiactions: {
},
},
info_majorcontact_form: {
details: {
druipart1: "",
group1: "主联系人",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
primarycontactname: "主要联系人",
emailaddress1: "电子邮件",
accountid: "客户",
},
uiactions: {
},
},
edit_accountinfo_form: {
details: {
group1: "客户基本信息",
......@@ -388,6 +343,51 @@ export default {
edit_introduction: "编辑",
},
},
info_account_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
accountname: "客户名称",
telephone1: "主要电话",
fax: "传真",
websiteurl: "网站",
parentaccountname: "上级单位",
tickersymbol: "股票代号",
customertypecode: "关系类型",
defaultpricelevelname: "价目表",
accountid: "客户",
},
uiactions: {
},
},
info_majorcontact_form: {
details: {
druipart1: "",
group1: "主联系人",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
primarycontactname: "主要联系人",
emailaddress1: "电子邮件",
accountid: "客户",
},
uiactions: {
},
},
quickcreate_form: {
details: {
group1: "客户基本信息",
......@@ -577,20 +577,20 @@ export default {
uiactions: {
},
},
innerpickip_grid: {
main_grid: {
columns: {
accountname: "客户名称",
telephone1: "主要电话",
address1_city: "地址 1: 市/县",
primarycontactname: "主要联系人",
emailaddress1: "电子邮件",
},
uiactions: {
},
},
main_grid: {
innerpickip_grid: {
columns: {
accountname: "客户名称",
telephone1: "主要电话",
address1_city: "地址 1: 市/县",
primarycontactname: "主要联系人",
emailaddress1: "电子邮件",
},
uiactions: {
......
......@@ -241,51 +241,6 @@ export default {
title: '客户编辑视图',
},
},
info_account_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
accountname: '客户名称',
telephone1: '主要电话',
fax: '传真',
websiteurl: '网站',
parentaccountname: '上级单位',
tickersymbol: '股票代号',
customertypecode: '关系类型',
defaultpricelevelname: '价目表',
accountid: '客户',
},
uiactions: {
},
},
info_majorcontact_form: {
details: {
druipart1: '',
group1: '主联系人',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
primarycontactname: '主要联系人',
emailaddress1: '电子邮件',
accountid: '客户',
},
uiactions: {
},
},
edit_accountinfo_form: {
details: {
group1: '客户基本信息',
......@@ -387,6 +342,51 @@ export default {
edit_introduction: '编辑',
},
},
info_account_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
accountname: '客户名称',
telephone1: '主要电话',
fax: '传真',
websiteurl: '网站',
parentaccountname: '上级单位',
tickersymbol: '股票代号',
customertypecode: '关系类型',
defaultpricelevelname: '价目表',
accountid: '客户',
},
uiactions: {
},
},
info_majorcontact_form: {
details: {
druipart1: '',
group1: '主联系人',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
primarycontactname: '主要联系人',
emailaddress1: '电子邮件',
accountid: '客户',
},
uiactions: {
},
},
quickcreate_form: {
details: {
group1: '客户基本信息',
......@@ -576,20 +576,20 @@ export default {
uiactions: {
},
},
innerpickip_grid: {
main_grid: {
columns: {
accountname: '客户名称',
telephone1: '主要电话',
address1_city: '地址 1: 市/县',
primarycontactname: '主要联系人',
emailaddress1: '电子邮件',
},
uiactions: {
},
},
main_grid: {
innerpickip_grid: {
columns: {
accountname: '客户名称',
telephone1: '主要电话',
address1_city: '地址 1: 市/县',
primarycontactname: '主要联系人',
emailaddress1: '电子邮件',
},
uiactions: {
......
......@@ -24,130 +24,4 @@ export default {
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
resourcespecid: '所需资源',
},
views: {
editview: {
caption: "服务",
title: '服务编辑视图',
},
gridview: {
caption: "服务",
title: '服务表格视图',
},
},
main_form: {
details: {
group1: "service基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "服务",
srfmajortext: "service名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
servicename: "service名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
serviceid: "服务",
},
uiactions: {
},
},
main_grid: {
columns: {
servicename: "service名称",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
};
\ No newline at end of file
......@@ -23,130 +23,4 @@ export default {
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
resourcespecid: '所需资源',
},
views: {
editview: {
caption: '服务',
title: '服务编辑视图',
},
gridview: {
caption: '服务',
title: '服务表格视图',
},
},
main_form: {
details: {
group1: 'service基本信息',
formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '服务',
srfmajortext: 'service名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
servicename: 'service名称',
createman: '建立人',
createdate: '建立时间',
updateman: '更新人',
updatedate: '更新时间',
serviceid: '服务',
},
uiactions: {
},
},
main_grid: {
columns: {
servicename: 'service名称',
updateman: '更新人',
updatedate: '更新时间',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
tbitem10: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
},
};
\ No newline at end of file
......@@ -7,14 +7,6 @@ import Mock from 'mockjs'
mock.onGet('./assets/json/view-config.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status,{
"ibizserviceeditview": {
"title": "服务编辑视图",
"caption": "服务",
"viewtype": "DEEDITVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceEditView",
"viewtag": "0027cf632b1ee99cb364d2b6aa2b6511"
},
"contacteditabstract": {
"title": "联系人选项操作视图",
"caption": "摘要信息",
......@@ -487,14 +479,6 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "GoalEditView",
"viewtag": "7877d7e7e55fe21f48e8382e07579f33"
},
"ibizservicegridview": {
"title": "服务表格视图",
"caption": "服务",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceGridView",
"viewtag": "7b487e231caf16a33620396ad7c90634"
},
"campaignresponsequickcreate": {
"title": "快速新建",
"caption": "快速新建",
......
<template>
<studio-view-style2 viewName="accountinfo_all" viewTitle="客户编辑视图" class='deeditview account-info-all'>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
</studio-view-style2>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch } from 'vue-property-decorator';
import { UIActionTool,Util } from '@/utils';
import { Subject } from 'rxjs';
import AccountService from '@/service/account/account-service';
import EditViewEngine from '@engine/view/edit-view-engine';
@Component({
components: {
},
})
export default class AccountInfo_AllBase extends Vue {
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof AccountInfo_AllBase
*/
public appEntityService: AccountService = new AccountService;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof AccountInfo_AllBase
*/
public counterServiceArray:Array<any> = [];
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof AccountInfo_AllBase
*/
@Emit()
public viewDatasChange(val: any):any {
return val;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof AccountInfo_AllBase
*/
@Prop() public viewdata!: string;
/**
* 传入视图参数
*
* @type {string}
* @memberof AccountInfo_AllBase
*/
@Prop() public viewparam!: string;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof AccountInfo_AllBase
*/
@Prop({ default: true }) public viewDefaultUsage!: boolean;
/**
* 视图标识
*
* @type {string}
* @memberof AccountInfo_AllBase
*/
public viewtag: string = '31f2ad06ced735d250dfa5f309b5aea4';
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public customViewNavContexts:any ={
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public customViewParams:any ={
};
/**
* 视图模型数据
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public model: any = {
srfCaption: 'entities.account.views.info_all.caption',
srfTitle: 'entities.account.views.info_all.title',
srfSubTitle: 'entities.account.views.info_all.subtitle',
dataInfo: ''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof AccountInfo_AllBase
*/
@Watch('viewparam',{immediate: true, deep: true})
onParamData(newVal: any, oldVal: any) {
if(newVal){
for(let key in this.viewparams){
delete this.viewparams[key];
}
Object.assign(this.viewparams, JSON.parse(this.viewparam));
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof AccountInfo_AllBase
*/
@Watch('viewdata')
onViewData(newVal: any, oldVal: any) {
const _this: any = this;
if (!Object.is(newVal, oldVal) && _this.engine) {
this.$nextTick(()=>{
_this.parseViewParam();
_this.engine.load();
});
}
}
/**
* 容器模型
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
};
/**
* 计数器刷新
*
* @memberof AccountInfo_AllBase
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof AccountInfo_AllBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof AccountInfo_AllBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof AccountInfo_AllBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'account',
majorPSDEField: 'accountname',
isLoadDefault: true,
});
}
/**
* 应用上下文
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public context:any = {};
/**
* 视图参数
*
* @type {*}
* @memberof AccountInfo_AllBase
*/
public viewparams:any = {};
/**
* 解析视图参数
*
* @public
* @memberof AccountInfo_AllBase
*/
public parseViewParam(): void {
for(let key in this.context){
delete this.context[key];
}
if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) {
Object.assign(this.context, JSON.parse(this.viewdata));
if(this.context && this.context.srfparentdename){
Object.assign(this.viewparams,{srfparentdename:this.context.srfparentdename});
}
if(this.context && this.context.srfparentkey){
Object.assign(this.viewparams,{srfparentkey:this.context.srfparentkey});
}
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context);
}
this.handleCustomViewData();
return;
}
const path = (this.$route.matched[this.$route.matched.length - 1]).path;
const keys: Array<any> = [];
const curReg = this.$pathToRegExp.pathToRegexp(path, keys);
const matchArray = curReg.exec(this.$route.path);
let tempValue: Object = {};
keys.forEach((item: any, index: number) => {
Object.defineProperty(tempValue, item.name, {
enumerable: true,
value: matchArray[index + 1]
});
});
this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams);
if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){
Object.assign(this.context,this.$store.getters.getAppData().context);
}
//初始化视图唯一标识
Object.assign(this.context,{srfsessionid:this.$util.createUUID()});
this.handleCustomViewData();
}
/**
* 处理自定义视图数据
*
* @memberof AccountInfo_AllBase
*/
public handleCustomViewData(){
if(Object.keys(this.customViewNavContexts).length > 0){
Object.keys(this.customViewNavContexts).forEach((item:any) =>{
let tempContext:any = {};
let curNavContext:any = this.customViewNavContexts[item];
this.handleCustomDataLogic(curNavContext,tempContext,item);
Object.assign(this.context,tempContext);
})
}
if(Object.keys(this.customViewParams).length > 0){
Object.keys(this.customViewParams).forEach((item:any) =>{
let tempParam:any = {};
let curNavParam:any = this.customViewParams[item];
this.handleCustomDataLogic(curNavParam,tempParam,item);
Object.assign(this.viewparams,tempParam);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof AccountInfo_AllBase
*/
public handleCustomDataLogic(curNavData:any,tempData:any,item:string){
// 直接值直接赋值
if(curNavData.isRawValue){
if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: curNavData.value,
writable : true,
enumerable : true,
configurable : true
});
}
}else{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if(this.context[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.context[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
if(this.viewparams[(curNavData.value).toLowerCase()]){
Object.defineProperty(tempData, item.toLowerCase(), {
value: this.viewparams[(curNavData.value).toLowerCase()],
writable : true,
enumerable : true,
configurable : true
});
}else{
Object.defineProperty(tempData, item.toLowerCase(), {
value: null,
writable : true,
enumerable : true,
configurable : true
});
}
}
}
}
/**
* Vue声明周期
*
* @memberof AccountInfo_AllBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof AccountInfo_AllBase
*/
public afterCreated(){
const secondtag = this.$util.createUUID();
this.$store.commit('viewaction/createdView', { viewtag: this.viewtag, secondtag: secondtag });
this.viewtag = secondtag;
this.parseViewParam();
}
/**
* 销毁之前
*
* @memberof AccountInfo_AllBase
*/
public beforeDestroy() {
this.$store.commit('viewaction/removeView', this.viewtag);
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof AccountInfo_AllBase
*/
public mounted() {
this.afterMounted();
}
/**
* 执行mounted后的逻辑
*
* @memberof AccountInfo_AllBase
*/
public afterMounted(){
const _this: any = this;
_this.engineInit();
if (_this.loadModel && _this.loadModel instanceof Function) {
_this.loadModel();
}
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public form_save($event: any, $event2?: any) {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public form_remove($event: any, $event2?: any) {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof AccountInfo_AllBase
*/
public form_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('form', 'load', $event);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof AccountInfo_AllBase
*/
public closeView(args: any[]): void {
let _view: any = this;
if (_view.viewdata) {
_view.$emit('viewdataschange', [args]);
_view.$emit('close', [args]);
} else if (_view.$tabPageExp) {
_view.$tabPageExp.onClose(_view.$route.fullPath);
}
}
/**
* 销毁视图回调
*
* @memberof AccountInfo_AllBase
*/
public destroyed(){
this.afterDestroyed();
}
/**
* 执行destroyed后的逻辑
*
* @memberof AccountInfo_AllBase
*/
public afterDestroyed(){
if(this.viewDefaultUsage){
let localStoreLength = Object.keys(localStorage);
if(localStoreLength.length > 0){
localStoreLength.forEach((item:string) =>{
if(item.startsWith(this.context.srfsessionid)){
localStorage.removeItem(item);
}
})
}
}
}
}
</script>
<style lang='less'>
@import './account-info-all.less';
</style>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.account-info-all {
--account-info-all: 0;
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountInfo_AllBase from './account-info-all-base.vue';
import view_form from '@widgets/account/info-all-form/info-all-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class AccountInfo_All extends AccountInfo_AllBase {
}
</script>
\ No newline at end of file
......@@ -52,7 +52,6 @@ export const PageComponents = {
Vue.component('ibiz-list-info-abstract', () => import('@pages/marketing/ibiz-list-info-abstract/ibiz-list-info-abstract.vue'));
Vue.component('ibiz-list-info', () => import('@pages/marketing/ibiz-list-info/ibiz-list-info.vue'));
Vue.component('ibiz-list-summary', () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'));
Vue.component('ibiz-service-edit-view', () => import('@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'));
Vue.component('lead-pickup-grid-view', () => import('@pages/sales/lead-pickup-grid-view/lead-pickup-grid-view.vue'));
Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'));
Vue.component('campaign-list-edit-view', () => import('@pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue'));
......@@ -64,10 +63,10 @@ export const PageComponents = {
Vue.component('campaign-info-manager', () => import('@pages/marketing/campaign-info-manager/campaign-info-manager.vue'));
Vue.component('contact-info-abstract', () => import('@pages/base/contact-info-abstract/contact-info-abstract.vue'));
Vue.component('list-contact-edit-view', () => import('@pages/marketing/list-contact-edit-view/list-contact-edit-view.vue'));
Vue.component('account-info-all', () => import('@pages/base/account-info-all/account-info-all.vue'));
Vue.component('campaign-grid-view', () => import('@pages/marketing/campaign-grid-view/campaign-grid-view.vue'));
Vue.component('list-lead-by-list', () => import('@pages/marketing/list-lead-by-list/list-lead-by-list.vue'));
Vue.component('account-info-major-contact', () => import('@pages/base/account-info-major-contact/account-info-major-contact.vue'));
Vue.component('ibiz-service-grid-view', () => import('@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'));
Vue.component('sales-order-grid-view', () => import('@pages/sales/sales-order-grid-view/sales-order-grid-view.vue'));
Vue.component('contact-option-view', () => import('@pages/base/contact-option-view/contact-option-view.vue'));
Vue.component('contact-edit-abstract', () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue'));
......
......@@ -943,20 +943,6 @@ const router = new Router({
},
component: () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'),
},
{
path: 'ibizservices/:ibizservice?/editview/:editview?',
meta: {
caption: 'entities.ibizservice.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'),
},
{
path: 'campaignresponses/:campaignresponse?/quickcreate/:quickcreate?',
meta: {
......@@ -1307,6 +1293,20 @@ const router = new Router({
},
component: () => import('@pages/marketing/list-contact-edit-view/list-contact-edit-view.vue'),
},
{
path: 'accounts/:account?/info_all/:info_all?',
meta: {
caption: 'entities.account.views.info_all.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'info_all', parameterName: 'info_all' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-info-all/account-info-all.vue'),
},
{
path: 'campaigns/:campaign?/summary/:summary?',
meta: {
......@@ -1439,20 +1439,6 @@ const router = new Router({
},
component: () => import('@pages/base/account-info-major-contact/account-info-major-contact.vue'),
},
{
path: 'ibizservices/:ibizservice?/gridview/:gridview?',
meta: {
caption: 'entities.ibizservice.views.gridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'),
},
{
path: 'salesorders/:salesorder?/gridview/:gridview?',
meta: {
......@@ -1581,6 +1567,20 @@ const router = new Router({
},
component: () => import('@pages/base/phone-call-edit-view/phone-call-edit-view.vue'),
},
{
path: 'accounts/:account?/edit_introduction/:edit_introduction?',
meta: {
caption: 'entities.account.views.edit_introduction.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'edit_introduction', parameterName: 'edit_introduction' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-introduction/account-edit-introduction.vue'),
},
{
path: 'contacts/:contact?/dashboardview/:dashboardview?',
meta: {
......@@ -1766,6 +1766,20 @@ const router = new Router({
},
component: () => import('@pages/sales/quote-edit-view/quote-edit-view.vue'),
},
{
path: 'accounts/:account?/edit_accountinfo/:edit_accountinfo?',
meta: {
caption: 'entities.account.views.edit_accountinfo.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'edit_accountinfo', parameterName: 'edit_accountinfo' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-edit-account-info/account-edit-account-info.vue'),
},
{
path: 'contacts/:contact?/editaddress/:editaddress?',
meta: {
......@@ -1839,19 +1853,6 @@ const router = new Router({
...indexRoutes,
],
},
{
path: '/ibizservices/:ibizservice?/editview/:editview?',
meta: {
caption: 'entities.ibizservice.views.editview.title',
info:'',
parameters: [
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'),
},
{
path: '/contacts/:contact?/editabstract/:editabstract?',
meta: {
......@@ -2386,6 +2387,19 @@ const router = new Router({
},
component: () => import('@pages/marketing/list-contact-grid-view/list-contact-grid-view.vue'),
},
{
path: '/accounts/:account?/info_all/:info_all?',
meta: {
caption: 'entities.account.views.info_all.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'info_all', parameterName: 'info_all' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-info-all/account-info-all.vue'),
},
{
path: '/incidents/:incident?/gridview/:gridview?',
meta: {
......@@ -2811,19 +2825,6 @@ const router = new Router({
},
component: () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'),
},
{
path: '/ibizservices/:ibizservice?/gridview/:gridview?',
meta: {
caption: 'entities.ibizservice.views.gridview.title',
info:'',
parameters: [
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'),
},
{
path: '/campaignresponses/:campaignresponse?/quickcreate/:quickcreate?',
meta: {
......
......@@ -3,15 +3,6 @@
*/
export const viewstate: any = {
appviews: [
{
viewtag: '0027cf632b1ee99cb364d2b6aa2b6511',
viewmodule: 'Service',
viewname: 'IBizServiceEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '016506dd3f47a5cf8530f2ca3dbdc7b7',
viewmodule: 'Base',
......@@ -29,9 +20,9 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'aa79d35850f36fbc1a5085353ecd5af5',
'7b487e231caf16a33620396ad7c90634',
'a95d7d9111bc13a8b73a11ee1e4ff92a',
'893e62d6fbdc4580de7e3e802aec9108',
'31f2ad06ced735d250dfa5f309b5aea4',
'a5213905238dbc5d8e1a505029105cc9',
],
},
......@@ -290,6 +281,19 @@ export const viewstate: any = {
'c7d0ca0f6fa1b27bbd1b5c422d1a108d',
],
},
{
viewtag: '31f2ad06ced735d250dfa5f309b5aea4',
viewmodule: 'Base',
viewname: 'AccountInfo_All',
viewaction: '',
viewdatachange: false,
refviews: [
'8b806fb12589b2fc17d1bb90f4b5422e',
'29bfcd628ab25e297248ff0524d12908',
'90cb61421b72cbc76f75360deffde218',
'688201ee5642d41628dbf4deba002d17',
],
},
{
viewtag: '3a665de6a3970b95fde436c0fea4b1df',
viewmodule: 'Service',
......@@ -554,16 +558,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '7b487e231caf16a33620396ad7c90634',
viewmodule: 'Service',
viewname: 'IBizServiceGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'0027cf632b1ee99cb364d2b6aa2b6511',
],
},
{
viewtag: '7b7560b6d508b7bb0447d3204ed1c8be',
viewmodule: 'Marketing',
......
......@@ -79,8 +79,6 @@ export default class IBizServiceUIServiceBase extends UIService {
* @memberof IBizServiceUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizservices'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizservices'});
}
/**
......
因为 它太大了无法显示 源差异 。您可以改为 查看blob
/**
* Info_All 部件模型
*
* @export
* @class Info_AllModel
*/
export default class Info_AllModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof Info_AllModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
{
name: 'srfupdatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srforikey',
},
{
name: 'srfkey',
prop: 'accountid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'accountname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'accountname',
prop: 'accountname',
dataType: 'TEXT',
},
{
name: 'telephone1',
prop: 'telephone1',
dataType: 'TEXT',
},
{
name: 'fax',
prop: 'fax',
dataType: 'TEXT',
},
{
name: 'websiteurl',
prop: 'websiteurl',
dataType: 'TEXT',
},
{
name: 'parentaccountname',
prop: 'parentaccountname',
dataType: 'PICKUPTEXT',
},
{
name: 'tickersymbol',
prop: 'tickersymbol',
dataType: 'TEXT',
},
{
name: 'customertypecode',
prop: 'customertypecode',
dataType: 'SSCODELIST',
},
{
name: 'defaultpricelevelname',
prop: 'defaultpricelevelname',
dataType: 'PICKUPTEXT',
},
{
name: 'industrycode',
prop: 'industrycode',
dataType: 'SSCODELIST',
},
{
name: 'sic',
prop: 'sic',
dataType: 'TEXT',
},
{
name: 'ownershipcode',
prop: 'ownershipcode',
dataType: 'SSCODELIST',
},
{
name: 'description',
prop: 'description',
dataType: 'TEXT',
},
{
name: 'address1_addressid',
prop: 'address1_addressid',
dataType: 'TEXT',
},
{
name: 'address1_name',
prop: 'address1_name',
dataType: 'TEXT',
},
{
name: 'address1_addresstypecode',
prop: 'address1_addresstypecode',
dataType: 'SSCODELIST',
},
{
name: 'address1_country',
prop: 'address1_country',
dataType: 'TEXT',
},
{
name: 'address1_stateorprovince',
prop: 'address1_stateorprovince',
dataType: 'TEXT',
},
{
name: 'address1_city',
prop: 'address1_city',
dataType: 'TEXT',
},
{
name: 'address1_county',
prop: 'address1_county',
dataType: 'TEXT',
},
{
name: 'address1_line1',
prop: 'address1_line1',
dataType: 'TEXT',
},
{
name: 'address1_fax',
prop: 'address1_fax',
dataType: 'TEXT',
},
{
name: 'address1_freighttermscode',
prop: 'address1_freighttermscode',
dataType: 'SSCODELIST',
},
{
name: 'address1_postalcode',
prop: 'address1_postalcode',
dataType: 'TEXT',
},
{
name: 'preferredcontactmethodcode',
prop: 'preferredcontactmethodcode',
dataType: 'SSCODELIST',
},
{
name: 'donotemail',
prop: 'donotemail',
dataType: 'YESNO',
},
{
name: 'donotbulkemail',
prop: 'donotbulkemail',
dataType: 'YESNO',
},
{
name: 'donotphone',
prop: 'donotphone',
dataType: 'YESNO',
},
{
name: 'donotfax',
prop: 'donotfax',
dataType: 'YESNO',
},
{
name: 'donotpostalmail',
prop: 'donotpostalmail',
dataType: 'YESNO',
},
{
name: 'defaultpricelevelid',
prop: 'defaultpricelevelid',
dataType: 'PICKUP',
},
{
name: 'parentaccountid',
prop: 'parentaccountid',
dataType: 'PICKUP',
},
{
name: 'accountid',
prop: 'accountid',
dataType: 'GUID',
},
{
name: 'account',
prop: 'accountid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import AccountService from '@/service/account/account-service';
import Info_AllModel from './info-all-form-model';
import PriceLevelService from '@/service/price-level/price-level-service';
/**
* Info_All 部件服务对象
*
* @export
* @class Info_AllService
*/
export default class Info_AllService extends ControlService {
/**
* 客户服务对象
*
* @type {AccountService}
* @memberof Info_AllService
*/
public appEntityService: AccountService = new AccountService({ $store: this.getStore() });
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof Info_AllService
*/
public setTempMode(){
this.isTempMode = false;
}
/**
* Creates an instance of Info_AllService.
*
* @param {*} [opts={}]
* @memberof Info_AllService
*/
constructor(opts: any = {}) {
super(opts);
this.model = new Info_AllModel();
}
/**
* 价目表服务对象
*
* @type {PriceLevelService}
* @memberof Info_AllService
*/
public pricelevelService: PriceLevelService = new PriceLevelService();
/**
* 处理数据
*
* @private
* @param {Promise<any>} promise
* @returns {Promise<any>}
* @memberof Info_AllService
*/
private doItems(promise: Promise<any>, deKeyField: string, deName: string): Promise<any> {
return new Promise((resolve, reject) => {
promise.then((response: any) => {
if (response && response.status === 200) {
const data = response.data;
data.forEach((item:any,index:number) =>{
item[deName] = item[deKeyField];
data[index] = item;
});
resolve(data);
} else {
reject([])
}
}).catch((response: any) => {
reject([])
});
});
}
/**
* 获取跨实体数据集合
*
* @param {string} serviceName 服务名称
* @param {string} interfaceName 接口名称
* @param {*} data
* @param {boolean} [isloading]
* @returns {Promise<any[]>}
* @memberof Info_AllService
*/
@Errorlog
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
if (Object.is(serviceName, 'AccountService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.appEntityService.FetchDefault(JSON.parse(JSON.stringify(context)), data, isloading), 'accountid', 'account');
}
if (Object.is(serviceName, 'PriceLevelService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.pricelevelService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'pricelevelid', 'pricelevel');
}
return Promise.reject([])
}
/**
* 启动工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public wfstart(action: string,context: any = {},data: any = {}, isloading?: boolean,localdata?:any): Promise<any> {
data = this.handleWFData(data);
context = this.handleRequestData(action,context,data).context;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](context,data, isloading,localdata);
} else {
result = this.appEntityService.WFStart(context,data, isloading,localdata);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 提交工作流
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @param {*} [localdata]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public wfsubmit(action: string,context: any = {}, data: any = {}, isloading?: boolean,localdata?:any): Promise<any> {
data = this.handleWFData(data,true);
context = this.handleRequestData(action,context,data).context;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](context,data, isloading,localdata);
} else {
result = this.appEntityService.WFSubmit(context,data, isloading,localdata);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 添加数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Create(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 删除数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public delete(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Remove(Context,Data, isloading);
}
result.then((response) => {
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 修改数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public update(action: string, context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Update(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 查询数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public get(action: string,context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.Get(Context,Data, isloading);
}
result.then((response) => {
this.handleResponse(action, response);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 加载草稿
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public loadDraft(action: string,context: any = {}, data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
//仿真主键数据
const PrimaryKey = Util.createUUID();
Data.accountid = PrimaryKey;
Data.account = PrimaryKey;
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
result = this.appEntityService.GetDraft(Context,Data, isloading);
}
result.then((response) => {
response.data.accountid = PrimaryKey;
this.handleResponse(action, response, true);
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 前台逻辑
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof Info_AllService
*/
@Errorlog
public frontLogic(action:string,context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
return new Promise((resolve: any, reject: any)=>{
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
} else {
return Promise.reject({ status: 500, data: { title: '失败', message: '系统异常' } });
}
result.then((response) => {
this.handleResponse(action, response,true);
resolve(response);
}).catch(response => {
reject(response);
});
})
}
/**
* 处理请求数据
*
* @param action 行为
* @param data 数据
* @memberof Info_AllService
*/
public handleRequestData(action: string,context:any, data: any = {}){
let mode: any = this.getMode();
if (!mode && mode.getDataItems instanceof Function) {
return data;
}
let formItemItems: any[] = mode.getDataItems();
let requestData:any = {};
formItemItems.forEach((item:any) =>{
if(item && item.dataType && Object.is(item.dataType,'FONTKEY')){
if(item && item.prop){
requestData[item.prop] = context[item.name];
}
}else{
if(item && item.prop){
requestData[item.prop] = data[item.name];
}
}
});
if(data && data.viewparams){
Object.assign(requestData,data.viewparams);
}
let tempContext:any = JSON.parse(JSON.stringify(context));
if(tempContext && tempContext.srfsessionid){
tempContext.srfsessionkey = tempContext.srfsessionid;
delete tempContext.srfsessionid;
}
return {context:tempContext,data:requestData};
}
}
\ No newline at end of file
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import Info_AllBase from './info-all-form-base.vue';
@Component({
components: {
}
})
export default class Info_All extends Info_AllBase {
}
</script>
\ No newline at end of file
......@@ -7,7 +7,7 @@
</span>
</p>
<div class="portlet-with-title">
<ibiz-service-grid-view :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></ibiz-service-grid-view>
<account-info-all :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></account-info-all>
</div>
</div>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册