From 92cffc135581ce2cf4aecac745ddb88e739c17de Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期二, 17 十月 2023 15:34:57 +0800
Subject: [PATCH] 工单修改

---
 guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/bulletBox/productListing.js                       |   77 ++++++++++++
 guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/kb/formula/controller/FormulaKbController.java    |   69 +++++++++--
 guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/workOrder_add.html                                 |   27 ++--
 guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/pm/workOrder/controller/WorkOrderController.java  |   11 +
 guns-vip-main/src/main/webapp/pages/modular/kb/formula/formulaView.html                                     |   38 +----
 guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/workOrder_add.js                                  |   17 ++
 guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/bs/material/mapper/mapping/MaterialInfoMapper.xml |   12 ++
 guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/bulletBox/productListing.html                      |   35 +++++
 guns-vip-main/src/main/webapp/assets/modular/kb/formula/formulaView.js                                      |   66 +++++++++-
 9 files changed, 288 insertions(+), 64 deletions(-)

diff --git a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/bs/material/mapper/mapping/MaterialInfoMapper.xml b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/bs/material/mapper/mapping/MaterialInfoMapper.xml
index cff0af6..9567c2d 100644
--- a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/bs/material/mapper/mapping/MaterialInfoMapper.xml
+++ b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/bs/material/mapper/mapping/MaterialInfoMapper.xml
@@ -42,6 +42,9 @@
             <if test="paramCondition.typeL != null and paramCondition.typeL != ''">
                 and type_l like CONCAT('%',#{paramCondition.typeL},'%')
             </if>
+            <if test="paramCondition.typeZ != null and paramCondition.typeZ != ''">
+                and type_Z like CONCAT('%',#{paramCondition.typeZ},'%')
+            </if>
     </select>
 
     <select id="customMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.zsx.bs.material.model.params.MaterialInfoParam">
@@ -59,6 +62,9 @@
             </if>
             <if test="paramCondition.typeL != null and paramCondition.typeL != ''">
                 and type_l like CONCAT('%',#{paramCondition.typeL},'%')
+            </if>
+            <if test="paramCondition.typeZ != null and paramCondition.typeZ != ''">
+                and type_Z like CONCAT('%',#{paramCondition.typeZ},'%')
             </if>
     </select>
 
@@ -78,6 +84,9 @@
             <if test="paramCondition.typeL != null and paramCondition.typeL != ''">
                 and type_l like CONCAT('%',#{paramCondition.typeL},'%')
             </if>
+            <if test="paramCondition.typeZ != null and paramCondition.typeZ != ''">
+                and type_Z like CONCAT('%',#{paramCondition.typeZ},'%')
+            </if>
     </select>
 
     <select id="customPageMapList" resultType="map" parameterType="cn.stylefeng.guns.modular.zsx.bs.material.model.params.MaterialInfoParam">
@@ -96,6 +105,9 @@
             <if test="paramCondition.typeL != null and paramCondition.typeL != ''">
                 and type_l like CONCAT('%',#{paramCondition.typeL},'%')
             </if>
+            <if test="paramCondition.typeZ != null and paramCondition.typeZ != ''">
+                and type_Z like CONCAT('%',#{paramCondition.typeZ},'%')
+            </if>
     </select>
 
 </mapper>
diff --git a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/kb/formula/controller/FormulaKbController.java b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/kb/formula/controller/FormulaKbController.java
index e9e5b4b..1a1f63a 100644
--- a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/kb/formula/controller/FormulaKbController.java
+++ b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/kb/formula/controller/FormulaKbController.java
@@ -1,14 +1,23 @@
 package cn.stylefeng.guns.modular.zsx.kb.formula.controller;
 
+import cn.stylefeng.guns.modular.zsx.bs.formulaChild.entity.FormulaChildInfo;
+import cn.stylefeng.guns.modular.zsx.bs.formulaChild.model.params.FormulaChildInfoParam;
+import cn.stylefeng.guns.modular.zsx.bs.formulaChild.service.FormulaChildInfoService;
+import cn.stylefeng.guns.modular.zsx.bs.formulaChild.service.impl.FormulaChildInfoServiceImpl;
 import cn.stylefeng.guns.modular.zsx.kb.utils.IPUtil;
 import cn.stylefeng.guns.modular.zsx.pm.salesOrder.service.SalesOrderService;
+import cn.stylefeng.roses.core.mutidatasource.annotion.DataSource;
+import cn.stylefeng.roses.kernel.model.response.ResponseData;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.ResponseBody;
 
 import javax.servlet.http.HttpServletRequest;
 import java.net.*;
 import java.util.Enumeration;
+import java.util.List;
 import java.util.Set;
 
 
@@ -16,6 +25,9 @@
 @RequestMapping("/kb/formulaView")
 public class FormulaKbController {
     private String PREFIX = "/modular/kb/formula";
+
+    @Autowired
+    private FormulaChildInfoService formulaChildInfoService;
 
     /**
      * 璺宠浆鍒颁富椤甸潰
@@ -28,21 +40,48 @@
         return PREFIX + "/formulaView.html";
     }
 
-    public static void main(String[] args) {
-        try {
-            Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces();
-            while (networkInterfaces.hasMoreElements()) {
-                NetworkInterface networkInterface = networkInterfaces.nextElement();
-                Enumeration<InetAddress> inetAddresses = networkInterface.getInetAddresses();
-                while (inetAddresses.hasMoreElements()) {
-                    InetAddress inetAddress = inetAddresses.nextElement();
-                    if (inetAddress instanceof Inet4Address) { // 杩囨护IPv4鍦板潃
-                        System.out.println(inetAddress.getHostAddress());
-                    }
-                }
-            }
-        } catch (SocketException e) {
-            throw new RuntimeException(e);
+    /**
+     * 鏂板鎺ュ彛
+     *
+     * @author ruimin
+     * @Date 2023-10-09
+     */
+    @RequestMapping("/addFormulaState")
+    @ResponseBody
+    @DataSource(name = "self")
+    public ResponseData addFormulaState(FormulaChildInfoParam formulaChildInfoParam) {
+        List<FormulaChildInfo> list = this.formulaChildInfoService.list(new QueryWrapper<FormulaChildInfo>()
+                .eq("formula_code", formulaChildInfoParam.getFormulaCode())
+                .eq("spare_field_1","")
+                .orderByAsc("step_sort")
+        );
+        if(list.size()>0){
+            FormulaChildInfo formulaChildInfo = list.get(0);
+            formulaChildInfo.setSpareField1("3");
+            this.formulaChildInfoService.saveOrUpdate(formulaChildInfo);
         }
+        return ResponseData.success();
     }
+
+    /**
+     * 鏂板鎺ュ彛
+     *
+     * @author ruimin
+     * @Date 2023-10-09
+     */
+    @RequestMapping("/clear")
+    @ResponseBody
+    @DataSource(name = "self")
+    public ResponseData clear(FormulaChildInfoParam formulaChildInfoParam) {
+        List<FormulaChildInfo> list = this.formulaChildInfoService.list(new QueryWrapper<FormulaChildInfo>()
+                .eq("formula_code", formulaChildInfoParam.getFormulaCode())
+        );
+        for (int i = 0; i < list.size(); i++) {
+            FormulaChildInfo formulaChildInfo = list.get(i);
+            formulaChildInfo.setSpareField1("");
+            this.formulaChildInfoService.saveOrUpdate(formulaChildInfo);
+        }
+        return ResponseData.success();
+    }
+
 }
diff --git a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/pm/workOrder/controller/WorkOrderController.java b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/pm/workOrder/controller/WorkOrderController.java
index 48d724b..712733e 100644
--- a/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/pm/workOrder/controller/WorkOrderController.java
+++ b/guns-vip-main/src/main/java/cn/stylefeng/guns/modular/zsx/pm/workOrder/controller/WorkOrderController.java
@@ -63,6 +63,17 @@
     }
 
     /**
+     * 浜у搧鍒楄〃椤甸潰
+     *
+     * @author ruimin
+     * @Date 2023-08-26
+     */
+    @RequestMapping("/productListing")
+    public String productListing() {
+        return PREFIX + "/bulletBox/productListing.html";
+    }
+
+    /**
      * 鏂板鎺ュ彛
      *
      * @author ruimin
diff --git a/guns-vip-main/src/main/webapp/assets/modular/kb/formula/formulaView.js b/guns-vip-main/src/main/webapp/assets/modular/kb/formula/formulaView.js
index 7f6c962..ea5d056 100644
--- a/guns-vip-main/src/main/webapp/assets/modular/kb/formula/formulaView.js
+++ b/guns-vip-main/src/main/webapp/assets/modular/kb/formula/formulaView.js
@@ -53,7 +53,8 @@
         url: Feng.ctxPath + '/formulaChildInfo/list',
         page: false,
         // height: "full-158",
-        height: 460,
+        // height: 460,
+        height: 400,
         cellMinWidth: 100,
         where: queryData,
         cols: FormulaChildInfo.initColumn(),
@@ -132,12 +133,13 @@
         }
     });
 
-    setInterval(function() {
-        $('input[name="sex1"][value="nan1"]').prop('checked', true);
-    }, 1000);
-    setInterval(function() {
-        radioElement.prop('checked', false);
-    }, 2000);
+    // //redio闂儊
+    // setInterval(function() {
+    //     $('input[name="sex1"][value="nan1"]').prop('checked', true);
+    // }, 1000);
+    // setInterval(function() {
+    //     radioElement.prop('checked', false);
+    // }, 2000);
 
     //Hash鍦板潃鐨勫畾浣�
     var layid = location.hash.replace(/^#test=/, '');
@@ -147,4 +149,54 @@
         location.hash = 'test='+ $(this).attr('lay-id');
     });
 
+    /**
+     * 鍩虹BOM绠$悊
+     */
+    var ProductBomChildInfo = {
+        tableId: "productBomChildInfoTable"
+    };
+
+    /**
+     * 鍒濆鍖栬〃鏍肩殑鍒�
+     */
+    ProductBomChildInfo.initColumn = function () {
+        return [[
+            {field: 'id', hide: true, title: '涓婚敭id'},
+            {field: 'opCode', sort: true, title: '宸ュ簭缂栫爜'},
+            {field: 'opName', sort: true, title: '宸ュ簭鍚嶇О'},
+            {field: 'materialCode', sort: true, title: '鐗╂枡缂栫爜'},
+            {field: 'costQty', sort: true, title: '鍗曡��'},
+            {field: 'bomCode', sort: true, title: 'BOM缂栫爜'},
+        ]];
+    };
+
+    var queryData = {};
+    queryData['bomCode'] = "301002000021";
+    // 娓叉煋琛ㄦ牸
+    table.render({
+        elem: '#' + ProductBomChildInfo.tableId,
+        url: Feng.ctxPath + '/productBomChildInfo/list',
+        page: true,
+        height: 460,
+        cellMinWidth: 100,
+        where: queryData,
+        cols: ProductBomChildInfo.initColumn()
+    });
+
+    $("#scanCode").keydown(function(event) {
+        if (event.keyCode === 13) {
+            // 鎵ц鎮ㄦ兂瑕佺殑浠g爜
+            var ajax = new $ax(Feng.ctxPath + "/kb/formulaView/addFormulaState?formulaCode="+msg.recipeCode);
+            var result = ajax.start();
+            table.reload("formulaChildInfoTable")
+            return false; // 闃绘榛樿琛屼负
+        }
+    });
+
+    $("#clear").click(function() {
+        var ajax = new $ax(Feng.ctxPath + "/kb/formulaView/clear?formulaCode="+msg.recipeCode);
+        var result = ajax.start();
+        table.reload("formulaChildInfoTable")
+    });
+
 });
diff --git a/guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/bulletBox/productListing.js b/guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/bulletBox/productListing.js
new file mode 100644
index 0000000..164c744
--- /dev/null
+++ b/guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/bulletBox/productListing.js
@@ -0,0 +1,77 @@
+
+layui.use(['table'], function () {
+    var $ = layui.jquery;
+    var table = layui.table;
+
+    /**
+     * 鐗╂枡淇℃伅绠$悊
+     */
+    var MaterialInfo = {
+        tableId: "materialInfoTable"
+    };
+
+    var materialType = parent.materialType;
+    console.log(materialType)
+
+    $('#serch').click(function(){
+        var queryData = {};
+        queryData['typeZ'] = materialType;
+        queryData['materialName'] = $("#materialName").val();
+        queryData['materialCode'] = $("#materialCode").val();
+        table.reload(MaterialInfo.tableId, {
+            where: queryData, page: {curr: 1}
+        });
+    });
+    /**
+     * 缂烘枡鎶ヨ鍒濆鍖栬〃鏍肩殑鍒�
+     */
+    MaterialInfo.initColumn = function () {
+        return [[
+            {type: 'radio'},
+            {field: 'id', hide: true, title: '涓婚敭id'},
+            {field: 'materialCode', sort: true, title: '浜у搧缂栧彿'},
+            {field: 'materialName', sort: true, title: '浜у搧鍚嶇О'},
+            {field: 'typeZ', sort: true, title: '绉嶇被'},
+        ]];
+    };
+
+    table =  $.extend(table, {config: {checkName: 'checked'}});
+
+    var queryData = {};
+    queryData['typeZ'] = materialType;
+    var tableResult = table.render({
+        elem: '#' + MaterialInfo.tableId,
+        url: Feng.ctxPath + '/materialInfo/list',
+        page: true,
+        where:queryData,
+        cellMinWidth: 80,
+        cols: MaterialInfo.initColumn()
+    });
+    let Msg='';
+    table.on('row(materialInfoTable)',function (data) {
+        Msg = data.data;
+    })
+    $('#btnSubmit').click(function(){
+        clearType();
+        if (Msg !=='' ){
+            // 鍒ゆ柇鏄惁鐐瑰嚮鐨勬槸纭畾
+            var index = parent.layer.getFrameIndex(window.name); //鍏堝緱鍒板綋鍓峣frame灞傜殑绱㈠紩
+            window.localStorage.setItem('message',JSON.stringify(Msg));
+            parent.layer.close(index);
+        }
+        else {
+            Feng.error("璇烽�夋嫨涓�鏉℃暟鎹�!")
+        }
+    });
+
+    $('#reset').click(function(){
+        clearType();
+        Msg = "";
+        window.localStorage.clear();
+    });
+
+    function clearType(){
+        parent.materialType="";
+    }
+
+});
\ No newline at end of file
diff --git a/guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/workOrder_add.js b/guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/workOrder_add.js
index 658e121..dd994af 100644
--- a/guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/workOrder_add.js
+++ b/guns-vip-main/src/main/webapp/assets/modular/pm/workOrder/workOrder_add.js
@@ -100,6 +100,23 @@
         }
     });
 
+    $('#productCode').click(function () {
+        layer.open({
+            type: 2,
+            area: ['1000px', '600px'],
+            title: '鐗╂枡淇℃伅',
+            content: Feng.ctxPath + '/workOrder/productListing',
+            success: function (layero, index) {
+                window.materialType = '浜у搧';
+            },
+            end: function () {
+                let msg = JSON.parse(window.localStorage.getItem('message'));
+                $('#productCode').val(msg.materialCode);
+                $('#productName').val(msg.materialName);
+            }
+        });
+    });
+
     //琛ㄥ崟鎻愪氦浜嬩欢
     form.on('submit(btnSubmit)', function (data) {
         var ajax = new $ax(Feng.ctxPath + "/workOrder/addItem", function (data) {
diff --git a/guns-vip-main/src/main/webapp/pages/modular/kb/formula/formulaView.html b/guns-vip-main/src/main/webapp/pages/modular/kb/formula/formulaView.html
index 71b78c5..18b2c8a 100644
--- a/guns-vip-main/src/main/webapp/pages/modular/kb/formula/formulaView.html
+++ b/guns-vip-main/src/main/webapp/pages/modular/kb/formula/formulaView.html
@@ -36,7 +36,7 @@
                 <div class="layui-card-header" style="font-weight: bold">
                     <i class="layui-icon layui-icon-rate-solid"></i>宸ュ崟淇℃伅
                 </div>
-                <div class="layui-card-body">
+                <div class="layui-card-body" style="height: 368px">
                     <div class="orderInfo">
                         <span>宸ュ崟缂栧彿</span>
                         <span class="mySpan" style="float: right" id="workOrder"></span>
@@ -72,31 +72,15 @@
                     <hr class="layui-border-orange">
                     <div class="container">
                         <input type="radio" id="sex1" name="sex1" value="nan1" title="鐢�">
-                        <span>绯荤粺灏辩华</span>
-                        <input style="margin-left: 150px" type="radio" name="sex" value="nan" title="鐢�">
                         <span>宸ヤ欢鍒颁綅</span>
-                    </div>
-                    <div class="container">
-                        <input type="radio" name="sex" value="nan" title="鐢�">
-                        <span>璇诲彇鏉$爜</span>
                         <input style="margin-left: 150px" type="radio" name="sex" value="nan" title="鐢�">
-                        <span>涓嬪彂鏈哄瀷</span>
+                        <span>宸ヤ欢鍏ョ珯</span>
                     </div>
                     <div class="container">
                         <input type="radio" name="sex" value="nan" title="鐢�">
-                        <span>鍏佽鍚姩</span>
-                        <input style="margin-left: 150px" type="radio" name="sex" value="nan" title="鐢�">
-                        <span>涓嶅厑璁稿惎鍔�</span>
-                    </div>
-                    <div class="container">
-                        <input type="radio" name="sex" value="nan" title="鐢�">
-                        <span>鍚堟牸瀹屾垚</span>
-                        <input style="margin-left: 150px" type="radio" name="sex" value="nan" title="鐢�">
-                        <span>涓嶅悎鏍煎畬鎴�</span>
-                    </div>
-                    <div class="container">
-                        <input type="radio" name="sex" value="nan" title="鐢�">
-                        <span>淇濆瓨瀹屾垚</span>
+                        <span>宸ヤ欢鍑虹珯</span>
+                        <input style="margin-left: 150px" type="radio" name="test" value="test1" title="鐢�">
+                        <span>宸ヤ欢瀹屾垚</span>
                     </div>
                 </div>
             </div>
@@ -110,21 +94,16 @@
                     <div class="layui-tab" lay-filter="test">
                         <ul class="layui-tab-title">
                             <li class="layui-this" lay-id="11">棣栭〉</li>
-                            <li lay-id="22">宸ュ簭鐘舵��</li>
-                            <li lay-id="33">瑁呴厤閲囬泦娓呭崟</li>
-                            <li lay-id="44">宸ヨ壓鍙傛暟</li>
-                            <li lay-id="55">涓嶅悎鏍艰川閲忔暟鎹�</li>
+                            <li lay-id="22">BOM娓呭崟</li>
                         </ul>
                         <div class="layui-tab-content">
                             <div class="layui-tab-item layui-show">
                                 <table class="layui-table" id="formulaChildInfoTable" lay-filter="formulaChildInfoTable"></table>
+                                <input id="scanCode" name="scanCode" placeholder="璇锋壂鎻忕墿鏂欐潯鐮�" type="text" class="layui-input"/>
                             </div>
                             <div class="layui-tab-item">
-                                鍐呭3
+                                <table class="layui-table" id="productBomChildInfoTable" lay-filter="productBomChildInfoTable"></table>
                             </div>
-                            <div class="layui-tab-item">鍐呭3</div>
-                            <div class="layui-tab-item">鍐呭4</div>
-                            <div class="layui-tab-item">鍐呭5</div>
                         </div>
                     </div>
                 </div>
@@ -137,6 +116,7 @@
                 </div>
                 <div class="layui-card-body">
                     <img id="imgs" width="320px" height="270px">
+                    <button type="button" class="layui-btn layui-btn-primary" id="clear">鍏ョ珯</button>
                 </div>
             </div>
 
diff --git a/guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/bulletBox/productListing.html b/guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/bulletBox/productListing.html
new file mode 100644
index 0000000..5bb1c8f
--- /dev/null
+++ b/guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/bulletBox/productListing.html
@@ -0,0 +1,35 @@
+@layout("/common/_form.html",{js:["/assets/modular/pm/workOrder/bulletBox/productListing.js"]}){
+    <div class="layui-fluid" style="padding-bottom: 75px;">
+        <div class="layui-card">
+            <div class="layui-card-body">
+                <div class="layui-form-item layui-row">
+                    <input id= "id" name="id" type="hidden"/>
+                    <input id= "materialType" name="materialType" type="hidden"/>
+                    <div class="layui-inline layui-col-md4">
+                        <label class="layui-form-label">鐗╂枡缂栧彿<span style="color: red;">*</span></label>
+                        <div class="layui-input-block">
+                            <input id="materialCode" name="materialCode" placeholder="璇疯緭鍏ヤ骇鍝佺紪鍙�" type="text" class="layui-input"/>
+                        </div>
+                    </div>
+                    <div class="layui-inline layui-col-md4">
+                        <label class="layui-form-label">鐗╂枡鍚嶇О<span style="color: red;">*</span></label>
+                        <div class="layui-input-block">
+                            <input id="materialName" name="materialName" placeholder="璇疯緭鍏ョ墿鏂欏悕绉�" type="text" class="layui-input"/>
+                        </div>
+                    </div>
+                    <div class="layui-inline layui-col-md-offset3">
+                        <button class="layui-btn" id="serch">鎼滅储</button>
+                    </div>
+                </div>
+                <table class="layui-table" id="materialInfoTable" lay-filter="materialInfoTable"></table>
+            </div>
+        </div>
+    </div>
+
+<div class="form-group-bottom text-center">
+    <button class="layui-btn" id="btnSubmit">&emsp;鎻愪氦&emsp;</button>
+    <button type="reset" id="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;鍏抽棴&emsp;</button>
+</div>
+
+
+@}
\ No newline at end of file
diff --git a/guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/workOrder_add.html b/guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/workOrder_add.html
index b529b19..85c7475 100644
--- a/guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/workOrder_add.html
+++ b/guns-vip-main/src/main/webapp/pages/modular/pm/workOrder/workOrder_add.html
@@ -23,27 +23,28 @@
                     <div class="layui-inline layui-col-md6">
                         <label class="layui-form-label">浜у搧缂栧彿<span style="color: red;">*</span></label>
                         <div class="layui-input-block">
-                            <input id="productCode" name="productCode" placeholder="璇疯緭鍏ヤ骇鍝佺紪鍙�" type="text" class="layui-input" lay-verify="required" required/>
+                            <input id="productCode" name="productCode" placeholder="璇疯緭鍏ヤ骇鍝佺紪鍙�" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
+                            <input id="productName" name="productName" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" type="text" hidden/>
                         </div>
                     </div>
-                    <div class="layui-inline layui-col-md6">
-                        <label class="layui-form-label">浜у搧鍚嶇О<span style="color: red;">*</span></label>
-                        <div class="layui-input-block">
-                            <input id="productName" name="productName" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" type="text" class="layui-input" lay-verify="required" required/>
-                        </div>
-                    </div>
+<!--                    <div class="layui-inline layui-col-md6">-->
+<!--                        <label class="layui-form-label">浜у搧鍚嶇О<span style="color: red;">*</span></label>-->
+<!--                        <div class="layui-input-block">-->
+<!--                            <input id="productName" name="productName" placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�" type="text" class="layui-input" lay-verify="required" required/>-->
+<!--                        </div>-->
+<!--                    </div>-->
                     <div class="layui-inline layui-col-md6">
                         <label class="layui-form-label">璁″垝鏁伴噺<span style="color: red;">*</span></label>
                         <div class="layui-input-block">
                             <input id="planQty" name="planQty" placeholder="璇疯緭鍏ヨ鍒掓暟閲�" type="number" class="layui-input" lay-verify="required" required/>
                         </div>
                     </div>
-                    <div class="layui-inline layui-col-md6">
-                        <label class="layui-form-label">瀹屾垚鏁伴噺<span style="color: red;">*</span></label>
-                        <div class="layui-input-block">
-                            <input id="produceQty" name="produceQty" placeholder="璇疯緭鍏ュ畬鎴愭暟閲�" type="number" class="layui-input" lay-verify="required" required/>
-                        </div>
-                    </div>
+<!--                    <div class="layui-inline layui-col-md6">-->
+<!--                        <label class="layui-form-label">瀹屾垚鏁伴噺<span style="color: red;">*</span></label>-->
+<!--                        <div class="layui-input-block">-->
+<!--                            <input id="produceQty" name="produceQty" placeholder="璇疯緭鍏ュ畬鎴愭暟閲�" type="number" class="layui-input" lay-verify="required" required/>-->
+<!--                        </div>-->
+<!--                    </div>-->
                     <div class="layui-inline layui-col-md6">
                         <label class="layui-form-label">涓婄嚎鏁伴噺<span style="color: red;">*</span></label>
                         <div class="layui-input-block">

--
Gitblit v1.9.3