|
@@ -44,6 +44,9 @@
|
|
|
<view v-if="remain>=0" style="width:200upx;position:fixed;bottom:40upx;left:20upx;z-index:99999;font-size:32upx;">
|
|
<view v-if="remain>=0" style="width:200upx;position:fixed;bottom:40upx;left:20upx;z-index:99999;font-size:32upx;">
|
|
|
还剩{{ remain }}
|
|
还剩{{ remain }}
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view v-else style="width:200upx;position:fixed;bottom:40upx;left:20upx;z-index:99999;font-size:32upx;color:red;">
|
|
|
|
|
+ 已超{{ abs(remain) }}
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -189,7 +192,7 @@
|
|
|
let jsonStock = JSON.stringify(stockList);
|
|
let jsonStock = JSON.stringify(stockList);
|
|
|
let name = this.option.name ? this.option.name : ''
|
|
let name = this.option.name ? this.option.name : ''
|
|
|
let motherId = this.option.id ? this.option.id : 0
|
|
let motherId = this.option.id ? this.option.id : 0
|
|
|
- sendItemStock({pdType:'',itemInfo:jsonStock,motherId:motherId,remark:name+'分配库存'}).then(res => {
|
|
|
|
|
|
|
+ sendItemStock({pdType:'',itemInfo:jsonStock,motherId:motherId,remark:name+' 分配库存'}).then(res => {
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
this.$msg(res.msg)
|
|
this.$msg(res.msg)
|
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|