Commit 743bdccf by nanrui

cnysel完善。

parent 7e25f6b5
...@@ -60,7 +60,8 @@ ...@@ -60,7 +60,8 @@
<!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> --> <!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
</template> </template>
<template slot-scope="scope"> <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> 详情</c-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -73,6 +74,7 @@ ...@@ -73,6 +74,7 @@
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cnysel/Event"; import Event from "~/model/Cnysel/Event";
...@@ -111,23 +113,42 @@ export default { ...@@ -111,23 +113,42 @@ export default {
methods: { methods: {
...Event, ...Event,
async getTrnInfo(idx, row) { 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(row);
console.log(this.tabVal); console.log(this.root.tabVal);
this.tabVal = "litp"; console.log(this.model.cnytyp);
// tabVal: "selp", const selIds = [idx + 1];
// console.log(row.申报类型); const selDst = "cnystm" //列表对应后台模型中的stream
// let url = row.申报类型.toLowerCase() + "inf"; let params = { selDst, selIds };
// this.$router.history.push("/business/" + url); this.executeRule("dtlbut", params).then((res) => {
if (res.respCode == SUCCESS) {
console.log(res.data);
// let rtnmsg = await this.executeDefault("dtlbut"); Utils.copyValueFromVO(this.model, res.data);
// // if ((rtnmsg.respCode = SUCCESS)) { switch (this.model.cnytyp) {
// this.trnData.data = rtnmsg.data.infcon_trnstm.rows; case "1":
// console.log(this.trnData.data); 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 () { }, created: function () { },
......
<template> <template>
<c-page title="跨境人民币查询">
<div class="eContainer"> <div class="eContainer">
<c-page title="跨境人民币查询">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false"> :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
...@@ -41,15 +41,17 @@ ...@@ -41,15 +41,17 @@
</content> </content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
<!-- <c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" v-if="this.tabVal !== 'selp'"></c-function-btn> -->
</el-form> </el-form>
</div>
</c-page> </c-page>
</div>
</template> </template>
<script> <script>
import Api from "~/service/Api"; import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Cnysel from "~/model/Cnysel"; import Cnysel from "~/model/Cnysel";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Cnysel/Check"; import Check from "~/model/Cnysel/Check";
import Default from "~/model/Cnysel/Default"; import Default from "~/model/Cnysel/Default";
import Pattern from "~/model/Cnysel/Pattern"; import Pattern from "~/model/Cnysel/Pattern";
...@@ -76,7 +78,7 @@ export default { ...@@ -76,7 +78,7 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "selp", 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