需求优化
This commit is contained in:
parent
78d2ab32ca
commit
9804d4aa0c
|
|
@ -97,7 +97,7 @@
|
||||||
update bm_worker_contract set is_active = 0 where idCard = #{idNumber};
|
update bm_worker_contract set is_active = 0 where idCard = #{idNumber};
|
||||||
update bm_worker_contract_details set is_active = 0 where id_card = #{idNumber};
|
update bm_worker_contract_details set is_active = 0 where id_card = #{idNumber};
|
||||||
update bm_worker_contract_witness set is_active = 0 where id_number = #{idNumber};
|
update bm_worker_contract_witness set is_active = 0 where id_number = #{idNumber};
|
||||||
update bm_team_user_relation set is_active = 0 where id_number = #{idNumber} and is_regular_person = '0' and is_active = '1';
|
update bm_team_user_relation set is_active = 0 where id_number = #{idNumber} and is_active = '1';
|
||||||
update bm_worker set light_status = 0,is_furlough_person = 0 where id_number = #{idNumber} and is_active = 1;
|
update bm_worker set light_status = 0,is_furlough_person = 0 where id_number = #{idNumber} and is_active = 1;
|
||||||
update bm_worker_training_result set is_active = 0 where id_number = #{idNumber};
|
update bm_worker_training_result set is_active = 0 where id_number = #{idNumber};
|
||||||
<if test='einStatus != "1"'>
|
<if test='einStatus != "1"'>
|
||||||
|
|
@ -355,4 +355,4 @@
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -1817,6 +1817,9 @@ function setSel() {
|
||||||
function addPerson(data, loadingMsg) {
|
function addPerson(data, loadingMsg) {
|
||||||
var wageCard = $("#uploadWageCardSwitch").prop("checked");
|
var wageCard = $("#uploadWageCardSwitch").prop("checked");
|
||||||
var contract = $("#uploadContractSwitch").prop("checked");
|
var contract = $("#uploadContractSwitch").prop("checked");
|
||||||
|
$("#hideUploadProve").click();
|
||||||
|
$("#hideUploadWageCard").click();
|
||||||
|
$("#hideUploadContract").click();
|
||||||
if (wageCard) {
|
if (wageCard) {
|
||||||
uploadNum++;
|
uploadNum++;
|
||||||
}
|
}
|
||||||
|
|
@ -1834,9 +1837,7 @@ function addPerson(data, loadingMsg) {
|
||||||
data: JSON.stringify(data), //获取提交的表单字段
|
data: JSON.stringify(data), //获取提交的表单字段
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.code == 200) {
|
if (data.code == 200) {
|
||||||
$("#hideUploadProve").click();
|
|
||||||
$("#hideUploadWageCard").click();
|
|
||||||
$("#hideUploadContract").click();
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
layer.close(loadingMsg); // 关闭提示层
|
layer.close(loadingMsg); // 关闭提示层
|
||||||
parent.layer.closeAll();
|
parent.layer.closeAll();
|
||||||
|
|
@ -2250,24 +2251,34 @@ function uploadCheckup(number) {
|
||||||
$("#previewCheckupProve").css("display", "");
|
$("#previewCheckupProve").css("display", "");
|
||||||
var previewImgSrc = "../../../../img/filetype/pdf.png"; // 预览图片源
|
var previewImgSrc = "../../../../img/filetype/pdf.png"; // 预览图片源
|
||||||
|
|
||||||
// $("#checkupProve").append(
|
|
||||||
// '<div id="' +
|
|
||||||
// index +
|
|
||||||
// '" style="display: inline-block;text-align: center;width:150px">' +
|
|
||||||
// '<img src="' +
|
|
||||||
// previewImgSrc +
|
|
||||||
// '" alt="' +
|
|
||||||
// file.name +
|
|
||||||
// '" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img">' +
|
|
||||||
// "<div><span>" +
|
|
||||||
// (file.name.length > 8
|
|
||||||
// ? file.name.substr(0, 8) + ".."
|
|
||||||
// : file.name) +
|
|
||||||
// "</span></div>" +
|
|
||||||
// "</div>"
|
|
||||||
// );
|
|
||||||
|
|
||||||
$("#checkupProve").append(
|
$("#checkupProve").append(
|
||||||
|
'<div id="' +
|
||||||
|
index +
|
||||||
|
'" style="display: inline-block;text-align: center;width:150px">' +
|
||||||
|
'<img src="' +
|
||||||
|
previewImgSrc +
|
||||||
|
'" alt="' +
|
||||||
|
file.name +
|
||||||
|
'" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img">' +
|
||||||
|
"<div><span>" +
|
||||||
|
(file.name.length > 8
|
||||||
|
? file.name.substr(0, 8) + ".."
|
||||||
|
: file.name) +
|
||||||
|
"</span></div>" +
|
||||||
|
"</div>"
|
||||||
|
);
|
||||||
|
$("#checkup_img").attr("disabled", true);
|
||||||
|
$("#" + index).bind("dblclick", function () {
|
||||||
|
//双击删除指定预上传图片
|
||||||
|
delete companyExamFiles[index]; //删除指定图片
|
||||||
|
$(this).remove();
|
||||||
|
var photoNum = $("#demo1").children().length;
|
||||||
|
if (photoNum === 0) {
|
||||||
|
$("#test").attr("disabled", false);
|
||||||
|
$("#preview").css("display", "none");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
/*$("#checkupProve").append(
|
||||||
'<div id="' +
|
'<div id="' +
|
||||||
index +
|
index +
|
||||||
'" style="display: inline-block;text-align: center;width:150px;position: relative">' + // 增加了position: relative
|
'" style="display: inline-block;text-align: center;width:150px;position: relative">' + // 增加了position: relative
|
||||||
|
|
@ -2284,7 +2295,7 @@ function uploadCheckup(number) {
|
||||||
// 新增删除图标
|
// 新增删除图标
|
||||||
'<div id="deleteCheckupProve" onClick="deleteCheckupProve()" style="position: absolute;top: -5px;right: 30px;color: #ff4d4f;cursor: pointer;font-size: 18px;"><i class="layui-icon layui-icon-delete"></i></div>' +
|
'<div id="deleteCheckupProve" onClick="deleteCheckupProve()" style="position: absolute;top: -5px;right: 30px;color: #ff4d4f;cursor: pointer;font-size: 18px;"><i class="layui-icon layui-icon-delete"></i></div>' +
|
||||||
"</div>"
|
"</div>"
|
||||||
);
|
);*/
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
before: function (obj) {
|
before: function (obj) {
|
||||||
|
|
@ -2341,7 +2352,7 @@ function uploadSpecial(number) {
|
||||||
url: fileUrl + "/file/upload", //改成您自己的上传接口
|
url: fileUrl + "/file/upload", //改成您自己的上传接口
|
||||||
multiple: false, //是否允许多文件上传,默认未false
|
multiple: false, //是否允许多文件上传,默认未false
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
exts: "pdf|PDF",
|
exts: "pdf|PDF|jpg|png|jpeg|gif|bmp|webp",
|
||||||
auto: true, //是否自动上传 ,默认为true
|
auto: true, //是否自动上传 ,默认为true
|
||||||
number: number, //最大上传数量
|
number: number, //最大上传数量
|
||||||
size: 1024 * 30, //最大文件大小,单位k
|
size: 1024 * 30, //最大文件大小,单位k
|
||||||
|
|
@ -2383,6 +2394,17 @@ function uploadSpecial(number) {
|
||||||
"</span></div>" +
|
"</span></div>" +
|
||||||
"</div>"
|
"</div>"
|
||||||
);
|
);
|
||||||
|
$("#special_img").attr("disabled", true);
|
||||||
|
$("#" + index).bind("dblclick", function () {
|
||||||
|
//双击删除指定预上传图片
|
||||||
|
delete ContractFiles[index]; //删除指定图片
|
||||||
|
$(this).remove();
|
||||||
|
var photoNum = $("#demo1").children().length;
|
||||||
|
if (photoNum === 0) {
|
||||||
|
$("#test").attr("disabled", false);
|
||||||
|
$("#preview").css("display", "none");
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
before: function (obj) {
|
before: function (obj) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue