|
|
@@ -18,7 +18,7 @@
|
|
|
<t-th>库存</t-th>
|
|
|
<t-th>大客价</t-th>
|
|
|
<t-th>批发价</t-th>
|
|
|
- <t-th>零售价</t-th>
|
|
|
+ <t-th><view @click="clearAllStock()">零售价</view></t-th>
|
|
|
</t-tr>
|
|
|
<block v-if="!$util.isEmpty(classItemData)">
|
|
|
<block v-for="(classItem,classIndex) in classItemData" :key="classIndex">
|
|
|
@@ -81,8 +81,9 @@
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import SelectList from "@/components/plugin/selectList";
|
|
|
-import { getProductDataApi } from "@/api/product/index";
|
|
|
+import { getProductDataApi } from "@/api/product";
|
|
|
import { allOut } from "@/api/stock-out"
|
|
|
+import { clearStock } from "@/api/inventory";
|
|
|
import { list } from "@/mixins";
|
|
|
import ShopSelect from "@/components/module/shopSelect";
|
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
|
@@ -134,11 +135,22 @@ export default {
|
|
|
this.showStock()
|
|
|
},
|
|
|
methods: {
|
|
|
+ clearAllStock(){
|
|
|
+ let that = this
|
|
|
+ that.$util.confirmModal({content:'确认全部清除?'},() => {
|
|
|
+ clearStock().then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ that.$msg(res.msg)
|
|
|
+ that.showStock()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
init(){
|
|
|
|
|
|
},
|
|
|
clearAll(){
|
|
|
- this.$msg('功能开发中,请联系石头清空')
|
|
|
+ this.$msg('联系石头清空')
|
|
|
},
|
|
|
allOutSelectShop(flag){
|
|
|
//是否直接入库
|