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

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

上级 aeed3399
......@@ -1343,6 +1343,14 @@
"viewname": "IBIZOrderZDYTPGridView",
"viewtag": "e2a1c9cb077cd2c74f2f2b914fb1db84"
},
"ibizcustomerusr2editview": {
"title": "客户编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerUsr2EditView",
"viewtag": "e2b5e2bcaa091e21a16f620e0225ba7f"
},
"ibizhardwareeditview": {
"title": "硬件编辑视图",
"caption": "硬件",
......@@ -1375,6 +1383,14 @@
"viewname": "IBIZSample0003SF5EditView",
"viewtag": "e57dd501c75c6933363fa245edcadbbd"
},
"ibizcustomerusr2gridview": {
"title": "客户表格视图",
"caption": "客户",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerUsr2GridView",
"viewtag": "e6b66fea4568c66355729271ffc9d59f"
},
"ibizordersgridview2": {
"title": "订单表格视图",
"caption": "订单",
......
......@@ -304,6 +304,7 @@ export default {
menuitem106: "示例实体03示例数据补充",
menuitem113: "订单类型添加",
menuitem124: "示例实体01数据补充",
menuitem144: "客户实体示例数据补充",
},
},
formpage:{
......
......@@ -304,6 +304,7 @@ export default {
menuitem106: "示例实体03示例数据补充",
menuitem113: "订单类型添加",
menuitem124: "示例实体01数据补充",
menuitem144: "客户实体示例数据补充",
},
},
formpage:{
......
......@@ -20,6 +20,14 @@ export default {
caption: "客户",
title: "客户编辑视图",
},
usr2editview: {
caption: "客户",
title: "客户编辑视图",
},
usr2gridview: {
caption: "客户",
title: "客户表格视图",
},
pickupview: {
caption: "客户",
title: "客户数据选择视图",
......@@ -53,6 +61,26 @@ export default {
uiactions: {
},
},
adddataform_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户标识",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizcustomername: "客户名称",
address: "公司地址",
ibizcustomerid: "客户标识",
customeruid: "客户编号",
},
uiactions: {
},
},
main_grid: {
columns: {
customeruid: "客户编号",
......@@ -65,6 +93,18 @@ export default {
uiactions: {
},
},
adddatagrid_grid: {
columns: {
customeruid: "客户编号",
ibizcustomername: "客户名称",
address: "公司地址",
updateman: "更新人",
updatedate: "更新时间",
},
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "",
......@@ -82,4 +122,16 @@ export default {
tip: "Save And Close Window",
},
},
usr2gridviewtoolbar_toolbar: {
},
usr2editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
},
};
\ No newline at end of file
......@@ -19,6 +19,14 @@ export default {
caption: "客户",
title: "客户编辑视图",
},
usr2editview: {
caption: "客户",
title: "客户编辑视图",
},
usr2gridview: {
caption: "客户",
title: "客户表格视图",
},
pickupview: {
caption: "客户",
title: "客户数据选择视图",
......@@ -52,6 +60,26 @@ export default {
uiactions: {
},
},
adddataform_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户标识",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
ibizcustomername: "客户名称",
address: "公司地址",
ibizcustomerid: "客户标识",
customeruid: "客户编号",
},
uiactions: {
},
},
main_grid: {
columns: {
customeruid: "客户编号",
......@@ -64,6 +92,18 @@ export default {
uiactions: {
},
},
adddatagrid_grid: {
columns: {
customeruid: "客户编号",
ibizcustomername: "客户名称",
address: "公司地址",
updateman: "更新人",
updatedate: "更新时间",
},
nodata:"",
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "",
......@@ -81,4 +121,16 @@ export default {
tip: "保存并关闭",
},
},
usr2gridviewtoolbar_toolbar: {
},
usr2editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
},
};
\ No newline at end of file
......@@ -2601,6 +2601,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls: '',
appfunctag: 'AppFunc44',
resourcetag: '',
},
{
id: '3287DF24-5178-48EE-9F2E-179F508AD8C0',
name: 'menuitem144',
text: '客户实体示例数据补充',
type: 'MENUITEM',
counterid: '',
tooltip: '客户实体示例数据补充',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc62',
resourcetag: '',
},
],
},
......
......@@ -1351,6 +1351,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZOrderZDYTPGridView",
"viewtag": "e2a1c9cb077cd2c74f2f2b914fb1db84"
},
"ibizcustomerusr2editview": {
"title": "客户编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerUsr2EditView",
"viewtag": "e2b5e2bcaa091e21a16f620e0225ba7f"
},
"ibizhardwareeditview": {
"title": "硬件编辑视图",
"caption": "硬件",
......@@ -1383,6 +1391,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZSample0003SF5EditView",
"viewtag": "e57dd501c75c6933363fa245edcadbbd"
},
"ibizcustomerusr2gridview": {
"title": "客户表格视图",
"caption": "客户",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Sample",
"viewname": "IBIZCustomerUsr2GridView",
"viewtag": "e6b66fea4568c66355729271ffc9d59f"
},
"ibizordersgridview2": {
"title": "订单表格视图",
"caption": "订单",
......
.view-card {
>.ivu-card-extra {
top: 5px;
right: 0px;
}
}
.ibizcustomer-usr2-edit-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomerUsr2EditViewBase from './ibizcustomer-usr2-edit-view-base.vue';
import view_form from '@widgets/ibizcustomer/add-data-form-form/add-data-form-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZCustomerUsr2EditView extends IBIZCustomerUsr2EditViewBase {
}
</script>
\ No newline at end of file
.ibizcustomer-usr2-grid-view{
position: relative;
}
.toolbar-container {
button {
margin: 6px 0px 4px 4px;
.caption {
margin-left: 4px;
}
}
.seperator {
color: #dcdee2;
margin: 0 0px 0 4px;
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBIZCustomerUsr2GridViewBase from './ibizcustomer-usr2-grid-view-base.vue';
import view_grid from '@widgets/ibizcustomer/add-data-grid-grid/add-data-grid-grid.vue';
import view_searchform from '@widgets/ibizcustomer/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
if(!Object.is(vm.navModel,"route")){
vm.initNavDataWithTab(vm.viewCacheData);
}
vm.$store.commit('addCurPageViewtag', { fullPath: to.fullPath, viewtag: vm.viewtag });
});
},
})
export default class IBIZCustomerUsr2GridView extends IBIZCustomerUsr2GridViewBase {
}
</script>
\ No newline at end of file
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('ibizsample0001-sf6-edit-view', () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'));
Vue.component('ibizcustomer-usr2-grid-view', () => import('@pages/sample/ibizcustomer-usr2-grid-view/ibizcustomer-usr2-grid-view.vue'));
Vue.component('ibizsample0003-smpickup-view2', () => import('@pages/sample/ibizsample0003-smpickup-view2/ibizsample0003-smpickup-view2.vue'));
Vue.component('ibizorder-detail-sedit-view9', () => import('@pages/sample/ibizorder-detail-sedit-view9/ibizorder-detail-sedit-view9.vue'));
Vue.component('ibizorder-detail-smedit-view9', () => import('@pages/sample/ibizorder-detail-smedit-view9/ibizorder-detail-smedit-view9.vue'));
......@@ -67,6 +68,7 @@ export const PageComponents = {
Vue.component('ibizorder-detail-grid-view', () => import('@pages/sample/ibizorder-detail-grid-view/ibizorder-detail-grid-view.vue'));
Vue.component('ibizorder-sf2-edit-view', () => import('@pages/sample/ibizorder-sf2-edit-view/ibizorder-sf2-edit-view.vue'));
Vue.component('ibizorder-s2-edit-view', () => import('@pages/sample/ibizorder-s2-edit-view/ibizorder-s2-edit-view.vue'));
Vue.component('ibizcustomer-usr2-edit-view', () => import('@pages/sample/ibizcustomer-usr2-edit-view/ibizcustomer-usr2-edit-view.vue'));
Vue.component('ibizorder-zdytpgrid-view', () => import('@pages/sample/ibizorder-zdytpgrid-view/ibizorder-zdytpgrid-view.vue'));
Vue.component('ibizorder-usr2-edit-view', () => import('@pages/sample/ibizorder-usr2-edit-view/ibizorder-usr2-edit-view.vue'));
Vue.component('ibizorder-sf4-edit-view', () => import('@pages/sample/ibizorder-sf4-edit-view/ibizorder-sf4-edit-view.vue'));
......
......@@ -64,6 +64,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0001-sf6-edit-view/ibizsample0001-sf6-edit-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/usr2gridview/:usr2gridview?',
meta: {
caption: 'entities.ibizcustomer.views.usr2gridview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-usr2-grid-view/ibizcustomer-usr2-grid-view.vue'),
},
{
path: 'ibizsample0003s/:ibizsample0003?/smpickupview2/:smpickupview2?',
meta: {
......@@ -1123,6 +1137,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-s2-edit-view/ibizorder-s2-edit-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/usr2editview/:usr2editview?',
meta: {
caption: 'entities.ibizcustomer.views.usr2editview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-usr2-edit-view/ibizcustomer-usr2-edit-view.vue'),
},
{
path: 'ibizorders/:ibizorder?/zdytpgridview/:zdytpgridview?',
meta: {
......@@ -4767,6 +4795,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizorder-zdytpgrid-view/ibizorder-zdytpgrid-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/usr2editview/:usr2editview?',
meta: {
caption: 'entities.ibizcustomer.views.usr2editview.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2editview', parameterName: 'usr2editview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-usr2-edit-view/ibizcustomer-usr2-edit-view.vue'),
},
{
path: '/ibizhardwares/:ibizhardware?/editview/:editview?',
meta: {
......@@ -4819,6 +4860,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizsample0003-sf5-edit-view/ibizsample0003-sf5-edit-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/usr2gridview/:usr2gridview?',
meta: {
caption: 'entities.ibizcustomer.views.usr2gridview.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-usr2-grid-view/ibizcustomer-usr2-grid-view.vue'),
},
{
path: '/ibizorders/:ibizorder?/sgridview2/:sgridview2?',
meta: {
......
......@@ -183,6 +183,7 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'b09ceb3081717c0ed4fe19f9986598a0',
'e6b66fea4568c66355729271ffc9d59f',
'7a8b6138e5893e7aba3b1a5deb3b3036',
'0c1093afa96df2832f707495afec541e',
'7d37165f2f535b4a6d2116188fe83d18',
......@@ -1595,6 +1596,15 @@ export const viewstate: any = {
'f4cda6703c800c075704c5af5e58f2fc',
],
},
{
viewtag: 'e2b5e2bcaa091e21a16f620e0225ba7f',
viewmodule: 'Sample',
viewname: 'IBIZCustomerUsr2EditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'e30db3af513fb7b7bf44a8744ed5f7a4',
viewmodule: 'Sample',
......@@ -1635,6 +1645,16 @@ export const viewstate: any = {
'df462fabce815005a40debffad2f43e6',
],
},
{
viewtag: 'e6b66fea4568c66355729271ffc9d59f',
viewmodule: 'Sample',
viewname: 'IBIZCustomerUsr2GridView',
viewaction: '',
viewdatachange: false,
refviews: [
'e2b5e2bcaa091e21a16f620e0225ba7f',
],
},
{
viewtag: 'e7441fa67d425df343d996c745fb5d6b',
viewmodule: 'Sample',
......
......@@ -98,6 +98,8 @@ export default class IBIZCustomerUIServiceBase extends UIService {
public initViewMap(){
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-grid-view'});
this.allViewMap.set(':',{viewname:'editview',srfappde:'ibizcustomers',component:'ibizcustomer-edit-view'});
this.allViewMap.set(':',{viewname:'usr2editview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-edit-view'});
this.allViewMap.set(':',{viewname:'usr2gridview',srfappde:'ibizcustomers',component:'ibizcustomer-usr2-grid-view'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'ibizcustomers',component:'ibizcustomer-pickup-view'});
}
......
......@@ -599,6 +599,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'Auto406':
this.clickAuto406(item);
return;
case 'AppFunc62':
this.clickAppFunc62(item);
return;
case 'AppFunc13':
this.clickAppFunc13(item);
return;
......@@ -1478,6 +1481,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 客户实体示例数据补充
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc62(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'usr2gridview', parameterName: 'usr2gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
if(Object.is(this.$route.fullPath,path)){
return;
}
this.$nextTick(function(){
this.$router.push(path);
})
}
/**
* 图书列表(代码表分组)
*
......
......@@ -2746,6 +2746,25 @@ export default class MainMenuModel {
appfunctag: 'AppFunc44',
resourcetag: '',
authtag:'Web-MainMenu-menuitem124',
},
{
id: '3287DF24-5178-48EE-9F2E-179F508AD8C0',
name: 'menuitem144',
text: '客户实体示例数据补充',
type: 'MENUITEM',
counterid: '',
tooltip: '客户实体示例数据补充',
expanded: false,
separator: false,
hidden: false,
hidesidebar: false,
opendefault: false,
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'AppFunc62',
resourcetag: '',
authtag:'Web-MainMenu-menuitem144',
},
],
},
......
/**
* AddDataForm 部件模型
*
* @export
* @class AddDataFormModel
*/
export default class AddDataFormModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof AddDataFormModel
*/
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: 'ibizcustomerid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'ibizcustomername',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'ibizcustomername',
prop: 'ibizcustomername',
dataType: 'TEXT',
},
{
name: 'address',
prop: 'address',
dataType: 'TEXT',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
dataType: 'GUID',
},
{
name: 'customeruid',
prop: 'customeruid',
dataType: 'TEXT',
},
{
name: 'ibizcustomer',
prop: 'ibizcustomerid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册