|
|
|
@ -400,47 +400,10 @@ $("#verifyBtn").on('click', function () {
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
//只有一个直接提交
|
|
|
|
|
var ids = $("#archiveId").val();
|
|
|
|
|
var paperPosition = null;
|
|
|
|
|
var paperPosition1 = null;
|
|
|
|
|
var paperPosition2 = null;
|
|
|
|
|
var paperPosition3 = null;
|
|
|
|
|
var paperPosition4 = null;
|
|
|
|
|
//获取纸质输入类型
|
|
|
|
|
var paperPostionValue = $("#paperPostionValue").val();
|
|
|
|
|
if(paperPostionValue == 1){
|
|
|
|
|
//定义输入个数
|
|
|
|
|
var valueLength = 0;
|
|
|
|
|
//获取柜子列个数
|
|
|
|
|
var paperPostionValueLength = $("#paperPostionValueLength").val();
|
|
|
|
|
if(paperPostionValueLength >= 1){
|
|
|
|
|
paperPosition1 = $("#paperPosition1").val();
|
|
|
|
|
if('' != paperPosition1){
|
|
|
|
|
valueLength ++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(paperPostionValueLength >= 2){
|
|
|
|
|
paperPosition2 = $("#paperPosition2").val();
|
|
|
|
|
if('' != paperPosition2){
|
|
|
|
|
valueLength ++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(paperPostionValueLength >= 3){
|
|
|
|
|
paperPosition3 = $("#paperPosition3").val();
|
|
|
|
|
if('' != paperPosition3){
|
|
|
|
|
valueLength ++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(paperPostionValueLength >= 4){
|
|
|
|
|
paperPosition4 = $("#paperPosition4").val();
|
|
|
|
|
if('' != paperPosition4){
|
|
|
|
|
valueLength ++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断只输入一个
|
|
|
|
|
if(valueLength > 0 && valueLength < paperPostionValueLength){
|
|
|
|
|
toastr.warning("纸质信息必须输入全部");
|
|
|
|
|
return false;
|
|
|
|
|
//获取柜子列个数
|
|
|
|
|
var paperPostionValueLength = $("#paperPostionValueLength").val();
|
|
|
|
|
if(paperPostionValueLength >= 1){
|
|
|
|
|
for(var i = 1;i<=paperPostionValueLength;i++) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断是否有扫描纸质
|
|
|
|
@ -750,14 +713,28 @@ function selectPaperPositonDictionary(){
|
|
|
|
|
success:function(data){
|
|
|
|
|
if(null != data) {
|
|
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
|
selectValue += '<select id="paperPosition'+(i+1)+'"><option value="">请选择</option>';
|
|
|
|
|
//取出选择值集合
|
|
|
|
|
var typeValues = data[i].typevalue.split(",");
|
|
|
|
|
for(var j = 0;j < typeValues.length;j++){
|
|
|
|
|
selectValue += '<option value="'+typeValues[j]+'">'+typeValues[j]+'</option>';
|
|
|
|
|
//获取输入框类型
|
|
|
|
|
//1选择框 2输入框
|
|
|
|
|
var inputType = data[i].int1;
|
|
|
|
|
//组织id
|
|
|
|
|
var id = 'paperPosition'+(i+1);
|
|
|
|
|
//获取是否必填 1是0否
|
|
|
|
|
var isRequire = data[i].int2;
|
|
|
|
|
if(inputType == 1){
|
|
|
|
|
//选择框
|
|
|
|
|
selectValue += '<select id="'+id+'" data="'+isRequire+'"><option value="">请选择</option>';
|
|
|
|
|
//取出选择值集合
|
|
|
|
|
var typeValues = data[i].typevalue.split(",");
|
|
|
|
|
for(var j = 0;j < typeValues.length;j++){
|
|
|
|
|
selectValue += '<option value="'+typeValues[j]+'">'+typeValues[j]+'</option>';
|
|
|
|
|
}
|
|
|
|
|
selectValue += '</select>';
|
|
|
|
|
selectValue += data[i].typename;
|
|
|
|
|
}else if(inputType == 2){
|
|
|
|
|
//输入框
|
|
|
|
|
selectValue += '<input id="'+id+'" maxlength="16" data="'+isRequire+'"/>';
|
|
|
|
|
selectValue += data[i].typename;
|
|
|
|
|
}
|
|
|
|
|
selectValue += '</select>';
|
|
|
|
|
selectValue += data[i].typename;
|
|
|
|
|
}
|
|
|
|
|
$("#paperPostionValueLength").val(data.length);
|
|
|
|
|
}
|
|
|
|
|