黄海 1 year ago
commit 8602b8036b

@ -74,8 +74,6 @@
$("#sjjzrq").html(sjjzrq);
$("#rwmc").html(res.job_name);
}, error: function (xhr, status, error) {
layer.msg("获取数据异常!", {
icon: 2,

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="../../../component/pear/css/pear.css" />
<style>
.require-star {
position: absolute;
width: 3px;
height: 14px;
background-color: #ea4335;
top: 12px;
right: 8px;
border-radius: 1.5px;
}
.input-width {
max-width: 470px
}
</style>
</head>
<body>
<form class="layui-form" action="">
<div class="main-container" style="margin-top: 20px;margin-bottom: 0;">
<div class="layui-form-item">
<label class="layui-form-label" style="width: 100px !important;">任务名称:</label>
<div class="layui-input-block" style="margin-left: 90px !important;display: flex;align-items: center;">
<div id="rwmc"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label" style="width: 100px !important;">上级截止日期:</label>
<div class="layui-input-block" style="margin-left: 90px !important;display: flex;align-items: center;">
<div id="sjjzrq"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label" style="width: 100px !important;"></span>上级填报要求:</label>
<div class="layui-input-block" style="margin-left: 132px !important;">
<blockquote class="layui-elem-quote" style="padding: 5px 5px 5px 10px !important;" id="sjtbyq">
</blockquote>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label" style="width: 100px !important;">本级截止日期:</label>
<div class="layui-input-block" style="margin-left: 90px !important;display: flex;align-items: center;">
<div id="bjjzrq"></div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label" style="width: 100px !important;"></span>本级填报要求:</label>
<div class="layui-input-block" style="margin-left: 132px !important;">
<blockquote class="layui-elem-quote" style="padding: 5px 5px 5px 10px !important;" id="bjtbyq">
</blockquote>
</div>
</div>
</div>
</form>
<script src="../../../component/layui/layui.js"></script>
<script src="../../../component/pear/pear.js"></script>
<script>
layui.use(function () {
var form = layui.form;
var $ = layui.jquery;
var jobId = GetQueryString("job_id");
var targetId = GetQueryString("target_id");
var statusCode = GetQueryString("status_code");
$.ajax({
url: "/QingLong/collect/getJob?job_id=" + jobId + "&target_id=" + targetId + "&status_code=" + statusCode,
async: false,
type: 'GET',
success: function (res) {
$("#bjtbyq").html(res.memo);
var bjjzrq = res.deadline_time.split(" ")[0];
$("#bjjzrq").html(bjjzrq);
$("#rwmc").html(res.job_name);
$("#sjtbyq").html(res.prev_memo);
var sjjzrq = res.prev_deadline_time.split(" ")[0];
$("#sjjzrq").html(sjjzrq);
}, error: function (xhr, status, error) {
layer.msg("获取数据异常!", {
icon: 2,
time: 1000
});
}
});
function GetQueryString(name, istop) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (typeof (istop) != "undefined") r = top.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
}
});
</script>
<script>
</script>
</body>
</html>

@ -204,8 +204,8 @@
type: 2,
title: '查看',
shade: 0.1,
area: ['800px', '400px'],
content: './job_view.html?job_id=' + obj.data.job_id + "&status_code=" + obj.data.status_code + "&target_id=" + obj.data.target_id
area: ['800px', '450px'],
content: './job_view_zf.html?job_id=' + obj.data.job_id + "&status_code=" + obj.data.status_code + "&target_id=" + obj.data.target_id
});
}

