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

lab_gzf 发布系统代码

上级 dc3f8f8e
<studio-view-style2 viewName="invoicedetaileditview" viewTitle="发票产品编辑视图" class='deeditview invoice-detail-edit-view'>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<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>
\ No newline at end of file
<template src="./invoice-detail-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { InvoiceDetailEditViewBase } from './invoice-detail-edit-view-base';
import view_form from '@widgets/invoice-detail/main-form/main-form.vue';
/**
* 发票产品编辑视图视图
*
* @export
* @class InvoiceDetailEditView
* @extends {InvoiceDetailEditViewBase}
*/
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class InvoiceDetailEditView extends InvoiceDetailEditViewBase { }
</script>
<studio-view-style2 viewName="invoicedetailinvoiceprogridview" viewTitle="发票产品表格视图" class='degridview invoice-detail-invoice-pro-grid-view'>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata"
:opendata="opendata"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./invoice-detail-invoice-pro-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { InvoiceDetailInvoiceProGridViewBase } from './invoice-detail-invoice-pro-grid-view-base';
import view_grid from '@widgets/invoice-detail/invoice-product-grid-grid/invoice-product-grid-grid.vue';
import view_searchform from '@widgets/invoice-detail/default-searchform/default-searchform.vue';
/**
* 发票产品表格视图视图
*
* @export
* @class InvoiceDetailInvoiceProGridView
* @extends {InvoiceDetailInvoiceProGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class InvoiceDetailInvoiceProGridView extends InvoiceDetailInvoiceProGridViewBase { }
</script>
......@@ -471,16 +471,28 @@ export class InvoiceGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'invoices', parameterName: 'invoice' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
}
openIndexViewTab(data);
const view: any = {
viewname: 'invoice-quick-create-view',
height: 0,
width: 0,
title: this.$t('entities.invoice.views.quickcreateview.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
......@@ -505,7 +517,7 @@ export class InvoiceGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'invoices', parameterName: 'invoice' },
{ pathName: 'editview', parameterName: 'editview' },
{ pathName: 'infoview', parameterName: 'infoview' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
......
import { Subject } from 'rxjs';
import { EditViewBase } from '@/studio-core';
import InvoiceService from '@/service/invoice/invoice-service';
import EditViewEngine from '@engine/view/edit-view-engine';
/**
* 发票编辑视图视图基类
*
* @export
* @class InvoiceInfo_InvoiceViewBase
* @extends {EditViewBase}
*/
export class InvoiceInfo_InvoiceViewBase extends EditViewBase {
/**
* 实体服务对象
*
* @type {InvoiceService}
* @memberof InvoiceInfo_InvoiceViewBase
*/
protected appEntityService: InvoiceService = new InvoiceService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof InvoiceInfo_InvoiceViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof InvoiceInfo_InvoiceViewBase
*/
protected model: any = {
srfCaption: 'entities.invoice.views.info_invoiceview.caption',
srfTitle: 'entities.invoice.views.info_invoiceview.title',
srfSubTitle: 'entities.invoice.views.info_invoiceview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof InvoiceInfo_InvoiceViewBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'e167550b61bf1bd019a8e522b8fccc21';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof InvoiceInfo_InvoiceViewBase
*/
public engine: EditViewEngine = new EditViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof InvoiceInfo_InvoiceViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'invoice',
majorPSDEField: 'invoicename',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof InvoiceInfo_InvoiceViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof InvoiceInfo_InvoiceViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof InvoiceInfo_InvoiceViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="invoiceinfo_invoiceview" viewTitle="发票编辑视图" class='deeditview invoice-info-invoice-view'>
<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>
\ No newline at end of file
<template src="./invoice-info-invoice-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { InvoiceInfo_InvoiceViewBase } from './invoice-info-invoice-view-base';
import view_form from '@widgets/invoice/info-form/info-form.vue';
/**
* 发票编辑视图视图
*
* @export
* @class InvoiceInfo_InvoiceView
* @extends {InvoiceInfo_InvoiceViewBase}
*/
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class InvoiceInfo_InvoiceView extends InvoiceInfo_InvoiceViewBase { }
</script>
import { Subject } from 'rxjs';
import { TabExpViewBase } from '@/studio-core';
import InvoiceService from '@/service/invoice/invoice-service';
import TabExpViewEngine from '@engine/view/tab-exp-view-engine';
/**
* 发票信息视图基类
*
* @export
* @class InvoiceInfoViewBase
* @extends {TabExpViewBase}
*/
export class InvoiceInfoViewBase extends TabExpViewBase {
/**
* 实体服务对象
*
* @type {InvoiceService}
* @memberof InvoiceInfoViewBase
*/
protected appEntityService: InvoiceService = new InvoiceService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof InvoiceInfoViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof InvoiceInfoViewBase
*/
protected model: any = {
srfCaption: 'entities.invoice.views.infoview.caption',
srfTitle: 'entities.invoice.views.infoview.title',
srfSubTitle: 'entities.invoice.views.infoview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof InvoiceInfoViewBase
*/
protected containerModel: any = {
view_tabexppanel: { name: 'tabexppanel', type: 'TABEXPPANEL' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'ab653866ca40a1cefde21241ac5ba44c';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof InvoiceInfoViewBase
*/
public engine: TabExpViewEngine = new TabExpViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof InvoiceInfoViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
keyPSDEField: 'invoice',
majorPSDEField: 'invoicename',
isLoadDefault: true,
});
}
/**
* 加载模型
*
* @memberof InvoiceInfoViewBase
*/
public async loadModel(): Promise<void> {
if(this.context.invoice){
this.appEntityService.getDataInfo(JSON.parse(JSON.stringify(this.context)),{},false).then((response:any) =>{
if (!response || response.status !== 200) {
return;
}
const { data: _data } = response;
if (_data.invoicename) {
Object.assign(this.model, { dataInfo: _data.invoicename });
if(this.$tabPageExp){
let _this:any = this;
this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfTitle), _this.$t(this.model.srfTitle), _this.model.dataInfo);
}
if(this.$route){
this.$route.meta.info = this.model.dataInfo;
}
Object.assign(this.model, { srfTitle: `${this.$t(this.model.srfTitle)} - ${this.model.dataInfo}` });
}
})
}
}
}
\ No newline at end of file
<studio-view-style2 viewName="invoiceinfoview" viewTitle="发票信息" class='detabexpview invoice-info-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_tabexppanel
:viewState="viewState"
:viewparams="viewparams"
:context="context"
name="tabexppanel"
ref='tabexppanel'
@closeview="closeView($event)">
</view_tabexppanel>
</studio-view-style2>
\ No newline at end of file
<template src="./invoice-info-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { InvoiceInfoViewBase } from './invoice-info-view-base';
import view_tabexppanel from '@widgets/invoice/info-viewtabexppanel-tabexppanel/info-viewtabexppanel-tabexppanel.vue';
/**
* 发票信息视图
*
* @export
* @class InvoiceInfoView
* @extends {InvoiceInfoViewBase}
*/
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class InvoiceInfoView extends InvoiceInfoViewBase { }
</script>
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import InvoiceService from '@/service/invoice/invoice-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 快速新建视图基类
*
* @export
* @class InvoiceQuickCreateViewBase
* @extends {OptionViewBase}
*/
export class InvoiceQuickCreateViewBase extends OptionViewBase {
/**
* 实体服务对象
*
* @type {InvoiceService}
* @memberof InvoiceQuickCreateViewBase
*/
protected appEntityService: InvoiceService = new InvoiceService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof InvoiceQuickCreateViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof InvoiceQuickCreateViewBase
*/
protected model: any = {
srfCaption: 'entities.invoice.views.quickcreateview.caption',
srfTitle: 'entities.invoice.views.quickcreateview.title',
srfSubTitle: 'entities.invoice.views.quickcreateview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof InvoiceQuickCreateViewBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '0fc09bf520af62b4d89aef845fc72636';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof InvoiceQuickCreateViewBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof InvoiceQuickCreateViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'invoice',
majorPSDEField: 'invoicename',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof InvoiceQuickCreateViewBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof InvoiceQuickCreateViewBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof InvoiceQuickCreateViewBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="invoicequickcreateview" viewTitle="快速新建" class='deoptview invoice-quick-create-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<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>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./invoice-quick-create-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { InvoiceQuickCreateViewBase } from './invoice-quick-create-view-base';
import view_form from '@widgets/invoice/quick-create-form/quick-create-form.vue';
/**
* 快速新建视图
*
* @export
* @class InvoiceQuickCreateView
* @extends {InvoiceQuickCreateViewBase}
*/
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class InvoiceQuickCreateView extends InvoiceQuickCreateViewBase { }
</script>
import { Subject } from 'rxjs';
import { DashboardViewBase } from '@/studio-core';
import InvoiceService from '@/service/invoice/invoice-service';
import PortalViewEngine from '@engine/view/portal-view-engine';
/**
* 发票数据看板视图视图基类
*
* @export
* @class InvoiceSummaryViewBase
* @extends {DashboardViewBase}
*/
export class InvoiceSummaryViewBase extends DashboardViewBase {
/**
* 实体服务对象
*
* @type {InvoiceService}
* @memberof InvoiceSummaryViewBase
*/
protected appEntityService: InvoiceService = new InvoiceService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof InvoiceSummaryViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof InvoiceSummaryViewBase
*/
protected model: any = {
srfCaption: 'entities.invoice.views.summaryview.caption',
srfTitle: 'entities.invoice.views.summaryview.title',
srfSubTitle: 'entities.invoice.views.summaryview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof InvoiceSummaryViewBase
*/
protected containerModel: any = {
view_dashboard: { name: 'dashboard', type: 'DASHBOARD' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '77ef5d53fe0cadbe03c9d2f9d25c804b';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof InvoiceSummaryViewBase
*/
public engine: PortalViewEngine = new PortalViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof InvoiceSummaryViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
dashboard: this.$refs.dashboard,
keyPSDEField: 'invoice',
majorPSDEField: 'invoicename',
isLoadDefault: true,
});
}
/**
* dashboard 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof InvoiceSummaryViewBase
*/
public dashboard_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('dashboard', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="invoicesummaryview" viewTitle="发票数据看板视图" class='deportalview invoice-summary-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_dashboard
:viewState="viewState"
:viewparams="viewparams"
:context="JSON.parse(JSON.stringify(context))"
:isEnableCustomized = "false"
name="dashboard"
ref='dashboard'
@load="dashboard_load($event)"
@closeview="closeView($event)">
</view_dashboard>
</studio-view-style2>
\ No newline at end of file
<template src="./invoice-summary-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { InvoiceSummaryViewBase } from './invoice-summary-view-base';
import view_dashboard from '@widgets/invoice/board-dashboard/board-dashboard.vue';
/**
* 发票数据看板视图视图
*
* @export
* @class InvoiceSummaryView
* @extends {InvoiceSummaryViewBase}
*/
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class InvoiceSummaryView extends InvoiceSummaryViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupGridViewBase } from '@/studio-core';
import SalesOrderService from '@/service/sales-order/sales-order-service';
import PickupGridViewEngine from '@engine/view/pickup-grid-view-engine';
/**
* 订单选择表格视图视图基类
*
* @export
* @class SalesOrderPickupGridViewBase
* @extends {PickupGridViewBase}
*/
export class SalesOrderPickupGridViewBase extends PickupGridViewBase {
/**
* 实体服务对象
*
* @type {SalesOrderService}
* @memberof SalesOrderPickupGridViewBase
*/
protected appEntityService: SalesOrderService = new SalesOrderService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof SalesOrderPickupGridViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof SalesOrderPickupGridViewBase
*/
protected model: any = {
srfCaption: 'entities.salesorder.views.pickupgridview.caption',
srfTitle: 'entities.salesorder.views.pickupgridview.title',
srfSubTitle: 'entities.salesorder.views.pickupgridview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof SalesOrderPickupGridViewBase
*/
protected containerModel: any = {
view_grid: { name: 'grid', type: 'GRID' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'c78a9fa4a75c9a957de0bacd4c0c911c';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof SalesOrderPickupGridViewBase
*/
public engine: PickupGridViewEngine = new PickupGridViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof SalesOrderPickupGridViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
grid: this.$refs.grid,
searchform: this.$refs.searchform,
keyPSDEField: 'salesorder',
majorPSDEField: 'salesordername',
isLoadDefault: true,
});
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupGridViewBase
*/
public grid_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'selectionchange', $event);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupGridViewBase
*/
public grid_beforeload($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'beforeload', $event);
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupGridViewBase
*/
public grid_rowdblclick($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'rowdblclick', $event);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupGridViewBase
*/
public grid_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('grid', 'load', $event);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupGridViewBase
*/
public searchform_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupGridViewBase
*/
public searchform_search($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupGridViewBase
*/
public searchform_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 是否展开搜索表单
*
* @protected
* @type {boolean}
* @memberof SalesOrderPickupGridViewBase
*/
protected isExpandSearchForm: boolean = true;
}
\ No newline at end of file
<studio-view-style2 viewName="salesorderpickupgridview" viewTitle="订单选择表格视图" class='depickupgridview sales-order-pickup-grid-view'>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:showBusyIndicator="true"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./sales-order-pickup-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { SalesOrderPickupGridViewBase } from './sales-order-pickup-grid-view-base';
import view_grid from '@widgets/sales-order/main-grid/main-grid.vue';
import view_searchform from '@widgets/sales-order/default-searchform/default-searchform.vue';
/**
* 订单选择表格视图视图
*
* @export
* @class SalesOrderPickupGridView
* @extends {SalesOrderPickupGridViewBase}
*/
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class SalesOrderPickupGridView extends SalesOrderPickupGridViewBase { }
</script>
import { Subject } from 'rxjs';
import { PickupViewBase } from '@/studio-core';
import SalesOrderService from '@/service/sales-order/sales-order-service';
import PickupViewEngine from '@engine/view/pickup-view-engine';
/**
* 订单数据选择视图视图基类
*
* @export
* @class SalesOrderPickupViewBase
* @extends {PickupViewBase}
*/
export class SalesOrderPickupViewBase extends PickupViewBase {
/**
* 实体服务对象
*
* @type {SalesOrderService}
* @memberof SalesOrderPickupViewBase
*/
protected appEntityService: SalesOrderService = new SalesOrderService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof SalesOrderPickupViewBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof SalesOrderPickupViewBase
*/
protected model: any = {
srfCaption: 'entities.salesorder.views.pickupview.caption',
srfTitle: 'entities.salesorder.views.pickupview.title',
srfSubTitle: 'entities.salesorder.views.pickupview.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof SalesOrderPickupViewBase
*/
protected containerModel: any = {
view_pickupviewpanel: { name: 'pickupviewpanel', type: 'PICKUPVIEWPANEL' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = 'f6f91153f3caa976cf7f552636f7e012';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof SalesOrderPickupViewBase
*/
public engine: PickupViewEngine = new PickupViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof SalesOrderPickupViewBase
*/
public engineInit(): void {
this.engine.init({
view: this,
pickupviewpanel: this.$refs.pickupviewpanel,
keyPSDEField: 'salesorder',
majorPSDEField: 'salesordername',
isLoadDefault: true,
});
}
/**
* pickupviewpanel 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupViewBase
*/
public pickupviewpanel_selectionchange($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'selectionchange', $event);
}
/**
* pickupviewpanel 部件 activated 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupViewBase
*/
public pickupviewpanel_activated($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'activated', $event);
}
/**
* pickupviewpanel 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof SalesOrderPickupViewBase
*/
public pickupviewpanel_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('pickupviewpanel', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="salesorderpickupview" viewTitle="订单数据选择视图" class='depickupview sales-order-pickup-view'>
<div class="content-container pickup-view">
<view_pickupviewpanel
:viewState="viewState"
:viewparams="JSON.parse(JSON.stringify(viewparams))"
:context="JSON.parse(JSON.stringify(context))"
:isSingleSelect="isSingleSelect"
:selectedData="selectedData"
:isShowButton="isShowButton"
name="pickupviewpanel"
ref='pickupviewpanel'
@selectionchange="pickupviewpanel_selectionchange($event)"
@activated="pickupviewpanel_activated($event)"
@load="pickupviewpanel_load($event)"
@closeview="closeView($event)">
</view_pickupviewpanel>
</div>
<template slot="footer">
<div v-if="isShowButton" :style="{ textAlign: 'right' }">
<i-button type="primary" :disabled="this.viewSelections.length > 0 ? false : true" @click="onClickOk.apply(_self, arguments)">{{this.containerModel.view_okbtn.text}}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{this.containerModel.view_cancelbtn.text}}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./sales-order-pickup-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { SalesOrderPickupViewBase } from './sales-order-pickup-view-base';
import view_pickupviewpanel from '@widgets/sales-order/pickup-viewpickupviewpanel-pickupviewpanel/pickup-viewpickupviewpanel-pickupviewpanel.vue';
/**
* 订单数据选择视图视图
*
* @export
* @class SalesOrderPickupView
* @extends {SalesOrderPickupViewBase}
*/
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
}
})
@VueLifeCycleProcessing()
export default class SalesOrderPickupView extends SalesOrderPickupViewBase { }
</script>
......@@ -2,6 +2,7 @@ export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('account-gradation', () => import('@pages/base/account-gradation/account-gradation.vue'));
Vue.component('account-quick-create', () => import('@pages/base/account-quick-create/account-quick-create.vue'));
Vue.component('invoice-info-invoice-view', () => import('@pages/finance/invoice-info-invoice-view/invoice-info-invoice-view.vue'));
Vue.component('list-account-by-list', () => import('@pages/marketing/list-account-by-list/list-account-by-list.vue'));
Vue.component('competitor-option-view', () => import('@pages/sales/competitor-option-view/competitor-option-view.vue'));
Vue.component('campaign-response-by-parent-key', () => import('@pages/marketing/campaign-response-by-parent-key/campaign-response-by-parent-key.vue'));
......@@ -44,6 +45,7 @@ export const PageComponents = {
Vue.component('contact-info-abstract', () => import('@pages/base/contact-info-abstract/contact-info-abstract.vue'));
Vue.component('opportunity-info-abstract', () => import('@pages/sales/opportunity-info-abstract/opportunity-info-abstract.vue'));
Vue.component('list-contact-edit-view', () => import('@pages/marketing/list-contact-edit-view/list-contact-edit-view.vue'));
Vue.component('invoice-detail-edit-view', () => import('@pages/finance/invoice-detail-edit-view/invoice-detail-edit-view.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('lead-info-company', () => import('@pages/sales/lead-info-company/lead-info-company.vue'));
......@@ -58,6 +60,7 @@ export const PageComponents = {
Vue.component('sales-order-quick-create-view', () => import('@pages/sales/sales-order-quick-create-view/sales-order-quick-create-view.vue'));
Vue.component('lead-quick-create', () => import('@pages/sales/lead-quick-create/lead-quick-create.vue'));
Vue.component('price-level-pickup-view', () => import('@pages/product/price-level-pickup-view/price-level-pickup-view.vue'));
Vue.component('invoice-summary-view', () => import('@pages/finance/invoice-summary-view/invoice-summary-view.vue'));
Vue.component('opportunity-edit-view', () => import('@pages/sales/opportunity-edit-view/opportunity-edit-view.vue'));
Vue.component('lead-info-contact', () => import('@pages/sales/lead-info-contact/lead-info-contact.vue'));
Vue.component('competitor-grid-view', () => import('@pages/sales/competitor-grid-view/competitor-grid-view.vue'));
......@@ -77,7 +80,6 @@ export const PageComponents = {
Vue.component('sales-literature-grid-view', () => import('@pages/sales/sales-literature-grid-view/sales-literature-grid-view.vue'));
Vue.component('product-edit-view', () => import('@pages/product/product-edit-view/product-edit-view.vue'));
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'));
Vue.component('quote-option-view', () => import('@pages/sales/quote-option-view/quote-option-view.vue'));
Vue.component('campaign-edit-view', () => import('@pages/marketing/campaign-edit-view/campaign-edit-view.vue'));
Vue.component('opportunity-summary', () => import('@pages/sales/opportunity-summary/opportunity-summary.vue'));
......@@ -88,6 +90,7 @@ export const PageComponents = {
Vue.component('quote-summary', () => import('@pages/sales/quote-summary/quote-summary.vue'));
Vue.component('contact-pickup-grid-view', () => import('@pages/base/contact-pickup-grid-view/contact-pickup-grid-view.vue'));
Vue.component('list-account-edit-view', () => import('@pages/marketing/list-account-edit-view/list-account-edit-view.vue'));
Vue.component('invoice-detail-invoice-pro-grid-view', () => import('@pages/finance/invoice-detail-invoice-pro-grid-view/invoice-detail-invoice-pro-grid-view.vue'));
Vue.component('opportunity-info', () => import('@pages/sales/opportunity-info/opportunity-info.vue'));
Vue.component('transaction-currency-pickup-grid-view', () => import('@pages/base/transaction-currency-pickup-grid-view/transaction-currency-pickup-grid-view.vue'));
Vue.component('service-appointment-edit-view', () => import('@pages/service/service-appointment-edit-view/service-appointment-edit-view.vue'));
......@@ -98,18 +101,21 @@ export const PageComponents = {
Vue.component('uom-pickup-grid-view', () => import('@pages/base/uom-pickup-grid-view/uom-pickup-grid-view.vue'));
Vue.component('price-level-pickup-grid-view', () => import('@pages/product/price-level-pickup-grid-view/price-level-pickup-grid-view.vue'));
Vue.component('quote-opp-qua-grid-view', () => import('@pages/sales/quote-opp-qua-grid-view/quote-opp-qua-grid-view.vue'));
Vue.component('invoice-info-view', () => import('@pages/finance/invoice-info-view/invoice-info-view.vue'));
Vue.component('contact-by-account', () => import('@pages/base/contact-by-account/contact-by-account.vue'));
Vue.component('opportunity-list-exp-view', () => import('@pages/sales/opportunity-list-exp-view/opportunity-list-exp-view.vue'));
Vue.component('opportunity-opp-pro-dashboard-view', () => import('@pages/sales/opportunity-opp-pro-dashboard-view/opportunity-opp-pro-dashboard-view.vue'));
Vue.component('sales-literature-edit-view', () => import('@pages/sales/sales-literature-edit-view/sales-literature-edit-view.vue'));
Vue.component('ibiz-list-summary', () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'));
Vue.component('lead-dashboard-view', () => import('@pages/sales/lead-dashboard-view/lead-dashboard-view.vue'));
Vue.component('sales-order-pickup-grid-view', () => import('@pages/sales/sales-order-pickup-grid-view/sales-order-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'));
Vue.component('competitor-info', () => import('@pages/sales/competitor-info/competitor-info.vue'));
Vue.component('account-pickup-grid-view', () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue'));
Vue.component('lead-info', () => import('@pages/sales/lead-info/lead-info.vue'));
Vue.component('product-pickup-grid-view', () => import('@pages/product/product-pickup-grid-view/product-pickup-grid-view.vue'));
Vue.component('sales-order-pickup-view', () => import('@pages/sales/sales-order-pickup-view/sales-order-pickup-view.vue'));
Vue.component('list-lead-quick-create-by-list', () => import('@pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue'));
Vue.component('account-info', () => import('@pages/base/account-info/account-info.vue'));
Vue.component('lead-info-detail', () => import('@pages/sales/lead-info-detail/lead-info-detail.vue'));
......
......@@ -27,15 +27,6 @@ export const viewstate: any = {
'a5213905238dbc5d8e1a505029105cc9',
],
},
{
viewtag: '01c28e25ad9d42977cb91ee890731b64',
viewmodule: 'Finance',
viewname: 'InvoiceEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '0326a502bb574cddc41da4323786dcb5',
viewmodule: 'Base',
......@@ -116,6 +107,17 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '0fc09bf520af62b4d89aef845fc72636',
viewmodule: 'Finance',
viewname: 'InvoiceQuickCreateView',
viewaction: '',
viewdatachange: false,
refviews: [
'8b806fb12589b2fc17d1bb90f4b5422e',
'da3f8c1f20f440f3df54d6c13a8de586',
],
},
{
viewtag: '10c5d33db64f3a1bda18c7571a679438',
viewmodule: 'Marketing',
......@@ -262,6 +264,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '2bb0e34c7ae753e03404e4d96b17e90c',
viewmodule: 'Finance',
viewname: 'InvoiceDetailInvoiceProGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'485d1a17354fe57fd79dde512adb715b',
],
},
{
viewtag: '2c6be792e84450585986e22f75dffa52',
viewmodule: 'Marketing',
......@@ -467,6 +479,17 @@ export const viewstate: any = {
'a1b44c891ef0bbc073c82693d8489de6',
],
},
{
viewtag: '485d1a17354fe57fd79dde512adb715b',
viewmodule: 'Finance',
viewname: 'InvoiceDetailEditView',
viewaction: '',
viewdatachange: false,
refviews: [
'ba34ee36c1d0de288403607e17e7eb3e',
'd3692664b9e2e150526e1ce4b969f15b',
],
},
{
viewtag: '49dc1a714631338858cd0441f6c720ca',
viewmodule: 'Marketing',
......@@ -747,6 +770,20 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '77ef5d53fe0cadbe03c9d2f9d25c804b',
viewmodule: 'Finance',
viewname: 'InvoiceSummaryView',
viewaction: '',
viewdatachange: false,
refviews: [
'aa79d35850f36fbc1a5085353ecd5af5',
'e167550b61bf1bd019a8e522b8fccc21',
'a95d7d9111bc13a8b73a11ee1e4ff92a',
'893e62d6fbdc4580de7e3e802aec9108',
'a5213905238dbc5d8e1a505029105cc9',
],
},
{
viewtag: '7877d7e7e55fe21f48e8382e07579f33',
viewmodule: 'Sales',
......@@ -1161,6 +1198,17 @@ export const viewstate: any = {
'c7d0ca0f6fa1b27bbd1b5c422d1a108d',
],
},
{
viewtag: 'ab653866ca40a1cefde21241ac5ba44c',
viewmodule: 'Finance',
viewname: 'InvoiceInfoView',
viewaction: '',
viewdatachange: false,
refviews: [
'2bb0e34c7ae753e03404e4d96b17e90c',
'77ef5d53fe0cadbe03c9d2f9d25c804b',
],
},
{
viewtag: 'ad5b5579442b2a90900b62803059a029',
viewmodule: 'Sales',
......@@ -1347,6 +1395,15 @@ export const viewstate: any = {
'6c67094479c2f8af7ea1575eee584056',
],
},
{
viewtag: 'c78a9fa4a75c9a957de0bacd4c0c911c',
viewmodule: 'Sales',
viewname: 'SalesOrderPickupGridView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'c7d0ca0f6fa1b27bbd1b5c422d1a108d',
viewmodule: 'Marketing',
......@@ -1429,7 +1486,20 @@ export const viewstate: any = {
viewdatachange: false,
refviews: [
'0fc09bf520af62b4d89aef845fc72636',
'01c28e25ad9d42977cb91ee890731b64',
'ab653866ca40a1cefde21241ac5ba44c',
],
},
{
viewtag: 'e167550b61bf1bd019a8e522b8fccc21',
viewmodule: 'Finance',
viewname: 'InvoiceInfo_InvoiceView',
viewaction: '',
viewdatachange: false,
refviews: [
'8b806fb12589b2fc17d1bb90f4b5422e',
'f6f91153f3caa976cf7f552636f7e012',
'da3f8c1f20f440f3df54d6c13a8de586',
'6debde861c6e6f91eeb442cb869e9737',
],
},
{
......@@ -1498,6 +1568,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: 'f6f91153f3caa976cf7f552636f7e012',
viewmodule: 'Sales',
viewname: 'SalesOrderPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'c78a9fa4a75c9a957de0bacd4c0c911c',
],
},
{
viewtag: 'f84a705f33385d5999fcfb69124932d4',
viewmodule: 'Base',
......
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, SearchFormControlBase } from '@/studio-core';
import InvoiceDetailService from '@/service/invoice-detail/invoice-detail-service';
import DefaultService from './default-searchform-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
/**
* searchform部件基类
*
* @export
* @class SearchFormControlBase
* @extends {DefaultSearchFormBase}
*/
export class DefaultSearchFormBase extends SearchFormControlBase {
/**
* 建构部件服务对象
*
* @type {DefaultService}
* @memberof DefaultSearchFormBase
*/
public service: DefaultService = new DefaultService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {InvoiceDetailService}
* @memberof DefaultSearchFormBase
*/
public appEntityService: InvoiceDetailService = new InvoiceDetailService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof DefaultSearchFormBase
*/
protected appDeName: string = 'invoicedetail';
/**
* 表单数据对象
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public data: any = {
};
/**
* 详情模型集合
*
* @type {*}
* @memberof DefaultSearchFormBase
*/
public detailsModel: any = {
formpage1: new FormPageModel({ caption: '常规条件', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this })
,
};
}
\ No newline at end of file
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-search-form' ref='searchform' style="">
<input style="display:none;"/>
<div class="search-button">
<i-button size="small" type="primary" ghost @click="onSearch.apply(_self, arguments)">{{$t('app.searchButton.search')}}</i-button>
<i-button size="small" type="default" ghost @click="onReset.apply(_self, arguments)">{{this.$t('app.searchButton.reset')}}</i-button>
</div>
<div class="form-content">
</div>
</i-form>
\ No newline at end of file
<template src="./default-searchform.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { DefaultSearchFormBase } from './default-searchform-base';
/**
* searchform部件
*
* @export
* @class DefaultSearchForm
* @extends {DefaultSearchFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class DefaultSearchForm extends DefaultSearchFormBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, GridControllerBase } from '@/studio-core';
import InvoiceDetailService from '@/service/invoice-detail/invoice-detail-service';
import InvoiceProductGridService from './invoice-product-grid-grid-service';
import { FormItemModel } from '@/model/form-detail';
/**
* grid部件基类
*
* @export
* @class GridControllerBase
* @extends {InvoiceProductGridGridBase}
*/
export class InvoiceProductGridGridBase extends GridControllerBase {
/**
* 建构部件服务对象
*
* @type {InvoiceProductGridService}
* @memberof InvoiceProductGridGridBase
*/
public service: InvoiceProductGridService = new InvoiceProductGridService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {InvoiceDetailService}
* @memberof InvoiceProductGridGridBase
*/
public appEntityService: InvoiceDetailService = new InvoiceDetailService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof InvoiceProductGridGridBase
*/
protected appDeName: string = 'invoicedetail';
/**
* 本地缓存标识
*
* @protected
* @type {string}
* @memberof GridControllerBase
*/
protected localStorageTag: string = 'invoicedetail_invoiceproductgrid_grid';
/**
* 所有列成员
*
* @type {any[]}
* @memberof InvoiceProductGridGridBase
*/
public allColumns: any[] = [
{
name: 'productname',
label: '产品名称',
langtag: 'entities.invoicedetail.invoiceproductgrid_grid.columns.productname',
show: true,
util: 'PX'
},
{
name: 'priceperunit',
label: '单价',
langtag: 'entities.invoicedetail.invoiceproductgrid_grid.columns.priceperunit',
show: true,
util: 'PX'
},
{
name: 'quantity',
label: '数量',
langtag: 'entities.invoicedetail.invoiceproductgrid_grid.columns.quantity',
show: true,
util: 'PX'
},
{
name: 'manualdiscountamount',
label: '零售折扣',
langtag: 'entities.invoicedetail.invoiceproductgrid_grid.columns.manualdiscountamount',
show: true,
util: 'PX'
},
{
name: 'extendedamount',
label: '应收净额',
langtag: 'entities.invoicedetail.invoiceproductgrid_grid.columns.extendedamount',
show: true,
util: 'PX'
},
]
/**
* 获取表格行模型
*
* @type {*}
* @memberof InvoiceProductGridGridBase
*/
public getGridRowModel(){
return {
srfkey: new FormItemModel(),
}
}
/**
* 属性值规则
*
* @type {*}
* @memberof InvoiceProductGridGridBase
*/
public rules: any = {
srfkey: [
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '发票产品 值不能为空', trigger: 'change' },
{ required: false, validator: (rule:any, value:any, callback:any) => { return (rule.required && (value === null || value === undefined || value === "")) ? false : true;}, message: '发票产品 值不能为空', trigger: 'blur' },
],
}
/**
* 获取对应列class
*
* @type {*}
* @memberof InvoiceProductGridBase
*/
public hasRowEdit: any = {
'productname':false,
'priceperunit':false,
'quantity':false,
'manualdiscountamount':false,
'extendedamount':false,
};
/**
* 获取对应列class
*
* @param {*} $args row 行数据,column 列数据,rowIndex 行索引,列索引
* @returns {void}
* @memberof InvoiceProductGridBase
*/
public getCellClassName(args: {row: any, column: any, rowIndex: number, columnIndex: number}): any {
return ( this.hasRowEdit[args.column.property] && this.actualIsOpenEdit ) ? "edit-cell" : "info-cell";
}
}
\ No newline at end of file
/**
* InvoiceProductGrid 部件模型
*
* @export
* @class InvoiceProductGridModel
*/
export default class InvoiceProductGridModel {
/**
* 是否是实体数据导出
*
* @returns {any[]}
* @memberof InvoiceProductGridGridMode
*/
public isDEExport: boolean = false;
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof InvoiceProductGridGridMode
*/
public getDataItems(): any[] {
if(this.isDEExport){
return [
]
}else{
return [
{
name: 'extendedamount',
prop: 'extendedamount',
dataType: 'BIGDECIMAL',
},
{
name: 'parentbundleidref',
prop: 'parentbundleidref',
dataType: 'PICKUP',
},
{
name: 'transactioncurrencyid',
prop: 'transactioncurrencyid',
dataType: 'PICKUP',
},
{
name: 'manualdiscountamount',
prop: 'manualdiscountamount',
dataType: 'BIGDECIMAL',
},
{
name: 'salesorderdetailid',
prop: 'salesorderdetailid',
dataType: 'PICKUP',
},
{
name: 'srfmajortext',
prop: 'invoicedetailname',
dataType: 'TEXT',
},
{
name: 'srfkey',
prop: 'invoicedetailid',
dataType: 'GUID',
},
{
name: 'srfdataaccaction',
prop: 'invoicedetailid',
dataType: 'GUID',
},
{
name: 'productid',
prop: 'productid',
dataType: 'PICKUP',
},
{
name: 'priceperunit',
prop: 'priceperunit',
dataType: 'BIGDECIMAL',
},
{
name: 'quantity',
prop: 'quantity',
dataType: 'BIGDECIMAL',
},
{
name: 'uomid',
prop: 'uomid',
dataType: 'PICKUP',
},
{
name: 'productname',
prop: 'productname',
dataType: 'PICKUPTEXT',
},
{
name: 'invoiceid',
prop: 'invoiceid',
dataType: 'PICKUP',
},
{
name: 'invoicedetail',
prop: 'invoicedetailid',
},
{
name:'size',
prop:'size'
},
{
name:'query',
prop:'query'
},
{
name:'page',
prop:'page'
},
{
name:'sort',
prop:'sort'
},
{
name:'srfparentdata',
prop:'srfparentdata'
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
}
\ No newline at end of file
<div :class="{ 'grid': true, 'show-paging-bar': isEnablePagingBar, 'hidden-paging-bar': !isEnablePagingBar }">
<i-form>
<el-table v-if="isDisplay === true"
:default-sort="{ prop: minorSortPSDEF, order: Object.is(minorSortDir, 'ASC') ? 'ascending' : Object.is(minorSortDir, 'DESC') ? 'descending' : '' }"
@sort-change="onSortChange($event)"
:border="isDragendCol"
:highlight-current-row ="isSingleSelect"
:row-class-name="getRowClassName.bind(_self)"
:cell-class-name="getCellClassName.bind(_self)"
size="mini"
stripe
@row-click="rowClick($event)"
@select-all="selectAll($event)"
@select="select($event)"
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template slot="empty">
无数据
<span class="quick-toolbar">
</span>
</template>
<template v-if="!isSingleSelect">
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template>
<template v-if="getColumnState('productname')">
<el-table-column show-overflow-tooltip :prop="'productname'" :label="$t('entities.invoicedetail.invoiceproductgrid_grid.columns.productname')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.invoicedetail.invoiceproductgrid_grid.columns.productname')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.productname}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('priceperunit')">
<el-table-column show-overflow-tooltip :prop="'priceperunit'" :label="$t('entities.invoicedetail.invoiceproductgrid_grid.columns.priceperunit')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.invoicedetail.invoiceproductgrid_grid.columns.priceperunit')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.priceperunit}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('quantity')">
<el-table-column show-overflow-tooltip :prop="'quantity'" :label="$t('entities.invoicedetail.invoiceproductgrid_grid.columns.quantity')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.invoicedetail.invoiceproductgrid_grid.columns.quantity')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.quantity}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('manualdiscountamount')">
<el-table-column show-overflow-tooltip :prop="'manualdiscountamount'" :label="$t('entities.invoicedetail.invoiceproductgrid_grid.columns.manualdiscountamount')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.invoicedetail.invoiceproductgrid_grid.columns.manualdiscountamount')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.manualdiscountamount}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('extendedamount')">
<el-table-column show-overflow-tooltip :prop="'extendedamount'" :label="$t('entities.invoicedetail.invoiceproductgrid_grid.columns.extendedamount')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.invoicedetail.invoiceproductgrid_grid.columns.extendedamount')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.extendedamount}}</span>
</template>
</el-table-column>
</template>
<template v-if="adaptiveState">
<el-table-column></el-table-column>
</template>
</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="totalRecord"
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;{{totalRecord > curPage * limit ? curPage * limit : totalRecord}}</span>
</template>
</span>&nbsp;
{{$t('app.gridpage.records')}},{{$t('app.gridpage.totle')}}&nbsp;{{totalRecord}}&nbsp;{{$t('app.gridpage.records')}}
</span>
</span>
</page>
</row>
</i-form>
</div>
\ No newline at end of file
<template src="./invoice-product-grid-grid.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { InvoiceProductGridGridBase } from './invoice-product-grid-grid-base';
/**
* grid部件
*
* @export
* @class InvoiceProductGridGrid
* @extends {InvoiceProductGridGridBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class InvoiceProductGridGrid extends InvoiceProductGridGridBase { }
</script>
import { Prop, Provide, Emit, Model } from 'vue-property-decorator';
import { Subject, Subscription } from 'rxjs';
import { Watch, EditFormControlBase } from '@/studio-core';
import InvoiceDetailService from '@/service/invoice-detail/invoice-detail-service';
import MainService from './main-form-service';
import { FormButtonModel, FormPageModel, FormItemModel, FormDRUIPartModel, FormPartModel, FormGroupPanelModel, FormIFrameModel, FormRowItemModel, FormTabPageModel, FormTabPanelModel, FormUserControlModel } from '@/model/form-detail';
/**
* form部件基类
*
* @export
* @class EditFormControlBase
* @extends {MainEditFormBase}
*/
export class MainEditFormBase extends EditFormControlBase {
/**
* 建构部件服务对象
*
* @type {MainService}
* @memberof MainEditFormBase
*/
public service: MainService = new MainService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {InvoiceDetailService}
* @memberof MainEditFormBase
*/
public appEntityService: InvoiceDetailService = new InvoiceDetailService({ $store: this.$store });
/**
* 应用实体名称
*
* @protected
* @type {string}
* @memberof MainEditFormBase
*/
protected appDeName: string = 'invoicedetail';
/**
* 表单数据对象
*
* @type {*}
* @memberof MainEditFormBase
*/
public data: any = {
srfupdatedate: null,
srforikey: null,
srfkey: null,
srfmajortext: null,
srftempmode: null,
srfuf: null,
srfdeid: null,
srfsourcekey: null,
productname: null,
priceperunit: null,
quantity: null,
uomname: null,
manualdiscountamount: null,
tax: null,
productid: null,
invoicedetailid: null,
uomid: null,
invoicedetail:null,
};
/**
* 属性值规则
*
* @type {*}
* @memberof MainEditFormBase
*/
public rules: any = {
srfupdatedate: [
{ required: false, type: 'string', message: '更新时间 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '更新时间 值不能为空', trigger: 'blur' },
],
srforikey: [
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
],
srfkey: [
{ required: false, type: 'string', message: '发票产品 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '发票产品 值不能为空', trigger: 'blur' },
],
srfmajortext: [
{ required: false, type: 'string', message: '名称 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '名称 值不能为空', trigger: 'blur' },
],
srftempmode: [
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
],
srfuf: [
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
],
srfdeid: [
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
],
srfsourcekey: [
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
],
productname: [
{ required: false, type: 'string', message: '产品名称 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '产品名称 值不能为空', trigger: 'blur' },
],
priceperunit: [
{ required: false, type: 'number', message: '单价 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '单价 值不能为空', trigger: 'blur' },
],
quantity: [
{ required: true, type: 'number', message: '数量 值不能为空', trigger: 'change' },
{ required: true, type: 'number', message: '数量 值不能为空', trigger: 'blur' },
],
uomname: [
{ required: false, type: 'string', message: '计价单位 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '计价单位 值不能为空', trigger: 'blur' },
],
manualdiscountamount: [
{ required: false, type: 'number', message: '零售折扣 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '零售折扣 值不能为空', trigger: 'blur' },
],
tax: [
{ required: false, type: 'number', message: '税 值不能为空', trigger: 'change' },
{ required: false, type: 'number', message: '税 值不能为空', trigger: 'blur' },
],
productid: [
{ required: false, type: 'string', message: '现有产品 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '现有产品 值不能为空', trigger: 'blur' },
],
invoicedetailid: [
{ required: false, type: 'string', message: '发票产品 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '发票产品 值不能为空', trigger: 'blur' },
],
uomid: [
{ required: false, type: 'string', message: '计价单位 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '计价单位 值不能为空', trigger: 'blur' },
],
}
/**
* 详情模型集合
*
* @type {*}
* @memberof MainEditFormBase
*/
public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: 'invoicedetail基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, uiActionGroup: { caption: '', langbase: 'entities.invoicedetail.main_form', extractMode: 'ITEM', details: [] } }),
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this }),
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 0 }),
srforikey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srforikey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfkey: new FormItemModel({ caption: '发票产品', detailType: 'FORMITEM', name: 'srfkey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
srfmajortext: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'srfmajortext', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srftempmode: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srftempmode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfuf: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfuf', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
srfdeid: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfdeid', 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 }),
productname: new FormItemModel({ caption: '产品名称', detailType: 'FORMITEM', name: 'productname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
priceperunit: new FormItemModel({ caption: '单价', detailType: 'FORMITEM', name: 'priceperunit', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
quantity: new FormItemModel({ caption: '数量', detailType: 'FORMITEM', name: 'quantity', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
uomname: new FormItemModel({ caption: '计价单位', detailType: 'FORMITEM', name: 'uomname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
manualdiscountamount: new FormItemModel({ caption: '零售折扣', detailType: 'FORMITEM', name: 'manualdiscountamount', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
tax: new FormItemModel({ caption: '税', detailType: 'FORMITEM', name: 'tax', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
productid: new FormItemModel({ caption: '现有产品', detailType: 'FORMITEM', name: 'productid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
invoicedetailid: new FormItemModel({ caption: '发票产品', detailType: 'FORMITEM', name: 'invoicedetailid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }),
uomid: new FormItemModel({ caption: '计价单位', detailType: 'FORMITEM', name: 'uomid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }),
};
}
\ No newline at end of file
/**
* Main 部件模型
*
* @export
* @class MainModel
*/
export default class MainModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof MainModel
*/
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: 'invoicedetailid',
dataType: 'GUID',
},
{
name: 'srfmajortext',
prop: 'invoicedetailname',
dataType: 'TEXT',
},
{
name: 'srftempmode',
},
{
name: 'srfuf',
},
{
name: 'srfdeid',
},
{
name: 'srfsourcekey',
},
{
name: 'productname',
prop: 'productname',
dataType: 'PICKUPTEXT',
},
{
name: 'priceperunit',
prop: 'priceperunit',
dataType: 'BIGDECIMAL',
},
{
name: 'quantity',
prop: 'quantity',
dataType: 'BIGDECIMAL',
},
{
name: 'uomname',
prop: 'uomname',
dataType: 'PICKUPTEXT',
},
{
name: 'manualdiscountamount',
prop: 'manualdiscountamount',
dataType: 'BIGDECIMAL',
},
{
name: 'tax',
prop: 'tax',
dataType: 'BIGDECIMAL',
},
{
name: 'productid',
prop: 'productid',
dataType: 'PICKUP',
},
{
name: 'invoicedetailid',
prop: 'invoicedetailid',
dataType: 'GUID',
},
{
name: 'uomid',
prop: 'uomid',
dataType: 'PICKUP',
},
{
name: 'invoicedetail',
prop: 'invoicedetailid',
dataType: 'FONTKEY',
},
]
}
}
\ No newline at end of file
<template src="./main-form.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { MainEditFormBase } from './main-form-base';
/**
* form部件
*
* @export
* @class MainEditForm
* @extends {MainEditFormBase}
*/
@Component({
components: {
}
})
@VueLifeCycleProcessing()
export default class MainEditForm extends MainEditFormBase { }
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* BOARD 部件服务对象
*
* @export
* @class BOARDService
*/
export default class BOARDService extends ControlService {
}
\ No newline at end of file
<template src="./board-dashboard.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { BOARDDashboardBase } from './board-dashboard-base';
import view_dashboard_sysportlet2 from '@widgets/activity-pointer/list-by-parent-key-portlet/list-by-parent-key-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/invoice/view-inv-info-portlet/view-inv-info-portlet.vue';
/**
* dashboard部件
*
* @export
* @class BOARDDashboard
* @extends {BOARDDashboardBase}
*/
@Component({
components: {
view_dashboard_sysportlet2,
view_dashboard_sysportlet1,
}
})
@VueLifeCycleProcessing()
export default class BOARDDashboard extends BOARDDashboardBase { }
</script>
此差异已折叠。
此差异已折叠。
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* InfoViewtabviewpanel 部件服务对象
*
* @export
* @class InfoViewtabviewpanelService
*/
export default class InfoViewtabviewpanelService extends ControlService {
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册