|
@@ -1841,23 +1841,22 @@ export const useHooks = (t?: any, props?: any) => {
|
|
|
});
|
|
|
|
|
|
if (_mainData.bednettypeid !== 11) return;
|
|
|
- // let _params: any = {
|
|
|
- // bednet: bednet,
|
|
|
- // bednetMx: _bednetMx,
|
|
|
- // spring: state.vxeTableMxSpringRef?.element.getTableData().fullData ?? []
|
|
|
- // };
|
|
|
- // let res = await GetComputeSpring(_params);
|
|
|
+ let _params: any = {
|
|
|
+ bednet: bednet,
|
|
|
+ bednetMx: _bednetMx,
|
|
|
+ spring: state.vxeTableMxSpringRef?.element.getTableData().fullData ?? []
|
|
|
+ };
|
|
|
+ let res = await GetComputeSpring(_params);
|
|
|
|
|
|
// console.log("setMxSpringQtyWidthAndLength res :>> ", res);
|
|
|
- // if (!res?.message) {
|
|
|
- // row.spring_qty_width = res.bednetMx[0].spring_qty_width;
|
|
|
- // row.spring_qty_length = res.bednetMx[0].spring_qty_length;
|
|
|
+ if (!res?.message) {
|
|
|
+ // row.spring_qty_width = res.bednetMx[0].spring_qty_width;
|
|
|
+ // row.spring_qty_length = res.bednetMx[0].spring_qty_length;
|
|
|
|
|
|
- // setMxSpringWidth(row);
|
|
|
- // setMxSpringLength();
|
|
|
-
|
|
|
- // ElMessage.success("已刷新弹簧排列");
|
|
|
- // }
|
|
|
+ setMxSpringWidth(row);
|
|
|
+ setMxSpringLength();
|
|
|
+ ElMessage.success("已刷新弹簧排列");
|
|
|
+ }
|
|
|
};
|
|
|
/**
|
|
|
* @description 设置多区弹簧宽度
|