Commit af11e40d by wangna

sptcpt UI改造

parent 878e7362
......@@ -66,7 +66,8 @@ export default {
let rtnmsg = await this.executeRule("searow")
if(rtnmsg.respCode == SUCCESS)
{
this.stmData.data = rtnmsg.data.trncorco_trnstm.rows;
this.updateModel(rtnmsg.data);
this.stmData.data = rtnmsg.data.sptstm.rows;
}
else
......
......@@ -26,7 +26,7 @@ export default class Sptcpt{
},
selusb:"", // Select user branch .usfmod.selusb
},
sptstm:"", // List of SPT records .sptstm
sptstm:[], // List of SPT records .sptstm
chkdzt:"", // E-Trade .chkdzt
lremark:"", // 退回附言 .lremark
inidatfro:"", // Date of entry of Transaction .inidatfro
......
<template>
<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">
<!--sptcpt PD000042 Menu -->
<el-tab-pane label="菜单" name="menu">
<m-menu :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<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"
>
<c-content>
<m-menu :model="model" :codes="codes" ref="menu" />
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Sptcpt from "~/model/Sptcpt"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Sptcpt/Check"
import Default from "~/model/Sptcpt/Default"
import Pattern from "~/model/Sptcpt/Pattern"
import Menu from "./Menu"
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Sptcpt from "~/model/Sptcpt";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Sptcpt/Check";
import Default from "~/model/Sptcpt/Default";
import Pattern from "~/model/Sptcpt/Pattern";
import Menu from "./Menu";
export default {
name: "Sptcpt",
components:{
"m-menu" : Menu,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "menu",
trnName: "sptcpt",
trnType: "",
model: new Sptcpt().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
name: "Sptcpt",
components: {
"m-menu": Menu,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "menu",
trnName: "sptcpt",
trnType: "",
model: new Sptcpt().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {},
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入sptcpt交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
created: async function () {
console.log("进入sptcpt交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
}
},
};
</script>
<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