Commit 743bdccf by nanrui

cnysel完善。

parent 7e25f6b5
......@@ -205,7 +205,7 @@ export default {
},
methods: { ...Event },
created: function () {
}
}
</script>
......
......@@ -60,7 +60,8 @@
<!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
</template>
<template slot-scope="scope">
<c-button size="small" @click="getTrnInfo(scope.$index, scope.row)" slot="reference" :disabled="model.cnytyp == '6'">
<c-button size="small" @click="getTrnInfo(scope.$index, scope.row)" slot="reference"
:disabled="model.cnytyp == '6'">
详情</c-button>
</template>
</el-table-column>
......@@ -73,6 +74,7 @@
</template>
<script>
import Api from "~/service/Api";
import Utils from "~/utils";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cnysel/Event";
......@@ -111,23 +113,42 @@ export default {
methods: {
...Event,
async getTrnInfo(idx, row) {
// this.model.infcon.objinr = row["INR"];
// this.model.bodgrp.rec.inr = row["INR"];
// this.model.infcon.chksubcon = "X";
console.log(row);
console.log(this.tabVal);
this.tabVal = "litp";
// tabVal: "selp",
// console.log(row.申报类型);
// let url = row.申报类型.toLowerCase() + "inf";
// this.$router.history.push("/business/" + url);
// let rtnmsg = await this.executeDefault("dtlbut");
// // if ((rtnmsg.respCode = SUCCESS)) {
// this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
// console.log(this.trnData.data);
// }
console.log(this.root.tabVal);
console.log(this.model.cnytyp);
const selIds = [idx + 1];
const selDst = "cnystm" //列表对应后台模型中的stream
let params = { selDst, selIds };
this.executeRule("dtlbut", params).then((res) => {
if (res.respCode == SUCCESS) {
console.log(res.data);
Utils.copyValueFromVO(this.model, res.data);
switch (this.model.cnytyp) {
case "1":
this.root.tabVal = "incp";
break;
case "2":
this.root.tabVal = "outp";
break;
case "3":
this.root.tabVal = "libp";
break;
case "4":
this.root.tabVal = "trap";
break;
case "5":
this.root.tabVal = "voup";
break;
default:
this.root.tabVal = "selp";
}
} else {
const h = this.$createElement;
const msg = res.respMsg || '请求执行失败!'
this.$notify.error({ title: '错误', message: h('p', { style: 'word-break:break-all;' }, msg) })
}
})
console.log(this.root.tabVal);
}
},
created: function () { },
......
<template>
<c-page title="跨境人民币查询">
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000001 -->
<el-tab-pane label="接口信息选择" name="selp">
<content>
<m-selp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000047 2106银行跟单结算及表外融资 -->
<el-tab-pane :label="$t('cnyselp.PD000047')" name="libp" v-if="(this.model.cnytyp == 3)">
<content>
<m-libp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000044 2111跨境支出信息 -->
<el-tab-pane :label="$t('cnyselp.PD000044')" name="outp" v-if="(this.model.cnytyp == 2)">
<content>
<m-outp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000001 2101跨境收入信息 -->
<el-tab-pane :label="$t('cnyselp.PD000001')" name="incp" v-if="(this.model.cnytyp == 1)">
<content>
<m-incp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000045 2122跨境担保登记业务信息 -->
<el-tab-pane :label="$t('cnyselp.PD000045')" name="voup" v-if="(this.model.cnytyp == 5)">
<content>
<m-voup :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000046 2107境外主体之间资金划转 -->
<el-tab-pane :label="$t('cnyselp.PD000046')" name="trap" v-if="(this.model.cnytyp == 4)">
<content>
<m-trap :model="model" :codes="codes" />
</content>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</c-page>
<div class="eContainer">
<c-page title="跨境人民币查询">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000001 -->
<el-tab-pane label="接口信息选择" name="selp">
<content>
<m-selp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000047 2106银行跟单结算及表外融资 -->
<el-tab-pane :label="$t('cnyselp.PD000047')" name="libp" v-if="(this.model.cnytyp == 3)">
<content>
<m-libp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000044 2111跨境支出信息 -->
<el-tab-pane :label="$t('cnyselp.PD000044')" name="outp" v-if="(this.model.cnytyp == 2)">
<content>
<m-outp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000001 2101跨境收入信息 -->
<el-tab-pane :label="$t('cnyselp.PD000001')" name="incp" v-if="(this.model.cnytyp == 1)">
<content>
<m-incp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000045 2122跨境担保登记业务信息 -->
<el-tab-pane :label="$t('cnyselp.PD000045')" name="voup" v-if="(this.model.cnytyp == 5)">
<content>
<m-voup :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000046 2107境外主体之间资金划转 -->
<el-tab-pane :label="$t('cnyselp.PD000046')" name="trap" v-if="(this.model.cnytyp == 4)">
<content>
<m-trap :model="model" :codes="codes" />
</content>
</el-tab-pane>
</c-tabs>
<!-- <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" v-if="this.tabVal !== 'selp'"></c-function-btn> -->
</el-form>
</c-page>
</div>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Cnysel from "~/model/Cnysel";
import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Cnysel/Check";
import Default from "~/model/Cnysel/Default";
import Pattern from "~/model/Cnysel/Pattern";
......@@ -76,7 +78,7 @@ export default {
root: this,
};
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "selp",
......
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