From 036dcdcec6235d82b008f5c736d27a0d1f90d4a2 Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期二, 14 十一月 2023 14:58:42 +0800
Subject: [PATCH] 优化

---
 guns-vip-main/src/main/webapp/assets/modular/bs/productBomInfo/productBomInfo_add.js |   43 ++++++++++++++++---------------------------
 1 files changed, 16 insertions(+), 27 deletions(-)

diff --git a/guns-vip-main/src/main/webapp/assets/modular/bs/productBomInfo/productBomInfo_add.js b/guns-vip-main/src/main/webapp/assets/modular/bs/productBomInfo/productBomInfo_add.js
index d54fca8..30e7a01 100644
--- a/guns-vip-main/src/main/webapp/assets/modular/bs/productBomInfo/productBomInfo_add.js
+++ b/guns-vip-main/src/main/webapp/assets/modular/bs/productBomInfo/productBomInfo_add.js
@@ -26,33 +26,22 @@
     var form = layui.form;
     var admin = layui.admin;
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+    $('#productCode').click(function () {
+        layer.open({
+            type: 2,
+            area: ['1000px', '600px'],
+            title: '鐗╂枡淇℃伅',
+            content: Feng.ctxPath + '/workOrder/productListing',
+            success: function (layero, index) {
+                window.materialType = 'PRODUCE';
+            },
+            end: function () {
+                let msg = JSON.parse(window.localStorage.getItem('message'));
+                $('#productCode').val(msg.materialCode);
+                $('#productName').val(msg.materialName);
+            }
+        });
+    });
 
     //琛ㄥ崟鎻愪氦浜嬩欢
     form.on('submit(btnSubmit)', function (data) {

--
Gitblit v1.9.3