Browse Source

报账列表选择合同时验收资料旧数据错误处理

梁世豪 3 weeks ago
parent
commit
dcc4c0dc02
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/main/resources/templates/reimburse/add.html

+ 6 - 1
src/main/resources/templates/reimburse/add.html

@@ -236,7 +236,12 @@
236 236
                             $("#ht").append("<option value=" + id + " selected>" + htmc + "</option>");
237 237
                             document.getElementById('htmc').value = localStorage.getItem('htmc');
238 238
                             var yszlString = localStorage.getItem("yszl");
239
-                            var yszl = JSON.parse(yszlString);
239
+                            console.log('yszlString:'+yszlString)
240
+                            var yszl;
241
+                            if (yszlString != null && yszlString != ''){
242
+                                 yszl = JSON.parse(yszlString);
243
+                            }
244
+                            console.log(yszl)
240 245
 
241 246
                             dataBxpz.splice(0, dataBxpz.length);
242 247
                             dataBxpz.push.apply(dataBxpz, yszl);