Commit 990a6f64 by liuxin

coninfp附言调整

parent ba674982
...@@ -25,7 +25,6 @@ export default { ...@@ -25,7 +25,6 @@ export default {
onChange(){ onChange(){
if(this.model && this.model.rows){ if(this.model && this.model.rows){
this.model["rows"]=this.value.split("\n"); this.model["rows"]=this.value.split("\n");
console.log(this.model["rows"]);
this.$emit("change",this.value); this.$emit("change",this.value);
} }
} }
......
...@@ -5,14 +5,14 @@ export default class Mtabut { ...@@ -5,14 +5,14 @@ export default class Mtabut {
oitinf: { oitinf: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit: { oit: {
inftxt: "", // Infotext .mtabut.coninf.oitinf.oit.inftxt inftxt: {}, // Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
}, },
}, },
oitset: { oitset: {
labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit: { oit: {
inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt inftxt: {}, // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
}, },
}, },
......
...@@ -290,9 +290,9 @@ ...@@ -290,9 +290,9 @@
--> -->
<c-ptapdome <c-ptapdome
:disabledBankno="true" :disabledBankno="this.model.dedgrp.rec.lcrtyp == 'I'"
:disabledJigomc="true" :disabledJigomc="this.model.dedgrp.rec.lcrtyp == 'I'"
:disabledDizhii="true" :disabledDizhii="this.model.dedgrp.rec.lcrtyp == 'I'"
:model="model" :model="model"
:argadr="{ :argadr="{
title: '转让行', title: '转让行',
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="15"> <c-col :span="15">
<el-form-item <el-form-item
style="height:200px;" style="height: 200px"
label="General" label="General"
prop="mtabut.coninf.oitinf.oit.inftxt" prop="mtabut.coninf.oitinf.oit.inftxt"
> >
...@@ -14,7 +14,12 @@ ...@@ -14,7 +14,12 @@
resize="none" resize="none"
show-word-limit show-word-limit
placeholder="请输入Infotext" placeholder="请输入Infotext"
@change="valueChange($event, 'mtabut.coninf.oitinf.oit.inflev')" @change="
valueChange(
$event,
'mtabut.coninf.oitinf.oit.inflev'
)
"
:model="model.mtabut.coninf.oitinf.oit.inftxt" :model="model.mtabut.coninf.oitinf.oit.inftxt"
></i-stream-input> ></i-stream-input>
</el-form-item> </el-form-item>
...@@ -26,7 +31,7 @@ ...@@ -26,7 +31,7 @@
> >
<c-select <c-select
v-model="model.mtabut.coninf.oitinf.oit.inflev" v-model="model.mtabut.coninf.oitinf.oit.inflev"
:disabled="model.mtabut.coninf.oitinf.oit.inftxt ? false : true" :disabled="GeneralIsEmpty"
placeholder="请选择Infotext Level" placeholder="请选择Infotext Level"
style="width: 100%" style="width: 100%"
:code="inflev" :code="inflev"
...@@ -37,7 +42,10 @@ ...@@ -37,7 +42,10 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="15"> <c-col :span="15">
<el-form-item label="Settlement" prop="mtabut.coninf.oitset.oit.inftxt"> <el-form-item
label="Settlement"
prop="mtabut.coninf.oitset.oit.inftxt"
>
<i-stream-input <i-stream-input
type="textarea" type="textarea"
rows="6" rows="6"
...@@ -45,7 +53,12 @@ ...@@ -45,7 +53,12 @@
resize="none" resize="none"
show-word-limit show-word-limit
placeholder="请输入Infotext" placeholder="请输入Infotext"
@change="valueChange($event, 'mtabut.coninf.oitset.oit.inflev')" @change="
valueChange(
$event,
'mtabut.coninf.oitset.oit.inflev'
)
"
:model="model.mtabut.coninf.oitset.oit.inftxt" :model="model.mtabut.coninf.oitset.oit.inftxt"
></i-stream-input> ></i-stream-input>
</el-form-item> </el-form-item>
...@@ -57,7 +70,7 @@ ...@@ -57,7 +70,7 @@
> >
<c-select <c-select
v-model="model.mtabut.coninf.oitset.oit.inflev" v-model="model.mtabut.coninf.oitset.oit.inflev"
:disabled="model.mtabut.coninf.oitset.oit.inftxt ? false : true" :disabled="SettlementIsEmpty"
placeholder="请选择Infotext Level" placeholder="请选择Infotext Level"
style="width: 100%" style="width: 100%"
:code="inflev" :code="inflev"
...@@ -78,7 +91,10 @@ ...@@ -78,7 +91,10 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="7" :offset="1"> <c-col :span="7" :offset="1">
<el-form-item label="Send for Release to" prop="mtabut.coninf.usr.extkey"> <el-form-item
label="Send for Release to"
prop="mtabut.coninf.usr.extkey"
>
<c-input <c-input
v-model="model.mtabut.coninf.usr.extkey" v-model="model.mtabut.coninf.usr.extkey"
maxlength="8" maxlength="8"
...@@ -94,9 +110,9 @@ ...@@ -94,9 +110,9 @@
// 附言页签,勿改 // 附言页签,勿改
import _ from "~/utils/Lodash.js"; import _ from "~/utils/Lodash.js";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import IStreamInput from '~/components/IStreamInput' import IStreamInput from "~/components/IStreamInput";
export default { export default {
components: {IStreamInput}, components: { IStreamInput },
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
...@@ -107,6 +123,7 @@ export default { ...@@ -107,6 +123,7 @@ export default {
{ label: "Do not show", value: "!" }, { label: "Do not show", value: "!" },
{ label: "Warn", value: "0" }, { label: "Warn", value: "0" },
], //码表 ], //码表
test:"",
}; };
}, },
methods: { methods: {
...@@ -116,6 +133,34 @@ export default { ...@@ -116,6 +133,34 @@ export default {
} }
}, },
}, },
computed: {
GeneralIsEmpty: {
get() {
var temp = this.model.mtabut.coninf.oitinf.oit.inftxt.rows;
if(temp != null){
for(let i = 0; i < temp.length; i++){
if(temp[i].trim() > 0){
return false;
}
}
}
return true;
},
},
SettlementIsEmpty: {
get() {
var temp = this.model.mtabut.coninf.oitset.oit.inftxt.rows;
if(temp != null){
for(let i = 0; i < temp.length; i++){
if(temp[i].trim() > 0){
return false;
}
}
}
return true;
},
},
},
created: function () {}, created: function () {},
}; };
</script> </script>
......
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