|
|
@@ -33,8 +33,7 @@
|
|
|
<view style="color:#333333;font-size:29upx;" @click.stop="doPrintLabel(productItem,0)">打标签</view>
|
|
|
</t-td>
|
|
|
<t-td>
|
|
|
- <view style="color:#333333;font-size:29upx;"
|
|
|
- @click="goToStockDetail(productItem)">
|
|
|
+ <view style="color:#333333;font-size:29upx;" @click="goToStockDetail(productItem)">
|
|
|
库明细
|
|
|
</view>
|
|
|
</t-td>
|
|
|
@@ -60,6 +59,7 @@
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="orderRecord()">下单记录</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="copyCreate()">复制新建</button></view>
|
|
|
<view style="width:100vw;margin-top:8upx;"><button @click="sendStock()">分配库存</button></view>
|
|
|
+ <view style="width:100vw;margin-top:8upx;"><button @click="delItem()">删除</button></view>
|
|
|
<view style="width:100vw;margin-top:30upx;"><button @click="closeRightShow()">取消</button></view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
@@ -81,7 +81,7 @@
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import SelectList from "@/components/plugin/selectList";
|
|
|
-import { getProductDataApi,print,cancelDiscountPrice,cancelPreSell } from "@/api/product";
|
|
|
+import { getProductDataApi,print,cancelDiscountPrice,cancelPreSell,delStatusUpdate } from "@/api/product";
|
|
|
import { getSimleList } from "@/api/item";
|
|
|
import { allOut } from "@/api/stock-out"
|
|
|
import { list } from "@/mixins";
|
|
|
@@ -143,6 +143,17 @@ export default {
|
|
|
this.currentInfo = item
|
|
|
this.$refs.rightShowMore.open('top')
|
|
|
},
|
|
|
+ delItem(){
|
|
|
+ let that = this
|
|
|
+ that.$util.confirmModal({content:'确认删除?'},() => {
|
|
|
+ delStatusUpdate({id:that.currentInfo.id,delStatus:1}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.closeRightShow()
|
|
|
+ that.$msg('删除成功')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
sendStock(){
|
|
|
this.pageTo({url: '/admin/item/sendStock?id='+this.currentInfo.id+'&price='+this.currentInfo.price+'&stock='+this.currentInfo.stock+'&name='+this.currentInfo.name})
|
|
|
},
|