diff --git a/src/main/java/com/huaheng/pc/config/cycleCountPreference/controller/cycleCountPreferenceController.java b/src/main/java/com/huaheng/pc/config/cycleCountPreference/controller/cycleCountPreferenceController.java
index 1e981b5..0a34cf0 100644
--- a/src/main/java/com/huaheng/pc/config/cycleCountPreference/controller/cycleCountPreferenceController.java
+++ b/src/main/java/com/huaheng/pc/config/cycleCountPreference/controller/cycleCountPreferenceController.java
@@ -103,12 +103,10 @@ public class cycleCountPreferenceController extends BaseController {
     @PostMapping("/addSave")
     @ResponseBody
     public AjaxResult addSave(CycleCountPreference cycleCountPreference)  {
-        cycleCountPreference.setWarehouseCode(ShiroUtils.getWarehouseCode());
-        cycleCountPreference.setCreatedBy(ShiroUtils.getLoginName());
-        cycleCountPreference.setCreated(new Date());
-        cycleCountPreference.setLastUpdatedBy(ShiroUtils.getLoginName());
-
-        return toAjax(cycleCountPreferenceService.save(cycleCountPreference));
+        if(cycleCountPreference == null){
+            return AjaxResult.error("新增数据不能为空!");
+        }
+        return cycleCountPreferenceService.addSave(cycleCountPreference);
     }
 
     /**
diff --git a/src/main/java/com/huaheng/pc/config/cycleCountPreference/domain/CycleCountPreference.java b/src/main/java/com/huaheng/pc/config/cycleCountPreference/domain/CycleCountPreference.java
index 1225c3c..35df40b 100644
--- a/src/main/java/com/huaheng/pc/config/cycleCountPreference/domain/CycleCountPreference.java
+++ b/src/main/java/com/huaheng/pc/config/cycleCountPreference/domain/CycleCountPreference.java
@@ -81,8 +81,8 @@ public class CycleCountPreference implements Serializable {
     /**
      * 有效
      */
-    @TableField(value = "Enable")
-    @ApiModelProperty(value="有效")
+    @TableField(value = "enable")
+    @ApiModelProperty(value="是否有效")
     private Boolean enable;
 
     /**
diff --git a/src/main/java/com/huaheng/pc/config/cycleCountPreference/service/CycleCountPreferenceService.java b/src/main/java/com/huaheng/pc/config/cycleCountPreference/service/CycleCountPreferenceService.java
index 3419a05..8b499ad 100644
--- a/src/main/java/com/huaheng/pc/config/cycleCountPreference/service/CycleCountPreferenceService.java
+++ b/src/main/java/com/huaheng/pc/config/cycleCountPreference/service/CycleCountPreferenceService.java
@@ -1,12 +1,49 @@
 package com.huaheng.pc.config.cycleCountPreference.service;
 
+import com.huaheng.common.utils.security.ShiroUtils;
+import com.huaheng.framework.web.domain.AjaxResult;
+import com.huaheng.pc.inventory.cycleCountDetail.domain.CycleCountDetail;
+import com.huaheng.pc.inventory.cycleCountDetail.service.CycleCountDetailService;
 import org.springframework.stereotype.Service;
 import javax.annotation.Resource;
+import java.util.Date;
 import java.util.List;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.huaheng.pc.config.cycleCountPreference.mapper.CycleCountPreferenceMapper;
 import com.huaheng.pc.config.cycleCountPreference.domain.CycleCountPreference;
+import org.springframework.transaction.annotation.Transactional;
+
 @Service
 public class CycleCountPreferenceService extends ServiceImpl<CycleCountPreferenceMapper, CycleCountPreference> {
 
+
+    @Resource
+    private CycleCountDetailService cycleCountDetailService;
+
+
+
+
+    /**
+     *新增盘点首选项
+     * @param cycleCountPreference
+     * @return
+     */
+    @Transactional
+    public AjaxResult addSave (CycleCountPreference cycleCountPreference){
+
+        cycleCountPreference.setWarehouseCode(ShiroUtils.getWarehouseCode());
+        cycleCountPreference.setCreatedBy(ShiroUtils.getLoginName());
+        cycleCountPreference.setCreated(new Date());
+        cycleCountPreference.setLastUpdatedBy(ShiroUtils.getLoginName());
+        this.save(cycleCountPreference);
+        return AjaxResult.success("新增完成!");
+    }
+
+
+
+
+
+
+
+
 }
