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

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

上级 07e770f8
......@@ -2895,7 +2895,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'Auto29',
appfunctag: 'AppFunc88',
resourcetag: '',
},
{
......
.ibizbookexport-and-import-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 IBIZBOOKExportAndImportGridViewBase from './ibizbookexport-and-import-grid-view-base.vue';
import view_grid from '@widgets/ibizbook/expor-and-import-grid-grid/expor-and-import-grid-grid.vue';
@Component({
components: {
view_grid,
},
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 IBIZBOOKExportAndImportGridView extends IBIZBOOKExportAndImportGridViewBase {
}
</script>
\ No newline at end of file
......@@ -65,7 +65,6 @@ export const PageComponents = {
Vue.component('ibizsample0017-f30-edit-view', () => import('@pages/sample/ibizsample0017-f30-edit-view/ibizsample0017-f30-edit-view.vue'));
Vue.component('ibizorder-grid-exp-view', () => import('@pages/sample/ibizorder-grid-exp-view/ibizorder-grid-exp-view.vue'));
Vue.component('ibizsample0003-f2-tree-exp-view', () => import('@pages/sample/ibizsample0003-f2-tree-exp-view/ibizsample0003-f2-tree-exp-view.vue'));
Vue.component('ibizorder-sf15-grid-view', () => import('@pages/sample/ibizorder-sf15-grid-view/ibizorder-sf15-grid-view.vue'));
Vue.component('ibizorder-usr2-chart-view', () => import('@pages/sample/ibizorder-usr2-chart-view/ibizorder-usr2-chart-view.vue'));
Vue.component('ibizorder-edit-view', () => import('@pages/sample/ibizorder-edit-view/ibizorder-edit-view.vue'));
Vue.component('ibizorder-data-view-exp-view', () => import('@pages/sample/ibizorder-data-view-exp-view/ibizorder-data-view-exp-view.vue'));
......@@ -101,6 +100,7 @@ export const PageComponents = {
Vue.component('ibizbookusr4-data-view', () => import('@pages/sample/ibizbookusr4-data-view/ibizbookusr4-data-view.vue'));
Vue.component('micro-component-edit-view', () => import('@pages/sample/micro-component-edit-view/micro-component-edit-view.vue'));
Vue.component('ibizorder-area-chart-view', () => import('@pages/sample/ibizorder-area-chart-view/ibizorder-area-chart-view.vue'));
Vue.component('ibizbookexport-and-import-grid-view', () => import('@pages/sample/ibizbookexport-and-import-grid-view/ibizbookexport-and-import-grid-view.vue'));
Vue.component('ibizorder-sf20-grid-view', () => import('@pages/sample/ibizorder-sf20-grid-view/ibizorder-sf20-grid-view.vue'));
Vue.component('ibizorder-calendar-exp-view', () => import('@pages/sample/ibizorder-calendar-exp-view/ibizorder-calendar-exp-view.vue'));
Vue.component('ibizorder-grid-view9', () => import('@pages/sample/ibizorder-grid-view9/ibizorder-grid-view9.vue'));
......@@ -108,7 +108,6 @@ export const PageComponents = {
Vue.component('ibizbookusr2-list-view', () => import('@pages/sample/ibizbookusr2-list-view/ibizbookusr2-list-view.vue'));
Vue.component('ibizorder-f9-edit-view', () => import('@pages/sample/ibizorder-f9-edit-view/ibizorder-f9-edit-view.vue'));
Vue.component('ibizbookrules-edit-view', () => import('@pages/sample/ibizbookrules-edit-view/ibizbookrules-edit-view.vue'));
Vue.component('ibizorder-detail-f6-grid-view', () => import('@pages/sample/ibizorder-detail-f6-grid-view/ibizorder-detail-f6-grid-view.vue'));
Vue.component('ibizsample0001-usr3-grid-view', () => import('@pages/sample/ibizsample0001-usr3-grid-view/ibizsample0001-usr3-grid-view.vue'));
Vue.component('ibizorder-wfstart-view', () => import('@pages/sample/ibizorder-wfstart-view/ibizorder-wfstart-view.vue'));
Vue.component('ibizsample0003-f4-tree-exp-view', () => import('@pages/sample/ibizsample0003-f4-tree-exp-view/ibizsample0003-f4-tree-exp-view.vue'));
......@@ -138,9 +137,7 @@ export const PageComponents = {
Vue.component('ibizhardware-grid-view9', () => import('@pages/sample/ibizhardware-grid-view9/ibizhardware-grid-view9.vue'));
Vue.component('ibizorder-sf3-edit-view', () => import('@pages/sample/ibizorder-sf3-edit-view/ibizorder-sf3-edit-view.vue'));
Vue.component('ibizcustomer-usr2-mpickup-view', () => import('@pages/sample/ibizcustomer-usr2-mpickup-view/ibizcustomer-usr2-mpickup-view.vue'));
Vue.component('ibizorder-f13-edit-view', () => import('@pages/sample/ibizorder-f13-edit-view/ibizorder-f13-edit-view.vue'));
Vue.component('ibizcustomer-pickup-tree-view', () => import('@pages/sample/ibizcustomer-pickup-tree-view/ibizcustomer-pickup-tree-view.vue'));
Vue.component('ibizorder-detail-f6-edit-view', () => import('@pages/sample/ibizorder-detail-f6-edit-view/ibizorder-detail-f6-edit-view.vue'));
Vue.component('ibizbookusr4-grid-view', () => import('@pages/sample/ibizbookusr4-grid-view/ibizbookusr4-grid-view.vue'));
Vue.component('ibizbookusr2-medit-view9', () => import('@pages/sample/ibizbookusr2-medit-view9/ibizbookusr2-medit-view9.vue'));
Vue.component('app-portal-view', () => import('@pages/ungroup/app-portal-view/app-portal-view.vue'));
......
......@@ -231,7 +231,6 @@ export const viewstate: any = {
'5ccbd78fe47300a160915d6398b59604',
'5f21463b9d808170d4023d8402cc6e9e',
'd9f9f0dede285235e3d0ad5101188d1e',
'ffedffb9c57cb200c275ba15e9100da4',
'502736ae9280400d7b8f74f057d363ab',
'1ee924c4a616343b6b4cd42150b799fa',
'41d3da0d37fb0135ace813f1ba06bd39',
......@@ -256,6 +255,7 @@ export const viewstate: any = {
'10e721a882036c8c012f35d2a6b00237',
'd8a6379b9ddbd161045a288aba0890b6',
'd1f311d51e800e95e9b10c49a8b49b5a',
'28e0ba8bf7d5467c21c6f84b114e255f',
'f94df735642ce85ebb2fe3816c4dc77b',
'a682806a2655b566842d5495e43a06f3',
'ac9add3724d90fba46e7298ac051fa5f',
......@@ -376,6 +376,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '28e0ba8bf7d5467c21c6f84b114e255f',
viewmodule: 'Sample',
viewname: 'IBIZBOOKExportAndImportGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: '2985fa795f2812f76c5d56f2b8825b91',
viewmodule: 'Sample',
......@@ -445,18 +455,6 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '2cd3a77cbd2aad4551b7a6a009419d52',
viewmodule: 'Sample',
viewname: 'IBIZOrderF13EditView',
viewaction: '',
viewdatachange: false,
refviews: [
'f7ce60a7707de1ef9f926b3f9d5d6954',
'd1ee943cf3137dc4d57ad59aa8c4b8cb',
'2640aa1ca02649c8831b43023d449945',
],
},
{
viewtag: '2dd64fdd5e7303cc73090d949bc91d9b',
viewmodule: 'Sample',
......@@ -505,17 +503,6 @@ export const viewstate: any = {
'b3429ecc4d89a02bc5f5279f1bd7f620',
],
},
{
viewtag: '3562240da550261dc3bb5554603bc5be',
viewmodule: 'Sample',
viewname: 'IBIZOrderDetailF6EditView',
viewaction: '',
viewdatachange: false,
refviews: [
'17770b42972334457baccfe91828bd46',
'ec6cfd868c34a036250a813b24068519',
],
},
{
viewtag: '36763886cbec62729dca4d4b8dad8161',
viewmodule: 'Sample',
......@@ -1553,16 +1540,6 @@ export const viewstate: any = {
'0d9d3edf2d060a859fa7f2e206556730',
],
},
{
viewtag: 'd1ee943cf3137dc4d57ad59aa8c4b8cb',
viewmodule: 'Sample',
viewname: 'IBIZOrderDetailF6GridView',
viewaction: '',
viewdatachange: false,
refviews: [
'3562240da550261dc3bb5554603bc5be',
],
},
{
viewtag: 'd1f311d51e800e95e9b10c49a8b49b5a',
viewmodule: 'Sample',
......@@ -1961,16 +1938,6 @@ export const viewstate: any = {
'ef58fa6d7d250a60a7907ed895681ea1',
],
},
{
viewtag: 'ffedffb9c57cb200c275ba15e9100da4',
viewmodule: 'Sample',
viewname: 'IBIZOrderSF15GridView',
viewaction: '',
viewdatachange: false,
refviews: [
'2cd3a77cbd2aad4551b7a6a009419d52',
],
},
{
viewtag: '06E447F9-1AF8-464F-8F47-39CFC64B9A21',
viewmodule: 'Ungroup',
......
......@@ -647,9 +647,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc27':
this.clickAppFunc27(item);
return;
case 'Auto29':
this.clickAuto29(item);
return;
case 'AppFunc70':
this.clickAppFunc70(item);
return;
......@@ -695,6 +692,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case 'AppFunc35':
this.clickAppFunc35(item);
return;
case 'AppFunc88':
this.clickAppFunc88(item);
return;
case 'AppFunc16':
this.clickAppFunc16(item);
return;
......@@ -1367,29 +1367,6 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 导出导入
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAuto29(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf15gridview', parameterName: 'sf15gridview' },
];
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);
})
}
/**
* 自定义扩展编辑器
*
......@@ -1735,6 +1712,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 数据导入和导出
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public clickAppFunc88(item: any = {}) {
const viewparam: any = {};
Object.assign(viewparam, {});
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'exportandimportgridview', parameterName: 'exportandimportgridview' },
];
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);
})
}
/**
* 功能名称
*
......
......@@ -3055,7 +3055,7 @@ export default class MainMenuModel {
iconcls: '',
icon: '',
textcls: '',
appfunctag: 'Auto29',
appfunctag: 'AppFunc88',
resourcetag: '',
authtag:'Web-MainMenu-menuitem46',
},
......@@ -3689,18 +3689,6 @@ export default class MainMenuModel {
{ pathName: 'haspanelkanbanview', parameterName: 'haspanelkanbanview' },
],
},
{
appfunctag: 'Auto29',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibizordersf15gridview',
deResParameters: [],
routepath: '/index/:index?/ibizorders/:ibizorder?/sf15gridview/:sf15gridview?',
parameters: [
{ pathName: 'ibizorders', parameterName: 'ibizorder' },
{ pathName: 'sf15gridview', parameterName: 'sf15gridview' },
],
},
{
appfunctag: 'AppFunc70',
appfuncyype: 'APPVIEW',
......@@ -3881,6 +3869,18 @@ export default class MainMenuModel {
{ pathName: 'usr2chartview', parameterName: 'usr2chartview' },
],
},
{
appfunctag: 'AppFunc88',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'ibizbookexportandimportgridview',
deResParameters: [],
routepath: '/index/:index?/ibizbooks/:ibizbook?/exportandimportgridview/:exportandimportgridview?',
parameters: [
{ pathName: 'ibizbooks', parameterName: 'ibizbook' },
{ pathName: 'exportandimportgridview', parameterName: 'exportandimportgridview' },
],
},
{
appfunctag: 'AppFunc16',
appfuncyype: 'APPVIEW',
......
/**
* ExporAndImportGrid 部件模型
*
* @export
* @class ExporAndImportGridModel
*/
export default class ExporAndImportGridModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof ExporAndImportGridGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof ExporAndImportGridGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'ibizbookname',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'ibizbookid',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'updateman',
prop: 'updateman',
dataType: 'TEXT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'srfmstag',
},
{
name: 'srfmajortext',
prop: 'ibizbookname',
dataType: 'TEXT',
},
{
name: 'srfdataaccaction',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'srfkey',
prop: 'ibizbookid',
dataType: 'GUID',
isEditable:true
},
{
name: 'ibizbook',
prop: 'ibizbookid',
},
{
name:'size',
prop:'size',
dataType: 'QUERYPARAM'
},
{
name:'query',
prop:'query',
dataType: 'QUERYPARAM'
},
{
name:'filter',
prop:'filter',
dataType: 'QUERYPARAM'
},
{
name:'page',
prop:'page',
dataType: 'QUERYPARAM'
},
{
name:'sort',
prop:'sort',
dataType: 'QUERYPARAM'
},
{
name:'srfparentdata',
prop:'srfparentdata',
dataType: 'QUERYPARAM'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
}
\ No newline at end of file
.grid {
flex-grow: 1;
height: 100%;
overflow: auto;
.el-table__body-wrapper::-webkit-scrollbar {
/*滚动条整体样式*/
width : 10px !important; /*高宽分别对应横竖滚动条的尺寸*/
height: 10px !important;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
/*滚动条颜色*/
border-radius : 10px !important;
background-color: #cecece !important;
}
.el-table__body-wrapper::-webkit-scrollbar-track {
/*滚动条里面轨道*/
box-shadow : inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
background : #ededed !important;
border-radius: 10px !important;
}
/*表格文字过长省略*/
.el-table th>.cell, .el-table td>.cell{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.el-table-column--selection .cell {
padding-left: 0px;
padding-right: 0px;
}
.app-column-link, .app-format-data{
display: inline;
}
.el-table {
height: 100%;
display:flex;
flex-direction: column;
justify-content: flex-start;
.el-table__row{
.grid-uiaction-divider {
padding:0 10px 0 10px;
border-left: 1px #b3b3b3 solid;
}
.grid-first-uiaction {
padding:0 10px 0 10px;
}
}
.quick-toolbar{
display: inline-block;
button{
background: #ebf3fb;
color: #2575ca;
border: 0;
}
}
.el-tooltip{
.ivu-form-item{
margin-bottom: unset !important;
}
}
.el-table__body .edit-cell{
padding:0;
.app-form-item{
margin-top: 20px;
margin-bottom: 20px;
}
}
.el-table__header-wrapper{
min-height: 45px;
max-height: 100px;
height: auto;
}
.el-table__footer-wrapper{
min-height: 45px;
max-height: 100px;
height: auto;
}
}
.grid-pagination {
height: 50px;
padding: 6px 0px;
.page-button {
button {
padding: 0;
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
}
}
.page-column {
position: absolute;
left: 0;
}
.batch-toolbar{
position: absolute;
left: 105px;
>.toolbar-container{
button {
font-size: 16px;
min-width: 32px;
height: 32px;
margin-right: 4px;
margin-top: 0;
margin-bottom: 0;
}
}
}
}
}
.ivu-modal-content{
.footer{
.ivu-row{
text-align: right;
}
}
}
.cell-indeterminate {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:before {
content: "";
position: absolute;
display: block;
background-color: #fff;
height: 2px;
transform: scale(.5);
left: 0;
right: 0;
top: 5px;
}
}
>span.is-checked {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
border: 0px;
}
}
}
}
.cell-select-all {
>div>label {
>span {
.el-checkbox__inner {
background-color: #409eff;
border-color: #409eff;
}
.el-checkbox__inner:after {
box-sizing: content-box;
content: "";
border: 1px solid #fff;
border-left: 0;
border-top: 0;
height: 7px;
left: 4px;
position: absolute;
top: 1px;
transform: rotate(45deg) scaleY(1);
width: 3px;
transition: transform .15s ease-in .05s;
transform-origin: center;
}
}
}
}
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ExporAndImportGridBase from './expor-and-import-grid-grid-base.vue';
@Component({
components: {
}
})
export default class ExporAndImportGrid extends ExporAndImportGridBase {
}
</script>
\ No newline at end of file
......@@ -901,7 +901,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF15GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSGridView2'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(pageReset){
......@@ -991,7 +991,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF15GridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSGridView2'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
}
let _datas:any[] = [];
......@@ -1096,7 +1096,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public addBatch(arg: any = {}): void {
if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF15GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSGridView2'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
}
if(!arg){
......@@ -1142,69 +1142,6 @@ export default class MainBase extends Vue implements ControlInterface {
});
}
/**
* 所有导出列成员
*
* @type {any[]}
* @memberof MainBase
*/
public allExportColumns: any[] = [
{
name: 'orderuid',
label: '订单编号',
langtag: 'entities.ibizorder.main_grid.exportColumns.orderuid',
show: true,
},
{
name: 'ibizordername',
label: '订单名称',
langtag: 'entities.ibizorder.main_grid.exportColumns.ibizordername',
show: true,
},
{
name: 'ibizcustomername',
label: '客户名称',
langtag: 'entities.ibizorder.main_grid.exportColumns.ibizcustomername',
show: true,
},
{
name: 'ordertype',
label: '订单类型',
langtag: 'entities.ibizorder.main_grid.exportColumns.ordertype',
show: true,
},
{
name: 'ordertime',
label: '订单时间',
langtag: 'entities.ibizorder.main_grid.exportColumns.ordertime',
show: true,
},
{
name: 'orderstate',
label: '订单状态',
langtag: 'entities.ibizorder.main_grid.exportColumns.orderstate',
show: true,
},
{
name: 'detailnum',
label: '明细数',
langtag: 'entities.ibizorder.main_grid.exportColumns.detailnum',
show: true,
},
{
name: 'amount',
label: '总计',
langtag: 'entities.ibizorder.main_grid.exportColumns.amount',
show: true,
},
{
name: 'updatedate',
label: '更新时间',
langtag: 'entities.ibizorder.main_grid.exportColumns.updatedate',
show: true,
},
]
/**
* 数据导出
......@@ -1217,7 +1154,7 @@ export default class MainBase extends Vue implements ControlInterface {
const doExport = async (_data:any) => {
const tHeader: Array<any> = [];
const filterVal: Array<any> = [];
this.allExportColumns.forEach((item: any) => {
this.allColumns.forEach((item: any) => {
item.show && item.label ? tHeader.push(this.$t(item.langtag)) : "";
item.show && item.name ? filterVal.push(item.name) : "";
});
......@@ -1237,7 +1174,12 @@ export default class MainBase extends Vue implements ControlInterface {
if (Object.is(data.type, 'maxRowCount')) {
Object.assign(page, { page: 0, size: data.maxRowCount });
} else if (Object.is(data.type, 'activatedPage')) {
Object.assign(page, { page: this.curPage-1, size: this.limit });
try {
doExport(JSON.parse(JSON.stringify(this.items)));
} catch (error) {
console.error(error);
}
return;
}
// 设置排序
if (!this.isNoSort && !Object.is(this.minorSortDir, '') && !Object.is(this.minorSortPSDEF, '')) {
......@@ -1250,7 +1192,7 @@ export default class MainBase extends Vue implements ControlInterface {
const parentdata: any = {};
this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata);
const post: Promise<any> = this.service.searchDEExportData(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
const post: Promise<any> = this.service.search(this.fetchAction,JSON.parse(JSON.stringify(this.context)), arg, this.showBusyIndicator);
post.then((response: any) => {
if (!response || response.status !== 200) {
this.$Notice.error({ title: '', desc: (this.$t('app.gridpage.exportFail') as string)+',' + response.info });
......@@ -1281,17 +1223,17 @@ export default class MainBase extends Vue implements ControlInterface {
public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [
{
name: 'ordertype',
srfkey: 'ORDERTYPE',
codelistType : 'DYNAMIC',
name: 'orderstate',
srfkey: 'ORDERSTATE',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'orderstate',
srfkey: 'ORDERSTATE',
codelistType : 'STATIC',
name: 'ordertype',
srfkey: 'ORDERTYPE',
codelistType : 'DYNAMIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
......@@ -2048,7 +1990,7 @@ export default class MainBase extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF15GridView'+(this.$t('app.gridpage.notConfig.createAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSGridView2'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
......@@ -2056,7 +1998,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF15GridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSGridView2'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){
......@@ -2123,7 +2065,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF15GridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSGridView2'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return;
}
let _this = this;
......
......@@ -256,38 +256,6 @@ export default class MainService extends ControlService {
});
}
/**
* 查询实体导出数据
*
* @param {string} action
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MainService
*/
@Errorlog
public searchDEExportData(action: string,context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data,true);
return new Promise((resolve: any, reject: any) => {
const _appEntityService: any = this.appEntityService;
let result: Promise<any>;
if (_appEntityService[action] && _appEntityService[action] instanceof Function) {
result = _appEntityService[action](Context,Data, isloading);
}else{
result =_appEntityService.FetchDefault(Context,Data, isloading);
}
result.then((response) => {
let model: any = this.getMode();
model.isDEExport = true;
this.handleResponse(action, response);
model.isDEExport = false;
resolve(response);
}).catch(response => {
reject(response);
});
});
}
/**
* 加载草稿
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册