|
|
@@ -42,7 +42,7 @@ import productMins from "@/mixins/product";
|
|
|
import productContraposeMins from "@/mixins/ptProductContrapose";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { getAllItemClass } from "@/api/item-class";
|
|
|
-import { updateProduct } from "@/api/product";
|
|
|
+import { delStatusUpdate } from "@/api/product";
|
|
|
export default {
|
|
|
name: "ptItemList",
|
|
|
components: {
|
|
|
@@ -95,11 +95,10 @@ export default {
|
|
|
let that = this
|
|
|
if(item.select == 2 && item.is_delete == 1){
|
|
|
that.$util.confirmModal({content:'确认启用?'},() => {
|
|
|
- let form = JSON.parse(JSON.stringify(this.form))
|
|
|
- updateProduct({...form,id: item.ghs_item_id, delStatus: 0}).then(res => {
|
|
|
+ delStatusUpdate({id: item.ghs_item_id, delStatus: 0}).then(res => {
|
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
- this.$msg("成功启用")
|
|
|
+ that.$msg("启用成功")
|
|
|
}
|
|
|
})
|
|
|
})
|