diff --git a/src/main/resources/mybatis/config/CycleCountPreferenceMapper.xml b/src/main/resources/mybatis/config/CycleCountPreferenceMapper.xml
index ee9d6e7..aedf5f4 100644
--- a/src/main/resources/mybatis/config/CycleCountPreferenceMapper.xml
+++ b/src/main/resources/mybatis/config/CycleCountPreferenceMapper.xml
@@ -12,7 +12,7 @@
     <result column="promptItem" jdbcType="BOOLEAN" property="promptItem" />
     <result column="promptQuantity" jdbcType="BOOLEAN" property="promptQuantity" />
     <result column="allowAddNewInventory" jdbcType="BOOLEAN" property="allowAddNewInventory" />
-    <result column="Enable" jdbcType="BOOLEAN" property="enable" />
+    <result column="enable" jdbcType="BOOLEAN" property="enable" />
     <result column="created" jdbcType="TIMESTAMP" property="created" />
     <result column="createdBy" jdbcType="VARCHAR" property="createdBy" />
     <result column="lastUpdated" jdbcType="TIMESTAMP" property="lastUpdated" />
@@ -27,7 +27,7 @@
   <sql id="Base_Column_List">
     <!--@mbg.generated-->
     id, code, `name`, warehouseCode, promptLocation, promptLpn, promptItem, promptQuantity, 
-    allowAddNewInventory, `Enable`, created, createdBy, lastUpdated, lastUpdatedBy, version, 
+    allowAddNewInventory, enable, created, createdBy, lastUpdated, lastUpdatedBy, version,
     userDef1, userDef2, userDef3, processStamp, countByPiece
   </sql>
 </mapper>
\ No newline at end of file
diff --git a/src/main/resources/templates/config/cycleCountPreference/add.html b/src/main/resources/templates/config/cycleCountPreference/add.html
index 1f5648b..d979d6c 100644
--- a/src/main/resources/templates/config/cycleCountPreference/add.html
+++ b/src/main/resources/templates/config/cycleCountPreference/add.html
@@ -1,5 +1,5 @@
 <!DOCTYPE HTML>
-<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
+<html lang="zh" xmlns:th="http://www.thymeleaf.org">
 <meta charset="utf-8">
 <head th:include="include :: header"></head>
 <body class="white-bg">
@@ -22,7 +22,8 @@
             <label class="col-sm-3 control-label">系统提示库位:</label>
             <div class="col-sm-8">
                 <div class="onoffswitch">
-                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLocation" name="promptLocation">
+                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLocation"
+                           name="promptLocation">
                     <label class="onoffswitch-label" for="promptLocation">
                         <span class="onoffswitch-inner"></span>
                         <span class="onoffswitch-switch"></span>
@@ -35,7 +36,8 @@
             <label class="col-sm-3 control-label">系统提示容器:</label>
             <div class="col-sm-8">
                 <div class="onoffswitch">
-                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLpn" name="promptLpn">
+                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLpn"
+                           name="promptLpn">
                     <label class="onoffswitch-label" for="promptLpn">
                         <span class="onoffswitch-inner"></span>
                         <span class="onoffswitch-switch"></span>
@@ -48,8 +50,9 @@
             <label class="col-sm-3 control-label">系统提示物料:</label>
             <div class="col-sm-8">
                 <div class="onoffswitch">
-                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptItem" name="promptItem">
-                    <label class="onoffswitch-label" for="promptLpn">
+                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptItem"
+                           name="promptItem">
+                    <label class="onoffswitch-label" for="promptItem">
                         <span class="onoffswitch-inner"></span>
                         <span class="onoffswitch-switch"></span>
                     </label>