@ -2,7 +2,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<title>查看填报详情</title>
<link rel="stylesheet" href="../../component/pear/css/pear.css" />
<style mce_bogus="1">
@ -34,13 +34,13 @@
var _url = Base64.decode(GetQueryString("url"));
$(document).attr("title", "查看");
// $(document).attr("title", "查看");
var data = { "url": _url };
var data = { "url": _url };
var pdfTpl = pdfScript.innerHTML,
pdfView = document.getElementById('pdfView');
laytpl(pdfTpl).render(data, function (html) {
laytpl(pdfTpl).render(data, function (html) {
pdfView.innerHTML = html;
});

@ -54,6 +54,12 @@
<div class="content unicode" style="display: block;">
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont">&#xe68e;</span>
<div class="name">查看详情</div>
<div class="code-name">&amp;#xe68e;</div>
</li>
<li class="dib">
<span class="icon iconfont">&#xe6ce;</span>
<div class="name">发布数据</div>
@ -186,9 +192,9 @@
<pre><code class="language-css"
>@font-face {
font-family: 'iconfont';
src: url('iconfont.woff2?t=1705891755646') format('woff2'),
url('iconfont.woff?t=1705891755646') format('woff'),
url('iconfont.ttf?t=1705891755646') format('truetype');
src: url('iconfont.woff2?t=1706765340895') format('woff2'),
url('iconfont.woff?t=1706765340895') format('woff'),
url('iconfont.ttf?t=1706765340895') format('truetype');
}
</code></pre>
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
@ -214,6 +220,15 @@
<div class="content font-class">
<ul class="icon_lists dib-box">
<li class="dib">
<span class="icon iconfont icon-chakanxiangqing"></span>
<div class="name">
查看详情
</div>
<div class="code-name">.icon-chakanxiangqing
</div>
</li>
<li class="dib">
<span class="icon iconfont icon-tubiaozhizuomoban"></span>
<div class="name">
@ -412,6 +427,14 @@
<div class="content symbol">
<ul class="icon_lists dib-box">
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-chakanxiangqing"></use>
</svg>
<div class="name">查看详情</div>
<div class="code-name">#icon-chakanxiangqing</div>
</li>
<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-tubiaozhizuomoban"></use>

@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 4386424 */
src: url('iconfont.woff2?t=1705891755646') format('woff2'),
url('iconfont.woff?t=1705891755646') format('woff'),
url('iconfont.ttf?t=1705891755646') format('truetype');
src: url('iconfont.woff2?t=1706765340895') format('woff2'),
url('iconfont.woff?t=1706765340895') format('woff'),
url('iconfont.ttf?t=1706765340895') format('truetype');
}
.iconfont {
@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-chakanxiangqing:before {
content: "\e68e";
}
.icon-tubiaozhizuomoban:before {
content: "\e6ce";
}

File diff suppressed because one or more lines are too long

@ -5,6 +5,13 @@
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "17822474",
"name": "查看详情",
"font_class": "chakanxiangqing",
"unicode": "e68e",
"unicode_decimal": 59022
},
{
"icon_id": "2164259",
"name": "发布数据",

@ -54,7 +54,6 @@
</div>
</div>
<div class="layui-row layui-col-space10" style="height: 100%;">
<div class="layui-col-md2" style="height: 100%;">
<div class="layui-card" style="margin-top: 10px;margin-left: 10px;height: calc(100% - 60px);">
@ -69,8 +68,7 @@
<a href="javascript:;">{{item.number}}. {{item.sheet_name}}</a>
<i id="ico{{item.sheet_index}}" class="layui-icon layui-icon-ok-circle {{ item.is_check == 0 ? 'dh_ico' : '' }}"
style="font-size: 18px; color: #04B543;margin-top: -10px;" ></i>
style="font-size: 18px; color: #04B543;margin-top: -10px;" ></i>
</div>
</li>
{{# }); }}
@ -93,11 +91,9 @@
确认
</button>
</div>
</div>
<div class="layui-card-body">
<table id="data-table"></table>
<script type="text/html" id="fieldsType_select">
{{# var fieldsTypeList = [{"id":1,"name":"文本"},{"id":2,"name":"数值"},{"id":3,"name":"小数"},{"id":4,"name":"日期"}]; }}
<select name="fieldsType" class="layui-border fields-select" lay-ignore>
@ -110,7 +106,6 @@
<script type="text/html" id="required_switch">
<input type="checkbox" title="是|否" lay-skin="switch" lay-filter="requiredSwitch" {{d.allow_blank == false ? "checked" : "" }}>
</script>
</div>
</div>
</div>
@ -270,7 +265,7 @@
layer.msg('有未确认的sheet表请确认后再保存', {
icon: 2,
time: 1500,
});
});
} else {
layer.open({
type: 2,
@ -316,7 +311,6 @@
cellElem.addClass('err_border');
}
}
// console.log('修改的字段为' + obj.field + '<br>' + '修改的值为' + obj.value + '<br>' + JSON.stringify(obj.data));
});
//菜单的点击事件
@ -338,7 +332,6 @@
window.location = "./task_list.html";
}
});
</script>
</body>

