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: '
盘盈:喷漆:165=>180, 防撞条:210=>280, 晾衣杆:12=>18, 挡水胶:7=>80,洗菜盆:2=>10, 主控楼隔板:10=>18, 不锈钢踢脚板:3=>18,喷漆:165=>180, 喷漆:165=>180, 防撞条:210=>280, 晾衣杆:12=>18, 挡水胶:7=>80,洗菜盆:2=>10, 主控楼隔板:10=>18, 不锈钢踢脚板:3=>18 。
盘亏:喷漆:165=>100, 防撞条:210=>200, 晾衣杆:12=>10, 挡水胶:7=>1,洗菜盆:2=>0, 主控楼隔板:10=>8, 不锈钢踢脚板:3=>1,喷漆:165=>120, 喷漆:165=>110, 防撞条:210=>180, 晾衣杆:12=>11, 挡水胶:7=>2,洗菜盆:2=>1, 主控楼隔板:10=>3, 不锈钢踢脚板:3=>1 。
', - title: '

' + obj.inputDay + '盘点概述:

', + content: '
' + content + '
', + title: '

' + obj.startTime + '~' + obj.endTime + '盘点概述:

', btn: ['复制文字', '关闭'], area: ['60%', '50%'], move: false, btnAlign: 'c', // 按钮居中显示 btn1: function () { - exeCommandCopyText(obj.infoMsg); + exeCommandCopyText(content2); }, btn2: function () { layer.close();