gaoluyang
2026-03-16 fcfd8688b635646f08880082a59a26b56dab540d
src/views/basicData/product/index.vue
@@ -130,6 +130,7 @@
      title="产品导入"
      width="600px"
      @cancel="importDia = false"
      @confirm="submitImport"
    >
      <el-upload
        ref="importUploadRef"
@@ -156,11 +157,6 @@
          </div>
        </template>
      </el-upload>
      <template #footer>
        <div class="dialog-footer">
          <el-button type="primary" @click="submitImport">确认导入</el-button>
        </div>
      </template>
    </FormDialog>
  </div>
</template>
@@ -227,7 +223,12 @@
    label: "产品属性",
    prop: "productType",
    width: 100,
    dataType: "tag",
    formatData: (v) => ({ "1": "自制", "2": "外购", "3": "委外" }[String(v)] ?? v),
    formatType: (v) => {
      const typeMap = { "1": "success", "2": "warning", "3": "info" };
      return typeMap[String(v)] || "info";
    },
  },
  {
    dataType: "action",