This commit is contained in:
parent
032f542711
commit
33e84b5e0c
|
|
@ -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 + '<a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewGs(' + JSON.stringify(obj) + ')\'>查看概述</a>');
|
||||
$('#addOrSubNum').html(0 + '<a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewGs2(' + JSON.stringify(obj) + ')\'>查看概述</a>');
|
||||
$('#addOrSubNum').html(content + '<a style="margin:0 5px;color:#409EFF;cursor: pointer;" onclick=\'viewGs2(' + JSON.stringify(obj) + ')\'>查看概述</a>');
|
||||
$('#startTime').html(obj.startTime);
|
||||
$('#endTime').html(obj.endTime);
|
||||
$('#remark').html(obj.remark);
|
||||
|
|
@ -305,17 +304,19 @@ function viewGs(obj) {
|
|||
}
|
||||
|
||||
function viewGs2(obj) {
|
||||
let content = '<p style="color: #F56C6C;font-size:16px;">盘盈:<span style="color: #262626;font-size:14px;">' + obj.addMsg + '</span></p><p style="color: #F56C6C;font-size:16px;">盘亏:<span style="color: #262626;font-size:14px;">' + obj.subMsg + '</span></p>';
|
||||
let content2 = '盘盈:'+obj.addMsg+' 盘亏:'+obj.subMsg+'';
|
||||
layer.open({
|
||||
type: 1,
|
||||
shade: false, // 不显示遮罩
|
||||
content: '<div style="padding: 1%;">盘盈:喷漆: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 。<br>盘亏:喷漆: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 。</div>',
|
||||
title: '<h3 style="color: #F56C6C;">' + obj.inputDay + '盘点概述:</h3>',
|
||||
content: '<div style="padding: 1%;">' + content + '</div>',
|
||||
title: '<h3 style="color: #F56C6C;">' + obj.startTime + '~' + obj.endTime + '盘点概述:</h3>',
|
||||
btn: ['复制文字', '关闭'],
|
||||
area: ['60%', '50%'],
|
||||
move: false,
|
||||
btnAlign: 'c', // 按钮居中显示
|
||||
btn1: function () {
|
||||
exeCommandCopyText(obj.infoMsg);
|
||||
exeCommandCopyText(content2);
|
||||
},
|
||||
btn2: function () {
|
||||
layer.close();
|
||||
|
|
|
|||
Loading…
Reference in New Issue