Parcourir la source

客户端隐藏

shish il y a 3 ans
Parent
commit
658424ac3a
1 fichiers modifiés avec 14 ajouts et 1 suppressions
  1. 14 1
      ghsApp/src/admin/item/detail.vue

+ 14 - 1
ghsApp/src/admin/item/detail.vue

@@ -129,6 +129,15 @@
             </view>
           </tui-list-cell>
 
+          <tui-list-cell class="line-cell" :hover="false">
+            <view class="tui-title">客户端隐藏</view>
+            <view class="switch_bx">
+              <switch :checked="form.frontHide == 0 ? false : true" @change="frontHideChange" style="transform: scale(0.8,0.8)" />
+              <text v-if="form.frontHide == 0">否</text>
+              <text v-else>是</text>
+            </view>
+          </tui-list-cell>
+
           <tui-list-cell class="line-cell" :hover="false">
             <view class="tui-title">开单默认基数</view>
             <input v-model="form.scanNum" @focus="form.scanNum=''" placeholder-class="phcolor" class="tui-input" name="scanNum" placeholder="0表示1扎,大于0表示增加多少支" maxlength="50" type="number" />
@@ -218,7 +227,8 @@ export default {
         scanNum:0,
         variety:0,
         smallRatio:1,
-        smallShow:0
+        smallShow:0,
+        frontHide:0
       },
       itemClassSelectedData:{},
       itemClassData:[],
@@ -315,6 +325,9 @@ export default {
     varietyChange(e){
       this.form.variety = e.detail.value ? 1 : 0;
     },
+    frontHideChange(e){
+      this.form.frontHide = e.detail.value ? 1 : 0;
+    },
     smallShowChange(e){
       this.form.smallShow = e.detail.value ? 1 : 0;
     },