Commit 99a63797 by 1377875331@qq.com

面函显示功能

parent c3644195
......@@ -313,13 +313,55 @@ export default {
onSeainf() {
},
handleDisplay(index, row){
console.log(index);
console.log(row);
async handleDisplay(index, row){
let cortyp = row.cortyp
let rtnmsg
if (cortyp == 'SWT'|| cortyp == 'FMT' || cortyp == 'CMT') {
this.model.setmod.msgmod.doccod = row.id
rtnmsg = await Api.post('cptopn/msgmod_butshw', { data: Utils.flatObject(this.model) })
} else {
this.model.trnmod.trndoc.doccod = row.id
this.model.trnmod.trndoc.cortyp = cortyp
const params = {
index: index
}
rtnmsg = await Api.post("ditopn/executeDocpan/trnmod.trndoc.doccur.butshw", { ...Utils.flatObject(this.model), params })
}
if (rtnmsg.respCode == "AAAAAA") {
if (cortyp == 'SWT' || cortyp == 'FMT' || cortyp == 'CMT') {
let viewurl = rtnmsg.data.setmod_msgmod_docpth;
this.viewurl = viewurl
this.title="报文"
//window.open(viewurl, 'newwindow', 'height=1200,width=800,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
else if(cortyp == 'ELC')
{
Modal.info({title:'电证报文',content:<div style={{height:400,overflow:'auto'}}><ELCMessage mty={row.id} message={rtnmsg.data["\\trnmod\\trndoc\\docinf"]}/></div>,
width:1000,
})
}
else {
// let url = rtnmsg.data.trnmod_trndoc_smh_docpth;
this.title = "面函"
let viewurl = "/#/docpan";
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');
}
this.dialogOpen=true
}
else {
this.$notify.error({title: '错误',message: '服务请求失败!'})
}
},
handleDetail(index, row){
console.log(index);
console.log(row);
async handleDetail(index, row){
let rtnmsg = await Api.post("ditopn/executeRule/trnmod.trndoc.doccur.butadd", Utils.flatObject(this.model))
if (rtnmsg.respCode == "AAAAAA") {
//TODO 处理数据逻辑
let viewurl ="/#/public/"+doc.vue;
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
},
async BlurBennam(e){
let rtnmsg = await Api.post("ditopn/default/ditp.remark", Utils.flatObject(this.model))
......
......@@ -5,6 +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"
Vue.use(VueRouter)
......@@ -13,7 +14,8 @@ const rootRouter = new VueRouter({
{path:"/display",component:Display,children:BusRouter},
{path:"/login",component:Login},
{path:"/business",component:Layout,children:BusRouter}
{path:"/business",component:Layout,children:BusRouter},
{path:"/docpan",component:Docpan}
]
})
......
<template>
<div>
<div class="title">面函列表</div>
<div>
<c-input
type="textarea"
:autosize="{ minRows: 16, maxRows: 32}"
placeholder="请输入原因"
v-model="model">
</c-input>
</div>
</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>
\ 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