2025-11-27 16:55:35 +08:00
|
|
|
var example = null;
|
|
|
|
|
var laydate;
|
|
|
|
|
layui.use(['form', 'layer', 'laydate'], function () {
|
|
|
|
|
$("#searchBt").click(function () {
|
|
|
|
|
example.ajax.reload();
|
|
|
|
|
});
|
|
|
|
|
laydate = layui.laydate;
|
|
|
|
|
init();
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function init() {
|
|
|
|
|
var submitrewordNum=localStorage.getItem("submitrewordNum");
|
|
|
|
|
$("#rewordNum").html(submitrewordNum)
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'post',
|
2025-12-09 18:44:29 +08:00
|
|
|
url: smz_ht_url + '/salaryCheck/getDetailForUpadte',
|
2025-11-27 16:55:35 +08:00
|
|
|
data: {rewordNum:submitrewordNum},
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (data) {
|
|
|
|
|
$("#name").html(data.data.uploadName)
|
|
|
|
|
$("#time").html(data.data.createTime)
|
|
|
|
|
$("#upTime").html(data.data.updateTime)
|
|
|
|
|
},
|
|
|
|
|
error: function (err) {
|
|
|
|
|
console.log("出错:", err);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
function shi(){
|
|
|
|
|
reloading()
|
|
|
|
|
}
|
|
|
|
|
function fou(){
|
|
|
|
|
var submitrewordNum=localStorage.getItem("submitrewordNum");
|
|
|
|
|
localStorage.setItem("pageType", "查看");
|
|
|
|
|
localStorage.setItem("uprewordNum", submitrewordNum);
|
|
|
|
|
var height = '100%';
|
|
|
|
|
var width = '100%';
|
|
|
|
|
var index = layer.open({
|
|
|
|
|
title: '详情',
|
|
|
|
|
type: 2,
|
|
|
|
|
content: 'uploadResultsView.html',
|
|
|
|
|
area: [width, height],
|
|
|
|
|
maxmin: false,
|
|
|
|
|
success:function (layero, index) {
|
|
|
|
|
// //打开页面成功时执行
|
|
|
|
|
var myIframe = window[layero.find('iframe')[0]['name']];
|
|
|
|
|
myIframe.setData(submitrewordNum);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// btn:['确定','关闭'],
|
|
|
|
|
yes:function(index,layero){
|
|
|
|
|
var formSubmit=layer.getChildFrame('form', index);
|
|
|
|
|
var submited = formSubmit.find('button')[2];
|
|
|
|
|
// 触发点击事件,会对表单进行验证,验证成功则提交表单,失败则返回错误信息
|
|
|
|
|
submited.click();
|
|
|
|
|
example.ajax.reload(); // 刷新页面
|
|
|
|
|
},
|
|
|
|
|
btn2:function(index,layero){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//设置弹窗关闭
|
|
|
|
|
function reloading() {
|
|
|
|
|
parent.parent.layer.closeAll();
|
|
|
|
|
parent.layer.closeAll();
|
|
|
|
|
layer.closeAll();
|
|
|
|
|
window.parent.parent.example.ajax.reload(null, false); // 刷新页面
|
|
|
|
|
}
|