@@ -60,120 +63,29 @@
         <div class="form-group">
             <label class="col-sm-3 control-label">显示库存数量:</label>
             <div class="col-sm-8">
-                <div class="onoffswitch">
-                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptQuantity" name="promptQuantity">
-                    <label class="onoffswitch-label" for="promptQuantity">
-                        <span class="onoffswitch-inner"></span>
-                        <span class="onoffswitch-switch"></span>
-                    </label>
-                </div>
+                    <div class="onoffswitch">
+                        <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptQuantity"
+                               name="promptQuantity">
+                        <label class="onoffswitch-label" for="promptQuantity">
+                            <span class="onoffswitch-inner"></span>
+                            <span class="onoffswitch-switch"></span>
+                        </label>
+                    </div>
             </div>
         </div>
-
-<!--        <div class="form-group">
-            <label class="col-sm-3 control-label">允许添加库存:</label>
-            <div class="col-sm-8">
-                <div class="onoffswitch">
-                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="allowAddNewInventory" name="allowAddNewInventory">
-                    <label class="onoffswitch-label" for="allowAddNewInventory">
-                        <span class="onoffswitch-inner"></span>
-                        <span class="onoffswitch-switch"></span>
-                    </label>
-                </div>
-            </div>
-        </div>-->
-
-<!--        <div class="form-group">
-            <label class="col-sm-3 control-label">RF逐件盘点:</label>
+        <div class="form-group">
+            <label class="col-sm-3 control-label">是否有效:</label>
             <div class="col-sm-8">
                 <div class="onoffswitch">
-                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="countByPiece" name="countByPiece">
-                    <label class="onoffswitch-label" for="countByPiece">
+                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable"
+                           name="enable">
+                    <label class="onoffswitch-label" for="enable">
                         <span class="onoffswitch-inner"></span>
                         <span class="onoffswitch-switch"></span>
                     </label>
                 </div>
             </div>
-        </div>-->
-
-        <!--<div class="form-group">
-            <label class="col-sm-3 control-label">数据版本:</label>
-            <div class="col-sm-8">
-                <input id="version" name="version" class="form-control" type="text">
-            </div>
-        </div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">创建时间:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="created" name="created" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">创建者:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="createdBy" name="createdBy" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">创建时间:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="lastUpdated" name="lastUpdated" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">更新者:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="lastUpdatedBy" name="lastUpdatedBy" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <div class="form-group">
-        <label class="col-sm-3 control-label">是否有效:</label>
-        <div class="col-sm-8">
-        <div class="onoffswitch">
-        <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable" name="enable">
-        <label class="onoffswitch-label" for="enable">
-        <span class="onoffswitch-inner"></span>
-        <span class="onoffswitch-switch"></span>
-        </label>
         </div>
-        </div>
-        </div>
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">是否删除:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="deleted" name="deleted" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段1:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef1" name="userDef1" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段2:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef2" name="userDef2" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段3:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef3" name="userDef3" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段4:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef4" name="userDef4" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段5:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef5" name="userDef5" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
         <div class="form-group">
             <div class="form-control-static col-sm-offset-9">
                 <input type="submit" class="btn btn-primary" value="提交">
