<!doctype html>
|
<html>
|
<head>
|
<meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache">
|
<title>折扣计算进度</title>
|
<script type="text/javascript">
|
function loadJsCss(callback) {
|
var jscss_urls = [];
|
window.top.initJsCss(document, jscss_urls, callback);
|
};
|
|
function initVue() {
|
new ListVue({
|
el: "#vbody",
|
data: {
|
title: "折扣计算进度",
|
popupParames: {},
|
formdata: {},//fileid, filename
|
filetype: "",
|
file_pdf: "",
|
imglist: [],
|
seal: false,
|
|
washProcessList1: [
|
{id: "001", name: "协次计算", statusname: "0%"},
|
{id: "002", name: "折扣申请计算", statusname: "0%"},
|
// {id: "001", name: "获取员工、架构、客户、指标主数据", statusname: "0%"},
|
// {id: "002", name: "获取业务数据", statusname: "0%"},
|
// {id: "003", name: "获取折扣方案参数", statusname: "0%"},
|
// {id: "004", name: "匹配员工、考勤、业务数据", statusname: "0%"},
|
// {id: "005", name: "计算完成,生成折扣列表", statusname: "0%"},
|
],
|
washProcessList2: [
|
{id: "001", name: "获取经销商,架构主数据", statusname: "0%"},
|
{id: "002", name: "获取流向数据", statusname: "0%"},
|
{id: "003", name: "匹配折扣准则,计算费用", statusname: "0%"},
|
{id: "004", name: "计算完成,生成费用明细", statusname: "0%"},
|
],
|
washProcessCnt: {
|
flow_cnt: 2000,
|
com_cnt: 2000,
|
sys_cnt: 1800,
|
user_cnt: 200
|
},
|
formAttr: {
|
istitle: false,
|
title: "表单名称",
|
columnnumber: 2,
|
labelwidth: "140px",
|
labelposition: "left",//"left",// right//top
|
size: "mini",
|
border: "1px solid #c6c6c600"
|
},
|
default_formFields: [
|
{isshow: "T", field: "nowadays", name: "当前期间", type: "date"},
|
{isshow: "T", field: "time", name: "距离费用定版时间", type: "span"},
|
{isshow: "T", field: "month_count", name: "本月已经计算次数", type: "span"},
|
{isshow: "T", field: "lastdate", name: "上次计算时间", type: "date"},
|
],
|
formData: {},
|
formfieldClick: {},
|
checked1: false,
|
checked2: false
|
},
|
created() {
|
this.popupParames = clone(Root.popupParames);
|
this.formdata = clone(this.popupParames.data);
|
},
|
|
mounted() {
|
this.initData();
|
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
|
hideLoading();
|
//重新设置弹窗宽高
|
this.$nextTick(function(){
|
//let w_ = this.$refs.popup_body.offsetWidth "px";
|
let w_ = "900px";
|
let h_ = this.$refs.popup_body.offsetHeight + "px";
|
|
// let w_ = "700px";
|
// let h_ = "400px";
|
Root.setPopupWH(w_, h_);
|
})
|
});
|
},
|
methods:{
|
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 = {
|
row: clone(this.formdata)
|
}
|
this.popupParames.callback(obj, function() {
|
me.closeDialog();
|
});
|
}
|
else {
|
me.closeDialog();
|
}
|
},
|
|
onServerInitData(data) {
|
var me = this.data;
|
},
|
|
initData() {
|
|
},
|
|
download() {
|
var fileid = this.formdata.fileid;
|
handleDownload(fileid);
|
},
|
|
}
|
});
|
};
|
|
loadJsCss(function () {
|
initVue();
|
});
|
</script>
|
|
<style>
|
html{
|
overflow-x: hidden;
|
}
|
</style>
|
</head>
|
|
<body>
|
<div id="vbody">
|
<div id="page_root">
|
<div class="popup_topbar">
|
<span>{{title}}</span>
|
</div>
|
<div>
|
<h-form
|
ref="form1"
|
:form-attr="formAttr"
|
:table-fields="default_formFields"
|
:form-data="formData"
|
:table-field-click="formfieldClick"
|
>
|
</div>
|
<div class="versionNo" style="position: relative; top: 0px; bottom: 80px; left: 10px; right: 10px; padding: 10px 20px;">
|
<div>
|
<el-checkbox v-model="checked1">1、折扣准则</el-checkbox>
|
</div>
|
<template v-if="washProcessList1.length">
|
<div style="">
|
<div v-for="(wash, k) in washProcessList1" :key="k">
|
<div style="border-bottom: 1px dashed #aaa; height: 40px;line-height: 40px; ">
|
<span>({{k + 1}})</span>
|
<span>{{wash.name}}</span>
|
|
<span style="float: right;">{{wash.statusname}}</span>
|
</div>
|
</div>
|
</div>
|
</template>
|
<div>
|
<el-checkbox v-model="checked2">2、折扣明细</el-checkbox>
|
</div>
|
<template v-if="washProcessList2.length">
|
<div style="">
|
<div v-for="(wash, k) in washProcessList2" :key="k">
|
<div style="border-bottom: 1px dashed #aaa; height: 40px;line-height: 40px; ">
|
<span>({{(k + 1)}})</span>
|
<span>{{wash.name}}</span>
|
|
<span style="float: right;">{{wash.statusname}}</span>
|
</div>
|
</div>
|
</div>
|
</template>
|
</div>
|
|
<div class="el-dialog__footer" style="position: relative; bottom: 0px; left: 10px; right: 10px;">
|
<el-button size="small" type="default" @click="closeDialog">关 闭</el-button>
|
<el-button size="small" type="success" @click="">运 行</el-button>
|
</div>
|
</div>
|
|
<div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 50vh;">
|
<div class="spinner">
|
<div class="cube1"></div>
|
<div class="cube2"></div>
|
</div>
|
</div>
|
</div>
|
|
</body>
|
</html>
|