Commit 72177b55 by wangyanjiao

botdav字段及事件

parent f5b7ca37
......@@ -6,6 +6,8 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"bodgrp.rec.matdat" :Utils.defaultFunction,
"bodgrp.srm.djutyp" :Utils.defaultFunction,
"bodgrp.rec.ownref" :Utils.defaultFunction,
"bodgrp.dre.pts.extkey" :Utils.defaultFunction,
"bodgrp.dre.adrelc" :Utils.defaultFunction,
......
......@@ -177,5 +177,15 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
async changeDjutyp() {
let rtnmsg = await this.executeRule("bodgrp.srm.djutyp")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
}
\ No newline at end of file
......@@ -113,7 +113,7 @@ export default {
],
"bodgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"}
{ required: false, message: "输入正确的日期"}
],
"bodgrp.col.namelc":[
......
......@@ -209,6 +209,7 @@ export default class Utils {
this.executeNotify().then(res => {
if (res.respCode == SUCCESS){
const data = res.data;
console.log(data)
Utils.copyValueFromVO(this.model, data)
if (typeof callback === "function") {
callback()
......
......@@ -105,12 +105,11 @@
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label-width="0" prop="bddgrp.cbs.max.amt">
<c-input
<el-form-item label-width="0" prop="bddgrp.cbs.max.amt" >
<c-input :disabled="model.mhty=='R'"
v-model="model.bddgrp.cbs.max.amt"
maxlength="3"
placeholder="请输入单据金额"
disabled
></c-input>
</el-form-item>
</c-col>
......@@ -247,6 +246,7 @@
v-model="model.bddgrp.cbs.max.amt"
maxlength="3"
placeholder="请输入单据金额"
:disabled="model.mhty=='R'"
></c-input>
</el-form-item>
</c-col>
......
......@@ -2,8 +2,8 @@
<c-row>
<c-col :span="11">
<c-col :span="24">
<el-form-item label="单据类型" prop="bodgrp.srm.djutyp">
<c-select v-model="model.bodgrp.srm.djutyp" style="width:100%" placeholder="请选择单据类型" :code="codes.djutyp">
<el-form-item label="单据类型" prop="bodgrp.srm.djutyp" >
<c-select v-model="model.bodgrp.srm.djutyp" style="width:100%" placeholder="请选择单据类型" :code="codes.djutyp" @change="changeDjutyp">
</c-select>
</el-form-item>
</c-col>
......
......@@ -11,7 +11,6 @@
</c-col>
<c-col :span="4">
<c-button style="margin:0 10px 0 0;padding: 0 10px;" size="small" type="primary" icon="el-icon-search"></c-button>
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment