Commit b32e93bd by wangren

Merge branch 'master' of http://114.115.138.98:8900/fukai/vue-gjjs

# Conflicts:
#	src/views/Business/BusRouter.js
parents 14f7740f d47fbca0
No preview for this file type
src/assets/logo.png

9.34 KB | W: | H:

src/assets/logo.png

74.7 KB | W: | H:

src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
src/assets/logo.png
  • 2-up
  • Swipe
  • Onion skin
import Vue from "vue" import Vue from "vue"
import Api from "~/service/Api" import Api from "~/service/Api"
import { display } from "~/service/business/file" import { display } from "~/service/business/file"
import { getTrnNameByInr } from "~/service/business/common"
import Utils from "../utils" import Utils from "../utils"
export default { export default {
...@@ -149,5 +150,18 @@ export default { ...@@ -149,5 +150,18 @@ export default {
} }
return rtnmsg return rtnmsg
}, },
/**
* 打开详情页面
* @param {string} inr
*/
display(inr) {
getTrnNameByInr({ inr }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
}
} }
} }
\ No newline at end of file
...@@ -139,15 +139,5 @@ export default { ...@@ -139,15 +139,5 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
} }
\ No newline at end of file
...@@ -144,15 +144,5 @@ export default { ...@@ -144,15 +144,5 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
} }
\ No newline at end of file
...@@ -110,15 +110,4 @@ export default { ...@@ -110,15 +110,4 @@ export default {
} }
}, },
display (index, row) {
debugger;
Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
} }
\ No newline at end of file
...@@ -29,15 +29,6 @@ export default { ...@@ -29,15 +29,6 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'}); this.$notify.error({title: '错误',message: '服务请求失败!'});
} }
}, },
display(index, row) {
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
async onInfbutUserow(){ async onInfbutUserow(){
let rtnmsg = await this.executeRule("infbut.userow") let rtnmsg = await this.executeRule("infbut.userow")
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
......
...@@ -199,15 +199,4 @@ export default { ...@@ -199,15 +199,4 @@ export default {
} }
}, },
display (index, row) {
debugger;
Api.post("getTrnNameByInr", { inr: row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
} }
\ No newline at end of file
...@@ -197,15 +197,5 @@ export default { ...@@ -197,15 +197,5 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}, },
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
} }
\ No newline at end of file
...@@ -362,16 +362,6 @@ export default { ...@@ -362,16 +362,6 @@ export default {
// this.$notify.error({title: '错误',message: '服务请求失败!'}); // this.$notify.error({title: '错误',message: '服务请求失败!'});
// } // }
// }, // },
getDetails(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
} }
\ No newline at end of file
...@@ -90,17 +90,6 @@ export default { ...@@ -90,17 +90,6 @@ export default {
// this.$notify.error({ title: '错误', message: '服务请求失败!' }); // this.$notify.error({ title: '错误', message: '服务请求失败!' });
// } // }
}, },
display(index, row) {
debugger;
Api.post("getTrnNameByInr", { inr:row['INR'] }).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + row['INR']
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
async onInfbutDsp(row) { async onInfbutDsp(row) {
let rtnmsg = await this.executeRule("infbut.dsp") let rtnmsg = await this.executeRule("infbut.dsp")
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
......
...@@ -381,12 +381,6 @@ export default { ...@@ -381,12 +381,6 @@ export default {
onSeainf() { onSeainf() {
}, },
// display(index, row) {
// const d = this.stmData.data[index]
// const ds = d.split("\t")
// let viewurl = "/#/display/" + ds['10'].toLowerCase() + "?trn=" + ds['1']
// window.open(viewurl, 'newwindow', 'height=1200,width=900,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
// },
async handleSearch() { async handleSearch() {
const that = this.root; const that = this.root;
// if (this.model.searchAllUsers) { // if (this.model.searchAllUsers) {
......
...@@ -91,6 +91,7 @@ export default class Trnrel { ...@@ -91,6 +91,7 @@ export default class Trnrel {
exedat: "", // Execution Date .trn.exedat exedat: "", // Execution Date .trn.exedat
inftxt: "", // Infotext .trn.inftxt inftxt: "", // Infotext .trn.inftxt
infdsp: "", // Infoflag .trn.infdsp infdsp: "", // Infoflag .trn.infdsp
inifrm: "",
}, },
wfmmod: { wfmmod: {
wfs: { wfs: {
......
import Api from "~/service/Api"
export function getTrnNameByInr(data) {
return Api.post('/business/getTrnNameByInr', data)
}
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
export function display(inr, data) { export function display(inr) {
return Api.post(`/business/display/${inr}`, data) return Api.post(`/business/display/${inr}`)
} }
export function getPdf(data) { export function getPdf(data) {
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
* UUID * UUID
*/ */
export function getUUID() { var PubFun = {
getUUID:function() {
var s = []; var s = [];
var hexDigits = "0123456789abcdef"; var hexDigits = "0123456789abcdef";
for(var i=0;i<36;i++){ for(var i=0;i<36;i++){
...@@ -14,4 +15,8 @@ export function getUUID() { ...@@ -14,4 +15,8 @@ export function getUUID() {
s[8] = s[13] = s[18] = s[23] = ""; s[8] = s[13] = s[18] = s[23] = "";
return s.join(""); return s.join("");
},
} }
export default PubFun;
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
width="100"> width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <a :href="`/#/display/${scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照</a>--> <!-- <a :href="`/#/display/${scope.row['10'].toLowerCase()}?trn=${scope.row['1']}`" target="_blank" >显示快照</a>-->
<a href="javascript:void(0)" @click="display(scope.$index, scope.row)">处理</a> <a href="javascript:void(0)" @click="display(scope.row['INR'])">处理</a>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<!-- =================已交单据====================== --> <!-- =================已交单据====================== -->
<c-col :span="24"> <c-col :span="24">
<el-button style="margin-bottom:5px;float:right" @click="addDocgrdDataStore" type="primary">新增单据</el-button> <c-button style="margin-bottom:5px;float:right" @click="addDocgrdDataStore" type="primary">新增单据</c-button>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<!-- :list="model.bdtp.docgrdm.docgrd" --> <!-- :list="model.bdtp.docgrdm.docgrd" -->
...@@ -178,8 +178,8 @@ ...@@ -178,8 +178,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="docnam" label="Document" width="auto"> <el-table-column prop="docnam" label="Document" width="auto">
</el-table-column> </el-table-column>
<el-table-column prop="state" label="状态" width="auto"> <!-- <el-table-column prop="state" label="状态" width="auto">
</el-table-column> </el-table-column> -->
<el-table-column label="操作" prop="det" width="170px" fixed="right"> <el-table-column label="操作" prop="det" width="170px" fixed="right">
<!-- <template slot="header"> <!-- <template slot="header">
<span>操作</span> <span>操作</span>
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
style="margin-left:0" style="margin-left:0"
size="small" size="small"
type="primary" type="primary"
@click="openPdfDialog(scope.row.id, scoped.$index)" @click="openPdfDialog(scoped.row.id, scoped.$index)"
>选择</el-button >选择</el-button
> >
</template> </template>
...@@ -214,8 +214,8 @@ ...@@ -214,8 +214,8 @@
<div class="file-add" title="导入文件" @click="importFile"> <div class="file-add" title="导入文件" @click="importFile">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</div> </div>
<el-button slot="reference" @click="addPDF(scope.row.id)" type="primary">添加</el-button> <c-button slot="reference" @click="addPDF(scope.row.id)" type="primary">添加</c-button>
<el-button v-if="scope.row.state != '缺失'" slot="reference" @click="detailPDF(scope.row.id)">详情</el-button> <c-button v-if="scope.row.state != '缺失'" slot="reference" @click="detailPDF(scope.row.id)">详情</c-button>
</el-popover> </el-popover>
</template> </template>
</el-table-column> </el-table-column>
...@@ -287,23 +287,23 @@ export default { ...@@ -287,23 +287,23 @@ export default {
docgrdDataStore:[ docgrdDataStore:[
{ {
id:"invoice", id:"invoice",
cmail1:"发票", cmail1:"1",
cmail2:"", cmail2:"",
docnam:"", docnam:"发票",
state:"缺失", state:"缺失",
}, },
{ {
id:"receipt", id:"receipt",
cmail1:"货物收据", cmail1:"1",
cmail2:"", cmail2:"",
docnam:"", docnam:"货物收据",
state:"缺失", state:"缺失",
}, },
{ {
id:"oceanShipping", id:"oceanShipping",
cmail1:"海运提单", cmail1:"1",
cmail2:"", cmail2:"",
docnam:"", docnam:"海运提单",
state:"缺失", state:"缺失",
}, },
], ],
...@@ -408,6 +408,9 @@ export default { ...@@ -408,6 +408,9 @@ export default {
this.$refs.ocrRecognition.formData.type = this.$refs.ocrRecognition.fileType[tempId].value; this.$refs.ocrRecognition.formData.type = this.$refs.ocrRecognition.fileType[tempId].value;
this.selectedPdf.id = id; this.selectedPdf.id = id;
this.selectedPdf.index = idx; this.selectedPdf.index = idx;
this.$nextTick(() => {
this.$refs.ocrRecognition.fileUrl = require(`~/assets/demo-files/${this.$refs.ocrRecognition.formData.type}.jpg`)
})
}, },
selectGridPDF(){ selectGridPDF(){
const id = this.selectedPdf.id; const id = this.selectedPdf.id;
...@@ -450,6 +453,7 @@ export default { ...@@ -450,6 +453,7 @@ export default {
} }
} }
this.docgrdData = tempData; this.docgrdData = tempData;
sessionStorage.setItem('docgrdData', JSON.stringify(this.docgrdData));
}, },
arraySpanMethod({ row, column, rowIndex, columnIndex }) { arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (this.docgrdData[rowIndex].states) { if (this.docgrdData[rowIndex].states) {
...@@ -462,6 +466,7 @@ export default { ...@@ -462,6 +466,7 @@ export default {
this.docgrdData.splice(index, 1); this.docgrdData.splice(index, 1);
this.docgrdData[index - 1].state = "符合" this.docgrdData[index - 1].state = "符合"
} }
sessionStorage.setItem('docgrdData', JSON.stringify(this.docgrdData));
}, },
InsertErrorDialog(index){ InsertErrorDialog(index){
this.InsertErrorDialogVisibal = true; this.InsertErrorDialogVisibal = true;
...@@ -475,6 +480,7 @@ export default { ...@@ -475,6 +480,7 @@ export default {
this.docgrdData[this.newInsertErrorIndex].list.push(temp); this.docgrdData[this.newInsertErrorIndex].list.push(temp);
this.newInsertError = ""; this.newInsertError = "";
this.InsertErrorDialogVisibal = false; this.InsertErrorDialogVisibal = false;
sessionStorage.setItem('docgrdData', JSON.stringify(this.docgrdData));
}, },
addDocgrdDataStore(){ addDocgrdDataStore(){
this.InsertGridDataDialogVisibal = true; this.InsertGridDataDialogVisibal = true;
...@@ -488,9 +494,17 @@ export default { ...@@ -488,9 +494,17 @@ export default {
this.docgrdData.push(this.dialog); this.docgrdData.push(this.dialog);
this.InsertGridDataDialogVisibal = false; this.InsertGridDataDialogVisibal = false;
this.newInsertGridData = ""; this.newInsertGridData = "";
sessionStorage.setItem('docgrdData', JSON.stringify(this.docgrdData));
} }
}, },
created: function () { created: function () {
//docgrdData, gridPDFData
var temp_docgrdData = JSON.parse(sessionStorage.getItem("docgrdData"));
if(temp_docgrdData != null){
var temp_gridPDFData = JSON.parse(sessionStorage.getItem("gridPDFData"));
this.docgrdData = temp_docgrdData;
this.gridPDFData = temp_gridPDFData;
}else{
var IconList = JSON.parse(sessionStorage.getItem("IconList")); var IconList = JSON.parse(sessionStorage.getItem("IconList"));
if(IconList == null){ if(IconList == null){
IconList = ["invoice","receipt"]; IconList = ["invoice","receipt"];
...@@ -505,6 +519,7 @@ export default { ...@@ -505,6 +519,7 @@ export default {
} }
} }
this.docgrdData = list; this.docgrdData = list;
}
}, },
computed:{ computed:{
}, },
...@@ -516,12 +531,13 @@ export default { ...@@ -516,12 +531,13 @@ export default {
// if(this.gridData[i].id == this.selectPDFData){ // if(this.gridData[i].id == this.selectPDFData){
// arr.push({"id" : this.gridData[i].id}); // arr.push({"id" : this.gridData[i].id});
for(let j = 0; j < this.gridData[i].data.length; j++){ for(let j = 0; j < this.gridData[i].data.length; j++){
arr.push({"name" : this.gridData[i].data[j].name}); arr.push({"name" : this.gridData[i].data[j].name, "id": this.gridData[i].id });
} }
// break; // break;
// } // }
} }
this.gridPDFData = arr; this.gridPDFData = arr;
sessionStorage.setItem('gridPDFData', JSON.stringify(this.gridPDFData));
} }
} }
} }
......
...@@ -265,7 +265,7 @@ ...@@ -265,7 +265,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
type="primary" type="primary"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
查看详情 查看详情
</c-button> </c-button>
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -567,7 +567,7 @@ ...@@ -567,7 +567,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
<c-button <c-button
style="margin-left: 0" style="margin-left: 0"
size="small" size="small"
@click="display(scope.$index, scope.row)" @click="display(scope.row['INR'])"
> >
详情 详情
</c-button> </c-button>
......
<template> <template>
<div class="eibs-tab"> <div class="eibs-tab">
<el-form <el-form
class="m-table-search-form" class="m-table-search-form"
ref="paramsForm" ref="paramsForm"
...@@ -13,14 +14,14 @@ ...@@ -13,14 +14,14 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item <el-form-item
label="标题" label="公告标题"
prop="theme" prop="theme"
style="width: 100%" style="width: 100%"
> >
<c-input <c-input
v-model="model.theme" v-model="model.theme"
maxlength="50" maxlength="20"
placeholder="请输入公告标题" placeholder="请输入标题名称"
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -62,6 +63,8 @@ ...@@ -62,6 +63,8 @@
</c-col> </c-col>
</c-col> </c-col>
</c-row> </c-row>
<!-- </template> --> <!-- </template> -->
<c-col <c-col
:span="24" :span="24"
...@@ -83,9 +86,9 @@ ...@@ -83,9 +86,9 @@
</c-col> </c-col>
<c-col style="margin-top: 10px"> <c-col :span="24" style="margin:10px 0px" >
<c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0 ; float :right" @click="ruleAdd()" <c-button class="medium_bcs" size="medium" type="primary" style="margin-left: 0px " @click="ruleAdd()"
>+添加公告</c-button >添加公告</c-button
> >
</c-col> </c-col>
...@@ -309,7 +312,7 @@ export default { ...@@ -309,7 +312,7 @@ export default {
nowDate:'', nowDate:'',
currentPage: 1, //初始页 currentPage: 1, //初始页
pagesize: 2, // 每页的数据 pagesize: 6, // 每页的数据
total: 0, total: 0,
......
<template> <template>
<c-page title="通知公告"> <c-page title="通知公告">
<div class="eContainer"> <div class="eContainer" style="height:90%">
<div style="padding:0 15px">
<el-form <el-form
:model="model" :model="model"
:rules="rules" :rules="rules"
ref="modelForm" ref="modelForm"
label-width="160px" label-width="110px"
size="small" size="small"
label-position="left" label-position="right"
:validate-on-rule-change="false" :validate-on-rule-change="false"
> >
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <c-content>
<m-infsea :model="model" :codes="codes" ref="infsea"/>
</c-content>
<!-- <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> -->
<!-- PD000001 --> <!-- PD000001 -->
<el-tab-pane <!-- <el-tab-pane -->
label="信息查询" name="infsea"> <!-- label="信息查询" name="infsea" -->
<c-content> <!-- <c-content>
<m-infsea :model="model" :codes="codes"/> <m-infsea :model="model" :codes="codes"/>
</c-content> </c-content> -->
</el-tab-pane>
<!-- </el-tab-pane> -->
</c-tabs>
<!-- </c-tabs> -->
</el-form> </el-form>
</div>
<!-- <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty"> <!-- <c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog> --> </c-grid-ety-prompt-dialog> -->
</div> </div>
...@@ -95,6 +101,7 @@ export default { ...@@ -95,6 +101,7 @@ export default {
rules: null, rules: null,
codes: { codes: {
}, },
showPanel:false,
} }
}, },
methods:{ methods:{
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11" style="text-align:right;"> <c-col :span="11" style="text-align:right;">
<c-button size="small" type="primary" style="margin-left:0" @click="display">交易快照</c-button> <c-button size="small" type="primary" style="margin-left:0" @click="display(model.trn.inr)">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0">智能提示</c-button> <c-button size="small" type="primary" style="margin-left:0">智能提示</c-button>
<c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button> <c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button>
</c-col> </c-col>
...@@ -481,17 +481,6 @@ export default { ...@@ -481,17 +481,6 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route) this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList"); this.$router.history.push("/taskList");
}, },
display() {
debugger
const inr = this.model.trn.inr;
Api.post("getTrnNameByInr", { inr: inr}).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
async show(idx,row){ async show(idx,row){
var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"} var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"}
let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params)) let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params))
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="11" style="text-align:right;"> <c-col :span="11" style="text-align:right;">
<c-button size="small" type="primary" style="margin-left:0" @click="display">交易快照</c-button> <c-button size="small" type="primary" style="margin-left:0" @click="display(model.trn.inr)">交易快照</c-button>
<c-button size="small" type="primary" style="margin-left:0">智能提示</c-button> <c-button size="small" type="primary" style="margin-left:0">智能提示</c-button>
<c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button> <c-button size="small" @click="exit" type="primary" style="margin-left:0">返回</c-button>
</c-col> </c-col>
...@@ -479,17 +479,6 @@ export default { ...@@ -479,17 +479,6 @@ export default {
this.$store.dispatch("TagsView/delView", this.$route) this.$store.dispatch("TagsView/delView", this.$route)
this.$router.history.push("/taskList"); this.$router.history.push("/taskList");
}, },
display() {
debugger
const inr = this.model.trn.inr;
Api.post("getTrnNameByInr", { inr: inr}).then((res) => {
if (res.respCode == SUCCESS) {
const trnName = res.data.toLowerCase();
let viewurl = "/#/display/" + trnName + "?trn=" + inr
window.open(viewurl, 'newwindow', 'height=1500,width=1200,top=100,left=100,toolbar=no,resizable=no,menubar=no,location=no, status=no');
}
});
},
async show(idx,row){ async show(idx,row){
var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"} var params = {selDst:"recpan.smhstm",selIds:[idx+1],selBtnId:"A"}
let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params)) let rtnmsg = await Api.post(`/business/trnrel/executeRule/recpan.smhstm`, this.wrapper(params))
......
...@@ -11,6 +11,15 @@ ...@@ -11,6 +11,15 @@
<script> <script>
export default { export default {
name: "Business", name: "Business",
watch: {
$route() {
if (this.$route.path.startsWith("/review")) {
this.$store.commit("setMode", "display");
} else {
this.$store.commit("setMode", "normal");
}
},
},
created: () => { created: () => {
console.log("进入业务交易界面"); console.log("进入业务交易界面");
}, },
......
...@@ -71,11 +71,6 @@ export default { ...@@ -71,11 +71,6 @@ export default {
}, },
watch: { watch: {
$route() { $route() {
if (this.$route.path.startsWith("/review")) {
this.$store.commit("setMode", "display");
} else {
this.$store.commit("setMode", "normal");
}
this.addTags(); this.addTags();
this.moveToCurrentTag(); this.moveToCurrentTag();
}, },
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
<t-diasel /> <t-diasel />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<!--
<el-tab-pane label="数据对比" name="compare"> <el-tab-pane label="数据对比" name="compare">
<span slot="label"> <span slot="label">
数据对比 数据对比
...@@ -70,6 +71,7 @@ ...@@ -70,6 +71,7 @@
<t-compare /> <t-compare />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
-->
</c-tabs> </c-tabs>
</div> </div>
</template> </template>
......
...@@ -65,8 +65,8 @@ module.exports = { ...@@ -65,8 +65,8 @@ module.exports = {
* ocr智能识别服务 * ocr智能识别服务
*/ */
'/ocr/': { '/ocr/': {
target: 'http://192.168.0.110:5010', // target: 'http://192.168.0.110:5010',
// target: 'http://127.0.0.1:5000', target: 'http://127.0.0.1:5000',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/ocr': '/' '^/ocr': '/'
......
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