Commit edc107fe by huangxin

brtdcr交易页面修改

parent f3a41cb4
......@@ -5,6 +5,7 @@
<el-form-item label="Discrepancies" prop="brdgrp.blk.docdis">
<c-fullbox>
<c-input
:disabled="model.advrefflg==''"
type="textarea"
v-model="model.brdgrp.blk.docdis"
maxlength="3500"
......@@ -13,7 +14,7 @@
placeholder="请输入Discrepancies"
></c-input>
<template slot="footer">
<c-button size="small" type="primary" icon="el-icon-search"
<c-button :disabled="model.advrefflg==''" size="small" type="primary" icon="el-icon-search"
@click="showGridPromptDialog('brtp.docdis.buttxmsel', null, null,{TXT: 'brdgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
>
...
......
......@@ -214,8 +214,7 @@
grp: 'brdgrp',
rol: 'prb',
}"
:disabled="true"
:isAdrblk="false"
:disabled="this.flag1"
>
</c-ptap1>
</c-col>
......@@ -306,10 +305,10 @@
</c-col>
<c-col :span="24">
<el-form-item label="">
<el-form-item label="" prop="advrefflg">
<c-col :span="12">
<c-checkbox :disabled="model.brdgrp.blk.disdocflg =='X'" v-model="model.advrefflg"
>Send Advice of Refusal MT734</c-checkbox
@change="advrefflgChange" >Send Advice of Refusal MT734</c-checkbox
>
</c-col>
<c-col :span="12">
......@@ -321,10 +320,10 @@
</c-col>
<c-col :span="24">
<el-form-item label="">
<el-form-item label="" prop="brdgrp.rec.advdocflg">
<c-col :span="12">
<c-checkbox v-model="model.brdgrp.rec.advdocflg"
>Return of Documents</c-checkbox
@change="advdocflgChange">Return of Documents</c-checkbox
>
</c-col>
<c-col :span="12">
......@@ -375,6 +374,7 @@ import Event from "~/model/Brtdcr/Event";
import CurAmt from "~/views/Public/CurAmt";
import LitTemp from "~/views/Public/LitTemp";
import Ptap1 from "~/views/Public/Ptap1";
import Utils from "~/utils";
export default {
inject: ["root"],
......@@ -385,11 +385,23 @@ export default {
"c-litTemp": LitTemp,
"c-ptap1": Ptap1,
},
data() {
return {
flag: true,
flag1:true,
};
},
watch:{
"model.brdgrp.prb.pts.extkey":{
immediate:true,
handler(val ,oldVal){
if(this.model.brdgrp.prb.pts.extkey!=''){
this.flag1=true;
}
}
},
},
computed: {
advrefflg: {
get() {
......@@ -399,9 +411,30 @@ export default {
this.model.advrefflg = val ? "X" : "";
},
},
advdocflg: {
get() {
return this.model.brdgrp.rec.advdocflg === "X";
},
set(val) {
this.model.brdgrp.rec.advdocflg = val ? "X" : "";
},
},
},
methods: { ...Event,
async advrefflgChange() {
let rtnmsg = await this.executeRule("brdgrp.blk.disdoc")
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
async advdocflgChange() {
let rtnmsg = await this.executeRule("brdgrp.blk.disdoc")
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
methods: { ...Event },
created: function () {},
},
};
</script>
<style>
......
......@@ -14,7 +14,7 @@
<el-button size="small">智能提示</el-button>
</c-function-btn>
<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="myTabClick">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000037 -->
<el-tab-pane label="Details" name="utlp">
......@@ -150,12 +150,12 @@ export default {
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
// myTabClick(tab){
// this.tabClick(tab)
/**
* do it yourself
**/
}
// }
},
created:async function(){
console.log("进入brtdcr交易");
......
......@@ -163,12 +163,13 @@
label="Document Type"
:prop="`${argadr.trans}.rec.docflg`"
>
<c-input
<c-select
v-model="model[argadr.trans].rec.docflg"
style="width: 100%"
disabled
:code="docflg"
>
</c-input>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
......@@ -192,12 +193,13 @@
label="Document Type"
:prop="`${argadr.trans}.rec.docflg`"
>
<c-input
<c-select
v-model="model[argadr.trans].rec.docflg"
style="width: 100%"
disabled
:code="docflg"
>
</c-input>
</c-select>
</el-form-item>
</c-col>
</div>
......@@ -208,12 +210,13 @@
label="Document Set Status"
:prop="`${argadr.trans}.rec.docsta`"
>
<c-input
<c-select
v-model="model[argadr.trans].rec.docsta"
maxlength="1"
style="width: 100%"
disabled
:code="docsta"
>
</c-input>
</c-select>
</c-form-item>
</c-col>
</c-col>
......@@ -279,23 +282,33 @@ export default {
data() {
return {
data: [],
cur: [
{ label: "HKD", value: "HKD" },
{ label: "CHF", value: "CHF" },
{ label: "EUR", value: "EUR" },
{ label: "USD", value: "USD" },
{ label: "CAD", value: "CAD" },
{ label: "CNY", value: "CNY" },
{ label: "AUD", value: "AUD" },
{ label: "SGD", value: "SGD" },
{ label: "KRW", value: "KRW" },
{ label: "JPY", value: "JPY" },
{ label: "GBP", value: "GBP" },
{ label: "N/A(仅限汇总填报时使用)", value: "N/A" },
{ label: "SEK", value: "SEK" },
{ label: "NZD", value: "NZD" },
],
curtxt1: [
docflg: [
{ label: "Mixed Payment Documents", value: "M" },
{ label: "Sight Documents", value: "P" },
{ label: "Usance Documents(Acceptance)", value: "A" },
{ label: "Usance Documents(Deferred)", value: "D" },
],
docsta: [
{ label: "Goods released, Adv. of Payment received", value: "A" },
{ label: "Goods released, Adv. of Payment + docs", value: "B" },
{ label: "Adv. of Payment received, wait for docs", value: "C" },
{ label: "Advice of Payment and documents received", value: "D" },
{ label: "Adv. of Discrep. received, wait for docs", value: "E" },
{ label: "Advice of Discrepancy and docs received", 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" },
{ label: "Discrepant document received in trust", value: "T" },
{ label: "Other Type of Advice, wait for documents", value: "O" },
{ label: "Documents have been refused and returned", value: "R" },
],
curtxt1: [
{ label: `CNY-人民币`, value: `CNY` },
{ label: `KRW-韩元`, value: `KRW` },
{ label: `NZD-新西兰元`, value: `NZD` },
......
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