|
@@ -54,7 +54,7 @@
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">库存</view>
|
|
|
|
|
|
|
+ <view class="tui-title" style="color:#3385FF;font-weight:bold;">库存</view>
|
|
|
<input v-model="form.stock" style="width:260upx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
|
|
<input v-model="form.stock" style="width:260upx;" placeholder-class="phcolor" @focus="form.stock=''" @input="changeStock($event)" class="tui-input" name="stock" placeholder="请输入" type="digit"/>
|
|
|
<button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goStockDetail(productData)">库存变动记录</button>
|
|
<button v-if="productData.id > 0" class="admin-button-com blue middle" @click="goStockDetail(productData)">库存变动记录</button>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
@@ -67,6 +67,21 @@
|
|
|
<view class="tui-placeholder" style="height:45upx;" v-else>请选择</view>
|
|
<view class="tui-placeholder" style="height:45upx;" v-else>请选择</view>
|
|
|
</picker>
|
|
</picker>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
+
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
+ <div class="tui-title">比例类型</div>
|
|
|
|
|
+ <radio-group class="tui-input" @change="ratioTypeChange">
|
|
|
|
|
+ <label class="list" for="fixedLink">
|
|
|
|
|
+ <radio id="fixedLink" value="0" :checked="form.ratioType == 0" style="transform: scale(0.7,0.7);" />
|
|
|
|
|
+ <span class="checkbox-text" style="font-size:30upx;">固定</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <label class="list" for="dimLink">
|
|
|
|
|
+ <radio id="dimLink" value="1" :checked="form.ratioType == 1" style="transform: scale(0.7,0.7);" />
|
|
|
|
|
+ <span class="checkbox-text" style="font-size:30upx;">模糊(若干支)</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ </radio-group>
|
|
|
|
|
+ </tui-list-cell>
|
|
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :arrow="false">
|
|
<tui-list-cell class="line-cell" :arrow="false">
|
|
|
<view class="tui-title">大单位</view>
|
|
<view class="tui-title">大单位</view>
|
|
|
<input v-model="form.bigUnitId" name="bigUnitId" type="text" hidden />
|
|
<input v-model="form.bigUnitId" name="bigUnitId" type="text" hidden />
|
|
@@ -79,24 +94,15 @@
|
|
|
<view v-if="form.smallUnitId" @click="$msg('请联系客服修改')" style="width:450upx;color:#CCCCCC;height:45upx;">{{ smallUnitSelectedData.name }}</view>
|
|
<view v-if="form.smallUnitId" @click="$msg('请联系客服修改')" style="width:450upx;color:#CCCCCC;height:45upx;">{{ smallUnitSelectedData.name }}</view>
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :arrow="false">
|
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :arrow="false" v-if="form.ratioType == 0">
|
|
|
<view class="tui-title">单位比</view>
|
|
<view class="tui-title">单位比</view>
|
|
|
- <input v-model="form.ratio" disabled="true" placeholder-class="phcolor" @click="$msg('请联系客服修改')" style="width:450upx;color:#CCCCCC;"
|
|
|
|
|
|
|
+ <input v-model="form.ratio" disabled="true" placeholder-class="phcolor" @click="$msg('不可修改')" style="width:450upx;color:#CCCCCC;"
|
|
|
class="tui-input" name="ratio" placeholder="如:1扎=20支,请填写20" maxlength="50" type="number" />
|
|
class="tui-input" name="ratio" placeholder="如:1扎=20支,请填写20" maxlength="50" type="number" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false">
|
|
|
|
|
- <div class="tui-title">显示单位比</div>
|
|
|
|
|
- <div class="switch_bx">
|
|
|
|
|
- <switch :checked="form.ratioType == 0 ? true : false" @change="ratioTypeChange" style="transform: scale(0.8,0.8)" />
|
|
|
|
|
- <text v-if="form.ratioType == 0">固定比例</text>
|
|
|
|
|
- <text v-else>模糊比例(若干支)</text>
|
|
|
|
|
- </div>
|
|
|
|
|
- </tui-list-cell>
|
|
|
|
|
-
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="false">
|
|
<tui-list-cell class="line-cell" :arrow="false">
|
|
|
<view class="tui-title">每扎重量</view>
|
|
<view class="tui-title">每扎重量</view>
|
|
|
- <input v-model="form.weight" disabled="true" placeholder-class="phcolor" @click="$msg('请联系客服修改')" style="width:450upx;color:#CCCCCC;"
|
|
|
|
|
|
|
+ <input v-model="form.weight" disabled="true" placeholder-class="phcolor" @click="$msg('不可修改')" style="width:450upx;color:#CCCCCC;"
|
|
|
class="tui-input" name="weight" placeholder="单位为公斤" maxlength="50" type="digit" />
|
|
class="tui-input" name="weight" placeholder="单位为公斤" maxlength="50" type="digit" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
@@ -108,7 +114,6 @@
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">上架状态</view>
|
|
<view class="tui-title">上架状态</view>
|
|
|
<view class="switch_bx">
|
|
<view class="switch_bx">
|
|
|
- <switch :checked="form.status == 2 ? false : true" @change="statusChange" style="transform: scale(0.8,0.8)" />
|
|
|
|
|
<text v-if="form.status == 1">上架</text>
|
|
<text v-if="form.status == 1">上架</text>
|
|
|
<text v-else>下架</text>
|
|
<text v-else>下架</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -167,12 +172,19 @@
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <view class="tui-title">虚拟库存</view>
|
|
|
|
|
- <view class="switch_bx">
|
|
|
|
|
- <switch :checked="form.virtualStock == 0 ? false : true" @change="virtualStockChange" style="transform: scale(0.8,0.8)" />
|
|
|
|
|
- <text v-if="form.virtualStock == 0">关闭</text>
|
|
|
|
|
- <text v-else>开启</text>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+ <view class="tui-title">库存类型</view>
|
|
|
|
|
+
|
|
|
|
|
+ <radio-group class="tui-input" @change="virtualStockChange">
|
|
|
|
|
+ <label class="list" for="realLink">
|
|
|
|
|
+ <radio id="realLink" value="0" :checked="form.virtualStock == 0" style="transform: scale(0.7,0.7);" />
|
|
|
|
|
+ <span class="checkbox-text" style="font-size:30upx;">真实</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ <label class="list" for="virLink">
|
|
|
|
|
+ <radio id="virLink" value="1" :checked="form.virtualStock == 1" style="transform: scale(0.7,0.7);" />
|
|
|
|
|
+ <span class="checkbox-text" style="font-size:30upx;">虚拟</span>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ </radio-group>
|
|
|
|
|
+
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -401,6 +413,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ ratioTypeChange(e) {
|
|
|
|
|
+ this.form.ratioType = e.detail.value;
|
|
|
|
|
+ },
|
|
|
fastSubmit(){
|
|
fastSubmit(){
|
|
|
this.dialogInputConfirm({index: 1})
|
|
this.dialogInputConfirm({index: 1})
|
|
|
},
|
|
},
|
|
@@ -417,7 +432,7 @@ export default {
|
|
|
this.$util.pageTo({url: "/pagesStorehouse/stockWarn/detailed?id="+item.id+'&name='+item.name})
|
|
this.$util.pageTo({url: "/pagesStorehouse/stockWarn/detailed?id="+item.id+'&name='+item.name})
|
|
|
},
|
|
},
|
|
|
virtualStockChange(e){
|
|
virtualStockChange(e){
|
|
|
- this.form.virtualStock = e.detail.value ? 1 : 0;
|
|
|
|
|
|
|
+ this.form.virtualStock = e.detail.value
|
|
|
},
|
|
},
|
|
|
frontHideChange(e){
|
|
frontHideChange(e){
|
|
|
this.form.frontHide = e.detail.value ? 1 : 0;
|
|
this.form.frontHide = e.detail.value ? 1 : 0;
|
|
@@ -428,9 +443,6 @@ export default {
|
|
|
this.form.stock = 0
|
|
this.form.stock = 0
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- ratioTypeChange(e){
|
|
|
|
|
- this.form.ratioType = e.detail.value ? 0 : 1;
|
|
|
|
|
- },
|
|
|
|
|
changeStock(event){
|
|
changeStock(event){
|
|
|
let num = Number(event.target.value)
|
|
let num = Number(event.target.value)
|
|
|
if(num > 0){
|
|
if(num > 0){
|