You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.6 KiB

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2 years ago
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>物资详情</title>
<script language="javascript" src="/admin/jquery.js"></script>
</head>
<body>
<div class="wuzibianma">
</div>
</body>
<script>
var id = getIds("id")
2 years ago
// var VUE_APP_BASE_API = window.location.protocol+"//"+window.location.host;
var VUE_APP_BASE_API="http://192.168.60.99:9004"
// var wuzibianma = getIds('bm')
$(function(){
2 years ago
getWuzi()
// $(".wuzibianma").html("")
// $(".wuzibianma").html(id)
})
function getIds(name) {
var reg = new RegExp("(^|&)" + name.toLowerCase() + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).toLowerCase().match(reg);
if (r != null) {
return unescape(r[2].replace(new RegExp(/(%25)/g), '%').replace(new RegExp(/(%25)/g), '%'));
}
return null
}
2 years ago
function getWuzi(){
$.ajax({
type: "get",
timeout: 15000,
async: false,
contentType: 'application/json',
data: {
id: id,
table_name: 'inventorys'
},
url: VUE_APP_BASE_API+'/api/admin/base-form/show',
dataType: "json",
success: function(result) {
var printObj = result
$(".wuzibianma").html("")
// $(".wuzibianma").html(id)
$(".wuzibianma").append(
"<p style='text-align:center;margin-bottom:0;padding-top:5px;'>苏州河道处</p>"+
"<div style='padding:15px;padding-top:5pxfont-size:24px'>"+
"<div>"+
"<p style='margin-bottom:0px'>物资编码:"+printObj['wuzibianma']+"</p>"+
"<p style='margin-bottom:0px'>物资名称:"+printObj['zichanmingcheng']+"</p>"+
"<p style='margin-bottom:0px'>物资类型:"+printObj['wuzileixing']+"</p>"+
"<p style='margin-bottom:0px'>物资型号:"+printObj['guigexinghao']+"</p>"+
"<p style='margin-bottom:0px'>计量单位:"+printObj['jiliangdanwei']+"</p>"+
"<p style='margin-bottom:0px'>在库数量:"+printObj['zaikushuliang']+"</p>"+
"</div>"+
"</div>")
// createCode("#page" + index, printObj)
// $(".load").remove()
},
complete: function(xhr, textStatus) {
}
});
}
</script>
</html>