石广澎
2023-12-13 db5f18c8d02881bbf8b8b43d45236bc59bd2f958
feat:
物品规格管理 接口对接
1个文件已修改
17 ■■■■■ 已修改文件
admin-web/src/views/foundation/material/specs/list.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin-web/src/views/foundation/material/specs/list.vue
@@ -1,7 +1,7 @@
<template>
  <win-md title="规格型号" @close="close" :width="'800px'">
    <!--列表-->
    <my-table-v2 ref="myTable" :table="table"/>
    <my-table-v2 ref="myTable" :filter="{goodsTemplatesId: setting.goodsTemplatesId}" :table="table"/>
    <div slot="footer" align="center" class="dialog-footer">
      <my-button name="取消" site="form" @click="close"/>
    </div>
@@ -122,13 +122,13 @@
    ...mapGetters(['userInfo'])
  },
  mounted() {
    this.$nextTick(()=>{
    this.$nextTick(() => {
      this.search()
    })
  },
  methods: {
    showAdd(){
    showAdd() {
      this.specsSetting.goodsTemplatesId = this.setting.goodsTemplatesId;//物品ID
      this.specsSetting.show = true;
    },
@@ -151,19 +151,22 @@
      this.$modal
        .confirm('是否确认删除名称为"' + row.modelName + '"的规格吗?')
        .then(function () {
          delSpecs({ id: row.id }).then((res) => {});
          delSpecs({id: row.id}).then((res) => {
          });
        })
        .then((res) => {
          this.$message.success('删除成功!');this.$refs.myTable.search();
          this.$message.success('删除成功!');
          this.$refs.myTable.search();
        })
        .catch(() => {});
        .catch(() => {
        });
    },
    close() {
      this.$emit('close')
    },
    // 查询table列表
    search() {
      this.$refs.myTable.search({goodsTemplatesId:this.specsSetting.goodsTemplatesId})
      this.$refs.myTable.search()
    },
  }