|
@@ -27,6 +27,7 @@
|
|
|
v-model="form.workOrderCode"
|
|
|
:disabled="route.name != 'ProcessMain'"
|
|
|
placeholder="Select"
|
|
|
+ filterable
|
|
|
@change="getType"
|
|
|
>
|
|
|
<el-option
|
|
@@ -90,6 +91,7 @@ import { sendMsg, getStationType } from "@/api/process";
|
|
|
import { emitter, EventsNames } from "@/utils/common";
|
|
|
import { useDictionaryStore } from "@/store";
|
|
|
import { useProcessStore } from "@/store/modules/processView";
|
|
|
+import { getOrders } from "@/api/process";
|
|
|
const dictS = useDictionaryStore();
|
|
|
const store = useProcessStore();
|
|
|
const route = useRoute();
|
|
@@ -134,12 +136,24 @@ const submit = async () => {
|
|
|
checkPop.value = false;
|
|
|
}
|
|
|
};
|
|
|
+const getOrdersData = async () => {
|
|
|
+ const { code, data } = await getOrders({
|
|
|
+ pageNo: 1,
|
|
|
+ pageSize: 999999999,
|
|
|
+ queryComplete: 0,
|
|
|
+ });
|
|
|
+ if (code == "200") {
|
|
|
+ oderList.value = data.records;
|
|
|
+ }
|
|
|
+};
|
|
|
const oderList = ref([]);
|
|
|
-emitter.on(EventsNames.ORDER_LIST, (val) => {
|
|
|
- oderList.value = val.value;
|
|
|
-});
|
|
|
+// emitter.on(EventsNames.ORDER_LIST, (val) => {
|
|
|
+// oderList.value = val.value;
|
|
|
+// });
|
|
|
defineExpose({ open });
|
|
|
-onMounted(() => {});
|
|
|
+onMounted(() => {
|
|
|
+ getOrdersData();
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|