gaoluyang
2026-05-15 e9d95f6a18c39e449cc3d4a8656f15f64e186aec
src/views/basicData/product/index.vue
@@ -66,11 +66,9 @@
      </div>
    </div>
    <div class="right">
      <div style="margin-bottom: 10px"
           v-if="isShowButton">
        <el-button type="primary"
                   @click="openModelDia('add')">
          新增规格型号
      <div style="margin-bottom: 10px" v-if="isShowButton">
        <el-button type="primary" @click="openModelDia('add')">
          新增尺寸
        </el-button>
        <ImportExcel :product-id="currentId"
                     @uploadSuccess="getModelList" />
@@ -122,7 +120,7 @@
      </template>
    </el-dialog>
    <el-dialog v-model="modelDia"
               title="规格型号"
               title="尺寸"
               width="400px"
               @close="closeModelDia"
               @keydown.enter.prevent>
@@ -144,10 +142,10 @@
            </el-col>
          </el-row>
          <el-col :span="24">
            <el-form-item label="规格型号:"
            <el-form-item label="尺寸:"
                          prop="model">
              <el-input v-model="modelForm.model"
                        placeholder="请输入规格型号"
                        placeholder="请输入尺寸"
                        clearable
                        @keydown.enter.prevent />
            </el-form-item>
@@ -297,7 +295,7 @@
      prop: "productCode",
    },
    {
      label: "规格型号",
      label: "尺寸",
      prop: "model",
    },
    {
@@ -413,7 +411,7 @@
    form.value.productName =
      type === "edit" && data ? data.productName : "";
  };
  // 打开规格型号弹框
  // 打开尺寸弹框
  const openModelDia = (type, data) => {
    modelOperationType.value = type;
    modelDia.value = true;
@@ -494,7 +492,7 @@
    getModelList();
  };
  // 提交规格型号修改
  // 提交尺寸修改
  const submitModelForm = () => {
    proxy.$refs.modelFormRef.validate(valid => {
      if (valid) {
@@ -517,7 +515,7 @@
    selectedRows.value = selection;
  };
  // 查询规格型号
  // 查询尺寸
  const pagination = obj => {
    page.current = obj.page;
    page.size = obj.limit;
@@ -536,7 +534,7 @@
      tableLoading.value = false;
    });
  };
  // 删除规格型号
  // 删除尺寸
  const handleDelete = () => {
    let ids = [];
    if (selectedRows.value.length > 0) {