Commit d7dd661c by Wuyuqiu

lttdck交易前后联动

parent a352c5c9
...@@ -2983,6 +2983,22 @@ const CodeTable = { ...@@ -2983,6 +2983,22 @@ const CodeTable = {
{ label: "Documents settled free of payment", value: "J" }, { label: "Documents settled free of payment", value: "J" },
{ label: "Documents have been refused and returned", value: "R" }, { label: "Documents have been refused and returned", value: "R" },
], ],
docsta2: [
{ label: "Goods rel., Advice of Payment received", value: "A" },
{ label: "Goods rel., Advice of Payment + docs rec", value: "B" },
{ label: "Advice of Payment rec., wait for docs", value: "C" },
{ label: "Advice of Payment rec., documents rec.", value: "D" },
{ label: "Adv. of Discrep. received, wait for docs", value: "E" },
{ label: "Adv of Discrepancy rec., document rec.", value: "F" },
{ label: "Documents received", value: "G" },
{ label: "Clean documents received", value: "H" },
{ label: "Discrepant documents received", value: "I" },
{ label: "Goods released, wait for documents", value: "J" },
{ label: "Goods released, documents received", value: "K" },
{ label: "Documents sent on approval basis", value: "L" },
{ label: "Documents taken up", value: "M" },
{ label: "Documents settled free of payment", value: "N" },
],
doctyp: [ doctyp: [
{ label: "买方单据", value: "BDD" }, { label: "买方单据", value: "BDD" },
{ label: "进口代收", value: "BCD" }, { label: "进口代收", value: "BCD" },
...@@ -4494,6 +4510,11 @@ const CodeTable = { ...@@ -4494,6 +4510,11 @@ const CodeTable = {
{ label: "Beneficiary", value: "BEN" }, { label: "Beneficiary", value: "BEN" },
{ label: "Presenter(PRP)", value: "PRB" }, { label: "Presenter(PRP)", value: "PRB" },
], ],
docprbrol2: [
{ label: "Adv. Bank Transfer", value: "ADT" },
{ label: "2nd Beneficiary", value: "BE2" },
{ label: "Presenter(PRP)", value: "PRB" },
],
// payrol1:[ // payrol1:[
// {label:"Applicant : TG3131232121",value:"1"}, // {label:"Applicant : TG3131232121",value:"1"},
// {label:"Issuing Bank : CHINA EVERBRIGHT BANK",value:"2"}, // {label:"Issuing Bank : CHINA EVERBRIGHT BANK",value:"2"},
......
...@@ -421,7 +421,7 @@ export default { ...@@ -421,7 +421,7 @@ export default {
], ],
"ledgrp.a2b.pts.adrblk": [ "ledgrp.a2b.pts.adrblk": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: true, message: "必输项" },
{ max: 35, message: "长度不能超过35" } { type: "string",max: 999, message: "长度不能超过35" }
], ],
"ledgrp.a2b.dbfadrblkcn": [ "ledgrp.a2b.dbfadrblkcn": [
{ type: "string", required: true, message: "必输项" }, { type: "string", required: true, message: "必输项" },
......
...@@ -182,5 +182,9 @@ export default { ...@@ -182,5 +182,9 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
onSeainf(){},
onBenpDet(){},
onAplpDet(){},
} }
\ No newline at end of file
...@@ -123,9 +123,9 @@ export default { ...@@ -123,9 +123,9 @@ export default {
"btdgrp.cbs.max.amt":[ "btdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } { pattern: /(^-?\d+$)|(^\.\d{1,3}$)|(^-?\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"btdgrp.prb.namelc":[ "btdgrp.prb.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
...@@ -133,13 +133,13 @@ export default { ...@@ -133,13 +133,13 @@ export default {
], ],
"btdgrp.cbs.max2.amt":[ "btdgrp.cbs.max2.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } { pattern: /(^-?\d+$)|(^\.\d{1,3}$)|(^-?\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"btdgrp.prb.pts.adrblk":[ "btdgrp.prb.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {type: "string",max: 999,message:"长度不能超过35"}
], ],
"btdgrp.prb.dbfadrblkcn":[ "btdgrp.prb.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
...@@ -162,34 +162,34 @@ export default { ...@@ -162,34 +162,34 @@ export default {
{type: "date", required: false, message: "输入正确的日期"} {type: "date", required: false, message: "输入正确的日期"}
], ],
"btdgrp.blk.matper":[ "btdgrp.blk.matper":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"ltdgrp.rec.utlnbr":[ "ltdgrp.rec.utlnbr":[
{type: "string", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"btdgrp.blk.docdis":[ "btdgrp.blk.docdis":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"} {type: "string",max: 999,message:"长度不能超过50"}
], ],
"btdgrp.blk.intdis":[ "btdgrp.blk.intdis":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"} {type: "string",max: 999,message:"长度不能超过65"}
], ],
"btdgrp.blk.comcon":[ "btdgrp.blk.comcon":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"} {type: "string",max: 999,message:"长度不能超过65"}
], ],
"btdgrp.blk.setinsbt":[ "btdgrp.blk.setinsbt":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"} {type: "string",max: 999,message:"长度不能超过65"}
], ],
......
...@@ -51,6 +51,7 @@ export default class Lttdck { ...@@ -51,6 +51,7 @@ export default class Lttdck {
}, },
ltdgrp: { ltdgrp: {
rec: { rec: {
inr:"",//ltdgrp.rec.inr
ownref: "", // Transfer Reference .ltdgrp.rec.ownref ownref: "", // Transfer Reference .ltdgrp.rec.ownref
nam: "", // Name .ltdgrp.rec.nam nam: "", // Name .ltdgrp.rec.nam
avbby: "", // Available by .ltdgrp.rec.avbby avbby: "", // Available by .ltdgrp.rec.avbby
......
<template> <template>
<div class="eContainer"> <c-page title="转让信用证查询">
<el-form <div class="eContainer">
:model="model" <!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
:rules="rules" <el-form
ref="modelForm" :model="model"
label-width="150px" :rules="rules"
label-position="left" ref="modelForm"
size="small" label-width="150px"
:validate-on-rule-change="false" label-position="left"
> size="small"
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> :validate-on-rule-change="false"
<!--PD000006 --> >
<el-tab-pane label="Selection" name="infsea"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<m-infsea :model="model" :codes="codes" />
</el-tab-pane> <!--PD000006 Selection -->
<el-tab-pane label="转让信用证查询" name="infsea">
<!--PD000003 --> <c-content>
<el-tab-pane label="Docs under Trasfer L/C" name="infconp"> <m-infsea :model="model" :codes="codes"/>
<m-infconp :model="model" :codes="codes" /> </c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000296 --> </c-tabs>
<el-tab-pane label="Discr./Instr." name="dscinsp"> </el-form>
<m-dscinsp :model="model" :codes="codes" /> </div>
</el-tab-pane> </c-page>
<!--PD000000 -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000013 -->
<el-tab-pane label="Transaction" name="trnpan">
<m-trnpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000019 -->
<el-tab-pane label="CBS Info" name="cbsinfp">
<m-cbsinfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000028 -->
<el-tab-pane label="CBE Info" name="cbeinfp">
<m-cbeinfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000111 -->
<el-tab-pane label="FEP/FCP Info" name="fepinfp">
<m-fepinfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000162 -->
<el-tab-pane label="SEP Info" name="sepinfp">
<m-sepinfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000177 -->
<el-tab-pane label="GEL Bookings" name="gleinfp">
<m-gleinfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000119 -->
<el-tab-pane label="SMH Info" name="smhinfp">
<m-smhinfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000130 -->
<el-tab-pane label="SPT/DIA Info" name="peninfp">
<m-peninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000005 -->
<el-tab-pane label="Print" name="prtpan">
<m-prtpan :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</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 Infbtd from "~/model/Infbtd"; import Infbtd from "~/model/Infbtd"
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Infbtd/Check"; import Check from "~/model/Infbtd/Check"
import Default from "~/model/Infbtd/Default"; import Default from "~/model/Infbtd/Default"
import Pattern from "~/model/Infbtd/Pattern"; import Pattern from "~/model/Infbtd/Pattern"
import Infsea from "./Infsea"; import Infsea from "./Infsea"
import Infconp from "./Infconp";
import Dscinsp from "./Dscinsp";
import Coninfp from "./Coninfp";
import Trnpan from "./Trnpan";
import Cbsinfp from "./Cbsinfp";
import Cbeinfp from "./Cbeinfp";
import Fepinfp from "./Fepinfp";
import Sepinfp from "./Sepinfp";
import Gleinfp from "./Gleinfp";
import Smhinfp from "./Smhinfp";
import Peninfp from "./Peninfp";
import Prtpan from "./Prtpan";
export default { export default {
components: { name: "Infbtd",
"m-infsea": Infsea, components:{
"m-infconp": Infconp, "m-infsea" : Infsea,
"m-dscinsp": Dscinsp,
"m-coninfp": Coninfp, },
"m-trnpan": Trnpan, provide() {
"m-cbsinfp": Cbsinfp, return {
"m-cbeinfp": Cbeinfp, root: this
"m-fepinfp": Fepinfp, }
"m-sepinfp": Sepinfp, },
"m-gleinfp": Gleinfp, mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
"m-smhinfp": Smhinfp, data(){
"m-peninfp": Peninfp, return {
"m-prtpan": Prtpan, tabVal: "infsea",
}, trnName: "Infbtd",
provide() { model: new Infbtd().data,
return { checkRules: Check,
root: this, defaultRules: Default,
}; pattern: Pattern,
}, rules: null,
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 codes:{...CodeTable},
data() { }
return { },
tabVal: "infsea", methods:{
trnName: "infbtd", tabClick(){
model: new Infbtd().data, }
checkRules: Check, },
defaultRules: Default, created:async function(){
pattern: Pattern, console.log("进入Infbtd交易");
rules: null, let rtnmsg = await this.init({})
codes: { if(rtnmsg.respCode == SUCCESS)
hndtyp: CodeTable.hndtyp, {
relflg: CodeTable.relflg, //更新数据
seasta: CodeTable.seasta, this.updateModel(rtnmsg.data)
seacur: CodeTable.seacur, // Utils.copyValueFromVO(this.model, rtnmsg.data);
}, if (this.isInDisplay) {
}; this.restoreDisplay();
}, }
methods: { }
tabClick() {}, else
}, {
created: async function () { this.$notify.error({title: '错误',message: '服务请求失败!'});
console.log("进入infbtd交易"); }
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
//this.model = Utils.copyValueFromVO(this.model, Response.data)
//this.stmData.data = Response.data.infbut_dspstm.rows;
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
}, }
};
</script> </script>
<style> <style>
</style> </style>
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
@onSeainf="onSeainf" @onSeainf="onSeainf"
@onAplpDet="onDrwpDet" @onAplpDet="onDrwpDet"
:disabled="blkDftatFlag" :disabled="blkDftatFlag"
:disabledExtkey="model.ledgrp.rec.avbby=='D'||model.ledgrp.rec.avbby=='M'||model.ledgrp.rec.avbby==''"
> >
</c-ptap> </c-ptap>
</c-col> </c-col>
......
...@@ -146,6 +146,7 @@ ...@@ -146,6 +146,7 @@
<c-checkbox <c-checkbox
v-model="model.letp.aamp.aammod.addamtflg" v-model="model.letp.aamp.aammod.addamtflg"
style="margin-left: 10px" style="margin-left: 10px"
@change="openAddDetails"
>Add. Amount</c-checkbox >Add. Amount</c-checkbox
> >
</c-col> </c-col>
...@@ -503,6 +504,42 @@ export default { ...@@ -503,6 +504,42 @@ export default {
this.model.ledgrp.rec.apprultxt = ""; this.model.ledgrp.rec.apprultxt = "";
} }
}, },
openAddDetails(val){
if(val ==='' && !( this.model.ledgrp.cbs.max2.amt == '0' && this.model.ledgrp.cbs.opn2.amt == '0'
&&this.model.ledgrp.blk.addamtcov ==='') ){
this.$confirm('Do you really want to delete the additional amount of this contract?','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:false
}).then(() => {//yes的执行在这里写
this.executeRule('letp.aamp.aammod.addamtflg').then(res => {
if (res.respCode == SUCCESS) {
this.model.ledgrp.cbs.max2.amt = '0';
this.model.ledgrp.cbs.opn2.amt == '0'
this.model.ledgrp.blk.addamtcov ='';
this.updateModel(res.data)
}
})
// this.model.ledgrp.rec.revtyp ='';
// this.model.ledgrp.rec.revtimes = '0';
// this.model.ledgrp.rec.revdat ='';
// this.model.ledgrp.rec.revcum ='';
// this.model.ledgrp.blk.revcls ='';
// this.model.ledgrp.blk.revnotes ='';
// this.$message({
// type: 'success',
// message: '删除成功!'
// });
}).catch(() => {//No的功能在这里写
this.model.letp.aamp.aammod.addamtflg ='X'
// this.$message({
// type: 'info',
// message: '已取消'
// });
});
}
}
}, },
created: function () {}, created: function () {},
}; };
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
:argadr="{ :argadr="{
title: '2nd Advising Bank', title: '2nd Advising Bank',
grp: 'ledgrp', grp: 'ledgrp',
rol: 'a2b', rol: 'a2b',
}" }"
@onSeainf="onSeainf" @onSeainf="onSeainf"
@onAplpDet="onA2bpDet" @onAplpDet="onA2bpDet"
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
style="width: 100%" style="width: 100%"
placeholder="Please select Confirm. Instruct. to 2nd Adv. Bank" placeholder="Please select Confirm. Instruct. to 2nd Adv. Bank"
:code="codes.cnfflg1" :code="codes.cnfflg1"
disabled :disabled="model.ledgrp.a2b.pts.extkey==''"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000017 --> <!--PD000017 -->
<el-tab-pane label="Overview" name="ovwp"> <el-tab-pane label="Overview" name="ovwp">
<m-ovwp :model="model" :codes="codes" /> <c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!--PD000001 --> <!--PD000001 -->
......
...@@ -152,6 +152,29 @@ ...@@ -152,6 +152,29 @@
</c-fullbox> </c-fullbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<el-form-item
label="Document Set Status"
prop="btdgrp.rec.docsta"
style="width: 100%"
>
<c-select
v-model="model.btdgrp.rec.docsta"
style="width: 100%"
placeholder="Please select Document Set Status"
disabled
>
<el-option
v-for="item in codes.docsta2"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col> </c-col>
<!-- right --> <!-- right -->
......
...@@ -3,64 +3,70 @@ ...@@ -3,64 +3,70 @@
<!-- left --> <!-- left -->
<c-col :span="11"> <c-col :span="11">
<c-col :span="24"> <c-col :span="24">
<c-col :span="20"> <el-form-item
<el-form-item label="L/C Reference"
label="L/C Reference" prop="ledgrp.rec.ownref"
prop="ledgrp.rec.ownref" style="width: 100%"
style="width: 100%" >
> <c-fullbox>
<c-input <c-input
v-model="model.ledgrp.rec.ownref" v-model="model.ledgrp.rec.ownref"
maxlength="16" maxlength="8"
placeholder="请输入L/C Reference" placeholder="Please input L/C Reference"
style="width: 100%" :disabled="true"
disabled
></c-input> ></c-input>
</el-form-item> <template slot="footer">
</c-col> <c-button
<c-col :span="1"> style="margin-left: 10px; padding: 0 12px"
<c-button size="small"
style="margin: 0 10px 0 0; padding: 0 12px" type="primary"
size="small" @click="onSeainf"
type="primary" >
@click="onSeainf" <span
> style="
<span font-size: 15px;
style="font-size: 15px; font-family: '宋体'; font-weight: bold" font-family: '宋体';
>i</span font-weight: bold;
> "
</c-button> >i</span
</c-col> >
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="20"> <el-form-item
<el-form-item label="Transfer Reference"
label="Transfer Reference" prop="ltdgrp.rec.ownref"
prop="ltdgrp.rec.ownref" style="width: 100%"
style="width: 100%" >
> <c-fullbox>
<c-input <c-input
v-model="model.ltdgrp.rec.ownref" v-model="model.ltdgrp.rec.ownref"
maxlength="16" maxlength="8"
placeholder="请输入Transfer Reference" placeholder="Please input Transfer Reference"
style="width: 100%" :disabled="true"
disabled
></c-input> ></c-input>
</el-form-item> <template slot="footer">
</c-col> <c-button
<c-col :span="1"> style="margin-left: 10px; padding: 0 12px"
<c-button size="small"
style="margin: 0 10px 0 0; padding: 0 12px" type="primary"
size="small" @click="onSeainf"
type="primary" >
@click="onSeainf" <span
> style="
<span font-size: 15px;
style="font-size: 15px; font-family: '宋体'; font-weight: bold" font-family: '宋体';
>i</span font-weight: bold;
> "
</c-button> >i</span
</c-col> >
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="L/C Amount" prop="ltdgrp.cbs.nom1.cur"> <el-form-item label="L/C Amount" prop="ltdgrp.cbs.nom1.cur">
...@@ -227,7 +233,8 @@ ...@@ -227,7 +233,8 @@
}" }"
:enRef="true" :enRef="true"
:enNam="true" :enNam="true"
:disabled="true" :disabled="false"
:disabled1="true"
></c-ptsmsg> ></c-ptsmsg>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -240,7 +247,8 @@ ...@@ -240,7 +247,8 @@
}" }"
:enRef="true" :enRef="true"
:enNam="true" :enNam="true"
:disabled="true" :disabled="false"
:disabled1="true"
></c-ptsmsg> ></c-ptsmsg>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
...@@ -253,7 +261,8 @@ ...@@ -253,7 +261,8 @@
}" }"
:enRef="true" :enRef="true"
:enNam="true" :enNam="true"
:disabled="true" :disabled="false"
:disabled1="true"
></c-ptsmsg> ></c-ptsmsg>
</c-col> </c-col>
</c-col> </c-col>
...@@ -470,7 +479,7 @@ ...@@ -470,7 +479,7 @@
@change="selectOrCheckboxRule('btdgrp.rec.docprbrol')" @change="selectOrCheckboxRule('btdgrp.rec.docprbrol')"
> >
<el-option <el-option
v-for="item in codes.docprbrol0" v-for="item in codes.docprbrol2"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
...@@ -490,7 +499,7 @@ ...@@ -490,7 +499,7 @@
}" }"
:noRef="true" :noRef="true"
:disabled="!(model.btdgrp.rec.docprbrol == 'PRB')" :disabled="!(model.btdgrp.rec.docprbrol == 'PRB')"
:disabledExtkey="model.btdgrp.rec.docprbrol == 'BEN'" :disabledExtkey="model.btdgrp.rec.docprbrol == 'ADT'||model.btdgrp.rec.docprbrol == 'BE2'"
@onSeainf="onSeainf" @onSeainf="onSeainf"
@onAplpDet="onBenpDet" @onAplpDet="onBenpDet"
> >
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin-left:10px; padding: 0 12px" style="margin-left: 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf" @click="onSeainf"
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<el-form-item <el-form-item
...@@ -85,11 +84,11 @@ ...@@ -85,11 +84,11 @@
size="small" size="small"
type="primary" type="primary"
:disabled=" :disabled="
!model.ltdgrp.rec.ownref&&model.ltdgrp.be1.pta.inr !model.ltdgrp.rec.ownref && model.ltdgrp.be1.pta.inr
? false ? false
: true : true
" "
@click="onLttpButgetref" @click="onLttpButgetref"
> >
Get Get
</c-button> </c-button>
...@@ -139,7 +138,7 @@ ...@@ -139,7 +138,7 @@
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button <c-button
style="margin-left:10px; padding: 0 12px" style="margin-left: 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf" @click="onSeainf"
...@@ -193,8 +192,8 @@ ...@@ -193,8 +192,8 @@
<c-checkbox <c-checkbox
v-model="model.lttp.aamp.aammod.addamtflg" v-model="model.lttp.aamp.aammod.addamtflg"
style="margin-left: 10px" style="margin-left: 10px"
:disabled="model.ltdgrp.cbs.max2.amt==''" :disabled="model.ltdgrp.cbs.max2.amt == ''"
@change="openAddDetails" @change="openAddDetails"
>Add. Amount</c-checkbox >Add. Amount</c-checkbox
> >
</c-col> </c-col>
...@@ -264,28 +263,27 @@ ...@@ -264,28 +263,27 @@
</c-col> </c-col>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Issued on" prop="ltdgrp.rec.opndat"> <el-form-item label="Issued on" prop="ltdgrp.rec.opndat">
<c-date-picker <c-date-picker
type="date" type="date"
v-model="model.ltdgrp.rec.opndat" v-model="model.ltdgrp.rec.opndat"
style="width: 100%" style="width: 100%"
placeholder="Please select Issued on" placeholder="Please select Issued on"
></c-date-picker> ></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24">
<el-form-item label="Shipment Date" prop="ltdgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.ltdgrp.rec.shpdat"
style="width: 100%"
placeholder="Please select Shipment Date"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Shipment Date" prop="ltdgrp.rec.shpdat">
<c-date-picker
type="date"
v-model="model.ltdgrp.rec.shpdat"
style="width: 100%"
placeholder="Please select Shipment Date"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Expiring on" prop="ltdgrp.rec.expdat"> <el-form-item label="Expiring on" prop="ltdgrp.rec.expdat">
...@@ -361,10 +359,7 @@ ...@@ -361,10 +359,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item <el-form-item label="Confirmation Instruct." prop="ltdgrp.rec.cnfins">
label="Confirmation Instruct."
prop="ltdgrp.rec.cnfins"
>
<c-select <c-select
v-model="model.ltdgrp.rec.cnfins" v-model="model.ltdgrp.rec.cnfins"
style="width: 100%" style="width: 100%"
...@@ -374,7 +369,6 @@ ...@@ -374,7 +369,6 @@
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
<!-- right --> <!-- right -->
...@@ -394,8 +388,7 @@ ...@@ -394,8 +388,7 @@
> >
</c-ptap> </c-ptap>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="" prop="ltdgrp.be1.pts.nam">
<el-form-item label="" prop="ltdgrp.be1.pts.nam">
<c-input <c-input
v-model="model.ltdgrp.be1.pts.nam" v-model="model.ltdgrp.be1.pts.nam"
maxlength="40" maxlength="40"
...@@ -841,22 +834,35 @@ export default { ...@@ -841,22 +834,35 @@ export default {
this.model.ltdgrp.rec.apprultxt = ""; this.model.ltdgrp.rec.apprultxt = "";
} }
}, },
openAddDetails(val){ openAddDetails(val) {
if(val ==='' && !( this.model.ltdgrp.cbs.max2.amt == '0' && this.model.ltdgrp.cbs.opn2.amt == '0' if (
&&this.model.ltdgrp.blk.addamtcov ==='') ){ val === "" &&
this.$confirm('Do you really want to delete the additional amount of this contract?','提示',{ !(
confirmButtonText: 'Yes', this.model.ltdgrp.cbs.max2.amt == "0" &&
cancelButtonText: 'No', this.model.ltdgrp.cbs.opn2.amt == "0" &&
type: 'warning', this.model.ltdgrp.blk.addamtcov === ""
showClose:false )
}).then(() => {//yes的执行在这里写 ) {
this.executeRule('lttp.aamp.aammod.addamtflg').then(res => { this.$confirm(
if (res.respCode == SUCCESS) { "Do you really want to delete the additional amount of this contract?",
this.model.ltdgrp.cbs.max2.amt = '0'; "提示",
this.model.ltdgrp.blk.addamtcov =''; {
this.updateModel(res.data) confirmButtonText: "Yes",
} cancelButtonText: "No",
}) type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.executeRule("lttp.aamp.aammod.addamtflg").then((res) => {
if (res.respCode == SUCCESS) {
this.model.ltdgrp.cbs.max2.amt = "0";
this.model.ltdgrp.cbs.opn2.amt == "0"
this.model.ltdgrp.blk.addamtcov = "";
this.updateModel(res.data);
}
});
// this.model.ledgrp.rec.revtyp =''; // this.model.ledgrp.rec.revtyp ='';
// this.model.ledgrp.rec.revtimes = '0'; // this.model.ledgrp.rec.revtimes = '0';
// this.model.ledgrp.rec.revdat =''; // this.model.ledgrp.rec.revdat ='';
...@@ -867,15 +873,17 @@ export default { ...@@ -867,15 +873,17 @@ export default {
// type: 'success', // type: 'success',
// message: '删除成功!' // message: '删除成功!'
// }); // });
}).catch(() => {//No的功能在这里写 })
this.model.lttp.aamp.aammod.addamtflg ='X' .catch(() => {
// this.$message({ //No的功能在这里写
// type: 'info', this.model.lttp.aamp.aammod.addamtflg = "X";
// message: '已取消' // this.$message({
// }); // type: 'info',
}); // message: '已取消'
} // });
} });
}
},
}, },
created: function () {}, created: function () {},
}; };
......
<template>
<ReviewWrapper>
<Lttdck></Lttdck>
</ReviewWrapper>
</template>
<script>
import Lttdck from "~/views/Business/Lttdck";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewLttdck",
components: { ReviewWrapper, Lttdck },
created() {},
mounted() {},
};
</script>
<style></style>
...@@ -90,6 +90,7 @@ import ReviewBetamc from "./Business/ReviewBetamc.vue"; ...@@ -90,6 +90,7 @@ import ReviewBetamc from "./Business/ReviewBetamc.vue";
import ReviewCptcan from "./Business/ReviewCptcan.vue"; import ReviewCptcan from "./Business/ReviewCptcan.vue";
import ReviewCptrep from "./Business/ReviewCptrep.vue"; import ReviewCptrep from "./Business/ReviewCptrep.vue";
import ReviewCltdav from "./Business/ReviewCltdav.vue"; import ReviewCltdav from "./Business/ReviewCltdav.vue";
import ReviewLttdck from "./Business/ReviewLttdck.vue";
const ReviewRouter = [ const ReviewRouter = [
...@@ -193,7 +194,7 @@ const ReviewRouter = [ ...@@ -193,7 +194,7 @@ const ReviewRouter = [
{ path: "ccttra", component: ReviewCcttra, name: "ReviewCcttra", meta: { title: "复核-Ccttra" } }, { path: "ccttra", component: ReviewCcttra, name: "ReviewCcttra", meta: { title: "复核-Ccttra" } },
{ path: "lttopn", component: ReviewLttopn, name: "ReviewLttopn", meta: { title: "复核-Lttopn" } }, { path: "lttopn", component: ReviewLttopn, name: "ReviewLttopn", meta: { title: "复核-Lttopn" } },
{ path: "cltdav", component: ReviewCltdav, name: "ReviewCltdav", meta: { title: "复核-Cltdav" } }, { path: "cltdav", component: ReviewCltdav, name: "ReviewCltdav", meta: { title: "复核-Cltdav" } },
{ path: "lttdck", component: ReviewLttdck, name: "ReviewLttdck", meta: { title: "复核-Lttdck" } },
{ path: "Cptati", component: ReviewCptati, name: "ReviewCptati", meta: { title: "复核-Cptati" } }, { path: "Cptati", component: ReviewCptati, name: "ReviewCptati", meta: { title: "复核-Cptati" } },
{ path: "Cptato", component: ReviewCptato, name: "ReviewCptato", meta: { title: "复核-Cptato" } }, { path: "Cptato", component: ReviewCptato, name: "ReviewCptato", meta: { title: "复核-Cptato" } },
{ path: "Cptcan", component: ReviewCptcan, name: "ReviewCptcan", meta: { title: "复核-Cptcan" } }, { path: "Cptcan", component: ReviewCptcan, name: "ReviewCptcan", meta: { title: "复核-Cptcan" } },
......
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