|
|
@@ -42,6 +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";
|
|
|
export default {
|
|
|
name: "ptItemList",
|
|
|
components: {
|
|
|
@@ -56,7 +57,11 @@ export default {
|
|
|
selectJobType: "getPtItem",
|
|
|
tabIndex: 0,
|
|
|
modifyStock:{},
|
|
|
- allClass:[]
|
|
|
+ allClass:[],
|
|
|
+ form: {
|
|
|
+ id:0,
|
|
|
+ delStatus:0,
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
computed:{
|
|
|
@@ -87,6 +92,16 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
selectItem(item){
|
|
|
+ if(item.select == 2 && item.is_delete == 1){
|
|
|
+ let form = JSON.parse(JSON.stringify(this.form))
|
|
|
+ updateProduct({...form,id: item.ghsItmeId, delStatus: 0}).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg("操作成功!");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
if(item.select == 2){
|
|
|
this.$msg("已导入")
|
|
|
return
|