⭐️如果对你有用的话,希望可以点点赞,感谢了⭐️
步骤1:编辑调用脚本
点击一下,进入编辑页面
使用Mobile_NS.scanQRCode(fn)函数实现效果,具体代码如下:
Mobile_NS.SQL("select zxpdksrq,sfkqpd from uf_pdsj", function(result){
if(result[0].sfkqpd == 0){
alert("暂无需盘点");
}else{
if(result[0].zxpdksrq > '{currdate}'){
alert("未到盘点时间");
}else{
Mobile_NS.scanQRCode(function(result){
Mobile_NS.SQL("select count(*) as b from uf_cptcapital where cptbarcode=? and sfypd = 1",[result], function(result3){
if(result3[0].b == 1){
alert("该资产已盘点");
}else{
Mobile_NS.SQL("select count(*) as a from uf_cptcapital where cptbarcode=?",[result], function(result2){
if(result2[0].a==1) {
$u("/mobilemode/appHomepageView.jsp?appHomepageId=56001&pdfs=1&cptbarcode="+result);
}else if(result2[0].a==0){
alert("资产台账中无此资产(资产条码:"+result+"),请联系资产管理员录入");
}
});
}
});
});
}
}
});
实现效果是点击此导航栏列表时,手机调用手机扫码功能,扫描条形码后,获取资产编码,并跳转至资产盘点模块,确认盘点信息