|
@@ -39,6 +39,7 @@
|
|
|
@showAddModelFn="showAddModelFn"
|
|
@showAddModelFn="showAddModelFn"
|
|
|
@replaceItemFn="replaceItemFn"
|
|
@replaceItemFn="replaceItemFn"
|
|
|
@goToSpecialVariety="goToSpecialVariety"
|
|
@goToSpecialVariety="goToSpecialVariety"
|
|
|
|
|
+ @delProduct="delProduct"
|
|
|
></Commondity>
|
|
></Commondity>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -124,6 +125,7 @@ import ModalModule from "@/components/plugin/modal";
|
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import productMins from "@/mixins/product";
|
|
import productMins from "@/mixins/product";
|
|
|
import { getClassRemind,hasClassRemind } from "@/api/item-class";
|
|
import { getClassRemind,hasClassRemind } from "@/api/item-class";
|
|
|
|
|
+import { delStatusUpdate } from '@/api/product';
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
export default {
|
|
|
name: "index",
|
|
name: "index",
|
|
@@ -204,6 +206,16 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ delProduct(info){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ that.$util.confirmModal({content:'确认删除?'},() => {
|
|
|
|
|
+ delStatusUpdate({id:info.id,delStatus:1}).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.$msg('删除成功')
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
goSearchFn(){
|
|
goSearchFn(){
|
|
|
let type = uni.getSystemInfoSync().platform
|
|
let type = uni.getSystemInfoSync().platform
|
|
|
//8249
|
|
//8249
|