This commit is contained in:
cwchen 2024-11-16 18:21:00 +08:00
parent 188cd0d941
commit 9de69c5a97
12 changed files with 17 additions and 17 deletions

View File

@ -340,7 +340,7 @@ function setFormInput(value, type) {
if (type === 1) { // 本次退回量
html += '<input class="layui-input" name="ghNum" onblur="checkValue(this,1)" value="' + setNullValue(value) + '" autocomplete="off" lay-verify="required" maxlength="9">';
} else if (type === 2) { // 备注
html += '<input class="layui-input" placeholder="请输入备注" id="remark" name="remark" value="' + setNullValue(value) + '" maxLength="255" lay-affix="clear"></input>';
html += '<input class="layui-input" placeholder="请输入备注" id="remark" name="remark" value="' + setNullValue(value) + '" maxLength="60" lay-affix="clear"></input>';
}
html += '</div></form>';
return html;

View File

@ -300,7 +300,7 @@ function setFormInput(value, type) {
if (type === 1) { // 报废数量
html += '<input class="layui-input" name="scrapNum" onblur="checkValue(this,1)" value="' + setNullValue(value) + '" autocomplete="off" lay-verify="required" maxlength="9">';
} else if (type === 2) { // 备注
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="255" lay-affix="clear"></input>';
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="60" lay-affix="clear"></input>';
}
html += '</div></form>';
return html;

View File

@ -333,7 +333,7 @@ function setFormInput(value, type) {
setSelectData(value) +
'</select>';
} else if (type === 4) { // 备注
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="255" lay-affix="clear"></input>';
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="60" lay-affix="clear"></input>';
}
html += '</div></form>';
return html;

View File

@ -314,7 +314,7 @@ function setFormInput(value, type) {
setSelectData(value) +
'</select>';
} else if (type === 4) { // 备注
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="255" lay-affix="clear"></input>';
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="60" lay-affix="clear"></input>';
}
html += '</div></form>';
return html;

View File

@ -247,9 +247,9 @@ function initTable() {
}
} else if (field === 'remarks') { // 备注
if (value) {
if (value.length > 255) {
if (value.length > 60) {
obj.reedit();
return layer.msg('备注最多输入255位!', { icon: 7 })
return layer.msg('备注最多输入60位!', { icon: 7 })
}
}
}

View File

@ -256,9 +256,9 @@ function initTable() {
}
} else if (field === 'remarks') { // 备注
if (value) {
if (value.length > 255) {
if (value.length > 60) {
obj.reedit();
return layer.msg('备注最多输入255位!', { icon: 7 })
return layer.msg('备注最多输入60位!', { icon: 7 })
}
}
}

View File

@ -205,9 +205,9 @@ function initTable() {
}
} else if (field === 'remark') { // 备注
if (value) {
if (value.length > 255) {
if (value.length > 60) {
obj.reedit();
return layer.msg('备注最多输入255位!', { icon: 7 })
return layer.msg('备注最多输入60位!', { icon: 7 })
}
}
}

View File

@ -205,9 +205,9 @@ function initTable() {
}
} else if (field === 'remarks') { // 备注
if (value) {
if (value.length > 255) {
if (value.length > 60) {
obj.reedit();
return layer.msg('备注最多输入255位!', { icon: 7 })
return layer.msg('备注最多输入60位!', { icon: 7 })
}
}
}

View File

@ -323,7 +323,7 @@ function setFormInput(value, type) {
if (type === 1) { // 本次盘点量
html += '<input class="layui-input" name="checkNum" onblur="checkValue(this,1)" value="' + setNullValue(value) + '" autocomplete="off" lay-verify="required" maxlength="9">';
} else if (type === 2) { // 备注
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="255" lay-affix="clear"></input>';
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="60" lay-affix="clear"></input>';
}
html += '</div></form>';
return html;

View File

@ -231,7 +231,7 @@ function setFormInput(value, type) {
} else if (type === 2) { // 需用天数
html += '<input class="layui-input" name="times" onblur="checkValue(this,2,\'需用天数\')" value="' + setNullValue(value) + '" autocomplete="off" lay-verify="required" maxlength="9">';
} else if (type === 3) { // 备注
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="255" lay-affix="clear"></input>';
html += '<input class="layui-input" placeholder="请输入备注" id="remarks" name="remarks" value="' + setNullValue(value) + '" maxLength="60" lay-affix="clear"></input>';
}
html += '</div></form>';
return html;

View File

@ -287,9 +287,9 @@ function initTable() {
}
} else if (field === 'outId') { // 备注
if (value) {
if (value.length > 255) {
if (value.length > 60) {
obj.reedit();
return layer.msg('备注最多输入255位!', { icon: 7 })
return layer.msg('备注最多输入60位!', { icon: 7 })
}
}
}

View File

@ -24,7 +24,7 @@
<label class="layui-form-label" id="auditRemarksLabel">审核意见</label>
<div class="layui-input-inline" style="width: 250px;">
<textarea placeholder="不通过必须填写审核意见" id="auditRemarks" name="auditRemarks" class="layui-textarea"
maxLength="500"></textarea>
maxLength="60"></textarea>
</div>
</div>
<button type="submit" id="formSubmit" class="layui-btn" lay-submit="" lay-filter="formData"