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

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

上级 13bc14f8
......@@ -91,6 +91,9 @@ export default {
orderuid: "订单编号",
ibizorderid: "订单标识",
ibizordername: "订单名称",
amount: "小计",
unit: "单位",
unitprice: "单价",
ibizuniproductid: "统一产品标识",
},
uiactions: {
......@@ -513,6 +516,4 @@ export default {
tip: "刷新",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -90,6 +90,9 @@ export default {
orderuid: "订单编号",
ibizorderid: "订单标识",
ibizordername: "订单名称",
amount: "小计",
unit: "单位",
unitprice: "单价",
ibizuniproductid: "统一产品标识",
},
uiactions: {
......@@ -512,6 +515,4 @@ export default {
tip: "刷新",
},
},
listviewtoolbar_toolbar: {
},
};
\ No newline at end of file
......@@ -2,7 +2,7 @@
<template>
<div class='view-container delistview ibizorder-detail-list-view'>
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizorderdetaillistview"></app-studioaction>
<card class='view-card ' :bordered="false" :dis-hover="true" >
<card class='view-card view-no-toolbar' :bordered="false" :dis-hover="true" >
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
......@@ -13,28 +13,10 @@
<div class='content-container'>
<div style="margin-bottom:6px;">
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='pull-left' placeholder="订单明细名称" style='max-width: 400px;margin-top:6px;padding-left: 24px' />
<i-input v-model="query" search enter-button @on-search="onSearch($event)" class='pull-left' placeholder="订单明细名称" style='max-width: 400px;margin-top:6px;padding-left: 24px' />
<div class='pull-right'>
<div class='toolbar-container'>
</div>
</div>
</div>
<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>
<div class='view-body-messages'>
</div>
<view_list
......@@ -235,9 +217,7 @@ export default class IBIZOrderDetailListViewBase extends Vue {
* @memberof IBIZOrderDetailListViewBase
*/
public containerModel: any = {
view_toolbar: { name: 'toolbar', type: 'TOOLBAR' },
view_list: { name: 'list', type: 'LIST' },
view_searchform: { name: 'searchform', type: 'SEARCHFORM' },
};
/**
......@@ -276,15 +256,6 @@ export default class IBIZOrderDetailListViewBase extends Vue {
* @memberof IBIZOrderDetailListViewBase
*/
public viewState: Subject<ViewState> = new Subject();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderDetailListView
*/
public toolBarModels: any = {
};
......@@ -313,7 +284,6 @@ export default class IBIZOrderDetailListViewBase extends Vue {
newdata: (args: any[],fullargs?:any[],params?: any, $event?: any, xData?: any) => {
this.newdata(args,fullargs, params, $event, xData);
},
searchform: this.$refs.searchform,
keyPSDEField: 'ibizorderdetail',
majorPSDEField: 'ibizorderdetailname',
isLoadDefault: true,
......@@ -674,42 +644,6 @@ export default class IBIZOrderDetailListViewBase extends Vue {
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderDetailListViewBase
*/
public searchform_save($event: any, $event2?: any) {
this.engine.onCtrlEvent('searchform', 'save', $event);
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderDetailListViewBase
*/
public searchform_search($event: any, $event2?: any) {
this.engine.onCtrlEvent('searchform', 'search', $event);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZOrderDetailListViewBase
*/
public searchform_load($event: any, $event2?: any) {
this.engine.onCtrlEvent('searchform', 'load', $event);
}
/**
* 打开新建数据视图
......
.ibizorder-detail-list-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
......@@ -3,11 +3,9 @@ import { Component } from 'vue-property-decorator';
import IBIZOrderDetailListViewBase from './ibizorder-detail-list-view-base.vue';
import view_list from '@widgets/ibizorder-detail/order-details-list-list/order-details-list-list.vue';
import view_searchform from '@widgets/ibizorder-detail/default-searchform/default-searchform.vue';
@Component({
components: {
view_list,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
......
......@@ -52,7 +52,6 @@ export default class OrderDetailsListModel {
prop: 'ibizorderdetailid',
dataType: 'FONTKEY',
},
{
name:'size',
prop:'size'
......
......@@ -98,6 +98,36 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.amount.visible" :style="{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item name='amount' :itemRules="this.rules().amount" class='' :caption="$t('entities.ibizorderdetail.ui_0007_form.details.amount')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.amount.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='amount' :value="data.amount" dataType="FLOAT" :precision="2"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.unit.visible" :style="{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item name='unit' :itemRules="this.rules().unit" class='' :caption="$t('entities.ibizorderdetail.ui_0007_form.details.unit')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.unit.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='unit' :value="data.unit" dataType="PICKUPDATA" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.unitprice.visible" :style="{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item name='unitprice' :itemRules="this.rules().unitprice" class='' :caption="$t('entities.ibizorderdetail.ui_0007_form.details.unitprice')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.unitprice.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='unitprice' :value="data.unitprice" dataType="PICKUPDATA" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
</row>
......@@ -506,6 +536,9 @@ export default class UI_0007Base extends Vue implements ControlInterface {
orderuid: null,
ibizorderid: null,
ibizordername: null,
amount: null,
unit: null,
unitprice: null,
ibizuniproductid: null,
ibizorderdetail:null,
};
......@@ -578,6 +611,18 @@ export default class UI_0007Base extends Vue implements ControlInterface {
{ required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'blur' },
],
amount: [
{ required: this.detailsModel.amount.required, type: 'number', message: '小计 值不能为空', trigger: 'change' },
{ required: this.detailsModel.amount.required, type: 'number', message: '小计 值不能为空', trigger: 'blur' },
],
unit: [
{ required: this.detailsModel.unit.required, type: 'string', message: '单位 值不能为空', trigger: 'change' },
{ required: this.detailsModel.unit.required, type: 'string', message: '单位 值不能为空', trigger: 'blur' },
],
unitprice: [
{ required: this.detailsModel.unitprice.required, type: 'number', message: '单价 值不能为空', trigger: 'change' },
{ required: this.detailsModel.unitprice.required, type: 'number', message: '单价 值不能为空', trigger: 'blur' },
],
}
}
......@@ -716,6 +761,12 @@ export default class UI_0007Base extends Vue implements ControlInterface {
ibizorderid: new FormItemModel({ caption: '订单标识', detailType: 'FORMITEM', name: 'ibizorderid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizordername: new FormItemModel({ caption: '订单名称', detailType: 'FORMITEM', name: 'ibizordername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
amount: new FormItemModel({ caption: '小计', detailType: 'FORMITEM', name: 'amount', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
unit: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'unit', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
unitprice: new FormItemModel({ caption: '单价', detailType: 'FORMITEM', name: 'unitprice', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizuniproductid: new FormItemModel({ caption: '统一产品标识', detailType: 'FORMITEM', name: 'ibizuniproductid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -901,6 +952,42 @@ export default class UI_0007Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'ibizordername', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 amount 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@Watch('data.amount')
onAmountChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'amount', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 unit 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@Watch('data.unit')
onUnitChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'unit', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 unitprice 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@Watch('data.unitprice')
onUnitpriceChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'unitprice', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizuniproductid 值
*
......@@ -986,6 +1073,9 @@ export default class UI_0007Base extends Vue implements ControlInterface {
}
......
......@@ -90,6 +90,21 @@ export default class UI_0007Model {
prop: 'ibizordername',
dataType: 'PICKUPTEXT',
},
{
name: 'amount',
prop: 'amount',
dataType: 'FLOAT',
},
{
name: 'unit',
prop: 'unit',
dataType: 'PICKUPDATA',
},
{
name: 'unitprice',
prop: 'unitprice',
dataType: 'PICKUPDATA',
},
{
name: 'ibizuniproductid',
prop: 'ibizuniproductid',
......
<template>
<div class='portlet portal-components-web ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p class='portlet-title'>
<span>
网页部件
</span>
</p>
<el-divider class="divider"></el-divider>
<div class="portlet-with-title">
<div class="portlet-without-title">
<iframe src="//os.alipayobjects.com/rmsportal/GhjqstwSgxBXrZS.png" style="height: 500px;width: 100%;border-width: 1px;"></iframe>
</div>
</div>
......
......@@ -32,9 +32,6 @@
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 52px);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册