diff --git a/js/accessory/child/inventory_count_detail.js b/js/accessory/child/inventory_count_detail.js index 731b35c..85d3e65 100644 --- a/js/accessory/child/inventory_count_detail.js +++ b/js/accessory/child/inventory_count_detail.js @@ -4,8 +4,6 @@ let pageNum = 1; function setParams(params) { objParam = JSON.parse(params); - console.log(objParam); - $('#code').html(objParam.code); $('#titleName').html(objParam.times + '配件盘点记录'); layui.use(["form", "table", 'upload', 'layer'], function () { @@ -38,8 +36,9 @@ function getDetailsById() { }, null); // 基本数据表格赋值 function setTableData(obj) { + let content = '盘盈:' + obj.addNum + ' 盘亏:' + obj.subNum + ''; $('#codeValue').html(obj.code + '查看概述'); - $('#addOrSubNum').html(0 + '查看概述'); + $('#addOrSubNum').html(content + '查看概述'); $('#startTime').html(obj.startTime); $('#endTime').html(obj.endTime); $('#remark').html(obj.remark); @@ -305,17 +304,19 @@ function viewGs(obj) { } function viewGs2(obj) { + let content = '
盘盈:' + obj.addMsg + '
盘亏:' + obj.subMsg + '
'; + let content2 = '盘盈:'+obj.addMsg+' 盘亏:'+obj.subMsg+''; layer.open({ type: 1, shade: false, // 不显示遮罩 - content: '