Commit edc107fe by huangxin

brtdcr交易页面修改

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