Commit 8397408b by WuBing

letdrv到期日和到期期限显示问题修改

parent 3a210937
......@@ -350,6 +350,7 @@
<el-form-item label="到期日" prop="bedgrp.rec.matdat">
<c-date-picker
type="date"
:disabled="this.flag1"
v-model="model.bedgrp.rec.matdat"
style="width: 100%"
placeholder="请选择到期日"
......@@ -372,6 +373,7 @@
<el-form-item label="到期期限" prop="bedgrp.blk.matper">
<c-input
type="textarea"
:disabled="this.flag2"
v-model="model.bedgrp.blk.matper"
maxlength="65"
show-word-limit
......@@ -540,7 +542,32 @@ export default {
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
return {
flag1: false,
flag2: false,
};
},
watch: {
"model.bedgrp.rec.matdat": {
immediate: true,
handler(val, oldval) {
if (this.model.bedgrp.rec.matdat != "") {
this.flag2 = true;
} else {
this.flag2 = false;
}
},
},
"model.bedgrp.blk.matper": {
immediate: true,
handler(val, oldval) {
if (this.model.bedgrp.blk.matper != "") {
this.flag1 = true;
} else {
this.flag1 = false;
}
},
},
},
methods: { ...Event },
created: function () {},
......
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