Commit c01570c7 by wangguangchao

分录

parent 67de6040
<template>
<div class="eibs-tab">
<c-istream-table :list="stmData.data" :columns="stmData.columns">
</c-istream-table>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Ditopn/Event"
export default {
props:["model","codes"],
data(){
return {
stmData: {
columns: [
"2 1 \"D/C\" 38 1 0",
"6 2 \"Account Number\" 140",
"3 3 \"Cur\" 60",
"4 4 \"Amount\" 135 2 8:1 2 5",
"5 5 \"Value Date\" 80",
"7 6 \"Rate Type\" 90",
"8 7 \"Rate\" 85 2 0 1 0",
"9 8 \"Term\" 60",
"0 9 \"PN\" 62 1 0"
],
data: [
]
}
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
...@@ -52,6 +52,10 @@ ...@@ -52,6 +52,10 @@
<!--PD000000 --> <!--PD000000 -->
<m-setpan :model="model" :codes="codes"/> <m-setpan :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分录">
<m-glepan :model="model" :codes="codes" ref="glepan"/>
</el-tab-pane>
<el-tab-pane label="或有"> <el-tab-pane label="或有">
...@@ -118,6 +122,7 @@ import Docpan from "./Docpan" ...@@ -118,6 +122,7 @@ import Docpan from "./Docpan"
import Limitbody from "./Limitbody" import Limitbody from "./Limitbody"
import Coninfp from "./Coninfp" import Coninfp from "./Coninfp"
import Ccvpan from "./Ccvpan" import Ccvpan from "./Ccvpan"
import Glepan from "./Glepan"
export default { export default {
...@@ -133,6 +138,7 @@ export default { ...@@ -133,6 +138,7 @@ export default {
"m-litapll1" : Litapll1, "m-litapll1" : Litapll1,
"m-litrmbl1" : Litrmbl1, "m-litrmbl1" : Litrmbl1,
"m-setpan" : Setpan, "m-setpan" : Setpan,
"m-glepan" : Glepan,
"m-engp" : Engp, "m-engp" : Engp,
"m-addbcb" : Addbcb, "m-addbcb" : Addbcb,
"m-docpan" : Docpan, "m-docpan" : Docpan,
...@@ -168,6 +174,14 @@ export default { ...@@ -168,6 +174,14 @@ export default {
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
}) })
} }
if (label === "分录") {
this.executeRule("setmod.glemod.glepan").then(res => {
debugger;
const data = res.data;
this.$refs.glepan.stmData.data = res.data.setmod_glemod_gleshwstm.rows;
//Utils.copyValueFromVO(this.model, data)
})
}
if (label === "帐务") { if (label === "帐务") {
this.executeRule("setmod.setpan").then(res => { this.executeRule("setmod.setpan").then(res => {
if (res.respCode == "AAAAAA"){ if (res.respCode == "AAAAAA"){
......
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