@ -28,7 +28,7 @@
span {
cursor: pointer;
}
td img {
@ -54,20 +54,21 @@
<div class="layui-form-item">
<label class="layui-form-label" style="width: auto !important;">任务格式:</label>
<div class="layui-input-block" style="margin-left: 90px !important;">
<span style="font-weight:normal" id="form_radio">
<span style="font-weight:normal" id="form_radio">
<input type="radio" name="formType" value="1" checked><img src="../imgs/form.png" title="表单"
style="width: 50px;margin-left: -22px;margin-right: 29px;">
<span style="position: absolute;top: 55px;left: 50px;">
表单
</span>
<span style="position: absolute;top: 55px;left: 49px;">
表单
</span>
</span>
<span style="font-weight:normal" id="excel_radio">
<input type="radio" name="formType" value="2" style="margin-left: 130px;"><img
src="../imgs/excel.png" title="EXCEL" style="width: 50px;margin-left: -22px;" id="excel">
<span style="position: absolute;top: 55px;left: 156px;">
EXCEL
</span>
src="../imgs/excel.png" title="EXCEL" style="width: 50px;margin-left: -22px;"
id="excel">
<span style="position: absolute;top: 55px;left: 156px;">
Excel
</span>
</span>
</div>
</div>
@ -83,8 +84,6 @@
</div>
</form>
<script src="../../../component/layui/layui.js"></script>
<script src="../../../component/pear/pear.js"></script>
@ -96,8 +95,8 @@
localStorage.removeItem('target_type_id');
form.on('radio(targetId)', function (data) {
if (data.value == 2) {
form.on('radio(targetId)', function (data) {
if (data.value == 2) {
$('#excel_radio').hide();
$('input[name="formType"][value="1"]').prop('checked', true);
layui.form.render('radio');
@ -107,21 +106,16 @@
});
form.on('submit(save)', function (data) {
parent.layer.close(parent.layer.getFrameIndex(window.name));
window.localStorage.setItem('target_type_id', parseInt(data.field.targetId));
if (data.field.formType == "1") {
parent.openFormCreatePage();
} else {
parent.openExcelCreatePage();
}
}
return false;
});
util.on({
form: function () {
parent.layer.close(parent.layer.getFrameIndex(window.name));
@ -133,8 +127,6 @@
}
});
});
</script>
</body>

@ -27,7 +27,6 @@
查询
</button>
</div>
</div>
</div>
</div>
@ -39,7 +38,7 @@
{{#if (d.job_type == 1) { }}
<img src="../imgs/form.png" title="表单" style="max-width: 16px;margin-top: -4px;">
{{# } else { }}
<img src="../imgs/excel.png" title="EXCEL模板" style="max-width: 16px;margin-top: -4px;">
<img src="../imgs/excel.png" title="Excel" style="max-width: 16px;margin-top: -4px;">
{{# } }}
{{d.job_name}}
{{#if (d.jiezhi == true) { }}
@ -62,16 +61,21 @@
<i class="iconfont icon-tianbao"></i> 填报
</button>
{{# } }}
<button type="button" class="layui-btn layui-btn-sm" lay-event="view" style="font-size: 12px !important;">
<i class="iconfont icon-chakan"></i> 查看
<button type="button" class="layui-btn layui-btn-sm" lay-event="viewTaskInfo" style="font-size: 12px !important;">
<i class="iconfont icon-chakanxiangqing"></i> 查看任务详情
</button>
{{# if(d.is_finish === 1){ }}
{{# if(d.is_finish === 1){ }}
<button type="button" class="layui-btn layui-btn-sm" lay-event="viewReportInfo" style="font-size: 12px !important;">
<i class="iconfont icon-chakan"></i> 查看填报详情
</button>
{{# } }}
<!-- {{# if(d.is_finish === 1){ }}
{{# if(d.job_type === 2){ }}
<button type="button" class="layui-btn layui-btn-sm" lay-event="download" style="font-size: 12px !important;">
<i class="iconfont icon-xiazai"></i> 下载
</button>
{{# } }}
{{# } }}
{{# } }} -->
</script>
<script src="../../../component/layui/layui.js"></script>
@ -117,21 +121,33 @@
cols: [[
{ title: '序号', unresize: true, align: 'center', width: "5%", type: 'numbers' },
{ title: '任务名称', unresize: true, align: 'left', templet: '#jobName-Templet' },
{ title: '发布日期', unresize: true, field: 'publish_time', align: 'center', width: "15%" },
{ title: '截止日期', unresize: true, field: 'deadline_time', align: 'center', width: "15%" },
{ title: '发布日期', unresize: true, field: 'publish_time', align: 'center', width: "10%" },
{ title: '截止日期', unresize: true, field: 'deadline_time', align: 'center', width: "10%" },
{ title: '发布对象', unresize: true, align: 'center', width: "8%", templet: '#targetType' },
{ title: '操作', unresize: true, align: 'center', width: "15%", toolbar: '#table-bar' }
{ title: '操作', unresize: true, align: 'left', width: "25%", toolbar: '#table-bar' }
]],
skin: 'line',
defaultToolbar: []
defaultToolbar: [],
parseData: function (res) { // res 即为原始返回的数据
for (var i = 0; i < res.data.length; i++) {
if (res.data[i].status_code.toString().slice(-1) == "0") {
res.data[i].is_finish = 0;
} else {
res.data[i].is_finish = 1;
}
}
return res;
}
});
}
table.on('tool(data-table)', function (obj) {
if (obj.event === 'report') {
window.report(obj);
} else if (obj.event === 'view') {
window.view(obj);
} else if (obj.event === 'viewTaskInfo') {
window.viewTaskInfo(obj);
} else if (obj.event === 'viewReportInfo') {
window.viewReportInfo(obj);
} else if (obj.event === 'download') {
window.download(obj);
}
@ -176,35 +192,34 @@
window.location = '/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=1';
}
window.view = function (obj) {
var lastDigit = String(obj.data.status_code).slice(-1);
if (lastDigit == "0") {
window.viewTaskInfo = function (obj) {
layer.open({
type: 2,
title: '查看任务详情',
shade: 0.1,
area: ['800px', '400px'],
content: '../dis/job_view.html?job_id=' + obj.data.job_id + "&status_code=" + obj.data.status_code + "&target_id=" + obj.data.target_id
});
}
window.viewReportInfo = function (obj) {
if (obj.data.job_type === 1) {
layer.open({
type: 2,
title: '查看',
title: '查看填报详情',
offset: 'r',
anim: 'slideLeft',
area: ['1000px', '100%'],
shade: 0.1,
area: ['800px', '400px'],
content: '../dis/job_view.html?job_id=' + obj.data.job_id + "&status_code=" + obj.data.status_code + "&target_id=" + obj.data.target_id
shadeClose: true,
content: "../form/view.html?job_id=" + obj.data.job_id + "&target_id=" + obj.data.target_id + "&status_code=" + obj.data.status_code,
end: function () {
tableRender();
}
});
} else {
if (obj.data.job_type === 1) {
layer.open({
type: 2,
title: '查看',
offset: 'r',
anim: 'slideLeft',
area: ['1000px', '100%'],
shade: 0.1,
shadeClose: true,
content: "../form/view.html?job_id=" + obj.data.job_id + "&target_id=" + obj.data.target_id + "&status_code=" + obj.data.status_code,
end: function () {
tableRender();
}
});
} else {
var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=2' + '&status_code=' + obj.data.status_code);
window.open('../exportPdf.html?url=' + base64Url, '_blank');
}
var base64Url = Base64.encode('/QingLong/collect/getJobBureauFillInfo?job_id=' + obj.data.job_id + '&type_id=2' + '&status_code=' + obj.data.status_code);
window.open('../exportPdf.html?url=' + base64Url, '_blank');
}
}

@ -27,7 +27,6 @@
查询
</button>
</div>
</div>
</div>
</div>
@ -39,7 +38,7 @@
{{#if (d.job_type == 1) { }}
<img src="../imgs/form.png" title="表单" style="max-width: 16px;margin-top: -4px;">
{{# } else { }}
<img src="../imgs/excel.png" title="EXCEL模板" style="max-width: 16px;margin-top: -4px;">
<img src="../imgs/excel.png" title="Excel" style="max-width: 16px;margin-top: -4px;">
{{# } }}
{{d.job_name}}
{{#if (d.jiezhi == true) { }}

Loading…
Cancel
Save