|
|
@@ -245,6 +245,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.frontUse == 0 ? false : true" @change="frontUseChange" style="transform: scale(0.8,0.8)" />
|
|
|
+ <text v-if="form.frontUse == 0">否</text>
|
|
|
+ <text v-else>是</text>
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">库存类型</view>
|
|
|
<radio-group class="tui-input" @change="virtualStockChange">
|
|
|
@@ -486,6 +495,7 @@ export default {
|
|
|
itemId:0,
|
|
|
smallRatio:1,
|
|
|
frontHide:0,
|
|
|
+ frontUse:0,
|
|
|
virtualStock:0,
|
|
|
ratioType:0,
|
|
|
inTurn:100,
|
|
|
@@ -1005,6 +1015,9 @@ export default {
|
|
|
frontHideChange(e){
|
|
|
this.form.frontHide = e.detail.value ? 1 : 0;
|
|
|
},
|
|
|
+ frontUseChange(e){
|
|
|
+ this.form.frontUse = e.detail.value ? 1 : 0;
|
|
|
+ },
|
|
|
statusChange(e){
|
|
|
this.form.status = e.detail.value ? 1 : 2;
|
|
|
if(this.form.status == 2){
|
|
|
@@ -1080,6 +1093,7 @@ export default {
|
|
|
this.form.cost = 0
|
|
|
this.form.smallRatio = 1
|
|
|
this.form.frontHide = 0
|
|
|
+ this.form.frontUse = 0
|
|
|
this.form.virtualStock = 0
|
|
|
this.form.limitBuy = 0
|
|
|
this.cost = res.data && res.data.cost ? parseFloat(res.data.cost) : 0
|