Commit 0d531601 by nanrui

申报交易cfasel, eadinf修改

parent 1a2f1bc1
......@@ -4,8 +4,8 @@
"author": "psbc",
"private": true,
"scripts": {
"start": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js serve",
"build": "node --max_old_space_size=4096 node_modules/@vue/cli-service/bin/vue-cli-service.js build"
"build:prod": "node --max_old_space_size=102400 node_modules/@vue/cli-service/bin/vue-cli-service.js build",
"serve": "node --max_old_space_size=102400 node_modules/@vue/cli-service/bin/vue-cli-service.js serve --open"
},
"dependencies": {
"async-validator": "^3.5.2",
......
......@@ -16,12 +16,16 @@ export default class Eadinf{
newdcl:"", // DCL数目 .cfabut.newdcl
newvrf:"", // VRF数目 .cfabut.newvrf
vrfflg:"", // 履约信息 .cfabut.vrfflg
paydat:"",
},
eblmod:{
ebl:{
reldat:"", // 授权日期 .eblmod.ebl.reldat
resamt:"", // 代付还代利息 .eblmod.ebl.resamt
},
wrkebl: {
reldat: "",
}
},
recgrp:{
bas:{
......@@ -54,6 +58,7 @@ export default class Eadinf{
pubp:{
creditcodwarn:"", // CREDITORCODE WARNING .recp.pubp.creditcodwarn
acp:"", // 确认 .recp.pubp.acp
exdebtcode: "",
},
dclp: {
exdebtcode: "",
......
......@@ -72,24 +72,49 @@
</el-form>
</template>
</c-list-search>
<c-col :span="24" style="">
<div style="border-bottom: 10px solid rgb(232, 232, 232)">
</div>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" style="margin-left: 0px" type="primary">导出Excel
</c-button>
<c-button class="medium_bcs" size="medium" type="primary">新增接口
</c-button>
<c-button class="medium_bcs" size="medium" type="primary">代付利息
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'EAD'" size="small" type="primary"
@click="toEadadd">新增外债海外代付
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'EAF'" size="small" type="primary"
@click="toEafadd">新增外债远期信用证
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'EBA'" size="small" type="primary"
@click="toEbaadd">新增对外担保
</c-button>
<c-button class="medium_bcs" v-if="model.cfaquep.cfatyp == 'ECA'" size="small" type="primary"
@click="toEcaadd">新增国内外汇贷款
</c-button>
</c-col>
<div style="height:90%">
<c-col :span="24">
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<!-- 自定义组件里加了最右边的一列”操作“ -->
<el-table-column fixed="right" prop="op" label="操作" width="140px">
<el-table-column fixed="right" prop="op" label="操作" width="200px">
<template slot="header">
<c-col :span="11" style="text-align: center"><span>操作</span></c-col>
</template>
<template slot-scope="scope">
<!-- 申请一个弹出主键放在插槽,加工已渲染的数据 -->
<c-button style="margin-left: 0" size="small" @click="getTrnInfo(scope.$index, scope.row)"
slot="reference">
<c-button style="margin-left: 0" size="small" @click="getInfo(scope.$index, scope.row)">
详情
</c-button>
<c-button style="margin-left: 5px" size="small" type="primary"
@click="getButtons(scope.row['申报号码'])">
处理
<c-button style="margin-left: 3px" size="small" @click="getAmend(scope.$index, scope.row)">
修改
</c-button>
<c-button style="margin-left: 3px" size="small" @click="getDelete(scope.$index, scope.row)">
删除
</c-button>
</template>
</el-table-column>
......@@ -198,16 +223,16 @@ export default {
stmData: {
columns: [
"0 1 \"业务流水\" 100 1 0:2 1 ",
"2 2 \"申报号码\" 200 1 0:0 1 ",
"2 2 \"申报号码\" 220 1 0:0 1 ",
"3 3 \"业务参考号\" 150 1 0:0 1 ",
"4 4 \"柜员\" 100 1 0:2 1 ",
"5 5 \"日期\" 150 4 7:2 1 ",
// "6 6 \"申报类型\" 120 1 0:2 1 CFATYP",
{ index: 6, position: 6, width: 120, pattern: 'code', label: '申报类型', code: this.codes.cfatyp1 },
"7 7 \"信息类型\" 100 1 0:2 1 ",
"7 7 \"信息类型\" 120 1 0:2 1 ",
"8 8 \"操作类型\" 100 1 0:2 1 ",
// "9 9 \"状态\" 80 1 20:0 1 TransCFASTA",
{ index: 9, position: 9, width: 80, pattern: 'code', label: '状态', code: this.codes.staflg1 },
{ index: 9, position: 9, width: 100, pattern: 'code', label: '状态', code: this.codes.staflg1 },
],
data: [],
},
......@@ -271,6 +296,75 @@ export default {
// this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
// console.log(this.trnData.data);
// }
},
toEadadd() {
this.$router.history.push("/business/eadadd");
},
toEafadd() {
this.$router.history.push("/business/eafadd");
},
toEbaadd() {
this.$router.history.push("/business/ebaadd");
},
toEcaadd() {
this.$router.history.push("/business/ecaadd");
},
async getInfo(idx, row) {
console.log(row);
let business = row.申报类型.toLowerCase() + "inf";
let viewurl = "/business/" + business;
const selIds = [idx + 1];
console.log(selIds);
const selDst = "eblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
console.log(params);
this.executeRule("dtlbut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
},
async getAmend(idx, row) {
let business = row.申报类型.toLowerCase() + "ame";
let viewurl = "/business/" + business;
const selIds = [idx + 1];
const selDst = "eblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("amebut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
},
async getDelete(idx, row) {
let business = row.申报类型.toLowerCase() + "del";
let viewurl = "/business/" + business;
const selIds = [idx + 1];
const selDst = "eblstm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("delbut", params).then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
// this.$router.push({ path: "business/inftrnpsDetail", query: { idx: idx}});
this.$router.push({ path: viewurl, query: {} });
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
});
}
},
created: function () {
......
......@@ -4,9 +4,9 @@
<c-col :span="12" style="padding-right: 20px">
<!-- S0000019 : 发生日期 -->
<c-col :span="24">
<el-form-item label="发生日期" prop="eblmod.ebl.reldat">
<c-date-picker type="date" v-model="model.eblmod.ebl.reldat" style="width:100%"
placeholder="请输入发生日期"></c-date-picker>
<el-form-item label="发生日期" prop="cfabut.paydat">
<c-date-picker type="date" v-model="model.cfabut.paydat" style="width:100%"
placeholder="请输入发生日期" disabled></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
......@@ -137,10 +137,10 @@ export default {
methods: {
...Event,
toEadame () {
console.log('进入Eadame交易');
},
toEaddel () {
console.log('进入Eaddel交易');
}
},
created: function () {
......
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