|
@@ -268,14 +268,13 @@
|
|
|
$('#go-back').css({ 'display': 'block' })
|
|
|
}
|
|
|
var result = JSON.parse(sessionStorage.getItem("detailData"));
|
|
|
- console.log(result)
|
|
|
if (result) {
|
|
|
$('#goodsNode').text(result.zcbm)
|
|
|
$('#kfName').text(result.kfm)
|
|
|
$('#kfAdmin').text(result.kfgly)
|
|
|
$('#goodsName').text(result.name)
|
|
|
$('#goodType').text(result.zclx)
|
|
|
- $('#goodsType').text(result.xhgg?result.xhgg:"无")
|
|
|
+ $('#goodsType').text(result.xhgg ? result.xhgg : "无")
|
|
|
$('#goodsUnit').text(result.dw)
|
|
|
$('#goodsNum').text(result.zbsl + " " + result.dws)
|
|
|
$('#upTime').text(result.rknx)
|
|
@@ -284,14 +283,18 @@
|
|
|
$('#leaveNum').text(result.sysl)
|
|
|
$('#makeTime').text(result.grsj)
|
|
|
$('#remark').text(result.bz)
|
|
|
- $('#goodStadus').text(result.zt)
|
|
|
- // var imgList=result.tp.split(",");
|
|
|
- var imgList = ['upload/2024-05-28/20240528023654.jpg']
|
|
|
- let html = '';
|
|
|
- for (let i = 0; i < imgList.length; i++) {
|
|
|
- html += '<img src="http://58.144.199.81:8011/' + imgList[i] + '" id="zoom-img"' + (i + 1) + '></img>'
|
|
|
+ $('#goodStadus').text(result.zt)
|
|
|
+ if (result.tp!="null") {
|
|
|
+ var imgList = result.tp.split(",");
|
|
|
+ // var imgList = ['upload/2024-05-28/20240528023654.jpg']
|
|
|
+ let html = '';
|
|
|
+ for (let i = 0; i < imgList.length; i++) {
|
|
|
+ html += '<img src="http://58.144.199.81:8011/' + imgList[i] + '" id="zoom-img"' + (i + 1) + '></img>'
|
|
|
+ }
|
|
|
+ $('#imgList').append(html)
|
|
|
+ } else {
|
|
|
+ $('#imgList').append("无")
|
|
|
}
|
|
|
- $('#imgList').append(html)
|
|
|
}
|
|
|
|
|
|
// mui.ajax({
|