wuhongyu 5 jaren geleden
bovenliggende
commit
5b1afb9870

+ 1 - 4
src/components/supermaket/supermarketlistDetail.vue

@@ -59,10 +59,7 @@ export default {
   },
   data: () => ({}),
   created() {},
-  computed: {
-
-    
-  },
+  computed: {},
   methods: {
     clickList({ id }) {
       console.log(id);

+ 5 - 1
src/layout/enterprise/contextfabuxx.vue

@@ -449,7 +449,11 @@ export default {
   computed: {},
   methods: {
     deteles(item) {
-      this.$emit('deletes', { item });
+      this.$emit('deteles', { item });
+    },
+
+    handleDelete(item) {
+      this.$emit('handleDelete', { item });
     },
     messFabu() {
       this.$router.push({ path: '/enterprise/enterprisexuqiu' });

+ 2 - 2
src/views/enterprise/enterprisedg.vue

@@ -49,7 +49,7 @@ export default {
   computed: {},
   methods: {
     ...mapSite(['showInfo']),
-    ...transaction({ transactionList: 'query' }),
+    ...transaction({ transactionList: 'query', transactiondtetle: 'delete' }),
     // 查询站点信息
     async searchSite() {
       let res = await this.showInfo();
@@ -112,7 +112,7 @@ export default {
     },
 
     async deleteData({ item }) {
-      const res = await this.productdeltet(item.id);
+      const res = await this.transactiondtetle(item.id);
       this.$checkRes(res, '删除成功', '删除失败');
     },
 

+ 8 - 2
src/views/enterprise/enterprisefabu.vue

@@ -20,7 +20,8 @@
       @handleCurrentChange2="handleCurrentChange2"
       :jiaoyilist="jiaoyilist"
       :jiaoyilist1="jiaoyilist1"
-      @deteles="deletestate"
+      @deteles="deteles"
+      @handleDelete="handleDelete"
     ></enterprisefabu-detail>
   </div>
 </template>
@@ -191,11 +192,16 @@ export default {
       const res = await this.productdeltet(item.id);
       this.$checkRes(res, '删除成功', '删除失败');
     },
-    async deletestate({ item }) {
+    async deteles({ item }) {
       const res = await this.delete(item.id);
       this.$checkRes(res, '删除成功', '删除失败');
     },
 
+    async handleDelete({ item }) {
+      const res = await this.productdeltet(item.id);
+      this.$checkRes(res, '删除成功', '删除失败');
+    },
+
     async onsaveClick({ id }) {
       if (id === '基本信息') {
         this.$router.push({ path: '/enterprise/enterprisejb' });