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
<template>
<div class="eibs-tab">
<c-col :span="12">
<!-- S0000002 : 报文标识号 -->
<c-col :span="24">
<el-form-item label="报文标识号" prop="comdow.msgid">
<c-input v-model="model.comdow.msgid" maxlength="35" placeholder="请输入报文标识号"></c-input>
</el-form-item>
</c-col>
<!-- S0000005 : 发送接收标识 -->
<c-col :span="24">
<el-form-item label="发送接收标识" prop="comdow.sndrcv">
<c-select v-model="model.comdow.sndrcv" style="width:100%" placeholder="请选择发送接收标识" dbCode="ELC034" @change="sndrcvChange">
</c-select>
</el-form-item>
</c-col>
<!-- S0000010 : 报文类型 -->
<c-col :span="24">
<el-form-item label="报文类型" prop="comdow.msgtyp">
<c-select v-model="model.comdow.msgtyp" style="width:100%" placeholder="请输入报文类型" :isShowKeyAndLabel="true" dbCode="ELC038" uil="CN" >
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<!-- S0000003 : 发起直接参与机构 -->
<c-col :span="24">
<el-form-item label="发起直接参与机构" prop="comdow.instgagtmmbid">
<c-input :disabled="model.comdow.sndrcv=='SNDR'" v-model="model.comdow.instgagtmmbid" maxlength="20" placeholder="请输入发起直接参与机构"></c-input>
</el-form-item>
</c-col>
<!-- S0000006 : 对账日期 -->
<c-col :span="24">
<el-form-item label="对账日期" prop="comdow.chkdat">
<c-date-picker type="date" v-model="model.comdow.chkdat" style="width:100%" placeholder="请选择对账日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item>
<c-button size="small" type="primary" @click="sendELc722">
发送请求
</c-button>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" style="height: 10px; margin-bottom: 40px">
<el-divider></el-divider>
</c-col>
<!-- S0000008 : 报文路径 -->
<c-col :span="24">
<el-form-item label="报文路径" prop="comdow.dowpth">
<c-input disabled v-model="model.comdow.dowpth" maxlength="88" placeholder="请选择报文路径"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="报文路径2" v-show="false">
<c-input disabled v-model="dowpth" maxlength="88" placeholder="请选择报文路径"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="5">
<el-form-item>
<c-button size="small" type="primary" @click="showELc723">
报文内容
</c-button>
</el-form-item>
</c-col>
<c-col :span="5">
<el-form-item>
<c-button :disabled="this.model.comdow.dowpth==''||this.model.comdow.msgid==''" size="small" type="primary" @click="incrou">
来报丢失处理
</c-button>
</el-form-item>
</c-col>
</c-col>
<el-dialog title="预览" :visible.sync="visiable" left width="70%" v-if="visiable" @close="handleClose">
<div style="height:100%;">
<elc-view :formatData="model.formatData" :textContent="model.textContext"></elc-view>
</div>
</el-dialog>
</div>
</template>
<script>
import event from "../event";
import ElcView from "~/components/business/ELCView";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
components: {ElcView},
data() {
return {
visiable: false,
};
},
methods: {
handleClose() {
this.visiable = false;
}
},
created: function() {},
computed: {
dowpth() {
if (this.model.comdow.msgid) {
var dowpth = (
"sstf/data/elcdow/" +
this.model.comdow.msgid.slice(0, 8) +
"/" +
this.model.comdow.instgagtmmbid +
this.model.comdow.msgid +
".txt"
).toLowerCase();
this.model.comdow.dowpth = dowpth;
return dowpth;
}
}
}
};
</script>
<style>
</style>