@@ -186,32 +98,22 @@
 <script type="text/javascript">
     var prefix = ctx + "config/cycleCountPreference";
     $("#form-cycleCountPreference-add").validate({
-        rules:{
-            code:{
-                required: true,
-            },
-            name:{
+        rules: {
+            code: {
                 required: true,
             },
-            promptLocation:{
+            name: {
                 required: true,
             },
-            promptLpn:{
-                required: true,
-            },
-            promptItem:{
-                required: true,
-            },
-            promptQuantity: {
-                required: true,
-            },
-            allowAddNewInventory: {
-                required: true,
-            }
+
         },
-        submitHandler: function(form) {
+        submitHandler: function (form) {
             var tableValue = $.common.getTableValue("#form-cycleCountPreference-add");
-            //tableValue = formValueReplace(tableValue, "allowOverReceiving", $("input[name='allowOverReceiving']").is(':checked'));
+            tableValue = formValueReplace(tableValue, "promptLocation", $("input[name='promptLocation']").is(':checked'));
+            tableValue = formValueReplace(tableValue, "promptLpn", $("input[name='promptLpn']").is(':checked'));
+            tableValue = formValueReplace(tableValue, "promptItem", $("input[name='promptItem']").is(':checked'));
+            tableValue = formValueReplace(tableValue, "promptQuantity", $("input[name='promptQuantity']").is(':checked'));
+            tableValue = formValueReplace(tableValue, "enable", $("input[name='enable']").is(':checked'));
             $.operate.save(prefix + "/addSave", tableValue);
         }
     });
diff --git a/src/main/resources/templates/config/cycleCountPreference/cycleCountPreference.html b/src/main/resources/templates/config/cycleCountPreference/cycleCountPreference.html
index 146cf63..02023c3 100644
--- a/src/main/resources/templates/config/cycleCountPreference/cycleCountPreference.html
+++ b/src/main/resources/templates/config/cycleCountPreference/cycleCountPreference.html
@@ -90,29 +90,65 @@
                         {
                             field : 'promptLocation',
                             title : '系统提示库位',
+                            formatter: function (value, item, index) {
+                                if (value==true) {
+                                    return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
+                                }
+                                else if (value==false) {
+                                    return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
+                                }
+                            }
                         },
                         {
                             field : 'promptLpn',
-                            title : '系统提示容器'
+                            title : '系统提示容器',
+                            formatter: function (value, item, index) {
+                                if (value==true) {
+                                    return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
+                                }
+                                else if (value==false) {
+                                    return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
+                                }
+                            }
                         },
                         {
                             field : 'promptItem',
-                            title : '系统提示物料'
+                            title : '系统提示物料',
+                            formatter: function (value, item, index) {
+                                if (value==true) {
+                                    return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
+                                }
+                                else if (value==false) {
+                                    return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
+                                }
+                            }
                         },
                         {
                             field : 'promptQuantity',
-                            title : '显示库存数量'
+                            title : '显示库存数量',
+                            formatter: function (value, item, index) {
+                                if (value==true) {
+                                    return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
+                                }
+                                else if (value==false) {
+                                    return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
+                                }
+                            }
                         },
                         {
                             field : 'allowAddNewInventory',
                             title : '允许添加库存',
+                            formatter: function (value, item, index) {
+                                if (value==true) {
+                                    return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
+                                }
+                                else if (value==false) {
+                                    return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
+                                }
+                            },
                             visible : false
                         },
                         {
-                            field : 'Enable',
-                            title : '有效'
-                        },
-                        {
                             field : 'created',
                             title : '创建时间',
                             visible : true
@@ -132,20 +168,40 @@
                             title : '更新用户',
                             visible : false
                         },
-                        {
+                        /*{
                             field : 'version',
                             title : '数据版本',
                             visible : false
-                        },
-                        {
+                        },*/
+                        /*{
                             field : 'processStamp',
                             title : '处理标记',
                             visible : false
-                        },
+                        },*/
                         {
                             field : 'countByPiece',
                             title : 'RF逐件盘点' ,
-                            visible : false
+                            visible : false,
+                            formatter: function (value, item, index) {
+                                if (value==true) {
+                                    return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
+                                }
+                                else if (value==false) {
+                                    return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
+                                }
+                            }
+                        },
+                        {
+                            field : 'enable',
+                            title : '有效',
+                            formatter: function (value, item, index) {
+                                if (value==true) {
+                                    return '<span class="badge" style="background-color: #00B83F;color: white;width: 36px;">' + ' 是 ' + '</span>';
+                                }
+                                else if (value==false) {
+                                    return '<span class="badge" style="background-color: #ff0000;color: white;width: 36px;">' + ' 否 ' + '</span>';
+                                }
+                            }
                         },
                         /*{
                             field : 'userDef1',
@@ -168,7 +224,7 @@
                             align: 'center',
                             formatter: function(value, row, index) {
                                 var actions = [];
-                               //actions.push('<a class="btn btn-success btn-xs " href="#" onclick="$.operate.edit(\'' + row.id + '\')" ><i class="fa fa-edit"></i>修改</a> ');
+                                actions.push('<a class="btn btn-success btn-xs " href="#" onclick="$.operate.edit(\'' + row.id + '\')" ><i class="fa fa-edit"></i>修改</a> ');
                                 actions.push('<a class="btn btn-danger btn-xs " href="#" onclick="$.operate.remove(\'' + row.id + '\')" ><i class="fa fa-trash-o"></i>删除</a>');
                                 return actions.join('');
                             }
diff --git a/src/main/resources/templates/config/cycleCountPreference/edit.html b/src/main/resources/templates/config/cycleCountPreference/edit.html
index 18607bd..133a877 100644
--- a/src/main/resources/templates/config/cycleCountPreference/edit.html
+++ b/src/main/resources/templates/config/cycleCountPreference/edit.html
@@ -14,59 +14,74 @@
         <div class="form-group">
             <label class="col-sm-3 control-label">盘点首选项编码:</label>
             <div class="col-sm-8">
-                <input id="code" name="code" class="form-control" type="text" th:field="*{code}">
+                <input id="code" name="code" class="form-control" type="text" th:field="*{code}" readonly="readonly">
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">盘点首选项名称:</label>
             <div class="col-sm-8">
-                <input id="name" name="name" class="form-control" type="text" th:field="*{name}">
+                <input id="name" name="name" class="form-control" type="text" th:field="*{name}" readonly="readonly">
             </div>
         </div>
-        <div class="form-group">
+        <!--<div class="form-group">
             <label class="col-sm-3 control-label">仓库:</label>
             <div class="col-sm-8">
                 <input id="warehouseCode" name="warehouseCode" class="form-control" type="text" th:field="*{warehouseCode}" readonly="readonly">
             </div>
-        </div>
+        </div>-->
         <div class="form-group">
             <label class="col-sm-3 control-label">系统提示货位:</label>
             <div class="col-sm-8">
-                <input id="promptLocation" name="promptLocation" class="form-control" type="text" th:field="*{promptLocation}">
+                <div class="onoffswitch">
+                    <input type="checkbox" th:checked="*{promptLocation}" class="onoffswitch-checkbox" id="promptLocation"
+                           name="promptLocation">
+                    <label class="onoffswitch-label" for="promptLocation">
+                        <span class="onoffswitch-inner"></span>
+                        <span class="onoffswitch-switch"></span>
+                    </label>
+                </div>
             </div>
         </div>
         <div class="form-group">
-            <label class="col-sm-3 control-label">系统提示LPN:</label>
-            <div class="col-sm-8">
-                <input id="promptLpn" name="promptLpn" class="form-control" type="text" th:field="*{promptLpn}">
-            </div>
-        </div>
-        <!--<div class="form-group">
-            <label class="col-sm-3 control-label">系统提示LPN:</label>
+            <label class="col-sm-3 control-label">系统提示容器:</label>
             <div class="col-sm-8">
                 <div class="onoffswitch">
-                    <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="promptLpn"
-                           name="promptLpn" th:field="*{promptLpn}">
+                    <input type="checkbox" th:checked="*{promptLpn}" class="onoffswitch-checkbox" id="promptLpn"
+                           name="promptLpn" >
                     <label class="onoffswitch-label" for="promptLpn">
                         <span class="onoffswitch-inner"></span>
                         <span class="onoffswitch-switch"></span>
                     </label>
                 </div>
             </div>
-        </div>-->
+        </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">系统提示物料:</label>
             <div class="col-sm-8">
-                <input id="promptItem" name="promptItem" class="form-control" type="text" th:field="*{promptItem}">
+                <div class="onoffswitch">
+                    <input type="checkbox" th:checked="*{promptItem}" class="onoffswitch-checkbox" id="promptItem"
+                           name="promptItem">
+                    <label class="onoffswitch-label" for="promptItem">
+                        <span class="onoffswitch-inner"></span>
+                        <span class="onoffswitch-switch"></span>
+                    </label>
+                </div>
             </div>
         </div>
         <div class="form-group">
             <label class="col-sm-3 control-label">显示库存数量:</label>
             <div class="col-sm-8">
-                <input id="promptQuantity" name="promptQuantity" class="form-control" type="text" th:field="*{promptQuantity}">
+                <div class="onoffswitch">
+                    <input type="checkbox" th:checked="*{promptQuantity}" class="onoffswitch-checkbox" id="promptQuantity"
+                           name="promptQuantity">
+                    <label class="onoffswitch-label" for="promptQuantity">
+                        <span class="onoffswitch-inner"></span>
+                        <span class="onoffswitch-switch"></span>
+                    </label>
+                </div>
             </div>
         </div>
-        <div class="form-group">
+        <!--<div class="form-group">
             <label class="col-sm-3 control-label">允许添加库存:</label>
             <div class="col-sm-8">
                 <input id="allowAddNewInventory" name="allowAddNewInventory" class="form-control" type="text" th:field="*{allowAddNewInventory}">
@@ -83,7 +98,7 @@
             <div class="col-sm-8">
                 <input id="version" name="version" class="form-control" type="text" th:field="*{version}">
             </div>
-        </div>
+        </div>-->
         <div class="form-group">
         <label class="col-sm-3 control-label">创建时间:</label>
         <div class="col-sm-8">
@@ -96,73 +111,25 @@
         <input id="createdBy" name="createdBy" class="form-control" type="text" th:field="*{createdBy}" readonly="readonly">
         </div>
         </div>
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">更新时间:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="lastUpdated" name="lastUpdated" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">更新者:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="lastUpdatedBy" name="lastUpdatedBy" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <div class="form-group">
+        <!--<div class="form-group">
         <label class="col-sm-3 control-label">处理标记:</label>
         <div class="col-sm-8">
         <input id="processStamp" name="processStamp" class="form-control" type="text" th:field="*{processStamp}" />
         </div>
-        </div>
-        <!--<div class="form-group">
-        <label class="col-sm-3 control-label">是否有效:</label>
-        <div class="col-sm-8">
-        &lt;!&ndash;<input id="enable" name="enable" class="form-control" type="text">&ndash;&gt;
-        <div class="onoffswitch">
-        <input type="checkbox" th:checked="true" class="onoffswitch-checkbox" id="enable" name="enable">
-        <label class="onoffswitch-label" for="enable">
-        <span class="onoffswitch-inner"></span>
-        <span class="onoffswitch-switch"></span>
-        </label>
-        </div>
-        </div>
         </div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">是否删除:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="deleted" name="deleted" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段1:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef1" name="userDef1" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段2:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef2" name="userDef2" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段3:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef3" name="userDef3" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段4:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef4" name="userDef4" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
-        <!--<div class="form-group">	-->
-        <!--<label class="col-sm-3 control-label">自定义字段5:</label>-->
-        <!--<div class="col-sm-8">-->
-        <!--<input id="userDef5" name="userDef5" class="form-control" type="text">-->
-        <!--</div>-->
-        <!--</div>-->
+        <div class="form-group">
+            <label class="col-sm-3 control-label">是否有效:</label>
+            <div class="col-sm-8">
+                <div class="onoffswitch">
+                    <input type="checkbox" th:checked="*{enable}" class="onoffswitch-checkbox" id="enable"
+                           name="enable" >
+                    <label class="onoffswitch-label" for="enable">
+                        <span class="onoffswitch-inner"></span>
+                        <span class="onoffswitch-switch"></span>
+                    </label>
+                </div>
+            </div>
+        </div>
         <div class="form-group">
             <div class="form-control-static col-sm-offset-9">
                 <input type="submit" class="btn btn-primary" value="提交">