Commit af11e40d by wangna

sptcpt UI改造

parent 878e7362
...@@ -66,7 +66,8 @@ export default { ...@@ -66,7 +66,8 @@ export default {
let rtnmsg = await this.executeRule("searow") let rtnmsg = await this.executeRule("searow")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
this.stmData.data = rtnmsg.data.trncorco_trnstm.rows; this.updateModel(rtnmsg.data);
this.stmData.data = rtnmsg.data.sptstm.rows;
} }
else else
......
...@@ -26,7 +26,7 @@ export default class Sptcpt{ ...@@ -26,7 +26,7 @@ export default class Sptcpt{
}, },
selusb:"", // Select user branch .usfmod.selusb selusb:"", // Select user branch .usfmod.selusb
}, },
sptstm:"", // List of SPT records .sptstm sptstm:[], // List of SPT records .sptstm
chkdzt:"", // E-Trade .chkdzt chkdzt:"", // E-Trade .chkdzt
lremark:"", // 退回附言 .lremark lremark:"", // 退回附言 .lremark
inidatfro:"", // Date of entry of Transaction .inidatfro inidatfro:"", // Date of entry of Transaction .inidatfro
......
<template> <template>
<div class="eContainer"> <div class="eContainer-search">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :model="model"
<!--sptcpt PD000042 Menu --> :rules="rules"
<el-tab-pane label="菜单" name="menu"> ref="modelForm"
<m-menu :model="model" :codes="codes"/> label-width="120px"
</el-tab-pane> label-position="right"
</c-tabs> size="small"
:validate-on-rule-change="false"
>
<c-content>
<m-menu :model="model" :codes="codes" ref="menu" />
</c-content>
</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 Sptcpt from "~/model/Sptcpt" import Sptcpt from "~/model/Sptcpt";
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Sptcpt/Check" import Check from "~/model/Sptcpt/Check";
import Default from "~/model/Sptcpt/Default" import Default from "~/model/Sptcpt/Default";
import Pattern from "~/model/Sptcpt/Pattern" import Pattern from "~/model/Sptcpt/Pattern";
import Menu from "./Menu" import Menu from "./Menu";
export default { export default {
name: "Sptcpt", name: "Sptcpt",
components:{ components: {
"m-menu" : Menu, "m-menu": Menu,
}, },
provide() { provide() {
return { return {
root: this root: this,
} };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){ data() {
return { return {
tabVal: "menu", tabVal: "menu",
trnName: "sptcpt", trnName: "sptcpt",
trnType: "", trnType: "",
model: new Sptcpt().data, model: new Sptcpt().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {},
}, };
} },
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
}, },
methods:{ },
myTabClick(tab){ created: async function () {
this.tabClick(tab) console.log("进入sptcpt交易");
/** 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("进入sptcpt交易");
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>
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