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

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

上级 e1beb33f
......@@ -304,6 +304,8 @@ export default {
orderuid: "订单编号",
ibizordername: "订单名称",
ordertime: "订单时间",
starttime: "订单开始时间",
endtime: "订单结束时间",
ibizcustomername: "客户名称",
ordertype: "订单类型",
amount: "总计",
......
......@@ -303,6 +303,8 @@ export default {
orderuid: "订单编号",
ibizordername: "订单名称",
ordertime: "订单时间",
starttime: "订单开始时间",
endtime: "订单结束时间",
ibizcustomername: "客户名称",
ordertype: "订单类型",
amount: "总计",
......
......@@ -39,6 +39,20 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.starttime.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='starttime' :itemRules="this.rules().starttime" class='' :caption="$t('entities.ibizorder.main_form.details.starttime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.starttime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="datetime" :transfer="true" format="yyyy-MM-dd HH:mm:ss" :value="data.starttime" :disabled="detailsModel.starttime.disabled" style="min-width: 150px; width:160px;" @on-change="(val1, val2) => { this.data.starttime = val1 }"></date-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.endtime.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='endtime' :itemRules="this.rules().endtime" class='' :caption="$t('entities.ibizorder.main_form.details.endtime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.endtime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="datetime" :transfer="true" format="yyyy-MM-dd HH:mm:ss" :value="data.endtime" :disabled="detailsModel.endtime.disabled" style="min-width: 150px; width:160px;" @on-change="(val1, val2) => { this.data.endtime = 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 }">
<app-form-item name='ibizcustomername' :itemRules="this.rules().ibizcustomername" class='' :caption="$t('entities.ibizorder.main_form.details.ibizcustomername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizcustomername.error" :isEmptyCaption="false" labelPos="LEFT">
......@@ -581,6 +595,8 @@ export default class MainBase extends Vue implements ControlInterface {
orderuid: null,
ibizordername: null,
ordertime: null,
starttime: null,
endtime: null,
ibizcustomername: null,
ordertype: null,
amount: null,
......@@ -652,6 +668,14 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.ordertime.required, type: 'string', message: '订单时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ordertime.required, type: 'string', message: '订单时间 值不能为空', trigger: 'blur' },
],
starttime: [
{ required: this.detailsModel.starttime.required, type: 'string', message: '订单开始时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.starttime.required, type: 'string', message: '订单开始时间 值不能为空', trigger: 'blur' },
],
endtime: [
{ required: this.detailsModel.endtime.required, type: 'string', message: '订单结束时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.endtime.required, type: 'string', message: '订单结束时间 值不能为空', trigger: 'blur' },
],
ibizcustomername: [
{ required: this.detailsModel.ibizcustomername.required, type: 'string', message: '客户名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizcustomername.required, type: 'string', message: '客户名称 值不能为空', trigger: 'blur' },
......@@ -812,6 +836,10 @@ export default class MainBase extends Vue implements ControlInterface {
ibizordername: new FormItemModel({ caption: '订单名称', detailType: 'FORMITEM', name: 'ibizordername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
,
ordertime: new FormItemModel({ caption: '订单时间', detailType: 'FORMITEM', name: 'ordertime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
starttime: new FormItemModel({ caption: '订单开始时间', detailType: 'FORMITEM', name: 'starttime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
,
endtime: new FormItemModel({ caption: '订单结束时间', detailType: 'FORMITEM', name: 'endtime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
,
ibizcustomername: new FormItemModel({ caption: '客户名称', detailType: 'FORMITEM', name: 'ibizcustomername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -975,6 +1003,30 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'ordertime', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 starttime 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.starttime')
onStarttimeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'starttime', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 endtime 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.endtime')
onEndtimeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'endtime', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizcustomername 值
*
......@@ -1146,6 +1198,8 @@ export default class MainBase extends Vue implements ControlInterface {
......
......@@ -73,6 +73,16 @@ export default class MainModel {
prop: 'ordertime',
dataType: 'DATE',
},
{
name: 'starttime',
prop: 'starttime',
dataType: 'DATETIME',
},
{
name: 'endtime',
prop: 'endtime',
dataType: 'DATETIME',
},
{
name: 'ibizcustomername',
prop: 'ibizcustomername',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册