Commit 1861d60002ef1effc626cc768f7c1a22ed9f83bb

Authored by 陈鑫涛
1 parent c3149b8d

app盒型分类

src/mobile/components/SelectInput.jsx
@@ -109,6 +109,7 @@ const SelectInput = props => { @@ -109,6 +109,7 @@ const SelectInput = props => {
109 setCopyColumns(list); 109 setCopyColumns(list);
110 // getSqlDropDownData(searchValue); 110 // getSqlDropDownData(searchValue);
111 } else if ((sDropDownType = "const")) { 111 } else if ((sDropDownType = "const")) {
  112 + if (!itemDetail.showDropDown) return
112 const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({ 113 const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({
113 label: value, 114 label: value,
114 value: key, 115 value: key,
@@ -120,6 +121,7 @@ const SelectInput = props => { @@ -120,6 +121,7 @@ const SelectInput = props => {
120 if (sDropDownType === "sql") { 121 if (sDropDownType === "sql") {
121 getSqlDropDownData(searchValue); 122 getSqlDropDownData(searchValue);
122 } else if ((sDropDownType = "const")) { 123 } else if ((sDropDownType = "const")) {
  124 + if (!itemDetail.showDropDown) return
123 const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({ 125 const list = Object.entries(JSON.parse(itemDetail.showDropDown)).map(([key, value]) => ({
124 label: value, 126 label: value,
125 value: key, 127 value: key,
src/mobile/quotation/detailNew.jsx
@@ -1248,7 +1248,7 @@ const BoxComponent = props => { @@ -1248,7 +1248,7 @@ const BoxComponent = props => {
1248 sSqlCondition: "", 1248 sSqlCondition: "",
1249 sKeyUpFilterName: searchValue, 1249 sKeyUpFilterName: searchValue,
1250 pageNum: 1, 1250 pageNum: 1,
1251 - pageSize: 20, 1251 + pageSize: 1000,
1252 }; 1252 };
1253 1253
1254 commonServices.postValueService(props.app.token, body, url).then(res => { 1254 commonServices.postValueService(props.app.token, body, url).then(res => {
@@ -1271,6 +1271,7 @@ const BoxComponent = props => { @@ -1271,6 +1271,7 @@ const BoxComponent = props => {
1271 }) 1271 })
1272 ) 1272 )
1273 ); 1273 );
  1274 +
1274 // 去重 1275 // 去重
1275 const uniqueArray = boxTypeLists.filter((item, index, self) => index === self.findIndex(i => i.sBoxType === item.sBoxType)); 1276 const uniqueArray = boxTypeLists.filter((item, index, self) => index === self.findIndex(i => i.sBoxType === item.sBoxType));
1276 setBoxTypeList(uniqueArray); 1277 setBoxTypeList(uniqueArray);