Commit 78639211 by 1377875331@qq.com

面函过滤与显示

parent dff309c3
......@@ -5699,10 +5699,10 @@ const CodeTable = {
{label:"simple letter",value:"LET" },
{label:"by Airmail",value:"LETAML" },
{label:"by Courier",value:"LETCOU" },
{label:"DHL中外运",value:"LETDHC" },
{label:"DHL敦豪",value:"LETDHL" },
{label:"EMS",value:"LETEMS" },
{label:"send as MT999",value:"SWT999" },
// {label:"DHL中外运",value:"LETDHC" },
// {label:"DHL敦豪",value:"LETDHL" },
// {label:"EMS",value:"LETEMS" },
// {label:"send as MT999",value:"SWT999" },
],
litameadv:[
{label:"无特殊规定",value:"1" },
......
......@@ -344,7 +344,7 @@ export default {
else {
// let url = rtnmsg.data.trnmod_trndoc_smh_docpth;
this.title = "面函"
let viewurl = "/#/docpan";
let viewurl = "/#/docpan/show";
viewurl += "?model="+rtnmsg.data.litbenl1blk;
console.log(viewurl)
window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
......@@ -356,10 +356,13 @@ export default {
}
},
async handleDetail(index, row){
let rtnmsg = await Api.post("ditopn/executeRule/trnmod.trndoc.doccur.butadd", Utils.flatObject(this.model))
const params = {
index: index
}
let rtnmsg = await Api.post("ditopn/executeDocpanDetail/trnmod.trndoc.doccur.butadd", { ...Utils.flatObject(this.model), params })
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
let viewurl ="/#/public/"+doc.vue;
let viewurl ="/#/docpan/detail";
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
},
......
......@@ -5,7 +5,7 @@ import Display from "../views/Display"
import Login from "../views/Login"
import Layout from "../views/Layout"
import BusRouter from '../views/Business/BusRouter'
import Docpan from "../views/Docpan"
import DocRouter from '../views/Docpan/DocRouter'
Vue.use(VueRouter)
......@@ -15,7 +15,7 @@ const rootRouter = new VueRouter({
{path:"/display",component:Display,children:BusRouter},
{path:"/login",component:Login},
{path:"/business",component:Layout,children:BusRouter},
{path:"/docpan",component:Docpan}
{path:"/docpan",component: () => import('../views/Docpan'), children:DocRouter}
]
})
......
......@@ -199,7 +199,14 @@ export default {
this.executeRule("trnmod.trndoc.docpan").then(res => {
const data = res.data;
Utils.copyValueFromVO(this.model, data)
this.$refs.docpan.stmData.data = res.data.trnmod_trndoc_doceot
var stm = [];
let k = 0;
for(let i = 0; i < res.data.trnmod_trndoc_doceot.length; i++){
if(res.data.trnmod_trndoc_doceot[i].role != ""){
stm[k++] = res.data.trnmod_trndoc_doceot[i];
}
}
this.$refs.docpan.stmData.data = stm
})
}
}
......
<template>
<div>
<div class="title">面函列表</div>
<div>
<c-input
type="textarea"
:autosize="{ minRows: 16, maxRows: 32}"
placeholder="请输入原因"
v-model="model">
</c-input>
</div>
<div id="docpan_container">
<router-view></router-view>
</div>
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
data(){
return {
model: this.$route.query.model,
}
},
mounted() {
console.log(this.$router);
}
}
</script>
<style scoped>
<style>
#docpan_container{
width: 100%;
height: 100%;
}
</style>
\ No newline at end of file
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