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

chitanda 发布系统代码

上级 7018448f
...@@ -239,6 +239,16 @@ ...@@ -239,6 +239,16 @@
"viewtag": "2e9c7792c3a728896ca8902634f71983", "viewtag": "2e9c7792c3a728896ca8902634f71983",
"memo": "" "memo": ""
}, },
"ibizlistinfo_abstract": {
"title": "市场营销列表编辑视图",
"caption": "市场营销列表",
"viewtype": "DEEDITVIEW",
"viewmodule": "Marketing",
"viewname": "IBizListInfo_Abstract",
"viewfilename": "ibiz-list-info-abstract",
"viewtag": "2eba43abd437c023437f1f2effb1fccb",
"memo": ""
},
"salesliteratureeditview": { "salesliteratureeditview": {
"title": "salesliterature编辑视图", "title": "salesliterature编辑视图",
"caption": "销售宣传资料", "caption": "销售宣传资料",
......
...@@ -42,6 +42,10 @@ export default { ...@@ -42,6 +42,10 @@ export default {
gridview: { gridview: {
caption: "市场营销列表", caption: "市场营销列表",
title: 'list表格视图', title: 'list表格视图',
},
info_abstract: {
caption: "市场营销列表",
title: '市场营销列表编辑视图',
}, },
quickcreate: { quickcreate: {
caption: "快速新建", caption: "快速新建",
...@@ -97,6 +101,32 @@ export default { ...@@ -97,6 +101,32 @@ export default {
uiactions: { uiactions: {
}, },
}, },
abstractinfo_form: {
details: {
group1: "市场营销列表基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "列表",
srfmajortext: "名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
listname: "名称",
type: "类型",
purpose: "用途",
membertype: "目标对象",
source: "来源",
transactioncurrencyname: "货币",
cost: "成本",
owneridyominame: "负责人",
description: "说明",
listid: "列表",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "list基本信息", group1: "list基本信息",
......
...@@ -41,6 +41,10 @@ export default { ...@@ -41,6 +41,10 @@ export default {
gridview: { gridview: {
caption: '市场营销列表', caption: '市场营销列表',
title: 'list表格视图', title: 'list表格视图',
},
info_abstract: {
caption: '市场营销列表',
title: '市场营销列表编辑视图',
}, },
quickcreate: { quickcreate: {
caption: '快速新建', caption: '快速新建',
...@@ -96,6 +100,32 @@ export default { ...@@ -96,6 +100,32 @@ export default {
uiactions: { uiactions: {
}, },
}, },
abstractinfo_form: {
details: {
group1: '市场营销列表基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '列表',
srfmajortext: '名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
listname: '名称',
type: '类型',
purpose: '用途',
membertype: '目标对象',
source: '来源',
transactioncurrencyname: '货币',
cost: '成本',
owneridyominame: '负责人',
description: '说明',
listid: '列表',
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: 'list基本信息', group1: 'list基本信息',
......
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "客户", entity2name: "客户",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
srfdeid: '', srfdeid: '',
srfsourcekey: '', srfsourcekey: '',
entity2name: '客户', entity2name: '客户',
entity2id: '客户',
relationshipsid: '关系标识', relationshipsid: '关系标识',
}, },
uiactions: { uiactions: {
......
...@@ -199,6 +199,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -199,6 +199,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountInfo", "viewname": "AccountInfo",
"viewtag": "2e9c7792c3a728896ca8902634f71983" "viewtag": "2e9c7792c3a728896ca8902634f71983"
}, },
"ibizlistinfo_abstract": {
"title": "市场营销列表编辑视图",
"caption": "市场营销列表",
"viewtype": "DEEDITVIEW",
"viewmodule": "Marketing",
"viewname": "IBizListInfo_Abstract",
"viewtag": "2eba43abd437c023437f1f2effb1fccb"
},
"salesliteratureeditview": { "salesliteratureeditview": {
"title": "salesliterature编辑视图", "title": "salesliterature编辑视图",
"caption": "销售宣传资料", "caption": "销售宣传资料",
......
...@@ -80,6 +80,7 @@ export default class IBizListUIServiceBase extends UIService { ...@@ -80,6 +80,7 @@ export default class IBizListUIServiceBase extends UIService {
*/ */
public initViewMap(){ public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizlists'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizlists'});
this.allViewMap.set(':',{viewname:'info_abstract',srfappde:'ibizlists'});
this.allViewMap.set(':',{viewname:'quickcreate',srfappde:'ibizlists'}); this.allViewMap.set(':',{viewname:'quickcreate',srfappde:'ibizlists'});
this.allViewMap.set(':',{viewname:'summary',srfappde:'ibizlists'}); this.allViewMap.set(':',{viewname:'summary',srfappde:'ibizlists'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizlists'}); this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizlists'});
......
...@@ -51,41 +51,6 @@ ...@@ -51,41 +51,6 @@
<el-table-column></el-table-column> <el-table-column></el-table-column>
</template> </template>
</el-table> </el-table>
<row class='grid-pagination' v-show="items.length > 0">
<page class='pull-right' @on-change="pageOnChange($event)"
@on-page-size-change="onPageSizeChange($event)"
:transfer="true" :total="totalrow"
show-sizer :current="curPage" :page-size="limit"
:page-size-opts="[10, 20, 30, 40, 50, 60, 70, 80, 90, 100]" show-elevator show-total>
<span>
<span class="page-column">
<poptip transfer placement="top-start">
<i-button icon="md-menu">{{$t('app.gridpage.choicecolumns')}}</i-button>
<div slot="content">
<template v-for="col in allColumns">
<div :key="col.name"><el-checkbox v-model="col.show" @change="onColChange()">{{$t(col.langtag)}}</el-checkbox></div>
</template>
</div>
</poptip>
</span>
<span v-if="selections.length > 0" class="batch-toolbar">
</span>
<span class="page-button"><i-button icon="md-refresh" :title="$t('app.gridpage.refresh')" @click="pageRefresh()"></i-button></span>&nbsp;
<span>
{{$t('app.gridpage.show')}}&nbsp;
<span>
<template v-if="items.length === 1">
1
</template>
<template v-else>
<span>{{(curPage - 1) * limit + 1}}&nbsp;-&nbsp;{{totalrow > curPage * limit ? curPage * limit : totalrow}}</span>
</template>
</span>&nbsp;
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}&nbsp;{{totalrow}}&nbsp;{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form> </i-form>
</div> </div>
</template> </template>
...@@ -323,7 +288,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface { ...@@ -323,7 +288,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {boolean} * @type {boolean}
* @memberof InnerPickip * @memberof InnerPickip
*/ */
public isEnablePagingBar: boolean = true; public isEnablePagingBar: boolean = false;
/** /**
* 是否禁用排序 * 是否禁用排序
...@@ -355,7 +320,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface { ...@@ -355,7 +320,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {number} * @type {number}
* @memberof InnerPickip * @memberof InnerPickip
*/ */
public limit: number = 20; public limit: number = 60;
/** /**
* 是否显示标题 * 是否显示标题
...@@ -363,7 +328,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface { ...@@ -363,7 +328,7 @@ export default class InnerPickipBase extends Vue implements ControlInterface {
* @type {boolean} * @type {boolean}
* @memberof InnerPickip * @memberof InnerPickip
*/ */
public isHideHeader: boolean = false; public isHideHeader: boolean = true;
/** /**
* 是否默认选中第一条数据 * 是否默认选中第一条数据
......
...@@ -9,21 +9,24 @@ ...@@ -9,21 +9,24 @@
<i-col v-show="detailsModel.entity2name.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.entity2name.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='entity2name' :itemRules="this.rules.entity2name" class='' :caption="$t('entities.listaccount.quickcreatebylist_form.details.entity2name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entity2name.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='entity2name' :itemRules="this.rules.entity2name" class='' :caption="$t('entities.listaccount.quickcreatebylist_form.details.entity2name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entity2name.error" :isEmptyCaption="false" labelPos="LEFT">
<app-embed-picker <app-picker-select-view
:formState="formState" :formState="formState"
:data="JSON.stringify(this.data)" :data="data"
:context="context" :context="context"
:viewparams="viewparams" :viewparams="viewparams"
:ignorefieldvaluechange="ignorefieldvaluechange"
:value="data.entity2name"
name="entity2name"
:localContext ='{ }' :localContext ='{ }'
:localParam ='{ }' :localParam ='{ }'
valueItem='' :disabled="detailsModel.entity2name.disabled"
refviewname="account-inner-pickup-view" name='entity2name'
@formitemvaluechange="onFormItemValueChange" deMajorField='accountname'
style=""> deKeyField='account'
</app-embed-picker> :service="service"
valueitem='entity2id'
:value="data.entity2name"
:pickupView="{ viewname: 'account-inner-pickup-view', title: $t('entities.account.views.innerpickupview.title'), deResParameters: [], parameters: [{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'innerpickupview', parameterName: 'innerpickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker-select-view>
</app-form-item> </app-form-item>
...@@ -340,6 +343,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -340,6 +343,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfdeid: null, srfdeid: null,
srfsourcekey: null, srfsourcekey: null,
entity2name: null, entity2name: null,
entity2id: null,
relationshipsid: null, relationshipsid: null,
listaccount:null, listaccount:null,
}; };
...@@ -437,6 +441,12 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -437,6 +441,12 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
], ],
entity2id: [
{ type: 'string', message: '客户 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '客户 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
],
relationshipsid: [ relationshipsid: [
{ type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'blur' },
...@@ -473,6 +483,8 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -473,6 +483,8 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
entity2name: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) entity2name: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity2id: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
relationshipsid: new FormItemModel({ caption: '关系标识', detailType: 'FORMITEM', name: 'relationshipsid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) relationshipsid: new FormItemModel({ caption: '关系标识', detailType: 'FORMITEM', name: 'relationshipsid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -586,6 +598,18 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -586,6 +598,18 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
this.formDataChange({ name: 'entity2name', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'entity2name', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 entity2id 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreateByList
*/
@Watch('data.entity2id')
onEntity2idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'entity2id', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 relationshipsid 值 * 监控表单属性 relationshipsid 值
* *
...@@ -646,6 +670,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -646,6 +670,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
} }
/** /**
......
...@@ -60,6 +60,11 @@ export default class QuickCreateByListModel { ...@@ -60,6 +60,11 @@ export default class QuickCreateByListModel {
prop: 'entity2name', prop: 'entity2name',
dataType: 'PICKUPTEXT', dataType: 'PICKUPTEXT',
}, },
{
name: 'entity2id',
prop: 'entity2id',
dataType: 'PICKUP',
},
{ {
name: 'relationshipsid', name: 'relationshipsid',
prop: 'relationshipsid', prop: 'relationshipsid',
......
...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils'; ...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service'; import ControlService from '@/widgets/control-service';
import ListAccountService from '@/service/list-account/list-account-service'; import ListAccountService from '@/service/list-account/list-account-service';
import QuickCreateByListModel from './quick-create-by-list-form-model'; import QuickCreateByListModel from './quick-create-by-list-form-model';
import AccountService from '@/service/account/account-service';
/** /**
...@@ -41,6 +42,14 @@ export default class QuickCreateByListService extends ControlService { ...@@ -41,6 +42,14 @@ export default class QuickCreateByListService extends ControlService {
this.model = new QuickCreateByListModel(); this.model = new QuickCreateByListModel();
} }
/**
* 客户服务对象
*
* @type {AccountService}
* @memberof QuickCreateByListService
*/
public accountService: AccountService = new AccountService();
/** /**
* 处理数据 * 处理数据
* *
...@@ -80,6 +89,9 @@ export default class QuickCreateByListService extends ControlService { ...@@ -80,6 +89,9 @@ export default class QuickCreateByListService extends ControlService {
*/ */
@Errorlog @Errorlog
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> { 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.accountService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'accountid', 'account');
}
return Promise.reject([]) return Promise.reject([])
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册