Commit e8b5aea9 by zhengxiaokui

letopn

parent 39165d00
...@@ -31,4 +31,18 @@ export default { ...@@ -31,4 +31,18 @@ export default {
.el-input__count{ .el-input__count{
right: 1px !important; right: 1px !important;
} }
.el-button--primary{
margin-left: 10px;
}
.el-form-item--small{
margin-right: 30px;
}
.clear-margin{
margin-left: 0px !important;
width: 40% !important;
}
</style> </style>
<template> <template>
<c-page title="出口信用证通知">
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false"> <el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="200px"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000017 --> <!--PD000017 -->
<el-tab-pane label="PD000017" name="ovwp"> <el-tab-pane label="内容" name="ovwp">
<m-ovwp :model="model" :codes="codes"/> <m-ovwp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000063 --> <!--PD000063 -->
<el-tab-pane label="PD000063" name="detp"> <el-tab-pane label="信用证详情" name="detp">
<m-detp :model="model" :codes="codes"/> <m-detp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000042 --> <!--PD000042 -->
<el-tab-pane label="PD000042" name="ptyp"> <el-tab-pane label="银行信息" name="ptyp">
<m-ptyp :model="model" :codes="codes"/> <m-ptyp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000055 --> <!--PD000055 -->
<el-tab-pane label="PD000055" name="dogp"> <el-tab-pane label="PD000055" name="dogp">
<m-dogp :model="model" :codes="codes"/> <m-dogp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000057 --> <!--PD000057 -->
<el-tab-pane label="PD000057" name="dorp"> <el-tab-pane label="PD000057" name="dorp">
<m-dorp :model="model" :codes="codes"/> <m-dorp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000059 --> <!--PD000059 -->
<el-tab-pane label="PD000059" name="adcp"> <el-tab-pane label="PD000059" name="adcp">
<m-adcp :model="model" :codes="codes"/> <m-adcp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="PD000000" name="setpan"> <el-tab-pane label="PD000000" name="setpan">
<m-setpan :model="model" :codes="codes"/> <m-setpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000000 --> <!--PD000000 -->
<el-tab-pane label="PD000000" name="coninfp"> <el-tab-pane label="PD000000" name="coninfp">
<m-coninfp :model="model" :codes="codes"/> <m-coninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000529 --> <!--PD000529 -->
<el-tab-pane label="PD000529" name="docpan"> <el-tab-pane label="PD000529" name="docpan">
<m-docpan :model="model" :codes="codes"/> <m-docpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000546 --> <!--PD000546 -->
<el-tab-pane label="PD000546" name="doctre"> <el-tab-pane label="PD000546" name="doctre">
<m-doctre :model="model" :codes="codes"/> <m-doctre :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000027 --> <!--PD000027 -->
<el-tab-pane label="PD000027" name="engp"> <el-tab-pane label="PD000027" name="engp">
<m-engp :model="model" :codes="codes"/> <m-engp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000317 --> <!--PD000317 -->
<el-tab-pane label="PD000317" name="revp"> <el-tab-pane label="PD000317" name="revp">
<m-revp :model="model" :codes="codes"/> <m-revp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="PD000001" name="aamp"> <el-tab-pane label="PD000001" name="aamp">
<m-aamp :model="model" :codes="codes"/> <m-aamp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000394 --> <!--PD000394 -->
<el-tab-pane label="PD000394" name="spcbenp"> <el-tab-pane label="PD000394" name="spcbenp">
<m-spcbenp :model="model" :codes="codes"/> <m-spcbenp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000395 --> <!--PD000395 -->
<el-tab-pane label="PD000395" name="spcrcvp"> <el-tab-pane label="PD000395" name="spcrcvp">
<m-spcrcvp :model="model" :codes="codes"/> <m-spcrcvp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="PD000001" name="glepan"> <el-tab-pane label="PD000001" name="glepan">
<m-glepan :model="model" :codes="codes"/> <m-glepan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
</div> </div>
</c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable" import Utils from "~/utils/index"
import Letopn from "~/model/Letopn"
import CommonProcess from "~/mixin/CommonProcess" import CodeTable from "~/config/CodeTable";
import Check from "~/model/Letopn/Check" import Letopn from "~/model/Letopn";
import Default from "~/model/Letopn/Default" import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Letopn/Pattern" import Check from "~/model/Letopn/Check";
import Ovwp from "./Ovwp" import Default from "~/model/Letopn/Default";
import Detp from "./Detp" import Pattern from "~/model/Letopn/Pattern";
import Ptyp from "./Ptyp" import Ovwp from "./Ovwp";
import Dogp from "./Dogp" import Detp from "./Detp";
import Dorp from "./Dorp" import Ptyp from "./Ptyp";
import Adcp from "./Adcp" import Dogp from "./Dogp";
import Setpan from "./Setpan" import Dorp from "./Dorp";
import Coninfp from "./Coninfp" import Adcp from "./Adcp";
import Docpan from "./Docpan" import Setpan from "./Setpan";
import Doctre from "./Doctre" import Coninfp from "./Coninfp";
import Engp from "./Engp" import Docpan from "./Docpan";
import Revp from "./Revp" import Doctre from "./Doctre";
import Aamp from "./Aamp" import Engp from "./Engp";
import Spcbenp from "./Spcbenp" import Revp from "./Revp";
import Spcrcvp from "./Spcrcvp" import Aamp from "./Aamp";
import Glepan from "./Glepan" import Spcbenp from "./Spcbenp";
import Spcrcvp from "./Spcrcvp";
import Glepan from "./Glepan";
export default { export default {
components:{ components: {
"m-ovwp" : Ovwp, "m-ovwp": Ovwp,
"m-detp" : Detp, "m-detp": Detp,
"m-ptyp" : Ptyp, "m-ptyp": Ptyp,
"m-dogp" : Dogp, "m-dogp": Dogp,
"m-dorp" : Dorp, "m-dorp": Dorp,
"m-adcp" : Adcp, "m-adcp": Adcp,
"m-setpan" : Setpan, "m-setpan": Setpan,
"m-coninfp" : Coninfp, "m-coninfp": Coninfp,
"m-docpan" : Docpan, "m-docpan": Docpan,
"m-doctre" : Doctre, "m-doctre": Doctre,
"m-engp" : Engp, "m-engp": Engp,
"m-revp" : Revp, "m-revp": Revp,
"m-aamp" : Aamp, "m-aamp": Aamp,
"m-spcbenp" : Spcbenp, "m-spcbenp": Spcbenp,
"m-spcrcvp" : Spcrcvp, "m-spcrcvp": Spcrcvp,
"m-glepan" : Glepan, "m-glepan": Glepan,
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "ovwp", tabVal: "ovwp",
trnName: "letopn", trnName: "letopn",
...@@ -146,29 +155,26 @@ export default { ...@@ -146,29 +155,26 @@ export default {
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {},
}, };
}
}, },
methods:{ methods: {
tabClick(){ tabClick() {},
}
}, },
created:async function(){ created: async function () {
console.log("进入letopn交易"); console.log("进入letopn交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init({});
if(rtnmsg.respCode == SUCCESS) if (rtnmsg.respCode == SUCCESS) {
{ //更新数据
//TODO 处理数据逻辑 Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
} this.restoreDisplay();
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
} },
};
</script> </script>
<style> <style>
</style> </style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<el-form-item
:label="`${argadr.title}参考号`"
:prop="`${argadr.grp}.${argadr.rol}.pts.ref`"
>
<c-input
v-model="model[argadr.grp][argadr.rol].pts.ref"
:placeholder="'请输入' + argadr.title + '参考号'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="18">
<el-form-item
label="Extkey"
:prop="`${argadr.grp}.${argadr.rol}.pts.extkey`"
>
<c-input
v-model="model[argadr.grp][argadr.rol].pts.extkey"
:placeholder="'请输入' + argadr.title + 'Extkey'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="" label-width="15px">
<c-button
size="small"
type="primary;width:10%"
@click="onSeainf(`${argadr.grp}.${argadr.rol}.pts.extkey`)"
>i</c-button
>
<c-button size="small" type="primary" @click="onAplpDet">
Details
</c-button>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="名称"
:prop="`${argadr.grp}.${argadr.rol}.pts.namelc`"
>
<c-input
v-model="model[argadr.grp][argadr.rol].pts.namelc"
:placeholder="'请输入' + argadr.title + '名称'"
:disabled="disabled"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="地址"
:prop="`${argadr.grp}.${argadr.rol}.pts.adrelc`"
>
<c-input
v-model="model[argadr.grp][argadr.rol].pts.adrelc"
:placeholder="'请输入' + argadr.title + '地址'"
:disabled="disabled"
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
// 机构信息模块
export default {
inject: ["root"],
mixins: [CommonProcess],
props: {
model: {
type: Object,
default: undefined,
},
argadr: {
type: Object,
required: true,
default: function () {
return {
title: "", //角色名称
rol: "", //角色
grp: "", //所属模块
};
},
},
disabled: {
type: Boolean,
default: false,
},
},
data() {
return {
data: [],
};
},
watch: {},
methods: {
onSeainf(data) {
this.$emit("onSeainf", data);
},
onAplpDet() {
this.$emit("onAplpDet");
},
},
created: function () {},
};
</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