diff --git a/src/mobile/components/SelectInput.jsx b/src/mobile/components/SelectInput.jsx index 2b5b037..11e2c0f 100644 --- a/src/mobile/components/SelectInput.jsx +++ b/src/mobile/components/SelectInput.jsx @@ -109,6 +109,7 @@ const SelectInput = props => { setCopyColumns(list); // getSqlDropDownData(searchValue); } else if ((sDropDownType = "const")) { + if (!itemDetail.showDropDown) return const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({ label: value, value: key, @@ -120,6 +121,7 @@ const SelectInput = props => { if (sDropDownType === "sql") { getSqlDropDownData(searchValue); } else if ((sDropDownType = "const")) { + if (!itemDetail.showDropDown) return const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({ label: value, value: key, diff --git a/src/mobile/quotation/detailNew.jsx b/src/mobile/quotation/detailNew.jsx index 8d7fd68..062d723 100644 --- a/src/mobile/quotation/detailNew.jsx +++ b/src/mobile/quotation/detailNew.jsx @@ -1248,7 +1248,7 @@ const BoxComponent = props => { sSqlCondition: "", sKeyUpFilterName: searchValue, pageNum: 1, - pageSize: 20, + pageSize: 1000, }; commonServices.postValueService(props.app.token, body, url).then(res => { @@ -1271,6 +1271,7 @@ const BoxComponent = props => { }) ) ); + // 去重 const uniqueArray = boxTypeLists.filter((item, index, self) => index === self.findIndex(i => i.sBoxType === item.sBoxType)); setBoxTypeList(uniqueArray);