初训复训换证 文件上传显示问题
This commit is contained in:
parent
4c5751988b
commit
006cb27e96
@ -133,7 +133,7 @@
|
|||||||
<div class="layui-form-item" pane>
|
<div class="layui-form-item" pane>
|
||||||
<label class="layui-form-label"><span style="color: red">*</span>培训分类</label>
|
<label class="layui-form-label"><span style="color: red">*</span>培训分类</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<input type="radio" name="applyFenLei" value="1" title="初训" checked lay-filter="applyFenLeiFilter">
|
<input type="radio" name="applyFenLei" value="1" title="初训" lay-filter="applyFenLeiFilter">
|
||||||
<input type="radio" name="applyFenLei" value="2" title="复训" lay-filter="applyFenLeiFilter">
|
<input type="radio" name="applyFenLei" value="2" title="复训" lay-filter="applyFenLeiFilter">
|
||||||
<input type="radio" name="applyFenLei" value="3" title="换证" lay-filter="applyFenLeiFilter">
|
<input type="radio" name="applyFenLei" value="3" title="换证" lay-filter="applyFenLeiFilter">
|
||||||
</div>
|
</div>
|
||||||
@ -328,13 +328,13 @@
|
|||||||
if(data['applyFenLei'] == '1'){
|
if(data['applyFenLei'] == '1'){
|
||||||
$('.fuxun-upload').hide();
|
$('.fuxun-upload').hide();
|
||||||
}
|
}
|
||||||
if(data['applyFenLei'] == '2'){
|
if(data['applyFenLei'] == '2' || data['applyFenLei'] == '3'){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
}
|
}
|
||||||
form.val('dataForm', dataFormData);
|
form.val('dataForm', dataFormData);
|
||||||
form.render(null, 'dataForm');
|
form.render(null, 'dataForm');
|
||||||
initApplyCardTypeSelect(dataFormData['applyCardType']);
|
initApplyCardTypeSelect(dataFormData['applyCardType']);
|
||||||
initApplyCultureLevelSelect(dataFormData['applyCultureLevel']);
|
//initApplyCultureLevelSelect(dataFormData['applyCultureLevel']);
|
||||||
initApplyUserCardPhotoUploadFile();
|
initApplyUserCardPhotoUploadFile();
|
||||||
initApplyTakeCardPhotoUploadFile();
|
initApplyTakeCardPhotoUploadFile();
|
||||||
workerCatalog = dataFormData['applyWorkTypeId'];
|
workerCatalog = dataFormData['applyWorkTypeId'];
|
||||||
@ -342,6 +342,7 @@
|
|||||||
initIdCardFrontPhotoUploadFile();
|
initIdCardFrontPhotoUploadFile();
|
||||||
initIdCardBackPhotoUploadFile();
|
initIdCardBackPhotoUploadFile();
|
||||||
initEducationPhotoUploadFile();
|
initEducationPhotoUploadFile();
|
||||||
|
$('input[name="applyFenLei"]:checked').siblings('input').attr("disabled","true");
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md2 layui-col-sm2 fuxun-upload" style="display: none;">
|
<div class="layui-col-md2 layui-col-sm2 fuxun-upload zaipei-upload" style="display: none;">
|
||||||
<div class="layui-form-item layui-form-text">
|
<div class="layui-form-item layui-form-text">
|
||||||
<label class="layui-form-label">再培训证明</label>
|
<label class="layui-form-label">再培训证明</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -157,9 +157,9 @@
|
|||||||
<div class="layui-form-item" pane>
|
<div class="layui-form-item" pane>
|
||||||
<label class="layui-form-label"><span style="color: red">*</span>培训分类</label>
|
<label class="layui-form-label"><span style="color: red">*</span>培训分类</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
<input type="radio" name="applyFenLei" value="1" title="初训">
|
<input type="radio" name="applyFenLei" value="1" title="初训" lay-filter="applyFenLeiFilter">
|
||||||
<input type="radio" name="applyFenLei" value="2" title="复训">
|
<input type="radio" name="applyFenLei" value="2" title="复训" lay-filter="applyFenLeiFilter">
|
||||||
<input type="radio" name="applyFenLei" value="3" title="换证">
|
<input type="radio" name="applyFenLei" value="3" title="换证" lay-filter="applyFenLeiFilter">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -355,7 +355,7 @@
|
|||||||
<div class="layui-footer" style="left: 0;">
|
<div class="layui-footer" style="left: 0;">
|
||||||
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm1">审核通过</button>
|
<button type="button" class="layui-btn" lay-submit lay-filter="submitForm1">审核通过</button>
|
||||||
<button type="button" class="layui-btn layui-btn-danger" lay-submit lay-filter="submitForm2">审核不通过</button>
|
<button type="button" class="layui-btn layui-btn-danger" lay-submit lay-filter="submitForm2">审核不通过</button>
|
||||||
<button type="button" class="layui-btn layui-btn-primary close">返回</button>
|
<button type="button" class="layui-btn layui-btn-warm" lay-submit lay-filter="submitForm3">参培待审</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -392,17 +392,23 @@
|
|||||||
}
|
}
|
||||||
if(data['applyFenLei'] == '2'){
|
if(data['applyFenLei'] == '2'){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').show();
|
||||||
|
}
|
||||||
|
if(data['applyFenLei'] == '3'){
|
||||||
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').hide();
|
||||||
}
|
}
|
||||||
form.val('dataForm', dataFormData);
|
form.val('dataForm', dataFormData);
|
||||||
form.render(null, 'dataForm');
|
form.render(null, 'dataForm');
|
||||||
initApplyCardTypeSelect(dataFormData['applyCardType']);
|
initApplyCardTypeSelect(dataFormData['applyCardType']);
|
||||||
initApplyCultureLevelSelect(dataFormData['applyCultureLevel']);
|
//initApplyCultureLevelSelect(dataFormData['applyCultureLevel']);
|
||||||
initApplyUserCardPhotoUploadFile();
|
initApplyUserCardPhotoUploadFile();
|
||||||
initApplyTakeCardPhotoUploadFile();
|
initApplyTakeCardPhotoUploadFile();
|
||||||
initApplyRePeiXunPhotoUploadFile();
|
initApplyRePeiXunPhotoUploadFile();
|
||||||
initIdCardFrontPhotoUploadFile();
|
initIdCardFrontPhotoUploadFile();
|
||||||
initIdCardBackPhotoUploadFile();
|
initIdCardBackPhotoUploadFile();
|
||||||
initEducationPhotoUploadFile();
|
initEducationPhotoUploadFile();
|
||||||
|
$('input[name="applyFenLei"]:checked').siblings('input').attr("disabled","true");
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
@ -815,6 +821,13 @@
|
|||||||
saveDataVal['applyAuditState'] = -1;
|
saveDataVal['applyAuditState'] = -1;
|
||||||
saveData(saveDataVal)
|
saveData(saveDataVal)
|
||||||
});
|
});
|
||||||
|
// 人员待审
|
||||||
|
form.on('submit(submitForm3)', function(formData) {
|
||||||
|
saveDataVal['applyId'] = applyId;
|
||||||
|
saveDataVal['applyAuditExplain'] = formData.field.applyAuditExplain;
|
||||||
|
saveDataVal['applyAuditState'] = 0;
|
||||||
|
saveData(saveDataVal)
|
||||||
|
});
|
||||||
|
|
||||||
//提交参数
|
//提交参数
|
||||||
function saveData(field){
|
function saveData(field){
|
||||||
|
@ -177,7 +177,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md2 layui-col-sm2 fuxun-upload" style="display: none;">
|
<div class="layui-col-md2 layui-col-sm2 fuxun-upload zaipei-upload" style="display: none;">
|
||||||
<div class="layui-form-item layui-form-text">
|
<div class="layui-form-item layui-form-text">
|
||||||
<label class="layui-form-label">再培训证明</label>
|
<label class="layui-form-label">再培训证明</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -444,11 +444,17 @@
|
|||||||
$('#applyTakeCardPhoto').val('');
|
$('#applyTakeCardPhoto').val('');
|
||||||
$('#applyRePeiXunPhoto').val('');
|
$('#applyRePeiXunPhoto').val('');
|
||||||
}
|
}
|
||||||
if(val == 2 || val == 3){
|
if(val == 2){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
initApplyTakeCardPhotoUploadFile();
|
initApplyTakeCardPhotoUploadFile();
|
||||||
initApplyRePeiXunPhotoUploadFile();
|
initApplyRePeiXunPhotoUploadFile();
|
||||||
}
|
}
|
||||||
|
if(val == 3){
|
||||||
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').hide();
|
||||||
|
initApplyTakeCardPhotoUploadFile();
|
||||||
|
initApplyRePeiXunPhotoUploadFile();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 初始化头像图片上传
|
// 初始化头像图片上传
|
||||||
|
@ -328,7 +328,7 @@
|
|||||||
if(data['applyFenLei'] == '1'){
|
if(data['applyFenLei'] == '1'){
|
||||||
$('.fuxun-upload').hide();
|
$('.fuxun-upload').hide();
|
||||||
}
|
}
|
||||||
if(data['applyFenLei'] == '2'){
|
if(data['applyFenLei'] == '2' || data['applyFenLei'] == '3'){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
}
|
}
|
||||||
form.val('dataForm', dataFormData);
|
form.val('dataForm', dataFormData);
|
||||||
@ -341,6 +341,7 @@
|
|||||||
initIdCardFrontPhotoUploadFile();
|
initIdCardFrontPhotoUploadFile();
|
||||||
initIdCardBackPhotoUploadFile();
|
initIdCardBackPhotoUploadFile();
|
||||||
initEducationPhotoUploadFile();
|
initEducationPhotoUploadFile();
|
||||||
|
$('input[name="applyFenLei"]:checked').siblings('input').attr("disabled","true");
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
@ -360,21 +361,6 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化报名人文化程度
|
|
||||||
function initApplyCultureLevelSelect(selectValue) {
|
|
||||||
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/d6b9f026-6ea9-456a-b48b-0c18d502523b', []), {}, null, function(code, data, args) {
|
|
||||||
laytpl(document.getElementById('applyCultureLevelSelectTemplate').innerHTML).render(data, function(html) {
|
|
||||||
document.getElementById('applyCultureLevelSelectTemplateBox').innerHTML = html;
|
|
||||||
});
|
|
||||||
form.render('select', 'applyCultureLevelSelectTemplateBox');
|
|
||||||
var selectObj = {};
|
|
||||||
selectObj['applyCultureLevel'] = selectValue;
|
|
||||||
form.val('dataForm', selectObj);
|
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 初始化头像图片上传
|
// 初始化头像图片上传
|
||||||
function initApplyUserCardPhotoUploadFile() {
|
function initApplyUserCardPhotoUploadFile() {
|
||||||
var files = $('#applyUserCardPhoto').val();
|
var files = $('#applyUserCardPhoto').val();
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md2 layui-col-sm2 fuxun-upload" style="display: none;">
|
<div class="layui-col-md2 layui-col-sm2 fuxun-upload zaipei-upload" style="display: none;">
|
||||||
<div class="layui-form-item layui-form-text">
|
<div class="layui-form-item layui-form-text">
|
||||||
<label class="layui-form-label">再培训证明</label>
|
<label class="layui-form-label">再培训证明</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -387,6 +387,11 @@
|
|||||||
}
|
}
|
||||||
if(data['applyFenLei'] == '2'){
|
if(data['applyFenLei'] == '2'){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').show();
|
||||||
|
}
|
||||||
|
if(data['applyFenLei'] == '3'){
|
||||||
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').hide();
|
||||||
}
|
}
|
||||||
form.val('dataForm', dataFormData);
|
form.val('dataForm', dataFormData);
|
||||||
form.render(null, 'dataForm');
|
form.render(null, 'dataForm');
|
||||||
@ -399,6 +404,7 @@
|
|||||||
initIdCardFrontPhotoUploadFile();
|
initIdCardFrontPhotoUploadFile();
|
||||||
initIdCardBackPhotoUploadFile();
|
initIdCardBackPhotoUploadFile();
|
||||||
initEducationPhotoUploadFile();
|
initEducationPhotoUploadFile();
|
||||||
|
$('input[name="applyFenLei"]:checked').siblings('input').attr("disabled","true");
|
||||||
}, function(code, data) {
|
}, function(code, data) {
|
||||||
top.dialog.msg(data.msg);
|
top.dialog.msg(data.msg);
|
||||||
}, function() {
|
}, function() {
|
||||||
|
@ -354,7 +354,7 @@
|
|||||||
if(data['applyFenLei'] == '1'){
|
if(data['applyFenLei'] == '1'){
|
||||||
$('.fuxun-upload').hide();
|
$('.fuxun-upload').hide();
|
||||||
}
|
}
|
||||||
if(data['applyFenLei'] == '2'){
|
if(data['applyFenLei'] == '2' || data['applyFenLei'] == '3'){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
}
|
}
|
||||||
form.val('dataForm', dataFormData);
|
form.val('dataForm', dataFormData);
|
||||||
@ -387,21 +387,6 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化报名人证件类型
|
|
||||||
function initApplyCardTypeSelect(selectValue) {
|
|
||||||
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/76c5044f-805a-4313-b1e8-79e966b97c0d', []), {}, null, function(code, data, args) {
|
|
||||||
laytpl(document.getElementById('applyCardTypeSelectTemplate').innerHTML).render(data, function(html) {
|
|
||||||
document.getElementById('applyCardTypeSelectTemplateBox').innerHTML = html;
|
|
||||||
});
|
|
||||||
form.render('select', 'applyCardTypeSelectTemplateBox');
|
|
||||||
var selectObj = {};
|
|
||||||
selectObj['applyCardType'] = selectValue;
|
|
||||||
form.val('dataForm', selectObj);
|
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
form.on('radio(applyFenLeiFilter)', function(data){
|
form.on('radio(applyFenLeiFilter)', function(data){
|
||||||
var val = data.value;//被点击的radio的value值
|
var val = data.value;//被点击的radio的value值
|
||||||
if(val == 1){
|
if(val == 1){
|
||||||
@ -412,21 +397,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 初始化报名人文化程度
|
|
||||||
function initApplyCultureLevelSelect(selectValue) {
|
|
||||||
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/d6b9f026-6ea9-456a-b48b-0c18d502523b', []), {}, null, function(code, data, args) {
|
|
||||||
laytpl(document.getElementById('applyCultureLevelSelectTemplate').innerHTML).render(data, function(html) {
|
|
||||||
document.getElementById('applyCultureLevelSelectTemplateBox').innerHTML = html;
|
|
||||||
});
|
|
||||||
form.render('select', 'applyCultureLevelSelectTemplateBox');
|
|
||||||
var selectObj = {};
|
|
||||||
selectObj['applyCultureLevel'] = selectValue;
|
|
||||||
form.val('dataForm', selectObj);
|
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 初始化头像图片上传
|
// 初始化头像图片上传
|
||||||
function initApplyUserCardPhotoUploadFile() {
|
function initApplyUserCardPhotoUploadFile() {
|
||||||
var files = $('#applyUserCardPhoto').val();
|
var files = $('#applyUserCardPhoto').val();
|
||||||
|
@ -177,7 +177,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-col-md2 layui-col-sm2 fuxun-upload" style="display: none;">
|
<div class="layui-col-md2 layui-col-sm2 fuxun-upload zaipei-upload" style="display: none;">
|
||||||
<div class="layui-form-item layui-form-text">
|
<div class="layui-form-item layui-form-text">
|
||||||
<label class="layui-form-label">再培训证明</label>
|
<label class="layui-form-label">再培训证明</label>
|
||||||
<div class="layui-input-block">
|
<div class="layui-input-block">
|
||||||
@ -428,11 +428,14 @@
|
|||||||
}
|
}
|
||||||
if(data['applyFenLei'] == '2'){
|
if(data['applyFenLei'] == '2'){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').show();
|
||||||
|
}
|
||||||
|
if(data['applyFenLei'] == '3'){
|
||||||
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').hide();
|
||||||
}
|
}
|
||||||
form.val('dataForm', dataFormData);
|
form.val('dataForm', dataFormData);
|
||||||
form.render(null, 'dataForm');
|
form.render(null, 'dataForm');
|
||||||
//initApplyCardTypeSelect(dataFormData['applyCardType']);
|
|
||||||
//initApplyCultureLevelSelect(dataFormData['applyCultureLevel']);
|
|
||||||
initApplyUserCardPhotoUploadFile();
|
initApplyUserCardPhotoUploadFile();
|
||||||
initApplyTakeCardPhotoUploadFile();
|
initApplyTakeCardPhotoUploadFile();
|
||||||
initApplyRePeiXunPhotoUploadFile();
|
initApplyRePeiXunPhotoUploadFile();
|
||||||
@ -449,46 +452,21 @@
|
|||||||
}
|
}
|
||||||
initData();
|
initData();
|
||||||
|
|
||||||
// 初始化报名人证件类型
|
|
||||||
function initApplyCardTypeSelect(selectValue) {
|
|
||||||
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/76c5044f-805a-4313-b1e8-79e966b97c0d', []), {}, null, function(code, data, args) {
|
|
||||||
laytpl(document.getElementById('applyCardTypeSelectTemplate').innerHTML).render(data, function(html) {
|
|
||||||
document.getElementById('applyCardTypeSelectTemplateBox').innerHTML = html;
|
|
||||||
});
|
|
||||||
form.render('select', 'applyCardTypeSelectTemplateBox');
|
|
||||||
var selectObj = {};
|
|
||||||
selectObj['applyCardType'] = selectValue;
|
|
||||||
form.val('dataForm', selectObj);
|
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
form.on('radio(applyFenLeiFilter)', function(data){
|
form.on('radio(applyFenLeiFilter)', function(data){
|
||||||
var val = data.value;//被点击的radio的value值
|
var val = data.value;//被点击的radio的value值
|
||||||
if(val == 1){
|
if(val == 1){
|
||||||
$('.fuxun-upload').hide();
|
$('.fuxun-upload').hide();
|
||||||
}
|
}
|
||||||
if(val == 2 || val == 3){
|
if(val == 2){
|
||||||
$('.fuxun-upload').show();
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').show();
|
||||||
|
}
|
||||||
|
if(val == 3){
|
||||||
|
$('.fuxun-upload').show();
|
||||||
|
$('.zaipei-upload').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 初始化报名人文化程度
|
|
||||||
function initApplyCultureLevelSelect(selectValue) {
|
|
||||||
top.restAjax.get(top.restAjax.path('api/data/listbyparentid/d6b9f026-6ea9-456a-b48b-0c18d502523b', []), {}, null, function(code, data, args) {
|
|
||||||
laytpl(document.getElementById('applyCultureLevelSelectTemplate').innerHTML).render(data, function(html) {
|
|
||||||
document.getElementById('applyCultureLevelSelectTemplateBox').innerHTML = html;
|
|
||||||
});
|
|
||||||
form.render('select', 'applyCultureLevelSelectTemplateBox');
|
|
||||||
var selectObj = {};
|
|
||||||
selectObj['applyCultureLevel'] = selectValue;
|
|
||||||
form.val('dataForm', selectObj);
|
|
||||||
}, function(code, data) {
|
|
||||||
top.dialog.msg(data.msg);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 初始化头像图片上传
|
// 初始化头像图片上传
|
||||||
function initApplyUserCardPhotoUploadFile() {
|
function initApplyUserCardPhotoUploadFile() {
|
||||||
var files = $('#applyUserCardPhoto').val();
|
var files = $('#applyUserCardPhoto').val();
|
||||||
|
Loading…
Reference in New Issue
Block a user