检查类型过滤

This commit is contained in:
何美荣 2026-04-17 09:17:28 +08:00
parent a63a7e474d
commit fc170fd97b

View File

@ -24,6 +24,7 @@ class SK004CheckListNew extends React.Component {
production: {}, production: {},
productionId: null, productionId: null,
checkType: {}, checkType: {},
checkTypeId:null,
data: {}, data: {},
dataList: [], dataList: [],
MineType: 0, MineType: 0,
@ -205,8 +206,8 @@ class SK004CheckListNew extends React.Component {
if (this.state.inputText6) { if (this.state.inputText6) {
temp = temp.filter(t => t.CheckCycle == this.state.inputText6); temp = temp.filter(t => t.CheckCycle == this.state.inputText6);
} }
if (this.state.inputText3) { if (this.state.checkTypeId) {
temp = temp.filter(t => t.CheckType == this.state.inputText3); temp = temp.filter(t => t.CHECK_TYPE_ID == this.state.checkTypeId);
} }
if (this.state.inputText4) { if (this.state.inputText4) {
temp = temp.filter(t => t.CheckDepart.includes(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], ID: data[0],
NAME: record?.NAME, NAME: record?.NAME,
}, },
checkTypeId:record?.ID,
inputText3: record?.NAME inputText3: record?.NAME
}) })
}; };
@ -464,7 +466,7 @@ class SK004CheckListNew extends React.Component {
onChange={this.handleSearch3} onChange={this.handleSearch3}
style={{ width: "150px" }} style={{ width: "150px" }}
></Input> */} ></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 }) => { data={this.state.checkType} onSelect={this.handleSearch3} onFilter={({ params }) => {
params.OrderType = 1 params.OrderType = 1
params.OrgId = this.props.login.OrgId params.OrgId = this.props.login.OrgId