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

MoneyQ 部署微服务应用 [后台服务,演示应用]

上级 d7fd700e
......@@ -408,8 +408,8 @@
"viewtag": "80c9ae9ed04e7107ed9fc93734a447d1"
},
"ibizordersf1editview": {
"title": "订单编辑视图",
"caption": "订单",
"title": "编辑表单默认值",
"caption": "编辑表单默认值",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderSF1EditView",
......
......@@ -5,6 +5,9 @@
"VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup4":[
{"tag":"ViewMsg4","position":"TOP","type":"ERROR"}
],
"VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
]
......
......@@ -102,8 +102,8 @@ export default {
title: "订单图表视图",
},
sf1editview: {
caption: "订单",
title: "订单编辑视图",
caption: "编辑表单默认值",
title: "编辑表单默认值",
},
piechartview: {
caption: "订单",
......
......@@ -101,8 +101,8 @@ export default {
title: "订单图表视图",
},
sf1editview: {
caption: "订单",
title: "订单编辑视图",
caption: "编辑表单默认值",
title: "编辑表单默认值",
},
piechartview: {
caption: "订单",
......
......@@ -39,7 +39,8 @@ export class MessageServiceRegister {
* @memberof MessageServiceRegister
*/
protected init(): void {
this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message'));
this.allMessageService.set('ViewMsg4', () => import('@/message/view-msg4/view-msg4-message'));
this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message'));
this.allMessageService.set('ViewMsg', () => import('@/message/view-msg/view-msg-message'));
this.allMessageService.set('ViewMsg3', () => import('@/message/view-msg3/view-msg3-message'));
}
......
import ViewMessageService from '../view-message-service';
/**
* 表单项默认值视图消息服务对象基类
*
* @export
* @class ViewMsg4MessageServiceBase
*/
export default class ViewMsg4MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg4MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg4MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg4MessageServiceBase
*/
public initBasicParam(){
this.id = "71630E0E-47C6-4891-8699-94DA61C8F5CF";
this.name = "表单项默认值";
this.codename = "ViewMsg4";
this.title = "";
this.content = "本示例展示表单项的新建默认值功能;展示内容包含【订单时间】默认为【当前时间】、【订单状态】默认为【未提交】";
this.closeMode = 0;
this.position = "TOP";
this.type = "error";
this.isEnableRemove = false;
this.order = 1;
this.dynamicMode = "STATIC";
this.hasMessageTemp = false;
this.messageType = "TEXT";
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg4MessageServiceBase
*/
public translateMessageTemp(target:any,context:any,viewparam:any,item?:any){
if(this.hasMessageTemp && Object.is(this.messageType,"HTML")){
Object.assign(target,{title:``});
Object.assign(target,{content:``});
}
if(this.hasMessageTemp && Object.is(this.messageType,"TEXT")){
Object.assign(target,{title:""});
Object.assign(target,{content:""});
}
}
}
\ No newline at end of file
import ViewMsg4MessageServiceBase from './view-msg4-message-base';
/**
* 表单项默认值视图消息服务对象
*
* @export
* @class ViewMsg4MessageService
*/
export default class ViewMsg4MessageService extends ViewMsg4MessageServiceBase {
/**
* Creates an instance of ViewMsg4MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg4MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -416,8 +416,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "80c9ae9ed04e7107ed9fc93734a447d1"
},
"ibizordersf1editview": {
"title": "订单编辑视图",
"caption": "订单",
"title": "编辑表单默认值",
"caption": "编辑表单默认值",
"viewtype": "DEEDITVIEW",
"viewmodule": "Sample",
"viewname": "IBIZOrderSF1EditView",
......@@ -900,6 +900,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup4":[
{"tag":"ViewMsg4","position":"TOP","type":"ERROR"}
],
"VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
]
......
<template>
<div class="view-container deeditview ibizorder-sf1-edit-view">
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizordersf1editview"></app-studioaction>
<card class='view-card view-no-toolbar' :disHover="true" :bordered="false">
<card class='view-card view-no-caption view-no-toolbar' :disHover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup4' viewname='ibizordersf1editview'></app-alert-group> </div>
<div class="content-container">
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup4' viewname='ibizordersf1editview'></app-alert-group> </div>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......@@ -36,7 +33,7 @@
</view_form>
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup4' viewname='ibizordersf1editview'></app-alert-group> </div>
</card>
</div>
</template>
......
......@@ -2,10 +2,10 @@
<i-form :model="this.data" class='app-form' ref='form' id='ibizorder_main2' style="">
<input style="display:none;" />
<row >
<i-col v-show="detailsModel.group1.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.group1.manageContainerStatus" :isManageContainer="detailsModel.group1.isManageContainer" @managecontainerclick="manageContainerClick('group1')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizorder.main2_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.orderuid.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<i-col v-show="detailsModel.orderuid.visible" :style="{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='orderuid' :itemRules="this.rules().orderuid" class='' :caption="$t('entities.ibizorder.main2_form.details.orderuid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.orderuid.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.orderuid"
......@@ -19,7 +19,7 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ibizordername.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<i-col v-show="detailsModel.ibizordername.visible" :style="{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='ibizordername' :itemRules="this.rules().ibizordername" class='' :caption="$t('entities.ibizorder.main2_form.details.ibizordername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizordername.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.ibizordername"
......@@ -33,14 +33,14 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ordertime.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<i-col v-show="detailsModel.ordertime.visible" :style="{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='ordertime' :itemRules="this.rules().ordertime" class='' :caption="$t('entities.ibizorder.main2_form.details.ordertime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ordertime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" placeholder="请选择时间..." :value="data.ordertime" :disabled="detailsModel.ordertime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.ordertime = val1 }"></date-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ibizcustomername.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<i-col v-show="detailsModel.ibizcustomername.visible" :style="{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='ibizcustomername' :itemRules="this.rules().ibizcustomername" class='' :caption="$t('entities.ibizorder.main2_form.details.ibizcustomername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizcustomername.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
......@@ -68,7 +68,7 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ordertype.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<i-col v-show="detailsModel.ordertype.visible" :style="{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='ordertype' :itemRules="this.rules().ordertype" class='' :caption="$t('entities.ibizorder.main2_form.details.ordertype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ordertype.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
......@@ -89,7 +89,7 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.orderstate.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<i-col v-show="detailsModel.orderstate.visible" :style="{}" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='orderstate' :itemRules="this.rules().orderstate" class='' :caption="$t('entities.ibizorder.main2_form.details.orderstate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.orderstate.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
......@@ -110,7 +110,7 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.memo.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<i-col v-show="detailsModel.memo.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 24, offset: 0 }">
<app-form-item name='memo' :itemRules="this.rules().memo" class='' :caption="$t('entities.ibizorder.main2_form.details.memo')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.memo.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.memo" :textareaId="this.$util.createUUID()" :disabled="detailsModel.memo.disabled" type='textarea' textareaStyle="height:200px;" ></input-box>
......@@ -1993,6 +1993,9 @@ export default class Main2Base extends Vue implements ControlInterface {
* @memberof Main2Base
*/
public createDefault(){
if (this.data.hasOwnProperty('orderstate')) {
this.data['orderstate'] = '10';
}
}
/**
......
......@@ -134,7 +134,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-2-8">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-7-8">
<createTable tableName="T_IBIZORDER">
<column name="TP" remarks="" type="TEXT(1048576)">
</column>
......
......@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-2-8" runOnChange="true">
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-7-8" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDER">
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册