spring
2025-03-07 70911270d2ced32678828e8359963639edbb0350
src/views/CNAS/resourceDemand/standardMaterialAccept/index.vue
@@ -22,6 +22,7 @@
        :page="page" :tableLoading="tableLoading">
        <template slot="action" slot-scope="{ row }">
          <el-button type="text" @click="edit(row)">编辑</el-button>
          <el-button type="text" style="color: red;" @click="del(row)">删除</el-button>
        </template>
      </lims-table>
    </div>
@@ -33,7 +34,7 @@
import limsTable from '@/components/Table/lims-table.vue'
import AddRecord from './component/AddRecord.vue';
import {
  getPageAcceptance, getAcceptanceDetails, exportFeStandardSubstanceAcceptance, updateAcceptance, addAcceptance
  getPageAcceptance, deleteAcceptance, exportFeStandardSubstanceAcceptance
} from '@/api/cnas/resourceDemand/standardMaterialAccept/standardMaterialAccept'
export default {
  components: {
@@ -149,6 +150,20 @@
      this.page.size = page.limit
      this.getTableData()
    },
    del(row) {
      this.$confirm('是否确定删除', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(() => {
        deleteAcceptance(row.id).then(res => {
          if (res.code == 200) {
            this.$message.success("删除成功")
            this.getTableData();
          }
        })
      })
    },
  }
}
</script>