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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<template>
<div class="eibs-tab">
<c-row>
<!--=================顶部================= -->
<c-col :span="11">
<c-form-item label="父交易参考号" prop="trdgrp.rec.pntref">
<c-input v-model="model.trdgrp.rec.pntref" maxlength="16" :disabled="true"></c-input>
</c-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="简略信息" prop="trdgrp.rec.pntnam">
<c-input v-model="model.trdgrp.rec.pntnam" maxlength="40" :disabled="true" ></c-input>
</c-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="参考号" prop="trdgrp.rec.ownref">
<c-input v-model="model.trdgrp.rec.ownref" maxlength="16" :disabled="true"></c-input>
</c-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="简略信息" prop="trdgrp.rec.nam">
<c-input v-model="model.trdgrp.rec.nam" maxlength="40" :disabled="true"></c-input>
</c-form-item>
</c-col>
<!--=================中部-左================= -->
<c-col :span="11">
<c-col :span="24">
<c-form-item label="融资比例" prop="trdgrp.rec.pctfin">
<c-input v-model="model.trdgrp.rec.pctfin" style="width:95%" :disabled="true"></c-input>%
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="融资金额" prop="trdgrp.cbs.max.cur">
<c-fullbox>
<c-select v-model="model.trdgrp.cbs.max.cur" style="width:34%" :disabled="true">
<el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value"></el-option>
</c-select>
<c-input v-model="model.trdgrp.cbs.max.amt" style="width:66%" :disabled="true" ></c-input>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="余额" prop="trdgrp.cbs.opn1.cur">
<c-fullbox>
<c-input v-model="model.trdgrp.cbs.opn1.cur" style="width:34%" maxlength="3" :disabled="true"></c-input>
<c-input v-model="model.trdgrp.cbs.opn1.amt" style="width:66%" :disabled="true"></c-input>
</c-fullbox>
</c-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="起息日期" prop="trdgrp.rec.stttendat">
<c-date-picker type="date" v-model="model.trdgrp.rec.stttendat" style="width:100%" :disabled="true"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="押汇到期日期" prop="trdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.trdgrp.rec.matdat" style="width:100%" :disabled="true"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="22" :offset="2">
<c-istream-table
ref="table"
:list="model.liaall.tenstm.rows || []"
:columns="trnData.columns"
:showSelection="true"
v-on:multipleSelect="multipleSelect"
prop="liaall.tenstm"
>
</c-istream-table>
</c-col>
<c-col :span="24">
<c-ptap :model="model" :argadr="{
title: '偿付行',
grp: 'trdgrp',
rol: 'rmb',
}" :noRef="true" :disabled="true" :disabledExtkey="true" @onSeainf="onSeainf">
</c-ptap>
</c-col>
</c-col>
<!--=================中部-右================= -->
<c-col :span="11">
<c-col :span="24">
<c-form-item label="融资客户" prop="trdgrp.fip.pts.ref">
<c-input v-model="model.trdgrp.fip.pts.ref" maxlength="16" :disabled="true"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="客户地址" prop="trdgrp.fip.pts.nam">
<c-input v-model="model.trdgrp.fip.pts.nam" maxlength="40" :disabled="true"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="融资品种" prop="trdgrp.rec.fintyp">
<c-input v-model="model.trdgrp.rec.fintyp" maxlength="3" :disabled="true"></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="融资账号" prop="trdgrp.rec.finact">
<c-input v-model="model.trdgrp.rec.finact" maxlength="21" :disabled="true" ></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="叙述内容(77A)" prop="trnmod.trndoc.nar754">
<c-input type="textarea" v-model="model.trnmod.trndoc.nar754" maxlength="35" show-word-limit :placeholder="$t('other.please_enter')+'叙述内容(77A)'" ></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-ptap :model="model" :argadr="{
title: '开证行',
grp: 'trdgrp',
rol: 'iss',
}" :noRef="true" :disabled="true" :disabledExtkey="true" @onSeainf="onSeainf">
</c-ptap>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Trtrcl/Event"
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptap": Ptap },
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess, commonFuncs],
data(){
return {
typ1: true,
// flag1: false,
trnData: {
columns: [
'1 1 "类型" 60',
'2 2 "Dbt" 60',
'3 3 "Cdt" 80',
'4 4 "币种" 50',
'5 5 "金额" 120 2 8 1 4',
// '6 6 "Mat.Dat." 120 4 7 1',
{
index: 6,
position: 6,
width: 250,
render: (item, scope) => {
return scope.row[item.prop] === "null"
? ""
: scope.row[item.prop];
},
label: "Mat.Dat.",
},
],
data: [],
},
};
},
methods:{...Event,
async multipleSelect(selection) {
console.log(selection);
if (selection.length > 1) {
this.$notify({
title: "错误",
message: "您不能选择多个期限",
type: "error",
});
} else {
let chkIds;
if (selection.length === 0) {
chkIds = [];
// this.model.liaall.tensetstm.rows = []
// this.model.liaall.tenstm.rows = []
} else {
chkIds = [selection[0] + 1];
}
//
console.log(this.model.liaall.tensetstm);
let params = { chkDst: "liaall.tenstm", chkIds };
const rtnmsg = await this.executeRule("liaall.tenstm", params);
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}
},},
created:function(){
}
}
</script>
<style>
</style>