Commit 240f8491 by fukai
parents e32ebaf7 d4864170
<template>
<c-row>
<!--
<!-- =================顶部====================== -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="Drag Drop Sender" prop="bctp.recget.sdamod.dadsnd">
<c-input v-model="model.bctp.recget.sdamod.dadsnd" placeholder="请输入Drag Drop Sender"></c-input>
<c-col :span="20">
<el-form-item label="Collection Number" prop="bcdgrp.rec.ownref" style="width: 100%">
<c-input v-model="model.bcdgrp.rec.ownref" maxlength="16" placeholder="请输入Collection Number"
style="width: 95%" disabled>
</c-input>
</el-form-item>
</c-col>
-->
<c-col :span="1">
<c-button style="margin:0 10px 0 0;padding: 0 10px;" size="small" type="primary"
icon="el-icon-search" @click="onSeainf">
</c-button>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="Collection Number" prop="bcdgrp.rec.ownref">
<c-input v-model="model.bcdgrp.rec.ownref" maxlength="16" placeholder="请输入Collection Number"></c-input>
<el-form-item label="Name" prop="bcdgrp.rec.nam" style="width: 100%">
<c-input v-model="model.bcdgrp.rec.nam" maxlength="40" style="width: 100%" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ====================左边======================= -->
<c-col :span="12">
<el-form-item label="" prop="bctp.recget.sdamod.seainf">
<c-input v-model="model.bctp.recget.sdamod.seainf" placeholder="请输入"></c-input>
<c-col :span="12">
<el-form-item label="Document Amount" prop="bcdgrp.cbs.max.cur">
<c-select v-model="model.bcdgrp.cbs.max.cur" style="width:95%" placeholder="请选择Document Amount"
disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Name" prop="bcdgrp.rec.nam">
<c-input v-model="model.bcdgrp.rec.nam" maxlength="40" placeholder="请输入Name"></c-input>
<el-form-item style="text-align: left" label-width="0" prop="bcdgrp.cbs.max.amt">
<c-input v-model="model.bcdgrp.cbs.max.amt" style="text-align: left; width: 100%"
placeholder="请输入Document Amount" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Document Amount" prop="bcdgrp.cbs.max.cur">
<c-select v-model="model.bcdgrp.cbs.max.cur" style="width:100%" placeholder="请选择Document Amount">
<el-form-item label="Open Amount" prop="bcdgrp.cbs.opn1.cur">
<c-select v-model="model.bcdgrp.cbs.opn1.cur" style="width:95%" placeholder="请选择Open Amount"
disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Document Amount" prop="bcdgrp.cbs.max.amt">
<c-input v-model="model.bcdgrp.cbs.max.amt" placeholder="请输入Document Amount"></c-input>
<el-form-item style="text-align: left" label-width="0" prop="bcdgrp.cbs.opn1.amt">
<c-input v-model="model.bcdgrp.cbs.opn1.amt" style="text-align: left; width: 100%"
placeholder="请输入Open Amount" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Drawee" prop="bcdgrp.dre.pts.ref">
<c-input v-model="model.bcdgrp.dre.pts.ref" maxlength="16" placeholder="请输入Drawee"></c-input>
<el-form-item label="Docs Received on" prop="bcdgrp.rec.rcvdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.rcvdat" style="width:95%"
value-format="yyyy-MM-dd" placeholder="请选择Docs Received on" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Open Amount" prop="bcdgrp.cbs.opn1.cur">
<c-select v-model="model.bcdgrp.cbs.opn1.cur" style="width:100%" placeholder="请选择Open Amount">
</c-select>
<el-form-item label="Advised on" prop="bcdgrp.rec.advdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.advdat" style="width:100%"
value-format="yyyy-MM-dd" placeholder="请选择Advised on" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Open Amount" prop="bcdgrp.cbs.opn1.amt">
<c-input v-model="model.bcdgrp.cbs.opn1.amt" placeholder="请输入Open Amount"></c-input>
<el-form-item label="Maturity Date" prop="bcdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.matdat" style="width:95%"
value-format="yyyy-MM-dd" placeholder="请选择Maturity Date" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Name of Party" prop="bcdgrp.dre.pts.nam">
<c-input v-model="model.bcdgrp.dre.pts.nam" maxlength="40" placeholder="请输入Name of Party"></c-input>
<el-form-item label="Remitted on" prop="bcdgrp.rec.predat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.predat" style="width:100%"
value-format="yyyy-MM-dd" placeholder="请选择Remitted on" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Docs Received on" prop="bcdgrp.rec.rcvdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.rcvdat" style="width:100%" placeholder="请选择Docs Received on"></c-date-picker>
<c-col :span="24">
<el-form-item label="Payment Condition" prop="bcdgrp.rec.doctypcod">
<c-select v-model="model.bcdgrp.rec.doctypcod" style="width:100%" placeholder="请选择Payment Condition"
disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Date of Advice of Documents Received" prop="bcdgrp.rec.advdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.advdat" style="width:100%" placeholder="请选择Date of Advice of Documents Received"></c-date-picker>
<c-col :span="24">
<el-form-item label="Document Set Status" prop="bcdgrp.rec.docsta">
<c-select v-model="model.bcdgrp.rec.docsta" style="width:100%" placeholder="请输入Document Set Status"
disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Remitting Bank" prop="bcdgrp.rmi.pts.ref">
<c-input v-model="model.bcdgrp.rmi.pts.ref" maxlength="16" placeholder="请输入Remitting Bank"></c-input>
<el-form-item label="Amount Accepted" prop="setmod.doccur">
<c-select v-model="model.setmod.doccur" style="width:95%" placeholder="Amount Accepted" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Name of Party" prop="bcdgrp.rmi.pts.nam">
<c-input v-model="model.bcdgrp.rmi.pts.nam" maxlength="40" placeholder="请输入Name of Party"></c-input>
<el-form-item style="text-align: left" label-width="0" prop="setmod.docamt">
<c-input v-model="model.setmod.docamt" style="text-align: left; width: 100%"
placeholder="请输入document amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.bctp.matp.mattxtlab" data-path=".bctp.matp.mattxtlab" > </span>
<c-col :span="24">
<span v-text="model.bctp.docgrdm.docdsclab" data-path=".bctp.docgrdm.docdsclab"> </span>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="12">
<el-form-item label="Maturity Date" prop="bcdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.matdat" style="width:100%" placeholder="请选择Maturity Date"></c-date-picker>
<c-col :span="13">
<el-form-item label="Drawee" prop="bcdgrp.dre.pts.ref">
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Maturity Date" prop="bcdgrp.rec.predat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.predat" style="width:100%" placeholder="请选择Maturity Date"></c-date-picker>
<c-col :span="11">
<el-form-item label="Ref." prop="bcdgrp.dre.pts.ref">
<c-input v-model="model.bcdgrp.dre.pts.ref" maxlength="16" style="width: 100%" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Payment Condition" prop="bcdgrp.rec.doctypcod">
<c-select v-model="model.bcdgrp.rec.doctypcod" style="width:100%" placeholder="请选择Payment Condition">
</c-select>
<c-col :span="24">
<el-form-item prop="bcdgrp.dre.pts.nam">
<c-input v-model="model.bcdgrp.dre.pts.nam" maxlength="40" style="width: 100%" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Drawer" prop="bcdgrp.drr.pts.ref">
<c-input v-model="model.bcdgrp.drr.pts.ref" maxlength="16" placeholder="请输入Drawer"></c-input>
<c-col :span="13">
<el-form-item label="Remitting Bank" prop="bcdgrp.rmi.pts.ref">
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Document Set Status" prop="bcdgrp.rec.docsta">
<c-input v-model="model.bcdgrp.rec.docsta" maxlength="1" placeholder="请输入Document Set Status"></c-input>
<c-col :span="11">
<el-form-item label="Ref." prop="bcdgrp.rmi.pts.ref">
<c-input v-model="model.bcdgrp.rmi.pts.ref" maxlength="16" style="width: 100%" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Name of Party" prop="bcdgrp.drr.pts.nam">
<c-input v-model="model.bcdgrp.drr.pts.nam" maxlength="40" placeholder="请输入Name of Party"></c-input>
<c-col :span="24">
<el-form-item prop="bcdgrp.rmi.pts.nam">
<c-input v-model="model.bcdgrp.rmi.pts.nam" maxlength="40" style="width: 100%" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="document currency" prop="setmod.doccur">
<c-select v-model="model.setmod.doccur" style="width:100%" placeholder="请选择document currency">
</c-select>
<c-col :span="13">
<el-form-item label="Drawer" prop="bcdgrp.drr.pts.ref">
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="document amount" prop="setmod.docamt">
<c-input v-model="model.setmod.docamt" placeholder="请输入document amount"></c-input>
<c-col :span="11">
<el-form-item label="Ref." prop="bcdgrp.drr.pts.ref">
<c-input v-model="model.bcdgrp.drr.pts.ref" maxlength="16" style="width: 100%" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Accepted on" prop="bcdgrp.rec.accdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.accdat" style="width:100%" placeholder="请选择Accepted on"></c-date-picker>
<c-col :span="24">
<el-form-item prop="bcdgrp.drr.pts.ref">
<c-input v-model="model.bcdgrp.drr.pts.ref" maxlength="40" style="width: 100%" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.bctp.docgrdm.docdsclab" data-path=".bctp.docgrdm.docdsclab" > </span>
<el-form-item label="Accepted on" prop="bcdgrp.rec.accdat">
<c-date-picker type="date" v-model="model.bcdgrp.rec.accdat" style="width:100%" value-format="yyyy-MM-dd"
placeholder="请选择Accepted on"></c-date-picker>
</el-form-item>
</c-col>
</c-col">
</c-row>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bctacc/Event"
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bctacc/Event"
export default {
export default {
inject: ['root'],
props:["model","codes"],
props: ["model", "codes"],
mixins: [CommonProcess],
data(){
data() {
return {
}
},
methods:{...Event},
created:function(){
methods: {
...Event
},
created: function () {
}
}
}
</script>
<style>
......
<template>
<c-page title="进口代收承兑">
<c-page title="进口代收承兑">
<div class="eContainer">
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
<el-button size="small">备忘录</el-button>
<el-button size="small">影像信息</el-button>
<el-button size="small">保存模板</el-button>
......@@ -14,60 +10,54 @@
<el-button size="small">拆分报文</el-button>
<el-button size="small">智能提示</el-button>
</c-function-btn>
<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="right"
size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--Settle BC -->
<el-tab-pane label="Settle BC" name="bctset">
<c-content>
<m-bctset :model="model" :codes="codes"/>
<m-bctset :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Instructions -->
<el-tab-pane label="Instructions" name="detp">
<m-detp :model="model" :codes="codes"/>
<m-detp :model="model" :codes="codes" />
</el-tab-pane>
<!--Parties -->
<el-tab-pane label="Parties" name="ptyp">
<c-content>
<m-ptyp :model="model" :codes="codes"/>
<m-ptyp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Liability -->
<el-tab-pane label="Liability" name="engp">
<m-engp :model="model" :codes="codes"/>
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--Settlement -->
<el-tab-pane label="Settlement" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes"/>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Completion -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes"/>
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--Messages -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes"/>
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--Attachments -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes"/>
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
......@@ -75,34 +65,34 @@
</c-page>
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils/index"
import CodeTable from "~/config/CodeTable"
import CommonFuncs from "~/mixin/CommonFuncs";
import Bctacc from "~/model/Bctacc"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Bctacc/Check"
import Default from "~/model/Bctacc/Default"
import Pattern from "~/model/Bctacc/Pattern"
import Bctset from "./Bctset"
import Detp from "./Detp"
import Ptyp from "./Ptyp"
import Engp from "~/views/Public/Engp"
import Setpan from "~/views/Public/Setpan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "./Doctre"
import Api from "~/service/Api"
import Utils from "~/utils/index"
import CodeTable from "~/config/CodeTable"
import CommonFuncs from "~/mixin/CommonFuncs";
import Bctacc from "~/model/Bctacc"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Bctacc/Check"
import Default from "~/model/Bctacc/Default"
import Pattern from "~/model/Bctacc/Pattern"
import Bctset from "./Bctset"
import Detp from "./Detp"
import Ptyp from "./Ptyp"
import Engp from "~/views/Public/Engp"
import Setpan from "~/views/Public/Setpan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "./Doctre"
export default {
components:{
"m-bctset" : Bctset,
"m-detp" : Detp,
"m-ptyp" : Ptyp,
"m-engp" : Engp,
"m-setpan" : Setpan,
"m-coninfp" : Coninfp,
"m-docpan" : Docpan,
"m-doctre" : Doctre,
export default {
components: {
"m-bctset": Bctset,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-engp": Engp,
"m-setpan": Setpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
},
provide() {
return {
......@@ -110,7 +100,7 @@ export default {
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
data() {
return {
tabVal: "bctset",
trnName: "bctacc",
......@@ -119,25 +109,28 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {...CodeTable },
codes: {
...CodeTable
},
}
},
methods:{},
created:async function(){
methods: {},
created: async function () {
console.log("进入bctacc交易");
let rtnmsg = await this.init(this.$route.query)
if(rtnmsg.respCode == SUCCESS)
{
if (rtnmsg.respCode == SUCCESS) {
//更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
}else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
} else {
this.$notify.error({
title: '错误',
message: '服务请求失败!'
});
}
}
}
}
</script>
<style></style>
\ No newline at end of file
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