最新版本医废小程序代码,包含医废收集、一键入库/出库、周转箱入库/出库

This commit is contained in:
2026-05-12 01:25:59 +08:00
commit 6c5847b2e8
70 changed files with 23577 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
module.exports = {
error:'',
isJSON : function (str){
if (typeof str == 'string') {
try {
var obj=JSON.parse(str);
if(typeof obj == 'object' && obj ){
return true;
}else{
return false;
}
} catch(e) {
console.log('error'+str+'!!!'+e);
return false;
}
}
},
isNumber : function (checkVal){
var reg = /^-?[1-9][0-9]?.?[0-9]*$/;
return reg.test(checkVal);
}
}