|
@@ -23,8 +23,7 @@
|
|
},
|
|
},
|
|
]"
|
|
]"
|
|
@get-list="getList"
|
|
@get-list="getList"
|
|
- @clickReset="clickReset"
|
|
|
|
- @changeRadioGroup="changeRadioGroup">
|
|
|
|
|
|
+ @clickReset="clickReset">
|
|
<template #code="{ item }">
|
|
<template #code="{ item }">
|
|
<div>
|
|
<div>
|
|
<a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickCode(item)">{{ item.code }}</a>
|
|
<a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickCode(item)">{{ item.code }}</a>
|
|
@@ -67,7 +66,6 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
import byTable from "/src/components/byTable/index";
|
|
import byTable from "/src/components/byTable/index";
|
|
-import { getNearDays } from "/src/utils/util";
|
|
|
|
import QRCode from "qrcodejs2-fix";
|
|
import QRCode from "qrcodejs2-fix";
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
import { ElMessage, ElMessageBox } from "element-plus";
|
|
import CycleBarcode from "/src/components/CycleBarcode";
|
|
import CycleBarcode from "/src/components/CycleBarcode";
|
|
@@ -86,9 +84,6 @@ const sourceList = ref({
|
|
bomSpecCode: "",
|
|
bomSpecCode: "",
|
|
bomSpecName: "",
|
|
bomSpecName: "",
|
|
productionWorkOrderCode: "",
|
|
productionWorkOrderCode: "",
|
|
- beginTime: "",
|
|
|
|
- endTime: "",
|
|
|
|
- type: 3,
|
|
|
|
},
|
|
},
|
|
});
|
|
});
|
|
const loading = ref(false);
|
|
const loading = ref(false);
|
|
@@ -129,30 +124,6 @@ const searchConfig = computed(() => {
|
|
prop: "productionWorkOrderCode",
|
|
prop: "productionWorkOrderCode",
|
|
label: "工单号",
|
|
label: "工单号",
|
|
},
|
|
},
|
|
- {
|
|
|
|
- type: "radio-group",
|
|
|
|
- prop: "type",
|
|
|
|
- label: "交期",
|
|
|
|
- data: [
|
|
|
|
- {
|
|
|
|
- dictKey: 1,
|
|
|
|
- dictValue: "近3天",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- dictKey: 3,
|
|
|
|
- dictValue: "近7天",
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- dictKey: 15,
|
|
|
|
- dictValue: "近31天",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- type: "date",
|
|
|
|
- propList: ["beginTime", "endTime"],
|
|
|
|
- label: "日期",
|
|
|
|
- },
|
|
|
|
];
|
|
];
|
|
});
|
|
});
|
|
const config = computed(() => {
|
|
const config = computed(() => {
|
|
@@ -268,9 +239,6 @@ const getList = async (req, status) => {
|
|
sourceList.value.pagination = {
|
|
sourceList.value.pagination = {
|
|
pageNum: sourceList.value.pagination.pageNum,
|
|
pageNum: sourceList.value.pagination.pageNum,
|
|
pageSize: sourceList.value.pagination.pageSize,
|
|
pageSize: sourceList.value.pagination.pageSize,
|
|
- type: 3,
|
|
|
|
- beginTime: getNearDays(3).beginTime,
|
|
|
|
- endTime: getNearDays(3).endTime,
|
|
|
|
};
|
|
};
|
|
} else {
|
|
} else {
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
@@ -300,13 +268,10 @@ const getList = async (req, status) => {
|
|
}, 200);
|
|
}, 200);
|
|
});
|
|
});
|
|
};
|
|
};
|
|
-getList({ beginTime: getNearDays(3).beginTime, endTime: getNearDays(3).endTime });
|
|
|
|
|
|
+getList();
|
|
const clickReset = () => {
|
|
const clickReset = () => {
|
|
getList("", true);
|
|
getList("", true);
|
|
};
|
|
};
|
|
-const changeRadioGroup = () => {
|
|
|
|
- getList({ beginTime: getNearDays(sourceList.value.pagination.type).beginTime, endTime: getNearDays(sourceList.value.pagination.type).endTime });
|
|
|
|
-};
|
|
|
|
const clickCode = (row) => {
|
|
const clickCode = (row) => {
|
|
proxy.$router.replace({
|
|
proxy.$router.replace({
|
|
path: "/addOrder",
|
|
path: "/addOrder",
|