zouyu
2023-12-19 795fa953f456ea886be77f8bb345c50a0fbea590
src/views/basic/warehouse/index.vue
@@ -11,7 +11,10 @@
        :ajaxFun="ajaxFun"
        ref="wareHouseTable"
      >
        <template #toolbar></template>
        <template #toolbar>
          <el-button type="primary" @click="addOrUpdateHandle"
          v-if="permissions.basic_warehouse_add">新增</el-button>
        </template>
      </ttable>
      <!-- 弹窗, 新增 / 修改 -->
      <table-form
@@ -177,13 +180,7 @@
            searchInfoType: 'datetimerange'
          }
        ],
        toolbar: [
          {
            text: '新增',
            type: 'primary',
            fun: this.addOrUpdateHandle
          }
        ],
        toolbar: [],
        operator: [
          {
            text: '删除',
@@ -259,6 +256,10 @@
    },
    // 新增 / 修改
    addOrUpdateHandle(row) {
      if(!this.permissions.basic_warehouse_edit && row.id!=null){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.addOrUpdateVisible = true
      this.$nextTick(() => {
        this.$refs.addOrUpdate.init(row == null ? null : row.id)
@@ -266,6 +267,10 @@
    },
    // 删除
    deleteHandle(row) {
      if(!this.permissions.basic_warehouse_del){
        this.$message.error("该角色没有操作权限")
        return
      }
      this.$confirm('是否确认删除仓库名称为' + row.warehouseName, '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',