liuhairui hace 1 año
padre
commit
e8df10f3c0
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      src/view/yunyin/shengchanguanli/gongdanshengchan.vue

+ 7 - 7
src/view/yunyin/shengchanguanli/gongdanshengchan.vue

@@ -1351,14 +1351,9 @@ const pd_gdprintonClick = () => {
 const oncjsbpcClick = async () => {
   cjsbpcformData['sbdh'] = _machine.value;
   paichengData.value = [];
-  await _EquipmentSchedulingdata();
-  await _ScheduleSelectiondata();
+   _EquipmentSchedulingdata();
+   _ScheduleSelectiondata();
 
-  paichengData.value.map((item, index) => {
-    item['优先次序'] = 50 + index
-  })
-
-  handleDataSortAndSettingDate()
   cjsbpclist.value = true;
 };
 //调用班次选择列表接口
@@ -1402,6 +1397,11 @@ const _EquipmentSchedulingdata = async ()=>{
     console.log(EquipmentSchedulingdata)
     if (EquipmentSchedulingdata.code === 0) {
       paichengData.value = EquipmentSchedulingdata.data
+      paichengData.value.map((item, index) => {
+        item['优先次序'] = 50 + index
+      })
+
+      handleDataSortAndSettingDate()
     }
   } catch (error) {
     console.error(error);