Ver Fonte

花材启用

shish há 4 anos atrás
pai
commit
3df6375cc0

+ 3 - 4
ghsApp/src/admin/ptItem/itemList.vue

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

+ 4 - 0
ghsApp/src/api/product/index.js

@@ -21,6 +21,10 @@ export const productList = data => {
 	return https.get("/product/list", data);
 	return https.get("/product/list", data);
 };
 };
 
 
+
+export const delStatusUpdate = data => {
+	return https.post("/product/del-status-update", data);
+};
 /**
 /**
  * 自动调价
  * 自动调价
  * productId
  * productId