wesmiler 6 лет назад
Родитель
Сommit
f870a123fe

+ 2 - 1
public/themes/admin_simpleboot3/admin/business/device_add.html

@@ -42,8 +42,9 @@
         <div class="form-group">
             <label for="input-device_code" class="col-sm-2 control-label"><span class="form-required">*</span>设备号</label>
             <div class="col-md-6 col-sm-6">
-                <input type="text" class="form-control" id="input-device_code" name="device_code" placeholder="唯一序列号"><label for="show_device_code"><input id="show_device_code" type="checkbox" value="" checked>显示设备号</label>
+                <input type="text" class="form-control" id="input-device_code" name="device_code" placeholder="唯一序列号">
             </div>
+            <label for="show_device_code"><input id="show_device_code" type="checkbox" value="" checked>显示设备号</label>
         </div>
         <div class="form-group">
             <label for="input-number" class="col-sm-2 control-label"><span class="form-required">*</span>编号</label>

+ 3 - 2
public/themes/admin_simpleboot3/admin/business/device_edit.html

@@ -42,9 +42,10 @@
         <div class="form-group">
             <label for="input-device_code" class="col-sm-2 control-label"><span class="form-required">*</span>设备号</label>
             <div class="col-md-6 col-sm-6">
-                <input type="text" class="form-control" id="input-device_code" name="device_code" placeholder="唯一序列号" value="{$info.device_code|default=''}"><label
-                    for="show_device_code"><input id="show_device_code" type="checkbox" value="" <if condition="$info.show_device_code == 1">checked</if>>显示设备号</label>
+                <input type="text" class="form-control" id="input-device_code" name="device_code" placeholder="唯一序列号" value="{$info.device_code|default=''}">
             </div>
+            <label
+                    for="show_device_code"><input id="show_device_code" type="checkbox" value="" <if condition="$info.show_device_code == 1">checked</if>>显示设备号</label>
         </div>
         <div class="form-group">
             <label for="input-number" class="col-sm-2 control-label"><span class="form-required">*</span>编号</label>

+ 1 - 0
vendor/thinkcmf/cmf-app/src/admin/controller/BusinessController.php

@@ -208,6 +208,7 @@ class BusinessController extends AdminBaseController
             'color_price'=> input('color_price',0.00),
             'collage_num'=> input('collage_num',0),
             'collage_price'=> input('collage_price',0.00),
+            'show_device_code'=> input('show_device_code',0),
             'collage_color_price'=> input('collage_color_price',0.00),
         ];