gongchunyi
2 天以前 1677b6e8c20c3c8dd8297c08428538ca5e0029fc
src/views/inventoryManagement/issueManagement/index.vue
@@ -51,12 +51,22 @@
                             prop="inboundNum0"
                             width="90"
                             show-overflow-tooltip />
            <el-table-column label="状态"
                             align="center"
                             prop="isFrozen"
                             width="100">
              <template #default="scope">
                <el-tag :type="scope.row.isFrozen ? 'danger' : 'success'">
                  {{ scope.row.isFrozen ? '已冻结' : '正常' }}
                </el-tag>
              </template>
            </el-table-column>
            <el-table-column fixed="right"
                             label="操作"
                             min-width="60"
                             align="center">
              <template #default="scope">
                <el-button :disabled="scope.row.inboundNum0 <= 0"
                <el-button :disabled="scope.row.inboundNum0 <= 0 || scope.row.isFrozen"
                           link
                           type="primary"
                           size="small"
@@ -131,13 +141,23 @@
            <el-table-column label="含税总价(元)"
                             prop="taxInclusiveTotalPrice"
                             width="150"></el-table-column>
            <el-table-column label="状态"
                             align="center"
                             prop="isFrozen"
                             width="100">
              <template #default="scope">
                <el-tag :type="scope.row.isFrozen ? 'danger' : 'success'">
                  {{ scope.row.isFrozen ? '已冻结' : '正常' }}
                </el-tag>
              </template>
            </el-table-column>
            <el-table-column fixed="right"
                             label="操作"
                             min-width="60"
                             align="center">
              <template #default="scope">
                <el-button link
                           :disabled="scope.row.inboundNum0 <= 0"
                           :disabled="scope.row.inboundNum0 <= 0 || scope.row.isFrozen"
                           type="primary"
                           size="small"
                           @click="openForm(scope.row);">领用</el-button>
@@ -201,13 +221,23 @@
                             prop="inboundNum0"
                             width="90"
                             show-overflow-tooltip />
            <el-table-column label="状态"
                             align="center"
                             prop="isFrozen"
                             width="100">
              <template #default="scope">
                <el-tag :type="scope.row.isFrozen ? 'danger' : 'success'">
                  {{ scope.row.isFrozen ? '已冻结' : '正常' }}
                </el-tag>
              </template>
            </el-table-column>
            <el-table-column fixed="right"
                             label="操作"
                             min-width="60"
                             align="center">
              <template #default="scope">
                <el-button link
                           :disabled="scope.row.inboundNum0 <= 0"
                           :disabled="scope.row.inboundNum0 <= 0 || scope.row.isFrozen"
                           type="primary"
                           size="small"
                           @click="openForm(scope.row);">领用</el-button>
@@ -421,6 +451,9 @@
const productModelId = ref(null);
  // 打开弹框
  const openForm = async row => {
    if (row.isFrozen) {
      return proxy.$modal.msgError("该产品已冻结,无法领用");
    }
    dialogFormVisible.value = true;
    currentRowId.value = row.id;
    currentRowNum.value = row.inboundNum0;