diff --git a/src/components/CustomPages/SK/SK004CheckListNew.js b/src/components/CustomPages/SK/SK004CheckListNew.js index 195e871..5cf140f 100644 --- a/src/components/CustomPages/SK/SK004CheckListNew.js +++ b/src/components/CustomPages/SK/SK004CheckListNew.js @@ -24,6 +24,7 @@ class SK004CheckListNew extends React.Component { production: {}, productionId: null, checkType: {}, + checkTypeId:null, data: {}, dataList: [], MineType: 0, @@ -205,8 +206,8 @@ class SK004CheckListNew extends React.Component { if (this.state.inputText6) { temp = temp.filter(t => t.CheckCycle == this.state.inputText6); } - if (this.state.inputText3) { - temp = temp.filter(t => t.CheckType == this.state.inputText3); + if (this.state.checkTypeId) { + temp = temp.filter(t => t.CHECK_TYPE_ID == this.state.checkTypeId); } if (this.state.inputText4) { temp = temp.filter(t => t.CheckDepart.includes(this.state.inputText4)); @@ -340,6 +341,7 @@ class SK004CheckListNew extends React.Component { ID: data[0], NAME: record?.NAME, }, + checkTypeId:record?.ID, inputText3: record?.NAME }) }; @@ -464,7 +466,7 @@ class SK004CheckListNew extends React.Component { onChange={this.handleSearch3} style={{ width: "150px" }} > */} - { params.OrderType = 1 params.OrgId = this.props.login.OrgId