Commit 597484a7 by liuxin

detdrv交易调整

parent a2275547
......@@ -103,7 +103,7 @@ export default {
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
}
else
{
......
......@@ -206,7 +206,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"dedgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -292,7 +292,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"dedgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -339,7 +339,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"bfdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="24">
<!-- -------------------Left------------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="参考号" prop="dedgrp.rec.ownref">
<c-input
v-model="model.dedgrp.rec.ownref"
maxlength="16"
placeholder="请输入参考号"
disabled
></c-input>
</el-form-item>
</c-col>
<!-- -------------------Left------------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="参考号" prop="dedgrp.rec.ownref">
<c-input
v-model="model.dedgrp.rec.ownref"
maxlength="16"
placeholder="请输入参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="信用证金额"
prop="dedgrp.cbs.nom1.cur"
>
<c-select
disabled
v-model="model.dedgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择Currency"
@keyup.enter.native="nom1CurEvent"
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
style="text-align: left"
label-width="5px"
prop="dedgrp.cbs.nom1.amt"
>
<c-input-currency
v-model="model.dedgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入信用证金额"
disabled
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="信用证金额" prop="dedgrp.cbs.nom1.cur">
<c-select
disabled
v-model="model.dedgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择Currency"
@keyup.enter.native="nom1CurEvent"
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="信用证余额"
prop="dedgrp.cbs.opn1.cur"
>
<el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
<c-select
v-model="model.dedgrp.cbs.opn1.cur"
placeholder="请选择币种"
:code="codes.cur"
style="width: 100%"
disabled
>
</el-option>
</c-select>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item
label=""
label-width="5px"
prop="dedgrp.cbs.opn1.amt"
>
<c-input-currency
v-model="model.dedgrp.cbs.opn1.amt"
placeholder="请输入金额"
disabled
></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="开证日期" prop="dedgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.dedgrp.rec.opndat"
placeholder="请选择开证日期"
style="width: 100%"
disabled
></c-date-picker>
</el-form-item>
<!-- <c-col :span="12">
<el-form-item label="" prop="dedgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.dedgrp.rec.shpdat"
placeholder="请选择Shipment Date"
></c-date-picker>
</el-form-item>
</c-col> -->
</c-col>
<c-col :span="11">
<el-form-item
style="text-align: left"
label-width="5px"
prop="dedgrp.cbs.nom1.amt"
>
<c-input-currency
v-model="model.dedgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入信用证金额"
@keyup.enter.native="
defaultFunction('dedgrp.cbs.nom1.amt', model.dedgrp.cbs.nom1.amt)
"
></c-input-currency>
<c-col :span="24">
<el-form-item label="指定银行" prop="dedgrp.avbnam">
<c-input
v-model="model.dedgrp.avbnam"
maxlength="40"
placeholder="请输入指定银行"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item
label="信用证余额"
prop="dedgrp.cbs.opn1.cur"
>
<c-col :span="24">
<el-form-item label="兑付方式" prop="dedgrp.rec.avbby">
<c-select
v-model="model.dedgrp.cbs.opn1.cur"
placeholder="请选择币种"
:code="codes.cur"
style="width:100%"
v-model="model.dedgrp.rec.avbby"
style="width: 100%"
placeholder="请选择兑付方式"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-col :span="24">
<el-form-item
label=""
label-width="5px"
prop="dedgrp.cbs.opn1.amt"
label="最迟交单日期/交单地"
prop="dedgrp.rec.expdat"
>
<c-input-currency
v-model="model.dedgrp.cbs.opn1.amt"
placeholder="请输入金额"
></c-input-currency>
<c-date-picker
type="date"
v-model="model.dedgrp.rec.expdat"
style="width: 100%"
placeholder="请选择最迟交单日期/交单地"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="dedgrp.rec.expplc">
<c-input
type="textarea"
v-model="model.dedgrp.rec.expplc"
maxlength="35"
show-word-limit
placeholder="请输入最迟交单日期/交单地"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- -------------------Right------------------- -->
<c-col :span="24">
<el-form-item label="开证日期" prop="dedgrp.rec.opndat">
<c-date-picker
type="date"
v-model="model.dedgrp.rec.opndat"
placeholder="请选择开证日期"
style="width:100%"
></c-date-picker>
<c-col :span="12">
<c-col :span="24">
<el-form-item label="概要" prop="dedgrp.rec.nam">
<c-input
v-model="model.dedgrp.rec.nam"
maxlength="40"
placeholder="请输入概要"
disabled
></c-input>
</el-form-item>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="dedgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.dedgrp.rec.shpdat"
placeholder="请选择Shipment Date"
></c-date-picker>
<c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{
title: '申请人',
grp: 'bfdgrp',
rol: 'apl',
}"
:disabled="true"
></c-ptsmsg>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="开证行" prop="bfdgrp.iss.pts.ref">
<c-input
v-model="model.bfdgrp.iss.pts.ref"
maxlength="16"
placeholder="请输入开证行"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="bfdgrp.iss.pts.nam">
<c-input
v-model="model.bfdgrp.iss.pts.nam"
maxlength="40"
placeholder="请输入开证行"
></c-input>
</el-form-item>
</c-col> -->
</c-col>
<c-ptsmsg
:model="model"
:argadr="{
title: '申请人',
grp: 'bfdgrp',
rol: 'iss',
}"
:disabled="true"
></c-ptsmsg>
<c-col :span="24">
<el-form-item label="指定银行" prop="dedgrp.avbnam">
<c-input
v-model="model.dedgrp.avbnam"
maxlength="40"
placeholder="请输入指定银行"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptsmsg
:model="model"
:argadr="{
title: '交单人',
grp: 'bfdgrp',
rol: 'prb',
}"
:disabled="true"
></c-ptsmsg>
</c-col>
<c-col :span="24">
<el-form-item label="兑付方式" prop="dedgrp.rec.avbby">
<c-select
v-model="model.dedgrp.rec.avbby"
style="width: 100%"
placeholder="请选择兑付方式"
<c-col :span="24">
<el-form-item
label="信用证类型"
prop="dedgrp.rec.lcrtyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="最迟交单日期/交单地"
prop="dedgrp.rec.expdat"
>
<c-date-picker
type="date"
v-model="model.dedgrp.rec.expdat"
style="width: 100%"
placeholder="请选择最迟交单日期/交单地"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="dedgrp.rec.expplc">
<c-input
type="textarea"
v-model="model.dedgrp.rec.expplc"
maxlength="35"
show-word-limit
placeholder="请输入最迟交单日期/交单地"
></c-input>
</el-form-item>
<c-select
v-model="model.dedgrp.rec.lcrtyp"
style="width: 100%"
placeholder="请选择信用证类型"
disabled
>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- -------------------Left------------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="单据编号" prop="bfdgrp.rec.ownref">
<c-fullbox>
<c-input
<c-input
v-model="model.bfdgrp.rec.ownref"
maxlength="16"
placeholder="请输入单据编号"
disabled
></c-input>
<template slot="footer">
<c-button
......@@ -167,20 +261,18 @@
>
获取
</c-button>
</template>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="单据类型"
prop="bfdgrp.rec.doctypcod"
>
<el-form-item label="单据类型" prop="bfdgrp.rec.doctypcod">
<c-select
v-model="model.bfdgrp.rec.doctypcod"
style="width: 100%"
placeholder="请选择单据类型"
disabled
>
</c-select>
</el-form-item>
......@@ -197,6 +289,7 @@
style="width: 100%"
placeholder="请选择币种"
:code="codes.cur"
disabled
>
</c-select>
</el-form-item>
......@@ -229,7 +322,11 @@
</c-col>
<c-col :span="11">
<el-form-item label="寄单日期" prop="bfdgrp.rec.orddat" label-width="100px">
<el-form-item
label="寄单日期"
prop="bfdgrp.rec.orddat"
label-width="100px"
>
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.orddat"
......@@ -239,7 +336,7 @@
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="13">
<el-form-item label="到期日" prop="bfdgrp.rec.matdat">
......@@ -248,17 +345,23 @@
v-model="model.bfdgrp.rec.matdat"
style="width: 100%"
placeholder="请选择到期日"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="装运日期" prop="bfdgrp.rec.shpdat" label-width="100px">
<el-form-item
label="装船日期"
prop="bfdgrp.rec.shpdat"
label-width="100px"
>
<c-date-picker
type="date"
v-model="model.bfdgrp.rec.shpdat"
style="width: 100%"
placeholder="请选择装运日期"
placeholder="请选择装船日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
......@@ -266,7 +369,7 @@
<c-col :span="24">
<el-form-item
label="Maturity Period"
label="远期单据到期时间"
prop="bfdgrp.blk.matper"
>
<c-input
......@@ -275,25 +378,12 @@
maxlength="65"
show-word-limit
placeholder="请输入Maturity Period"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="Presented by"
prop="bfdgrp.rec.docprbrol"
>
<c-select
v-model="model.bfdgrp.rec.docprbrol"
style="width: 100%"
placeholder="请选择交单人"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="发票类型" prop="bfdgrp.rec.invtyp">
<c-fullbox>
<c-select
......@@ -301,111 +391,79 @@
style="width: 100%"
placeholder="请选择发票类型"
>
<el-option
v-for="item in codes.invtyp"
:key="item.value"
:label="item.label"
:value="item.value"
> </el-option>
</c-select>
<template slot="footer">
<c-checkbox v-model="model.bfdgrp.rec.dscinsflg"
>输入单据不符点指示</c-checkbox
>
</template>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="已交单次数"
prop="dedgrp.rec.utlnbr"
>
<el-form-item label="已交单次数" prop="dedgrp.rec.utlnbr">
<c-input
v-model="model.dedgrp.rec.utlnbr"
placeholder="请输入已交单次数"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- -------------------Right------------------- -->
<c-col :span="12">
<c-col :span="24">
<el-form-item label="概要" prop="dedgrp.rec.nam">
<el-form-item label="摘要" prop="bfdgrp.rec.nam">
<c-input
v-model="model.dedgrp.rec.nam"
v-model="model.bfdgrp.rec.nam"
maxlength="40"
placeholder="请输入概要"
placeholder="请输入摘要"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '申请人',
grp: 'bfdgrp',
rol: 'apl',
}"
:disabled="true"
:isAdrblk="false"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
>
</c-ptap>
</c-col>
<c-col :span="24">
<el-form-item
label="信用证类型"
prop="dedgrp.rec.lcrtyp"
>
<el-form-item label="交单人" prop="bfdgrp.rec.docprbrol">
<c-select
v-model="model.dedgrp.rec.lcrtyp"
v-model="model.bfdgrp.rec.docprbrol"
style="width: 100%"
placeholder="请选择信用证类型"
placeholder="请选择交单人"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="开证行" prop="bfdgrp.iss.pts.ref">
<el-form-item label="单据编号" prop="bfdgrp.prb.pts.ref">
<c-input
v-model="model.bfdgrp.iss.pts.ref"
v-model="model.bfdgrp.prb.pts.ref"
maxlength="16"
placeholder="请输入开证行"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="bfdgrp.iss.pts.nam">
<c-input
v-model="model.bfdgrp.iss.pts.nam"
maxlength="40"
placeholder="请输入开证行"
placeholder="请输入单据编号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '交单人',
title: '联行行号',
grp: 'bfdgrp',
rol: 'prb',
}"
:disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onPrbpDet"
>
</c-ptap>
</c-col>
</c-col>
<!-- <c-col :span="24">
<!-- <c-col :span="24">
<el-form-item label="申请人" prop="bfdgrp.apl.pts.ref">
<c-input
v-model="model.bfdgrp.apl.pts.ref"
......@@ -424,9 +482,7 @@
</el-form-item>
</c-col> -->
<!-- <c-col :span="24">
<!-- <c-col :span="24">
<el-form-item label="交单人" prop="bfdgrp.prb.pts.ref">
<c-input
v-model="model.bfdgrp.prb.pts.ref"
......@@ -453,12 +509,13 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Detdrv/Event";
import Ptap from "~/views/Public/Ptap";
import Ptsmsg from "~/views/Public/Ptsmsg";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
components: { "c-ptap": Ptap },
components: { "c-ptap": Ptap, "c-ptsmsg": Ptsmsg },
data() {
return {};
},
......
......@@ -71,8 +71,6 @@
rol: 'oth',
}"
:disabled="true"
@onSeainf="onSeainf"
@onAplpDet="onOthpDet"
>
</c-ptap>
</c-col>
......
......@@ -33,9 +33,9 @@
</el-tab-pane>
<!--PD000147 -->
<el-tab-pane label="Advice of Payment" name="mt754p">
<!-- <el-tab-pane label="Advice of Payment" name="mt754p">
<m-mt754p :model="model" :codes="codes"/>
</el-tab-pane>
</el-tab-pane> -->
<el-tab-pane label="费用及账务" name="setpan">
......@@ -45,24 +45,24 @@
</c-content>
</el-tab-pane>
<el-tab-pane label="分录" name="glepan">
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!-- <el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" />
</el-tab-pane>
<el-tab-pane label="表外" name="engp">
<!--PD000027 -->
<c-content>
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
</el-tab-pane> -->
<el-tab-pane label="保证金" name="ccvpan">
<!-- <el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
</el-tab-pane> -->
<!--PD000529 -->
<el-tab-pane label="面函" name="docpan">
<m-docpan :model="model" :codes="codes" ref="docpan" />
......@@ -70,7 +70,7 @@
<!--PD000001 -->
<el-tab-pane label="授信额度" name="limitbody">
<el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" />
</el-tab-pane>
......@@ -83,6 +83,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Detdrv from "~/model/Detdrv"
import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Detdrv/Check"
import Default from "~/model/Detdrv/Default"
import Pattern from "~/model/Detdrv/Pattern"
......@@ -126,7 +127,7 @@ export default {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "drv",
......
<template>
<div class="eibs-tab">
<div>
<c-col :span="20">
<el-form-item
:label="`${argadr.title}`"
......
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