Просмотр исходного кода

Merge branch '合并生产工单' into 测试

lxf 1 год назад
Родитель
Сommit
f094834963
1 измененных файлов с 2 добавлено и 37 удалено
  1. 2 37
      src/views/production/schedule/production-work-order/index.vue

+ 2 - 37
src/views/production/schedule/production-work-order/index.vue

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