|
|
|
|
@ -62,18 +62,6 @@
|
|
|
|
|
<el-table-column label="分类" align="center" prop="categoryName" />
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unitName" />
|
|
|
|
|
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="销售价格"-->
|
|
|
|
|
<!-- align="center"-->
|
|
|
|
|
<!-- prop="salePrice"-->
|
|
|
|
|
<!-- :formatter="erpPriceTableColumnFormatter"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- <el-table-column-->
|
|
|
|
|
<!-- label="最低价格"-->
|
|
|
|
|
<!-- align="center"-->
|
|
|
|
|
<!-- prop="minPrice"-->
|
|
|
|
|
<!-- :formatter="erpPriceTableColumnFormatter"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
|
|
|
|
@ -86,8 +74,16 @@
|
|
|
|
|
:formatter="dateFormatter"
|
|
|
|
|
width="180px"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column label="操作" align="center" width="110">
|
|
|
|
|
<el-table-column label="操作" align="center" width="150px">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- v-if="scope.row.categoryId ===2"-->
|
|
|
|
|
<!-- link-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- @click="openBomForm('detail', scope.row.id)"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- BOM-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="primary"
|
|
|
|
|
@ -118,6 +114,9 @@
|
|
|
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
|
|
|
<ProductForm ref="formRef" @success="getList" />
|
|
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
|
|
|
<BomForm ref="bomFormRef" @success="getList" />
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
@ -129,6 +128,7 @@ import ProductForm from './ProductForm.vue'
|
|
|
|
|
import { DICT_TYPE } from '@/utils/dict'
|
|
|
|
|
import { defaultProps, handleTree } from '@/utils/tree'
|
|
|
|
|
import { erpPriceTableColumnFormatter } from '@/utils'
|
|
|
|
|
import BomForm from "@/views/mes/bom/BomForm.vue";
|
|
|
|
|
|
|
|
|
|
/** ERP 产品列表 */
|
|
|
|
|
defineOptions({ name: 'ErpProduct' })
|
|
|
|
|
@ -222,4 +222,10 @@ const handleTabClick = (tab: TabsPaneContext) => {
|
|
|
|
|
queryParams.categoryId = tab.paneName
|
|
|
|
|
handleQuery()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 添加/修改操作 */
|
|
|
|
|
const bomFormRef = ref()
|
|
|
|
|
const openBomForm = (type: string, id?: number) => {
|
|
|
|
|
bomFormRef.value.open(type, id)
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|