|
@@ -26,6 +26,7 @@
|
|
|
<el-table-column prop="materialName" label="物料名称" />
|
|
|
<el-table-column prop="materialModel" label="物料型号" />
|
|
|
<el-table-column prop="checkCode" label="检验批号" />
|
|
|
+ <el-table-column prop="type" label="产品分类" />
|
|
|
<el-table-column prop="contacts" label="联系人" />
|
|
|
<el-table-column
|
|
|
prop="currentUserName"
|
|
@@ -94,7 +95,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import Search from "@/components/Search/index.vue";
|
|
|
-import { useSpcStore, useUserStore } from "@/store";
|
|
|
+import { useSpcStore, useUserStore, useDictionaryStore } from "@/store";
|
|
|
import { deleteFeedback, getSalesData } from "@/api/sales/index";
|
|
|
import Add from "@/views/sales/add.vue";
|
|
|
import Detail from "@/views/sales/detail.vue";
|
|
@@ -110,6 +111,7 @@ defineOptions({
|
|
|
});
|
|
|
const store = useSpcStore();
|
|
|
const userStore = useUserStore();
|
|
|
+const { dicts } = useDictionaryStore();
|
|
|
const router = useRouter();
|
|
|
|
|
|
const addRef = ref(null);
|
|
@@ -137,6 +139,15 @@ const searchForm = [
|
|
|
prop: "materialModel",
|
|
|
type: "input",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "产品分类",
|
|
|
+ prop: "type",
|
|
|
+ type: "select",
|
|
|
+ options: dicts.sales_info_type.map((item) => ({
|
|
|
+ label: item.dictLabel,
|
|
|
+ value: item.dictValue,
|
|
|
+ })),
|
|
|
+ },
|
|
|
];
|
|
|
|
|
|
const getData = async (obj) => {
|