Jelajahi Sumber

修改定尺

zhangafei 2 minggu lalu
induk
melakukan
6028061d60

+ 3 - 3
src/views/billet/operator/components/car.vue

@@ -384,9 +384,7 @@
   };
 
   const tabChange = (key) => {
-    printCarInfoRefs[`infoRef${key}`] &&
-      printCarInfoRefs[`infoRef${key}`].value &&
-      printCarInfoRefs[`infoRef${key}`].value[0].getTableList();
+    printCarInfoRefs[`infoRef${key}`] && printCarInfoRefs[`infoRef${key}`].value && printCarInfoRefs[`infoRef${key}`].value[0].getTableList();
   };
 
   const handleStackClick = (v) => {
@@ -467,6 +465,8 @@
   });
 
   const refreshCarList = () => {
+    selectedAddressId.value = [];
+    selectedAddress.value = [];
     stop();
     getInfo();
   };

+ 11 - 2
src/views/billet/operator/components/heatList.vue

@@ -126,7 +126,15 @@
   import { BasicTable, TableAction, ActionItem } from '/@/components/Table';
   import { useListPage } from '/@/hooks/system/useListPage';
   import { getColumns, renderStrandCell } from '../operator.data';
-  import { queryHeatsActualsByCcmNo, addHotCharge, stackingUpAdd, changeDefiningLength, changeStrandLength, addBilletBasic } from '../operator.api';
+  import {
+    queryHeatsActualsByCcmNo,
+    addHotCharge,
+    stackingUpAdd,
+    changeDefiningLength,
+    changeStrandLength,
+    addBilletBasic,
+    addHeatBillet,
+  } from '../operator.api';
   import { h, onMounted, onUnmounted, ref, watch } from 'vue';
   import { mapTableTotalSummary } from '/@/utils/common/compUtils';
   import { useTimeoutFn } from '/@/hooks/core/useTimeout';
@@ -372,7 +380,8 @@
         }
       });
 
-      await addBilletBasic(params);
+      const fetchFn = isAllHeat.value ? addHeatBillet : addBilletBasic;
+      await fetchFn(params);
       reload();
       closeCompensateModal();
       okLoading.value = false;

+ 7 - 0
src/views/billet/operator/operator.api.ts

@@ -19,6 +19,8 @@ enum Api {
   changeStrandLength = '/storageBill/editBilletBasicInfoLength',
   // 增加钢坯
   addBilletBasic = '/actualControl/billetActual/addBilletBasic',
+  // 整炉增加钢坯
+  addHeatBillet = '/billetHotsendBase/billetHotsendBase/addBilletBasic',
 }
 
 // 炉次信息
@@ -65,3 +67,8 @@ export const changeStrandLength = (params: any) => {
 export const addBilletBasic = (params: any) => {
   return defHttp.post({ url: Api.addBilletBasic, params });
 };
+
+// 整炉增加钢坯
+export const addHeatBillet = (params: any) => {
+  return defHttp.post({ url: Api.addHeatBillet, params });
+};