|
|
|
|
@ -14,7 +14,9 @@
|
|
|
|
|
<script>
|
|
|
|
|
var id = getIds("id")
|
|
|
|
|
// var VUE_APP_BASE_API = window.location.protocol+"//"+window.location.host;
|
|
|
|
|
var VUE_APP_BASE_API="http://192.168.60.99:9004"
|
|
|
|
|
// var VUE_APP_BASE_API="http://192.168.60.99:9004"
|
|
|
|
|
var VUE_APP_BASE_API="http://hd-wuziguanli-test.ali251.langye.net"
|
|
|
|
|
var printObj = {}
|
|
|
|
|
// var wuzibianma = getIds('bm')
|
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
|
|
@ -43,7 +45,7 @@
|
|
|
|
|
url: VUE_APP_BASE_API+'/api/admin/base-form/show',
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function(result) {
|
|
|
|
|
var printObj = result
|
|
|
|
|
printObj = result
|
|
|
|
|
$(".wuzibianma").html("")
|
|
|
|
|
// $(".wuzibianma").html(id)
|
|
|
|
|
$(".wuzibianma").append(
|
|
|
|
|
@ -55,8 +57,12 @@
|
|
|
|
|
"<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>"+
|
|
|
|
|
"<p style='margin-bottom:0px'>入库批次:"+printObj['rukupici']+"</p>"+
|
|
|
|
|
"<p style='margin-bottom:0px'>在库数量:<input value='"+printObj['zaikushuliang']+"'/></p>"+
|
|
|
|
|
|
|
|
|
|
// "<p style='margin-bottom:0px'>在库数量:"+printObj['zaikushuliang']+"</p>"+
|
|
|
|
|
"</div>"+
|
|
|
|
|
"<button onClick='saveWuzishuliang()'>提交</button>"+
|
|
|
|
|
"</div>")
|
|
|
|
|
|
|
|
|
|
// createCode("#page" + index, printObj)
|
|
|
|
|
@ -67,5 +73,30 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function saveWuzishuliang(){
|
|
|
|
|
console.log("123",printObj)
|
|
|
|
|
return
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
timeout: 15000,
|
|
|
|
|
async: false,
|
|
|
|
|
contentType: 'application/json',
|
|
|
|
|
data: {
|
|
|
|
|
id: id,
|
|
|
|
|
table_name: 'inventorys',
|
|
|
|
|
printObj
|
|
|
|
|
},
|
|
|
|
|
url: VUE_APP_BASE_API+'/api/admin/base-form/save',
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function(result) {
|
|
|
|
|
console.log(result)
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
complete: function(xhr, textStatus) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</html>
|
|
|
|
|
|