From 0ad7df4dc00e7291f658914d1181f10884e3d2e7 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Sat, 16 Nov 2024 13:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/accessory/child/inventory_count_detail.js | 17 +++++++++-------- .../accessory/child/inventory_count_detail.html | 8 ++++---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/js/accessory/child/inventory_count_detail.js b/js/accessory/child/inventory_count_detail.js index 9de508a..731b35c 100644 --- a/js/accessory/child/inventory_count_detail.js +++ b/js/accessory/child/inventory_count_detail.js @@ -4,8 +4,10 @@ let pageNum = 1; function setParams(params) { objParam = JSON.parse(params); + console.log(objParam); + $('#code').html(objParam.code); - $('#titleName').html(objParam.inputDay + '配件盘点记录'); + $('#titleName').html(objParam.times + '配件盘点记录'); layui.use(["form", "table", 'upload', 'layer'], function () { form = layui.form; table = layui.table; @@ -37,10 +39,9 @@ function getDetailsById() { // 基本数据表格赋值 function setTableData(obj) { $('#codeValue').html(obj.code + '查看概述'); - $('#inputNum').html(obj.inputNum + '查看概述'); - $('#allPrice').html(obj.allPrice); - $('#inputUser').html(obj.inputUser); - $('#inputDay').html(obj.inputDay); + $('#addOrSubNum').html(0 + '查看概述'); + $('#startTime').html(obj.startTime); + $('#endTime').html(obj.endTime); $('#remark').html(obj.remark); setFileTable(obj.fileList); } @@ -288,8 +289,8 @@ function viewGs(obj) { layer.open({ type: 1, shade: false, // 不显示遮罩 - content: '
' + obj.info + '
', - title: '

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

', + content: '
' + obj.infoMsg + '
', + title: '

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

', btn: ['复制文字', '关闭'], area: ['60%', '50%'], move: false, @@ -314,7 +315,7 @@ function viewGs2(obj) { move: false, btnAlign: 'c', // 按钮居中显示 btn1: function () { - exeCommandCopyText(obj.info); + exeCommandCopyText(obj.infoMsg); }, btn2: function () { layer.close(); diff --git a/page/accessory/child/inventory_count_detail.html b/page/accessory/child/inventory_count_detail.html index 1333cb3..574046e 100644 --- a/page/accessory/child/inventory_count_detail.html +++ b/page/accessory/child/inventory_count_detail.html @@ -61,10 +61,10 @@ - - - - + + + + 备注