|
|
@@ -285,7 +285,8 @@
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="orderRecord(productData)">下单记录</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="copyCreate(productData)">复制新建</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="onStockChange(productData)">路上库存变动</button></view>
|
|
|
- <view style="width:100vw;margin-top:8upx;"><button @click="delProduct(productData)">删除</button></view>
|
|
|
+ <view style="width:100vw;margin-top:8upx;" v-if="productData.delStatus == 0"><button @click="changeDelStatus(productData,1)">删除</button></view>
|
|
|
+ <view style="width:100vw;margin-top:8upx;" v-if="productData.delStatus == 1"><button @click="changeDelStatus(productData,0)">取消删除</button></view>
|
|
|
<view style="width:100vw;margin-top:30upx;"><button @click="closeMoreDoPop()">取消</button></view>
|
|
|
</view>
|
|
|
</uni-popup> <modal-module :show="wasteShow" @click="wasteConfirm" :maskClosable="true" title="损耗数量" padding="30rpx 30rpx" >
|
|
|
@@ -523,6 +524,7 @@ export default {
|
|
|
},
|
|
|
changeDelStatus(info,flag){
|
|
|
let that = this
|
|
|
+ this.closeMoreDoPop()
|
|
|
let remind = flag == 1 ? '确认删除?' : '确认恢复?'
|
|
|
that.$util.confirmModal({content:remind},() => {
|
|
|
delStatusUpdate({id:info.id,delStatus:flag}).then(res=>{
|