Commit f29b386c50826b18554833f439982abaaf8db31f
1 parent
5102e845
1.newBill单据从表拖拽根据配置处理
Showing
1 changed file
with
3 additions
and
1 deletions
src/components/Common/CommonNewBill.js
| ... | ... | @@ -1993,6 +1993,8 @@ const BillComponent = Form.create({ |
| 1993 | 1993 | ? true |
| 1994 | 1994 | : false; /* 是否是树形的单据 */ |
| 1995 | 1995 | |
| 1996 | + const bSlaveSort = slaveConfig?.gdsconfigformslave?.find(item => item.sControlName === "handleSort")?.bVisible || false; | |
| 1997 | + | |
| 1996 | 1998 | const slaveTableProps = { |
| 1997 | 1999 | ...commonBusiness.getTableTypes("slave", props), |
| 1998 | 2000 | tableBelone: sModelsType === listType ? "list" : "" /* 新需求:做个1带N的只可查看不可编辑的表格,模块类型名:commonMultiList */, |
| ... | ... | @@ -2011,7 +2013,7 @@ const BillComponent = Form.create({ |
| 2011 | 2013 | data: bSingleTree && commonUtils.isNotEmptyArr(slaveData) ? commonUtils.genTreeByArr(slaveData, "sId", "sFatherSlaveId") : slaveData, |
| 2012 | 2014 | onTreeAddChild: props.onDataRowAddChild, |
| 2013 | 2015 | customConfig: props.customConfig, |
| 2014 | - isDragAndDrop: true, | |
| 2016 | + isDragAndDrop: bSlaveSort, | |
| 2015 | 2017 | onMoveRow: props.onMoveRow, |
| 2016 | 2018 | isSettingFunctions:true |
| 2017 | 2019 | }; | ... | ... |