Commit 17791549 by wangna

infccd修改

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