1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<template>
<div class="eibs-tab">
<el-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="Remittance lnformation(70)" :prop="'setmod.setglg.setgll.' + idx + '.sespay.blkt70'">
<c-fullbox>
<c-mul-row-input type="textarea" :rows="4" :cols="35" :autosize="{ minRows: 4, maxRows: 4}" :charmod="2"
v-model="model.setmod.setglg.setgll[idx].sespay.blkt70" show-word-limit
:customModifykey="'setmod.setglg.setgll.' + idx + '.sespay.blkt70'"
@change="handleChangeSespay('blkt70')"></c-mul-row-input>
</c-fullbox>
</el-form-item>
</c-col>
<!-- <c-col :span="24" v-if="model.setmod.zmqflg === 'X'">
<el-form-item label="自贸区备注" :prop="'setmod.setglg.setgll.' + idx + '.sespay.comsystbl'">
<c-select v-model="model.setmod.setglg.setgll[idx].sespay.comsystbl" dbCode="comtbl" :filterKey="['5']"
@change="handleChangeComsystbl('comsystbl')">
</c-select>
</el-form-item>
</c-col> -->
</el-col>
<el-col :span="12" style="padding-left: 20px;">
<!-- <c-col :span="24">
<el-form-item label="Sender to Receiver lnformation(72)"
:prop="'setmod.setglg.setgll.' + idx + '.sespay.strinf'">
<c-fullbox>
<c-mul-row-input type="textarea" :rows="6" :cols="35" :autosize="{ minRows: 6, maxRows: 6}" :charmod="2"
v-model="model.setmod.setglg.setgll[idx].sespay.strinf" show-word-limit
:customModifykey="'setmod.setglg.setgll.' + idx + '.sespay.strinf'"
@change="handleChangeSespay('strinf')"></c-mul-row-input>
</c-fullbox>
</el-form-item>
</c-col> -->
<c-col :span="24">
<c-ptap-commons :cols="35" :rows="6" :minRows="6" :maxRows="6" :model="model" :charmod="2"
:extCodes="['setmod', 'setglg','setgll',idx,'sespay']" lastModel="strinf"
title="Sender to Receiver lnformation(72)"></c-ptap-commons>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event";
import commonDepend from "~/mixin/commonDepend.js";
export default {
inject: ["root"],
props: ["model", "codes", "idx"],
mixins: [event, commonDepend],
data() {
return {};
},
methods: {
handleChangeSespay(prop) {
this.customAddModify(this.model.setmod.setglg.setgll[this.idx].sespay, prop);
},
handleChangeComsystbl(prop) {
this.customAddModify(this.model.setmod.setglg.setgll[this.idx].sespay, prop);
if (this.model.setmod.setglg.setgll[this.idx].sespay.modifySet &&
!this.model.setmod.setglg.setgll[this.idx].sespay.modifySet.includes('strinf')) {
let strinf = this.model.setmod.setglg.setgll[this.idx].sespay.strinf;
if (this.getTransName === 'cptopn') {
if (this.model.cptp && this.model.cptp.qsfysd === '1') {
strinf = "/PPRO/"
} else {
strinf = '';
}
} else {
strinf = '';
}
let comsystbl = this.model.setmod.setglg.setgll[this.idx].sespay.comsystbl;
if (comsystbl === '') {
//保持原样
} else {
let localCodes = localStorage.getItem('localCodes');
if (localCodes) {
let comsystbls = JSON.parse(localCodes)['COMTBL_EN_COD'];
if (comsystbls) {
let value = '';
let comsystblObjs = comsystbls.filter(m => m.value === comsystbl);
if (comsystblObjs && comsystblObjs.length > 0) {
value = "//" + comsystblObjs[0].label;
if (strinf !== '') {
strinf += '\n' + value;
} else {
strinf = value;
}
}
}
}
}
this.model.setmod.setglg.setgll[this.idx].sespay.strinf = strinf;
}
},
},
computed: {
getTransName() {
let transName = this.trnName;
if (this.root) {
transName = this.root.trnName;
}
console.log("当前交易码", transName);
return transName;
}
},
};
</script>
<style>
</style>