Commit 47c62394 by zenghuan

报文类型码值修改

parent b0e69ea7
...@@ -4845,10 +4845,10 @@ const CodeTable = { ...@@ -4845,10 +4845,10 @@ const CodeTable = {
{label: "Other", value: "OTH"}, {label: "Other", value: "OTH"},
], ],
msgtyp3: [ msgtyp3: [
{label: "MT", value: "MT"}, {label: "MT", value: "sf2"},
{label: "ISO", value: "ISO"}, {label: "ISO", value: "iso"},
{label: "FMT", value: "FMT"}, {label: "FMT", value: "xml"},
{label: "CIPS", value: "CIPS"}, {label: "CIPS", value: "txt"},
], ],
mylx: [ mylx: [
{label: "服务贸易", value: "F"}, {label: "服务贸易", value: "F"},
......
...@@ -296,11 +296,11 @@ export default { ...@@ -296,11 +296,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.wlzp.subtyp= ''; this.model.wlzp.subtyp= '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -190,14 +190,14 @@ export default { ...@@ -190,14 +190,14 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = ''; this.model.rcvp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp == 'txt') { if (newTyp === 'sf2') {
this.subtypCodes = codes.subtypfps; this.subtypCodes = codes.mttyp;
} else if (newTyp == 'iso') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.subtypiso; this.subtypCodes = codes.isotyp;
} else if (newTyp == 'xml') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.subtypcps; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.subtyp1; this.subtypCodes = codes.cipstyp;
} }
}, },
deep: true deep: true
......
...@@ -296,14 +296,14 @@ export default { ...@@ -296,14 +296,14 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp == 'txt') { if (newTyp === 'sf2') {
this.subtypCodes = codes.subtypfps; this.subtypCodes = codes.mttyp;
} else if (newTyp == 'iso') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.subtypiso; this.subtypCodes = codes.isotyp;
} else if (newTyp == 'xml') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.subtypcps; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.subtyp1; this.subtypCodes = codes.cipstyp;
} }
}, },
deep: true deep: true
......
...@@ -296,11 +296,11 @@ export default { ...@@ -296,11 +296,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -201,11 +201,11 @@ export default { ...@@ -201,11 +201,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -296,11 +296,11 @@ export default { ...@@ -296,11 +296,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch"> <el-row style="background-color: white;width :100%;height:100px;padding-top: 30px;">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8" >
<el-form-item label="报文标准" prop="" style="width: 100%"> <el-form-item label="报文标准" prop="" style="width: 100%">
<c-select v-model="model.msgp.typ" style="width: 100%" :code="codes.msgtyp3"/> <c-select v-model="model.msgp.typ" style="width: 100%" :code="codes.msgtyp3"/>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle"> <el-row style="height:9000px;margin-top: 20px;">
<div style="height: 100%">
<iframe v-if="model.msgp.typ === 'MT'" src="http://localhost:8080/swifteditor" width="100%" ></iframe>
<iframe v-else-if="model.msgp.typ === 'ISO'" src="http://localhost:8080/swiftiso-editor" width="100%"></iframe>
</div>
</el-row> </el-row>
</template>
</c-list-search>
</div> </div>
</template> </template>
<script> <script>
...@@ -131,4 +130,8 @@ export default { ...@@ -131,4 +130,8 @@ export default {
margin-bottom: 10px; margin-bottom: 10px;
margin-right: 10px; margin-right: 10px;
} }
iframe{
height: 900px;
}
</style> </style>
...@@ -184,11 +184,11 @@ export default { ...@@ -184,11 +184,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.oftp.rel.mty = ''; this.model.oftp.rel.mty = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -184,11 +184,11 @@ export default { ...@@ -184,11 +184,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -227,14 +227,14 @@ export default { ...@@ -227,14 +227,14 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp == 'txt') { if (newTyp === 'sf2') {
this.subtypCodes = codes.subtypfps; this.subtypCodes = codes.mttyp;
} else if (newTyp == 'iso') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.subtypiso; this.subtypCodes = codes.isotyp;
} else if (newTyp == 'xml') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.subtypcps; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.subtyp1; this.subtypCodes = codes.cipstyp;
} }
}, },
deep: true deep: true
......
...@@ -307,11 +307,11 @@ export default { ...@@ -307,11 +307,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = ''; this.model.rcvp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -307,11 +307,11 @@ export default { ...@@ -307,11 +307,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = ''; this.model.rcvp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -307,14 +307,14 @@ export default { ...@@ -307,14 +307,14 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = ''; this.model.rcvp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp == 'txt') { if (newTyp === 'sf2') {
this.subtypCodes = codes.subtypfps; this.subtypCodes = codes.mttyp;
} else if (newTyp == 'iso') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.subtypiso; this.subtypCodes = codes.isotyp;
} else if (newTyp == 'xml') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.subtypcps; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.subtyp1; this.subtypCodes = codes.cipstyp;
} }
}, },
deep: true deep: true
......
...@@ -199,14 +199,14 @@ export default { ...@@ -199,14 +199,14 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.rcvp.subtyp = ''; this.model.rcvp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp == 'txt') { if (newTyp === 'sf2') {
this.subtypCodes = codes.subtypfps; this.subtypCodes = codes.mttyp;
} else if (newTyp == 'iso') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.subtypiso; this.subtypCodes = codes.isotyp;
} else if (newTyp == 'xml') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.subtypcps; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.subtyp1; this.subtypCodes = codes.cipstyp;
} }
}, },
deep: true deep: true
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="报文标准" prop="msgtyp" style="width: 100%"> <el-form-item label="报文标准" prop="msgtyp" style="width: 100%">
<c-select v-model="model.sndp.msgtyp" style="width: 100%" placeholder="请选择货押标识" :code="codes.msgtyp3"> <c-select v-model="model.sndp.msgtyp" style="width: 100%" placeholder="请选择报文标准" :code="codes.msgtyp3">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -296,11 +296,11 @@ export default { ...@@ -296,11 +296,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
...@@ -296,11 +296,11 @@ export default { ...@@ -296,11 +296,11 @@ export default {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
if (newTyp === 'MT') { if (newTyp === 'sf2') {
this.subtypCodes = codes.mttyp; this.subtypCodes = codes.mttyp;
} else if (newTyp === 'ISO') { } else if (newTyp === 'iso') {
this.subtypCodes = codes.isotyp; this.subtypCodes = codes.isotyp;
} else if (newTyp === 'FMT') { } else if (newTyp === 'txt') {
this.subtypCodes = codes.fmttyp; this.subtypCodes = codes.fmttyp;
} else { } else {
this.subtypCodes = codes.cipstyp; this.subtypCodes = codes.cipstyp;
......
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