From bcb19e8c93c3cabf0d8eb3ee34ed819b3c5a10ef Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期一, 25 十一月 2024 13:14:11 +0800 Subject: [PATCH] #优化地图 --- src/main/webapp/views/pda/comb.html | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/views/pda/comb.html b/src/main/webapp/views/pda/comb.html index b2bb877..00585ad 100644 --- a/src/main/webapp/views/pda/comb.html +++ b/src/main/webapp/views/pda/comb.html @@ -55,8 +55,8 @@ cellMinWidth: 50, cols: [[ {fixed: 'left', align: 'center', field: 'count', title: '鏁伴噺', style:'color: blue', width:50}, - {field: 'matNo', align: 'center', title: '鍟嗗搧缂栧彿'}, - {field: 'matName', align: 'center', title: '鍟嗗搧鍚嶇О'} + {field: 'matnr', align: 'center', title: '鐗╂枡鍙�'}, + {field: 'maktx', align: 'center', title: '鐗╂枡鍚嶇О'} ]], done: function (res, curr, count) { } @@ -93,13 +93,13 @@ // 娣诲姞琛ㄦ牸鏁版嵁 var matData = []; function addTableData(data) { - if (isEmpty(data.matName)){ + if (isEmpty(data.maktx)){ tips("鎻愬彇澶辫触", true); return; } let toPush = true; for (var j=0;j<matData.length;j++){ - if (data.matNo === matData[j].matNo) { + if (data.matnr === matData[j].matnr) { matData[j].count = Number(matData[j].count) + Number(data.count); toPush = false; } @@ -122,7 +122,7 @@ function comb() { let barcode = $('#code').val(); if (isEmpty(barcode)) { - tips("鎵樼洏鏉$爜涓虹┖", true); + tips("璐ф灦鏉$爜涓虹┖", true); // document.getElementById("code").focus(); return; } @@ -182,4 +182,4 @@ } } </script> -</html> \ No newline at end of file +</html> -- Gitblit v1.9.1