Commit 7b876abe by liyixun

getset (bug844)

parent 5532231b
...@@ -5,6 +5,9 @@ import Pub from "../Public" ...@@ -5,6 +5,9 @@ import Pub from "../Public"
export default class Getset{ export default class Getset{
constructor () { constructor () {
this.data = { this.data = {
gitapll1blk:"",
gitbenl1blk:"",
lendoc_botsetl1blk:"",
gctp:{ gctp:{
expfldlab:"", // Label for Field Validity .gctp.expfldlab expfldlab:"", // Label for Field Validity .gctp.expfldlab
explab:"", // Label unlimited Validity .gctp.explab explab:"", // Label unlimited Validity .gctp.explab
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <c-function-btn
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :handleSubmit="handleSubmit"
<!--bttrcl PD000034 Claim Reimb. --> :handleCheck="handleCheck"
<el-tab-pane :label="$t('bttrcl.PD000034')" name="rclp"> :handleStash="handleStash"
<m-rclp :model="model" :codes="codes"/> >
</el-tab-pane> <el-button size="small">流程附言</el-button>
<!--rmbclm PD000128 Reimbursement Details --> <el-button size="small">交易历史</el-button>
<el-tab-pane :label="$t('rmbclm.PD000128')" name="remp"> <el-button size="small">备忘录</el-button>
<m-remp :model="model" :codes="codes"/> <el-button size="small">影像信息</el-button>
</el-tab-pane> <!-- <el-button size="small">保存模板</el-button> -->
</c-tabs> <!-- <el-button size="small">使用模板</el-button> -->
<el-button size="small">制裁信息</el-button>
<!-- <el-button size="small">拆分报文</el-button> -->
<el-button size="small">智能提示</el-button>
</c-function-btn>
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--bttrcl PD000034 Claim Reimb. -->
<el-tab-pane label="Claim Remib" name="rclp">
<c-content>
<m-rclp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--rmbclm PD000128 Reimbursement Details -->
<el-tab-pane label="Reimbursement Details" name="remp">
<m-remp :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form> </el-form>
</div> </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 Bttrcl from "~/model/Bttrcl" import Bttrcl from "~/model/Bttrcl";
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Bttrcl/Check" import commonFuncs from "~/mixin/commonFuncs";
import Default from "~/model/Bttrcl/Default" import Check from "~/model/Bttrcl/Check";
import Pattern from "~/model/Bttrcl/Pattern" import Default from "~/model/Bttrcl/Default";
import Rclp from "./Rclp" import Pattern from "~/model/Bttrcl/Pattern";
import Remp from "./Remp" import Rclp from "./Rclp";
import Remp from "./Remp";
export default { export default {
name: "Bttrcl", name: "Bttrcl",
components:{ components: {
"m-rclp" : Rclp, "m-rclp": Rclp,
"m-remp" : Remp, "m-remp": Remp,
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "", tabVal: "rclp",
trnName: "bttrcl", trnName: "bttrcl",
trnType: "", trnType: "",
model: new Bttrcl().data, model: new Bttrcl().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
}, ...CodeTable,
} },
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
}, },
methods:{ },
myTabClick(tab){ created: async function () {
this.tabClick(tab) console.log("进入bttrcl交易");
/** let rtnmsg = await this.init({});
* do it yourself if (rtnmsg.respCode == SUCCESS) {
**/ this.updateModel(rtnmsg.data);
} //TODO 处理数据逻辑
}, } else {
created:async function(){ this.$notify.error({ title: "错误", message: "服务请求失败!" });
console.log("进入bttrcl交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
} }
} },
};
</script> </script>
<style> <style>
</style> </style>
...@@ -686,6 +686,13 @@ export default { ...@@ -686,6 +686,13 @@ export default {
methods:{...Event}, methods:{...Event},
created:function(){ created:function(){
},
watch:{
"model.mtabut.clsflg":function(){
if(this.model.mtabut.clsflg=='C'){
this.model.mtabut.clsflg='X'
}
}
} }
} }
</script> </script>
......
...@@ -116,7 +116,7 @@ import Glepan from "~/views/Public/Glepan"; ...@@ -116,7 +116,7 @@ import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp"; import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan"; import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre"; import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody"; import Limitbody from "./Limitbody";
export default { export default {
......
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