From c1702cc51a4d94ed37d5083494c87fe0f2cbe5b3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 18 六月 2021 10:20:13 +0800
Subject: [PATCH] # 销售单取消后回滚立库出库至A99

---
 src/main/webapp/static/js/ioWorks/matQuery.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/ioWorks/matQuery.js b/src/main/webapp/static/js/ioWorks/matQuery.js
index e54cc5b..7a2b7f1 100644
--- a/src/main/webapp/static/js/ioWorks/matQuery.js
+++ b/src/main/webapp/static/js/ioWorks/matQuery.js
@@ -272,8 +272,8 @@
             docType: data.field.docType
             , orderNo: data.field.orderNo
             , orderTime: data.field.orderTime
-            , item: itemVal.getValue()[0].name
-            , cstmr: cstmrVal.getValue()[0].name
+            , item: itemVal.getValue()[0] ? itemVal.getValue()[0].name : null
+            , cstmr: cstmrVal.getValue()[0] ? cstmrVal.getValue()[0].name : null
             , list: matDetls
         })
         $.ajax({

--
Gitblit v1.9.1