Commit 17791549 by wangna

infccd修改

parent 7644c663
...@@ -4143,6 +4143,12 @@ const CodeTable = { ...@@ -4143,6 +4143,12 @@ const CodeTable = {
searol2:[ searol2:[
{ label: "Collecting Bank", value: "COL" }, { label: "Collecting Bank", value: "COL" },
], ],
searol3:[
{ label: "Collecting Bank", value: "COL" },
{ label: "Correspondent", value: "COR" },
{ label: "Drawee Bank", value: "DRO" },
{ label: "Presenting Bnk", value: "PRE" },
],
seacur:[ seacur:[
{ label: `CNY-人民币`, value: `CNY` }, { label: `CNY-人民币`, value: `CNY` },
{ label: `KRW-韩元`, value: `KRW` }, { label: `KRW-韩元`, value: `KRW` },
......
...@@ -99,6 +99,8 @@ ...@@ -99,6 +99,8 @@
v-model="model.infcon.pty.extkey" v-model="model.infcon.pty.extkey"
maxlength="16" maxlength="16"
placeholder="请输入Select Single Party" placeholder="请输入Select Single Party"
:disabled="model.infcon.seapty != ''"
@keyup.enter.native="showGridPromptDialog('infcon.pty.extkey')"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -129,6 +131,7 @@ ...@@ -129,6 +131,7 @@
v-model="model.infcon.seapty" v-model="model.infcon.seapty"
maxlength="24" maxlength="24"
placeholder="请输入Party Name/BIC" placeholder="请输入Party Name/BIC"
:disabled="model.infcon.pty.extkey != ''"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -144,7 +147,7 @@ ...@@ -144,7 +147,7 @@
placeholder="请选择Role" placeholder="请选择Role"
> >
<el-option <el-option
v-for="item in codes.payrol" v-for="item in codes.searol3"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="left" size="small" :validate-on-rule-change="false"> <el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="left"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<c-content> <c-content>
<m-infsea :model="model" :codes="codes" ref="infsea" /> <m-infsea :model="model" :codes="codes" ref="infsea" />
</c-content> </c-content>
...@@ -106,19 +113,25 @@ ...@@ -106,19 +113,25 @@
<!-- <el-tab-pane label="CIPS2.0" name="cips3"> <!-- <el-tab-pane label="CIPS2.0" name="cips3">
<m-cips3 :model="model" :codes="codes"/> <m-cips3 :model="model" :codes="codes"/>
</el-tab-pane> --> </el-tab-pane> -->
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable";
import Infccd from "~/model/Infccd" import Infccd from "~/model/Infccd";
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Infccd/Check" import Check from "~/model/Infccd/Check";
import Default from "~/model/Infccd/Default" import Default from "~/model/Infccd/Default";
import Pattern from "~/model/Infccd/Pattern" import Pattern from "~/model/Infccd/Pattern";
import Infsea from "./Infsea" import Infsea from "./Infsea";
// import Trnpan from "./Trnpan" // import Trnpan from "./Trnpan"
// import Cbsinfp from "./Cbsinfp" // import Cbsinfp from "./Cbsinfp"
// import Cbeinfp from "./Cbeinfp" // import Cbeinfp from "./Cbeinfp"
...@@ -139,10 +152,9 @@ import Infsea from "./Infsea" ...@@ -139,10 +152,9 @@ import Infsea from "./Infsea"
// import Cips2 from "./Cips2" // import Cips2 from "./Cips2"
// import Cips3 from "./Cips3" // import Cips3 from "./Cips3"
export default { export default {
components:{ components: {
"m-infsea" : Infsea, "m-infsea": Infsea,
// "m-trnpan" : Trnpan, // "m-trnpan" : Trnpan,
// "m-cbsinfp" : Cbsinfp, // "m-cbsinfp" : Cbsinfp,
// "m-cbeinfp" : Cbeinfp, // "m-cbeinfp" : Cbeinfp,
...@@ -165,11 +177,11 @@ export default { ...@@ -165,11 +177,11 @@ export default {
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "", tabVal: "",
trnName: "infccd", trnName: "infccd",
...@@ -179,34 +191,29 @@ export default { ...@@ -179,34 +191,29 @@ export default {
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
...CodeTable ...CodeTable,
}, },
} };
}, },
methods:{ methods: {
myTabClick(tab){ myTabClick(tab) {
this.tabClick(tab) this.tabClick(tab);
/** /**
* do it yourself * do it yourself
**/ **/
}
}, },
created:async function(){ },
created: async function () {
console.log("进入infccd交易"); console.log("进入infccd交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({});
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ this.updateModel(rtnmsg.data);
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} else {
} this.$notify.error({ title: "错误", message: "服务请求失败!" });
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} },
};
</script> </script>
<style> <style>
</style> </style>
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