Commit 92b654fd by ZcyJames

1.农信银人民币跨境管理 基础数据导入提交

parent 8957abf3
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
action="/webapi/frontend/fxdsdb/upload" action="/webapi/frontend/fxdsdb/upload"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:on-success="handleSuccess" :on-success="handleSuccess"
:on-exceed="handleExceed"
:limit="1" :limit="1"
:show-file-list="false" :show-file-list="true"
accept=".xml" accept=".xml"
> >
<c-button slot="trigger" size="small" type="primary">导入</c-button> <c-button slot="trigger" size="small" type="primary">导入</c-button>
...@@ -373,6 +374,10 @@ export default { ...@@ -373,6 +374,10 @@ export default {
this.load = false; this.load = false;
this.isDispaly = true; this.isDispaly = true;
}, },
// 文件个数超出
handleExceed() {
this.$notify.error(`只允许上传1个文件`);
},
async handleSubmit() { async handleSubmit() {
let rtnmsg = await Api.post("/frontend/fxdsdb/saveXml", { let rtnmsg = await Api.post("/frontend/fxdsdb/saveXml", {
filtyp: this.filtyp, filtyp: this.filtyp,
......
...@@ -5,23 +5,6 @@ import Utils from "~/utils"; ...@@ -5,23 +5,6 @@ import Utils from "~/utils";
export default { export default {
methods: { methods: {
async handleSearch() { async handleSearch() {
let begdat = this.model.nxpp.begdat;
if (!begdat || begdat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.导入起始日期必输!"),
});
return;
}
let enddat = this.model.nxpp.enddat;
if (!enddat || enddat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.导入结束日期必输!"),
});
return;
}
this.load = true; this.load = true;
let rtnmsg = await Api.post("/frontend/nxysdb/query", { let rtnmsg = await Api.post("/frontend/nxysdb/query", {
...this.model.nxpp, ...this.model.nxpp,
......
...@@ -4,16 +4,17 @@ ...@@ -4,16 +4,17 @@
title="新增" destroy-on-close width="50%" @close="visible = false"> title="新增" destroy-on-close width="50%" @close="visible = false">
<div> <div>
<el-upload <el-upload
action="/webapi/frontend/fxdsdb/upload" action="/webapi/frontend/nxysdb/upload"
:before-upload="handleBeforeUpload" :before-upload="handleBeforeUpload"
:on-success="handleSuccess" :on-success="handleSuccess"
:on-exceed="handleExceed"
:limit="1" :limit="1"
:show-file-list="false" :show-file-list="true"
accept=".xls,.xlsx" accept=".xls,.xlsx"
> >
<c-button slot="trigger" size="small" type="primary">导入</c-button> <c-button slot="trigger" size="small" type="primary">导入</c-button>
</el-upload> </el-upload>
<el-table <!-- <el-table
v-if="isDispaly" v-if="isDispaly"
:data="stmData.data" :data="stmData.data"
:columns="stmData.columns" :columns="stmData.columns"
...@@ -25,7 +26,7 @@ ...@@ -25,7 +26,7 @@
> >
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width"> <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width">
</el-table-column> </el-table-column>
</el-table> </el-table> -->
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button v-if="isDispaly" type="primary" @click="handleSubmit()">确 定</el-button> <el-button v-if="isDispaly" type="primary" @click="handleSubmit()">确 定</el-button>
...@@ -55,100 +56,7 @@ export default { ...@@ -55,100 +56,7 @@ export default {
columns: [], columns: [],
data: [] data: []
}, },
fxdcomlstHead:[ nxypatlstHead:[
{
label: "公共数据代码",
prop: "comcod",
width: "120px"
},
{
label: "公共数据中文名称",
prop: "comnam",
width: "150px"
},
{
label: "公共数据值",
prop: "val",
width: "120px"
},
{
label: "生效类型",
prop: "typ",
width: "100px"
},
{
label: "生效日期",
prop: "effdat",
width: "120px"
},
{
label: "公共数据类型",
prop: "comtyp",
width: "120px"
},
{
label: "公共参数英文名称",
prop: "comengnam",
width: "150px"
},
{
label: "变更类型",
prop: "chgtyp",
width: "100px"
},
{
label: "变更期数",
prop: "changeterm",
width: "100px"
},
],
fxdriglstHead:[
{
label: "参与者机构号",
prop: "bic",
width: "100px"
},
{
label: "报文类型",
prop: "msgtyp",
width: "100px"
},
{
label: "业务方向",
prop: "sndtyp",
width: "100px"
},
],
fxdtyplstHead:[
{
label: "报文类型",
prop: "typ",
width: "100px"
},
{
label: "业务种类",
prop: "bizdtltyp",
width: "100px"
},
],
fxdsuelstHead:[
{
label: "参与者变更期数",
prop: "issueno",
width: "100px"
},
{
label: "公共参数变更期数",
prop: "comissueno",
width: "100px"
},
{
label: "直间参关系变更期数",
prop: "bdrissueno",
width: "100px"
},
],
fxdpatlstHead:[
{ {
label: "参与者机构代码", label: "参与者机构代码",
prop: "cod", prop: "cod",
...@@ -175,8 +83,8 @@ export default { ...@@ -175,8 +83,8 @@ export default {
width: "100px" width: "100px"
}, },
{ {
label: "参与者资格标识", label: "参与者类型",
prop: "bakcat", prop: "paptyp",
width: "100px" width: "100px"
}, },
{ {
...@@ -190,16 +98,6 @@ export default { ...@@ -190,16 +98,6 @@ export default {
width: "100px" width: "100px"
}, },
{ {
label: "有效标识",
prop: "valflg",
width: "100px"
},
{
label: "生效日期",
prop: "effdat",
width: "100px"
},
{
label: "联系人姓名", label: "联系人姓名",
prop: "nam", prop: "nam",
width: "100px" width: "100px"
...@@ -225,27 +123,27 @@ export default { ...@@ -225,27 +123,27 @@ export default {
width: "100px" width: "100px"
}, },
{ {
label: "前一次更新状态", label: "登录状态",
prop: "presta", prop: "logsta",
width: "100px" width: "100px"
}, },
{ {
label: "当前更新状态", label: "注资状态",
prop: "sta", prop: "capsta",
width: "100px" width: "100px"
}, },
{ {
label: "变更期数", label: "生效状态",
prop: "issueno", prop: "syssta",
width: "100px" width: "100px"
}, },
{ {
label: "办理业务状态", label: "业务状态",
prop: "bizsta", prop: "bizsta",
width: "100px" width: "100px"
}, },
], ],
fxdrellstHead:[ nxyrellstHead:[
{ {
label: "参与者机构", label: "参与者机构",
prop: "cod", prop: "cod",
...@@ -257,61 +155,13 @@ export default { ...@@ -257,61 +155,13 @@ export default {
width: "100px" width: "100px"
}, },
{ {
label: "生效日期", label: "生效状态",
prop: "effdat", prop: "effsta",
width: "100px"
},
{
label: "上次更新类型",
prop: "preupdtyp",
width: "100px"
},
{
label: "变更期数",
prop: "issueno",
width: "100px"
},
{
label: "更新类型",
prop: "updtyp",
width: "100px"
},
],
fxddcflstHead:[
{
label: "参与者机构",
prop: "cod",
width: "100px"
},
{
label: "证书DN",
prop: "dn",
width: "100px"
},
{
label: "证书SN",
prop: "sn",
width: "100px"
},
{
label: "证书有效期起始日期",
prop: "stadat",
width: "100px"
},
{
label: "证书有效期结束日期",
prop: "enddat",
width: "100px"
},
{
label: "数字证书内容",
prop: "binmsgbdy",
width: "100px" width: "100px"
}, },
], ],
filtyp: '', filtyp: '',
keyCode: '', keyCode: '',
filnam: ''
}; };
}, },
watch: { watch: {
...@@ -333,50 +183,28 @@ export default { ...@@ -333,50 +183,28 @@ export default {
console.log('=====', res) console.log('=====', res)
if(res.respCode == SUCCESS){ if(res.respCode == SUCCESS){
this.filtyp = res.data.filtyp this.filtyp = res.data.filtyp
this.filnam = res.data.filnam if(res.data.filtyp=='1'){
if(res.data.filtyp=='9' || res.data.filtyp=='10'){ this.stmData.columns=this.nxypatlstHead;
this.stmData.columns=this.fxdcomlstHead; this.stmData.data = res.data.nxypatlst
this.stmData.data = res.data.cpsfxdgrp.fxdcomlst this.keyCode = 'nxypatlst'
this.keyCode = 'fxdcomlst'
}
if(res.data.filtyp=='11'){
this.stmData.columns=this.fxdtyplstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdtyplst
this.keyCode = 'fxdtyplst'
}
if(res.data.filtyp=='12'){
this.stmData.columns=this.fxdsuelstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdsuelst
this.keyCode = 'fxdsuelst'
} }
if(res.data.filtyp=='13' || res.data.filtyp=='14' || res.data.filtyp=='15'){ if(res.data.filtyp=='2'){
this.stmData.columns=this.fxdpatlstHead; this.stmData.columns=this.nxyrellstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdpatlst this.stmData.data = res.data.nxyrellst
this.keyCode = 'fxdpatlst' this.keyCode = 'nxyrellst'
}
if(res.data.filtyp=='16' || res.data.filtyp=='17'){
this.stmData.columns=this.fxdrellstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdrellst
this.keyCode = 'fxdrellst'
}
if(res.data.filtyp=='18'){
this.stmData.columns=this.fxddcflstHead;
this.stmData.data = res.data.cpsfxdgrp.fxddcflst
this.keyCode = 'fxddcflst'
}
if(res.data.filtyp=='19'){
this.stmData.columns=this.fxdriglstHead;
this.stmData.data = res.data.cpsfxdgrp.fxdriglst
this.keyCode = 'fxdriglst'
} }
} }
this.load = false; this.load = false;
this.isDispaly = true; this.isDispaly = true;
}, },
// 文件个数超出
handleExceed() {
this.$notify.error(`只允许上传1个文件`);
},
async handleSubmit() { async handleSubmit() {
let rtnmsg = await Api.post("/frontend/fxdsdb/saveXml", { let rtnmsg = await Api.post("/frontend/nxysdb/saveXml", {
filtyp: this.filtyp, filtyp: this.filtyp,
filnam: this.filnam,
[this.keyCode]: this.stmData.data [this.keyCode]: this.stmData.data
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
......
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