<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<title>销售合同签名</title>
|
<script src="../../js/vue/vue.js"></script>
|
<script src="../../js/vue/element-ui/lib/index.js"></script>
|
<script src="../../js/myelement.js"></script>
|
<script src="../../js/vue/page.js"></script>
|
|
<link href="../../js/vue/element-ui/lib/theme-chalk/index.css" rel="stylesheet">
|
<link href="../../css/myelement.css" rel="stylesheet">
|
<link href="../../css/iconfont.css" rel="stylesheet">
|
<link href="../../css/page.css" rel="stylesheet">
|
<link href="//at.alicdn.com/t/font_2374495_13ltsxm2eor.css" rel="stylesheet">
|
</head>
|
|
<body>
|
<div id="vbody">
|
<div id="page_root">
|
<div class="topbar" style="line-height: 60px;">
|
<span>流程图 {{title}}</span>
|
|
<div style="float: right; margin-right: 20px;">
|
<!-- <el-button-group> <el-button @click="onShowApproval">审批记录</el-button>
|
</el-button-group> -->
|
<el-button-group>
|
<el-button @click="closeDialog">关 闭</el-button>
|
</el-button-group>
|
</div>
|
</div>
|
<div class="img_iframe">
|
<iframe :src="src_url" style="width: 100%; height: 100%;"></iframe>
|
</div>
|
|
<!-- <div class="el-dialog__footer" style="position: absolute; bottom: 10px; width: 100%; text-align: right;">
|
|
</div> -->
|
|
</div>
|
|
<div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 100vh;">
|
<div class="spinner">
|
<div class="cube1"></div>
|
<div class="cube2"></div>
|
</div>
|
</div>
|
</div>
|
|
<script type="text/javascript">
|
var initlized = false;
|
|
new ListVue({
|
el: "#vbody",
|
data: {
|
title: "",
|
popupParames: {},
|
formdata: {},//contract_file_id
|
flow_id: "",
|
|
src_url: "",
|
|
},
|
created() {
|
this.popupParames = clone(Root.popupParames);
|
this.formdata = clone(this.popupParames.data);
|
this.flow_id = clone(this.popupParames.delta.flow_id);
|
this.title = clone(this.popupParames.delta.title);
|
},
|
|
mounted() {
|
this.initData();
|
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
|
hideLoading();
|
});
|
|
},
|
methods:{
|
onServerInitData(data) {
|
var me = this.data;
|
},
|
|
closeDialog() {//关闭
|
var me = this;
|
if (me.popupParames.totab){
|
Root.tab.removeItem(Root.tab.selected);
|
Root.tab.open(me.popupParames.parentOption, false);
|
}
|
else {
|
Root.hidePopup();
|
}
|
},
|
|
saveAfter() {//调回调的关闭
|
var me = this;
|
if(this.popupParames.callback) {
|
let obj = {};
|
this.popupParames.callback(obj, function() {
|
me.closeDialog();
|
});
|
}
|
else {
|
me.closeDialog();
|
}
|
},
|
|
initData() {
|
if (initlized) { return; }
|
initlized = true;
|
this.getURL();
|
},
|
|
getURL() {
|
var me =this;
|
me.src_url = window.top.RootSetting.url_act + "act/diagram/" + this.flow_id;
|
},
|
|
onShowApproval() {
|
var me = this;
|
let param = {
|
isClientMode: false,
|
flowId: this.flow_id
|
}
|
|
Server.call("root/order/getHistoryTask/", param, function(result) {
|
console.log(result);
|
if (result && result.data) {
|
me.getApprovalRecord(result.data);
|
}
|
});
|
|
},
|
|
getApprovalRecord(data) {
|
let me = this;
|
var config = {
|
width: "900px",
|
height:"600px",
|
url: "../approval/ApprovalList.html",
|
data: data,
|
delta: {
|
flow_id: this.flow_id,
|
title: this.title
|
},
|
};
|
this.doPopupByPublic(config);
|
},
|
|
|
}
|
});
|
</script>
|
|
<style>
|
iframe {
|
border-width: 0px !important;
|
}
|
.img_iframe {
|
position: absolute;
|
top: 50px;
|
bottom: 30px;
|
left: 10px;
|
right: 10px;
|
padding: 20px;
|
|
border: 2px solid #ccc;
|
margin: 3px;
|
}
|
|
.popup-close {
|
display: none !important
|
}
|
|
.el-icon-close:before {
|
content: "" !important;
|
}
|
|
</style>
|
</body>
|
</html>
|