检查类型过滤
This commit is contained in:
parent
a63a7e474d
commit
fc170fd97b
@ -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" }}
|
||||
></Input> */}
|
||||
<DropDownPagination inputDataApi={'SK/SKCheckType/OrderPagedNew'} fieldName={'NAME'}
|
||||
<DropDownPagination inputDataApi={'SK/SKCheckType/OrderPaged'} fieldName={'NAME'} inputShowField={'Nav_ProductionUnit.NAME,NAME'}
|
||||
data={this.state.checkType} onSelect={this.handleSearch3} onFilter={({ params }) => {
|
||||
params.OrderType = 1
|
||||
params.OrgId = this.props.login.OrgId
|
||||
|
||||
Loading…
Reference in New Issue
Block a user