瀏覽代碼

修复变更令添加台账bug

ellisran 1 年之前
父節點
當前提交
845d727228
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/public/js/change_information_set.js

+ 1 - 1
app/public/js/change_information_set.js

@@ -2237,7 +2237,7 @@ function makePushBwmx(clinfo, listinfo, removeList, updateList, lidIsNumber) {
     } else {
         pushbwmx = '0*;*' + (listinfo.quantity !== null ? listinfo.quantity : 0);
     }
-    const bwmx = $('#table-list-select tr[data-index="'+ clinfo.lid +'"]').attr('data-bwmx');
+    const bwmx = lidIsNumber ? $('#table-list-select tr[data-index="'+ clinfo.lid +'"]').attr('data-bwmx') : $('#table-list-select tr[data-lid="'+ clinfo.lid +'"]').attr('data-bwmx');
     if (bwmx) {
         const bwmxArray = bwmx.split('$#$');
         bwmxArray.push(pushbwmx);