|
@@ -20,21 +20,18 @@
|
|
|
|
|
|
<script setup>
|
|
|
import byTable from "@/components/byTable/index";
|
|
|
-import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
-const orderStatus = ref([]);
|
|
|
const sourceList = ref({
|
|
|
- data: [{ code: "踩踩踩踩踩踩踩踩踩踩踩踩踩踩踩踩踩踩从" }, {}],
|
|
|
+ data: [],
|
|
|
pagination: {
|
|
|
total: 1000,
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- keyword: "",
|
|
|
- status: "",
|
|
|
- payStatus: "",
|
|
|
+ name: "",
|
|
|
},
|
|
|
});
|
|
|
+const loading = ref(false);
|
|
|
const selectConfig = computed(() => {
|
|
|
return [
|
|
|
{
|
|
@@ -58,21 +55,18 @@ const config = computed(() => {
|
|
|
return [
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "采购单号",
|
|
|
- prop: "code",
|
|
|
+ label: "分类名称",
|
|
|
+ prop: "name",
|
|
|
"min-width": 180,
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // attrs: {
|
|
|
- // label: "供应商",
|
|
|
- // prop: "sellCorporationId",
|
|
|
- // "min-width": 220,
|
|
|
- // },
|
|
|
- // render(type) {
|
|
|
- // return proxy.dictValueLabel(type, supplierList.value);
|
|
|
- // },
|
|
|
- // },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "排序",
|
|
|
+ prop: "sort",
|
|
|
+ width: 100,
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "操作",
|
|
@@ -86,35 +80,19 @@ const config = computed(() => {
|
|
|
},
|
|
|
];
|
|
|
});
|
|
|
-const getDict = () => {
|
|
|
- proxy.getDictOne(["order_status"]).then((res) => {
|
|
|
- if (res["order_status"] && res["order_status"].length > 0) {
|
|
|
- orderStatus.value = res["order_status"].map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- }
|
|
|
- });
|
|
|
-};
|
|
|
-getDict();
|
|
|
const getList = async (req) => {
|
|
|
- console.log(req);
|
|
|
- // sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
|
- // loading.value = true;
|
|
|
- // proxy.post("/ehsdPurchase/page", sourceList.value.pagination).then((res) => {
|
|
|
- // console.log(res);
|
|
|
- // sourceList.value.data = res.rows;
|
|
|
- // sourceList.value.pagination.total = res.total;
|
|
|
- // setTimeout(() => {
|
|
|
- // loading.value = false;
|
|
|
- // }, 200);
|
|
|
- // });
|
|
|
+ sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
|
+ loading.value = true;
|
|
|
+ proxy.post("/bomClassify/tree", sourceList.value.pagination).then((res) => {
|
|
|
+ sourceList.value.data = res.rows;
|
|
|
+ sourceList.value.pagination.total = res.total;
|
|
|
+ setTimeout(() => {
|
|
|
+ loading.value = false;
|
|
|
+ }, 200);
|
|
|
+ });
|
|
|
};
|
|
|
getList();
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.tenant {
|
|
|
- padding: 10px;
|
|
|
-}
|
|
|
</style>
|