|
|
|
@ -399,11 +399,27 @@ $("#verifyBtn").on('click', function () {
|
|
|
|
|
show: true//弹出对话框
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
var ids = $("#archiveId").val();
|
|
|
|
|
//只有一个直接提交
|
|
|
|
|
//获取柜子列个数
|
|
|
|
|
debugger
|
|
|
|
|
var paperPostionValueLength = $("#paperPostionValueLength").val();
|
|
|
|
|
if(paperPostionValueLength >= 1){
|
|
|
|
|
for(var i = 1;i<=paperPostionValueLength;i++) {
|
|
|
|
|
//判断是否必填
|
|
|
|
|
var document = $("#paperPosition"+i);
|
|
|
|
|
var isRequire = document.attr("data");
|
|
|
|
|
if(isRequire == 1){
|
|
|
|
|
//判断是否为空
|
|
|
|
|
var val = document.val();
|
|
|
|
|
if(val == ''){
|
|
|
|
|
//获取下个节点属性
|
|
|
|
|
var text = $("#paperPosition"+i + "_" + i).text();
|
|
|
|
|
toastr.warning(text + "不能为空");
|
|
|
|
|
document.focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断是否有扫描纸质
|
|
|
|
@ -720,6 +736,7 @@ function selectPaperPositonDictionary(){
|
|
|
|
|
var id = 'paperPosition'+(i+1);
|
|
|
|
|
//获取是否必填 1是0否
|
|
|
|
|
var isRequire = data[i].int2;
|
|
|
|
|
var labelId = id + '_' + (i+1);
|
|
|
|
|
if(inputType == 1){
|
|
|
|
|
//选择框
|
|
|
|
|
selectValue += '<select id="'+id+'" data="'+isRequire+'"><option value="">请选择</option>';
|
|
|
|
@ -729,11 +746,11 @@ function selectPaperPositonDictionary(){
|
|
|
|
|
selectValue += '<option value="'+typeValues[j]+'">'+typeValues[j]+'</option>';
|
|
|
|
|
}
|
|
|
|
|
selectValue += '</select>';
|
|
|
|
|
selectValue += data[i].typename;
|
|
|
|
|
selectValue += '<label id="'+labelId+'">'+data[i].typename+'</label>';
|
|
|
|
|
}else if(inputType == 2){
|
|
|
|
|
//输入框
|
|
|
|
|
selectValue += '<input id="'+id+'" maxlength="16" data="'+isRequire+'"/>';
|
|
|
|
|
selectValue += data[i].typename;
|
|
|
|
|
selectValue += '<input id="'+id+'" maxlength="16" data="'+isRequire+'" autocomplete="off"/>';
|
|
|
|
|
selectValue += '<label id="'+labelId+'">'+data[i].typename+'</label>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$("#paperPostionValueLength").val(data.length);
|
|
|
|
|