Compare commits
No commits in common. "1871f3073509b8da868c039dd63ec141ad64d34f" and "c8399336ea5af6045d2c91c9be6da455fe924cc9" have entirely different histories.
1871f30735
...
c8399336ea
@ -346,25 +346,6 @@ class FO021ShowPrint extends React.Component {
|
|||||||
: data.Nav_JobNameOut?.Nav_MonitorUser?.NAME
|
: data.Nav_JobNameOut?.Nav_MonitorUser?.NAME
|
||||||
}</td>
|
}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td colSpan={2} className={styles.fontBold}>完工验收人签字</td>
|
|
||||||
<td colSpan={8} className={styles.fontBold}>{
|
|
||||||
data.Nav_AcceptUsers && data.Nav_AcceptUsers.map((item, i) => {
|
|
||||||
if (item.DEAL_STATUS == 1) {
|
|
||||||
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
|
||||||
return <img style={{ margin: "0 0 0 8px", width: '150px' }} alt={item.Nav_User.NAME} src={config.picServerHost + item.Nav_User.FILE_PATH} />
|
|
||||||
else
|
|
||||||
return <img style={{ margin: "0 0 0 8px", width: '150px' }} title={item.Nav_User.NAME} />
|
|
||||||
}
|
|
||||||
else if (item.DEAL_STATUS == 0)
|
|
||||||
{
|
|
||||||
if (item.Nav_User != null && item.Nav_User.FILE_PATH != null)
|
|
||||||
return <label style={{ color: 'red' }} title='未签到'> {item.Nav_User.NAME}</label>
|
|
||||||
else
|
|
||||||
return item.Nav_User.NAME
|
|
||||||
}
|
|
||||||
})}</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table> : null
|
</table> : null
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,11 +18,7 @@ class SK004CheckListNew extends React.Component {
|
|||||||
inputText2:"",
|
inputText2:"",
|
||||||
inputText3:"",
|
inputText3:"",
|
||||||
inputText4:"",
|
inputText4:"",
|
||||||
inputText5:"",
|
|
||||||
inputText6:"",
|
|
||||||
depart: {},
|
depart: {},
|
||||||
production: {},
|
|
||||||
productionId:null,
|
|
||||||
checkType:{},
|
checkType:{},
|
||||||
data: {},
|
data: {},
|
||||||
dataList: [],
|
dataList: [],
|
||||||
@ -155,35 +151,35 @@ class SK004CheckListNew extends React.Component {
|
|||||||
loadData2()
|
loadData2()
|
||||||
{
|
{
|
||||||
let temp=this.state.data
|
let temp=this.state.data
|
||||||
if(this.state.productionId)
|
if(this.state.inputText)
|
||||||
{
|
{
|
||||||
// let minetype="全公司"
|
let minetype="全公司"
|
||||||
// if(this.state.inputText === "10")
|
if(this.state.inputText === "10")
|
||||||
// {
|
{
|
||||||
// minetype="选矿厂"
|
minetype="选矿厂"
|
||||||
// }
|
}
|
||||||
// if(this.state.inputText === "20")
|
if(this.state.inputText === "20")
|
||||||
// {
|
{
|
||||||
// minetype="尾矿库"
|
minetype="尾矿库"
|
||||||
// }
|
}
|
||||||
// if(this.state.inputText === "30")
|
if(this.state.inputText === "30")
|
||||||
// {
|
{
|
||||||
// minetype="露天矿"
|
minetype="露天矿"
|
||||||
// }
|
}
|
||||||
// if(this.state.inputText === "31")
|
if(this.state.inputText === "31")
|
||||||
// {
|
{
|
||||||
// minetype="职能口"
|
minetype="职能口"
|
||||||
// }
|
}
|
||||||
// if(this.state.inputText === "32")
|
if(this.state.inputText === "32")
|
||||||
// {
|
{
|
||||||
// minetype="非金属"
|
minetype="非金属"
|
||||||
// }
|
}
|
||||||
// if(this.state.inputText === "40")
|
if(this.state.inputText === "40")
|
||||||
// {
|
{
|
||||||
// minetype="地下矿"
|
minetype="地下矿"
|
||||||
// }
|
}
|
||||||
|
|
||||||
temp=temp.filter(t=>t.PRODUCTION_UNIT_ID ==this.state.productionId);
|
temp=temp.filter(t=>t.MineType ==minetype);
|
||||||
}
|
}
|
||||||
if(this.state.inputText2)
|
if(this.state.inputText2)
|
||||||
{
|
{
|
||||||
@ -206,10 +202,6 @@ class SK004CheckListNew extends React.Component {
|
|||||||
// }
|
// }
|
||||||
temp=temp.filter(t=>t.CheckLevel==this.state.inputText2);
|
temp=temp.filter(t=>t.CheckLevel==this.state.inputText2);
|
||||||
}
|
}
|
||||||
if(this.state.inputText6)
|
|
||||||
{
|
|
||||||
temp=temp.filter(t=>t.CheckCycle==this.state.inputText6);
|
|
||||||
}
|
|
||||||
if(this.state.inputText3)
|
if(this.state.inputText3)
|
||||||
{
|
{
|
||||||
temp=temp.filter(t=>t.CheckType == this.state.inputText3);
|
temp=temp.filter(t=>t.CheckType == this.state.inputText3);
|
||||||
@ -218,10 +210,6 @@ class SK004CheckListNew extends React.Component {
|
|||||||
{
|
{
|
||||||
temp=temp.filter(t=>t.CheckDepart.includes(this.state.inputText4));
|
temp=temp.filter(t=>t.CheckDepart.includes(this.state.inputText4));
|
||||||
}
|
}
|
||||||
if(this.state.inputText5)
|
|
||||||
{
|
|
||||||
temp=temp.filter(t=>t.CheckPost!=null &&t.CheckPost.includes(this.state.inputText5));
|
|
||||||
}
|
|
||||||
this.setState({dataList :temp})
|
this.setState({dataList :temp})
|
||||||
}
|
}
|
||||||
onTableBtnExport() {
|
onTableBtnExport() {
|
||||||
@ -307,22 +295,15 @@ class SK004CheckListNew extends React.Component {
|
|||||||
DetailContents:[]
|
DetailContents:[]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
handleSearch = ({data, record}) => {
|
// handleSearch = (evt) => {
|
||||||
|
// const { value } = evt.target;
|
||||||
|
// this.setState({ inputText: value ? value : "" });
|
||||||
|
// };
|
||||||
|
handleSearch=(value)=>{
|
||||||
this.setState({
|
this.setState({
|
||||||
production: {
|
inputText: value
|
||||||
...this.state.production,
|
|
||||||
PRODUCTION_UNIT_ID: data[0],
|
|
||||||
Nav_ProductionUnit: { NAME: record?.NAME },
|
|
||||||
},
|
|
||||||
inputText: record?.NAME,
|
|
||||||
productionId: record?.ID
|
|
||||||
})
|
})
|
||||||
};
|
}
|
||||||
// handleSearch=(value)=>{
|
|
||||||
// this.setState({
|
|
||||||
// inputText: value
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
// handleSearch2 = (evt) => {
|
// handleSearch2 = (evt) => {
|
||||||
// const { value } = evt.target;
|
// const { value } = evt.target;
|
||||||
// this.setState({ inputText2: value ? value : "" });
|
// this.setState({ inputText2: value ? value : "" });
|
||||||
@ -332,11 +313,6 @@ class SK004CheckListNew extends React.Component {
|
|||||||
inputText2: value
|
inputText2: value
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
handleSearch6=(value)=>{
|
|
||||||
this.setState({
|
|
||||||
inputText6: value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
handleSearch3 = ({data, record}) => {
|
handleSearch3 = ({data, record}) => {
|
||||||
// const { value } = evt.target;
|
// const { value } = evt.target;
|
||||||
// this.setState({ inputText3: value ? value : "" });
|
// this.setState({ inputText3: value ? value : "" });
|
||||||
@ -354,11 +330,6 @@ class SK004CheckListNew extends React.Component {
|
|||||||
inputText4: e.target.value
|
inputText4: e.target.value
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
handleSearch5=(e)=>{
|
|
||||||
this.setState({
|
|
||||||
inputText5: e.target.value
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// handleSearch4 = ({data, record}) => {
|
// handleSearch4 = ({data, record}) => {
|
||||||
// this.setState({
|
// this.setState({
|
||||||
// depart: {
|
// depart: {
|
||||||
@ -415,7 +386,8 @@ class SK004CheckListNew extends React.Component {
|
|||||||
label={'生产单元'}
|
label={'生产单元'}
|
||||||
{...formItemLayout}
|
{...formItemLayout}
|
||||||
>
|
>
|
||||||
{/* <Select
|
<Select
|
||||||
|
// defaultValue="风险管理"
|
||||||
style={{width:'180px'}}
|
style={{width:'180px'}}
|
||||||
allowClear
|
allowClear
|
||||||
onChange={this.handleSearch}
|
onChange={this.handleSearch}
|
||||||
@ -427,13 +399,11 @@ class SK004CheckListNew extends React.Component {
|
|||||||
<Option value="32">非金属</Option>
|
<Option value="32">非金属</Option>
|
||||||
<Option value="31">职能口</Option>
|
<Option value="31">职能口</Option>
|
||||||
<Option value="40">地下矿</Option>
|
<Option value="40">地下矿</Option>
|
||||||
</Select> */}
|
</Select>
|
||||||
<DropDownPagination inputDataApi={'FM/UserProductionUnitSet/OrderPaged'} fieldName={'Nav_ProductionUnit.NAME'}
|
{/* <Input
|
||||||
data={this.state.production} onSelect={this.handleSearch} onFilter={({ params }) => {
|
onChange={this.handleSearch}
|
||||||
params.OrderType = 1
|
style={{ width: "150px" }}
|
||||||
// params.Keyword = this.state.inputText3
|
></Input> */}
|
||||||
params.OrgId = this.props.login.OrgId
|
|
||||||
}} />
|
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
</Col>
|
</Col>
|
||||||
@ -479,25 +449,6 @@ class SK004CheckListNew extends React.Component {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={5} style={{ marginLeft: "10px" }}>
|
|
||||||
<Form.Item
|
|
||||||
label={'检查周期'}
|
|
||||||
{...formItemLayout}
|
|
||||||
>
|
|
||||||
<Select
|
|
||||||
allowClear
|
|
||||||
style={{width:'180px'}}
|
|
||||||
onChange={this.handleSearch6}
|
|
||||||
>
|
|
||||||
<Option value="每天">每天</Option>
|
|
||||||
<Option value="每周">每周</Option>
|
|
||||||
<Option value="每月">每月</Option>
|
|
||||||
<Option value="每季度">每季度</Option>
|
|
||||||
<Option value="每半年">每半年</Option>
|
|
||||||
<Option value="每年">每年</Option>
|
|
||||||
</Select>
|
|
||||||
</Form.Item>
|
|
||||||
</Col>
|
|
||||||
<Col span={5} style={{ marginLeft: "10px" }}>
|
<Col span={5} style={{ marginLeft: "10px" }}>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label={'检查部门'}
|
label={'检查部门'}
|
||||||
@ -514,17 +465,6 @@ class SK004CheckListNew extends React.Component {
|
|||||||
params.OrgId = this.props.login.OrgId
|
params.OrgId = this.props.login.OrgId
|
||||||
}} /> */}
|
}} /> */}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Col>
|
|
||||||
<Col span={5} style={{ marginLeft: "10px" }}>
|
|
||||||
<Form.Item
|
|
||||||
label={'检查对象'}
|
|
||||||
{...formItemLayout}
|
|
||||||
>
|
|
||||||
<Input
|
|
||||||
onChange={this.handleSearch5}
|
|
||||||
style={{ width: "150px" }}
|
|
||||||
></Input>
|
|
||||||
</Form.Item>
|
|
||||||
|
|
||||||
</Col>
|
</Col>
|
||||||
<Col span={1} style={{ marginLeft: "20px" }}><Button type='primary' onClick={() => this.loadData2()}>查询</Button></Col>
|
<Col span={1} style={{ marginLeft: "20px" }}><Button type='primary' onClick={() => this.loadData2()}>查询</Button></Col>
|
||||||
|
|||||||
@ -158,7 +158,6 @@ class SK010ShowPrint extends React.Component {
|
|||||||
<td className={stylesStep.fontBold}>隐患描述</td>
|
<td className={stylesStep.fontBold}>隐患描述</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
||||||
<td className={stylesStep.fontBold}>隐患原因</td>
|
|
||||||
<td className={stylesStep.fontBold}>隐患照片</td>
|
<td className={stylesStep.fontBold}>隐患照片</td>
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
@ -225,16 +224,6 @@ class SK010ShowPrint extends React.Component {
|
|||||||
item.HIDDEN_PLACE
|
item.HIDDEN_PLACE
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{
|
|
||||||
item?.Nav_CheckRecordDetailReasons && item?.Nav_CheckRecordDetailReasons.map((item2, i) => {
|
|
||||||
|
|
||||||
return <a>{(i > 0 ? "," : "") + item2.Nav_Reason.NAME}</a>
|
|
||||||
|
|
||||||
// return <tr><label> {item2.Nav_User?.NAME}</label></tr>
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{
|
{
|
||||||
showFiles(item?.Nav_CheckRecordDetailFiles, config.picServerHost, this)
|
showFiles(item?.Nav_CheckRecordDetailFiles, config.picServerHost, this)
|
||||||
|
|||||||
@ -179,7 +179,6 @@ class SK012ShowPrint extends React.Component {
|
|||||||
<td className={stylesStep.fontBold}>隐患描述</td>
|
<td className={stylesStep.fontBold}>隐患描述</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
||||||
<td className={stylesStep.fontBold}>隐患原因</td>
|
|
||||||
<td className={stylesStep.fontBold}>隐患照片</td>
|
<td className={stylesStep.fontBold}>隐患照片</td>
|
||||||
</tr>
|
</tr>
|
||||||
{
|
{
|
||||||
@ -246,16 +245,6 @@ class SK012ShowPrint extends React.Component {
|
|||||||
item.HIDDEN_PLACE
|
item.HIDDEN_PLACE
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{
|
|
||||||
item?.Nav_CheckRecordDetailReasons && item?.Nav_CheckRecordDetailReasons.map((item2, i) => {
|
|
||||||
|
|
||||||
return <a>{(i > 0 ? "," : "") + item2.Nav_Reason.NAME}</a>
|
|
||||||
|
|
||||||
// return <tr><label> {item2.Nav_User?.NAME}</label></tr>
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{
|
{
|
||||||
showFiles(item?.Nav_CheckRecordDetailFiles, config.picServerHost, this)
|
showFiles(item?.Nav_CheckRecordDetailFiles, config.picServerHost, this)
|
||||||
|
|||||||
@ -154,7 +154,6 @@ class SK014ShowPrint extends React.Component {
|
|||||||
<td className={stylesStep.fontBold}>隐患描述</td>
|
<td className={stylesStep.fontBold}>隐患描述</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
||||||
<td className={stylesStep.fontBold}>隐患原因</td>
|
|
||||||
<td width='10%' className={stylesStep.fontBold}>整改责任人</td>
|
<td width='10%' className={stylesStep.fontBold}>整改责任人</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>整改期限</td>
|
<td width='10%' className={stylesStep.fontBold}>整改期限</td>
|
||||||
<td className={stylesStep.fontBold}>隐患照片</td>
|
<td className={stylesStep.fontBold}>隐患照片</td>
|
||||||
@ -190,16 +189,6 @@ class SK014ShowPrint extends React.Component {
|
|||||||
{
|
{
|
||||||
item.HIDDEN_PLACE
|
item.HIDDEN_PLACE
|
||||||
}
|
}
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{
|
|
||||||
item?.Nav_ReportDetailReasons && item?.Nav_ReportDetailReasons.map((item2, i) => {
|
|
||||||
|
|
||||||
return <a>{(i > 0 ? "," : "") + item2.Nav_Reason.NAME}</a>
|
|
||||||
|
|
||||||
// return <tr><label> {item2.Nav_User?.NAME}</label></tr>
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -38,23 +38,7 @@ class SK018ShowPrint extends React.Component {
|
|||||||
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||||
this.props.data.onCancel();
|
this.props.data.onCancel();
|
||||||
}
|
}
|
||||||
onTableBtnAgree() {
|
|
||||||
this.props.dispatch({
|
|
||||||
type: 'app/getDataByPost',
|
|
||||||
url: 'SK/SKHiddenDangerConfirm/IdentityUpdate',
|
|
||||||
payload: {
|
|
||||||
ID: this.props.data.id,
|
|
||||||
TaskID: this.props.data.TaskID,
|
|
||||||
},
|
|
||||||
onComplete: (ret) => {
|
|
||||||
if (ret) {
|
|
||||||
message.success('确认成功!');
|
|
||||||
this.setState({ BtnAgreeDisplay: 'none' })
|
|
||||||
this.BtnClose();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
loadData = (dataId, taskID) => {
|
loadData = (dataId, taskID) => {
|
||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
extendRule(json, 'ID', 1, dataId);
|
extendRule(json, 'ID', 1, dataId);
|
||||||
@ -133,7 +117,6 @@ class SK018ShowPrint extends React.Component {
|
|||||||
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
pageStyle=".printDIV { padding:0 40px;} img{width :120px}"
|
||||||
/>
|
/>
|
||||||
<Button style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
<Button style={{ marginLeft: '8px', display: data && data.STATUS === 30 ? "inline" : "none" }} onClick={() => this.onTableBtnExport()} icon="export" >导出</Button>
|
||||||
<Button type="primary" style={{ marginLeft: '8px', display: this.state.BtnAgreeDisplay }} onClick={() => this.onTableBtnAgree()} icon="check" >确认</Button>
|
|
||||||
</div>
|
</div>
|
||||||
<div ref={el => (this.componentRef = el)} style={{ padding: '20px' }} id={'tableId' + this.props.data.id}>
|
<div ref={el => (this.componentRef = el)} style={{ padding: '20px' }} id={'tableId' + this.props.data.id}>
|
||||||
<h1 style={{ textAlign: 'center', margin: '15px' }}>隐患确认单</h1>
|
<h1 style={{ textAlign: 'center', margin: '15px' }}>隐患确认单</h1>
|
||||||
@ -164,20 +147,10 @@ class SK018ShowPrint extends React.Component {
|
|||||||
<Descriptions.Item label="系统隐患描述">{data.Nav_Question?.DESCREPTION}</Descriptions.Item>
|
<Descriptions.Item label="系统隐患描述">{data.Nav_Question?.DESCREPTION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="隐患等级">{enums.SKHiddenLevel.enums[data.HIDDEN_LEVEL]}</Descriptions.Item>
|
<Descriptions.Item label="隐患等级">{enums.SKHiddenLevel.enums[data.HIDDEN_LEVEL]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="整改措施">{data.RECTIFICATION_MEASURES}</Descriptions.Item>
|
<Descriptions.Item label="整改措施">{data.RECTIFICATION_MEASURES}</Descriptions.Item>
|
||||||
<Descriptions.Item label="隐患原因">{
|
|
||||||
data?.Nav_Reasons && data?.Nav_Reasons.map((item2, i) => {
|
|
||||||
|
|
||||||
return <a>{(i > 0 ? "," : "") + item2.Nav_Reason.NAME}</a>
|
|
||||||
|
|
||||||
// return <tr><label> {item2.Nav_User?.NAME}</label></tr>
|
|
||||||
})
|
|
||||||
}</Descriptions.Item>
|
|
||||||
{/* <Descriptions.Item label="检查层级">{enums.FMDepartmentType.enums[data.DEPARTMENT_TYPE]}</Descriptions.Item>
|
{/* <Descriptions.Item label="检查层级">{enums.FMDepartmentType.enums[data.DEPARTMENT_TYPE]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="检查类型">{data.Nav_CheckType ? data.Nav_CheckType.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="检查类型">{data.Nav_CheckType ? data.Nav_CheckType.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="检查周期">{enums.BSPLANCHECKFREQUENCYEnum.enums[data.PLANCHECKFREQUENCY]}</Descriptions.Item> */}
|
<Descriptions.Item label="检查周期">{enums.BSPLANCHECKFREQUENCYEnum.enums[data.PLANCHECKFREQUENCY]}</Descriptions.Item> */}
|
||||||
<Descriptions.Item label="整改责任人">{ data.STATUS == 30 && data.Nav_RecitifyUser && data.Nav_RecitifyUser.FILE_PATH ?
|
<Descriptions.Item label="整改责任人">{data.Nav_RecitifyUser ? data.Nav_RecitifyUser.NAME : ''}</Descriptions.Item>
|
||||||
showUserSign(data.Nav_RecitifyUser, config.picServerHost)
|
|
||||||
: data.Nav_RecitifyUser ? data.Nav_RecitifyUser.NAME : ''}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="整改期限">{moment(data.RECITIFY_TIME).format('YYYY-MM-DD')}</Descriptions.Item>
|
<Descriptions.Item label="整改期限">{moment(data.RECITIFY_TIME).format('YYYY-MM-DD')}</Descriptions.Item>
|
||||||
<Descriptions.Item label="附件">{
|
<Descriptions.Item label="附件">{
|
||||||
showFiles(data?.Nav_Files, config.picServerHost, this)
|
showFiles(data?.Nav_Files, config.picServerHost, this)
|
||||||
|
|||||||
@ -154,7 +154,6 @@ class SK020ShowPrint extends React.Component {
|
|||||||
<td className={stylesStep.fontBold}>隐患描述</td>
|
<td className={stylesStep.fontBold}>隐患描述</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患等级</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
<td width='10%' className={stylesStep.fontBold}>隐患地点</td>
|
||||||
<td className={stylesStep.fontBold}>隐患原因</td>
|
|
||||||
<td width='10%' className={stylesStep.fontBold}>整改措施</td>
|
<td width='10%' className={stylesStep.fontBold}>整改措施</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>整改期限</td>
|
<td width='10%' className={stylesStep.fontBold}>整改期限</td>
|
||||||
<td width='10%' className={stylesStep.fontBold}>整改落实人</td>
|
<td width='10%' className={stylesStep.fontBold}>整改落实人</td>
|
||||||
@ -192,16 +191,6 @@ class SK020ShowPrint extends React.Component {
|
|||||||
item.HIDDEN_PLACE
|
item.HIDDEN_PLACE
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{
|
|
||||||
item?.Nav_RectifyDetailReasons && item?.Nav_RectifyDetailReasons.map((item2, i) => {
|
|
||||||
|
|
||||||
return <a>{(i > 0 ? "," : "") + item2.Nav_Reason.NAME}</a>
|
|
||||||
|
|
||||||
// return <tr><label> {item2.Nav_User?.NAME}</label></tr>
|
|
||||||
})
|
|
||||||
}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{
|
{
|
||||||
item.RECTIFICATION_MEASURES
|
item.RECTIFICATION_MEASURES
|
||||||
|
|||||||
@ -122,14 +122,6 @@ class SK022ShowPrint extends React.Component {
|
|||||||
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
<Descriptions.Item label="生产单元">{data.Nav_ProductionUnit?.NAME}</Descriptions.Item>
|
||||||
<Descriptions.Item label="检查区域">{data.Nav_RiskArea ? data.Nav_RiskArea.NAME : ''}</Descriptions.Item>
|
<Descriptions.Item label="检查区域">{data.Nav_RiskArea ? data.Nav_RiskArea.NAME : ''}</Descriptions.Item>
|
||||||
<Descriptions.Item label="隐患地点">{data.HIDDEN_PLACE}</Descriptions.Item>
|
<Descriptions.Item label="隐患地点">{data.HIDDEN_PLACE}</Descriptions.Item>
|
||||||
<Descriptions.Item label="隐患原因">{
|
|
||||||
data?.Nav_RectifyReasons && data?.Nav_RectifyReasons.map((item2, i) => {
|
|
||||||
|
|
||||||
return <a>{(i > 0 ? "," : "") + item2.Nav_Reason.NAME}</a>
|
|
||||||
|
|
||||||
// return <tr><label> {item2.Nav_User?.NAME}</label></tr>
|
|
||||||
})
|
|
||||||
}</Descriptions.Item>
|
|
||||||
<Descriptions.Item label="隐患描述">{data.Nav_Question?.DESCREPTION?data.Nav_Question.DESCREPTION:data.HIDDEN_DESCRIPTION}</Descriptions.Item>
|
<Descriptions.Item label="隐患描述">{data.Nav_Question?.DESCREPTION?data.Nav_Question.DESCREPTION:data.HIDDEN_DESCRIPTION}</Descriptions.Item>
|
||||||
<Descriptions.Item label="隐患等级">{enums.SKHiddenLevel.enums[data.HIDDEN_LEVEL]}</Descriptions.Item>
|
<Descriptions.Item label="隐患等级">{enums.SKHiddenLevel.enums[data.HIDDEN_LEVEL]}</Descriptions.Item>
|
||||||
<Descriptions.Item label="整改措施">{data.RECTIFICATION_MEASURES}</Descriptions.Item>
|
<Descriptions.Item label="整改措施">{data.RECTIFICATION_MEASURES}</Descriptions.Item>
|
||||||
|
|||||||
@ -15,7 +15,7 @@ export default {
|
|||||||
onBeforeEdit(params){
|
onBeforeEdit(params){
|
||||||
const { isNew, isCopy, dispatch, login, setFieldValue,data, stateData ,getFieldValue} = params ? params : {};
|
const { isNew, isCopy, dispatch, login, setFieldValue,data, stateData ,getFieldValue} = params ? params : {};
|
||||||
|
|
||||||
if (isNew) {
|
if (isNew) {debugger
|
||||||
setFieldValue('MineType', login.currentMineType);
|
setFieldValue('MineType', login.currentMineType);
|
||||||
let json = initFilter(login.OrgId);
|
let json = initFilter(login.OrgId);
|
||||||
extendRule(json, 'ID', 1, login.user.DEPARTMENT_ID);
|
extendRule(json, 'ID', 1, login.user.DEPARTMENT_ID);
|
||||||
|
|||||||
@ -1,40 +0,0 @@
|
|||||||
import { message } from "antd/lib/index";
|
|
||||||
import { getPropertyData, extendInclude,extendIgnoreDataRule, extendRule, getDataFieldValue, setDataFieldValue, initFilter, guid } from "../../utils/common";
|
|
||||||
import moment from 'moment';
|
|
||||||
import { Button, Row, Col, Form, Input, Select, Upload, Icon, Modal, Spin,Table } from 'antd';
|
|
||||||
/**
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
// 编辑
|
|
||||||
export default {
|
|
||||||
onBeforeSaveHandleRecord(params) {
|
|
||||||
params.record.TaskID = params.data.TaskID //TaskID传递消息表ID
|
|
||||||
params.record.PUBLISH = params.customParams;
|
|
||||||
// params.record.FORM_CODE = params.data.reloadKey.substring(0,params.data.reloadKey.indexOf("_"));
|
|
||||||
},
|
|
||||||
onBeforeEdit(params){
|
|
||||||
const { isNew, isCopy, dispatch, login, setFieldValue,data, stateData ,getFieldValue} = params ? params : {};
|
|
||||||
|
|
||||||
if (isNew) {
|
|
||||||
setFieldValue('MineType', login.currentMineType);
|
|
||||||
let json = initFilter(login.OrgId);
|
|
||||||
extendRule(json, 'ID', 1, login.user.DEPARTMENT_ID);
|
|
||||||
extendInclude(json, 'Nav_Unit')
|
|
||||||
extendIgnoreDataRule(json)
|
|
||||||
dispatch({
|
|
||||||
type: 'app/getDataByPost',
|
|
||||||
url: 'FM/Department/Get',
|
|
||||||
payload: json,
|
|
||||||
onlyData: false,
|
|
||||||
onComplete: (re) => {
|
|
||||||
if (re && re.IsSuccessful && re.Data) {
|
|
||||||
setFieldValue('Nav_ProdutionUnit.NAME', re.Data?.Nav_Unit?.NAME);
|
|
||||||
setFieldValue('PRODUCTION_UNIT_ID', re.Data.PRODUCTION_UNIT_ID);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,37 +0,0 @@
|
|||||||
import { message } from "antd/lib/index";
|
|
||||||
import { getPropertyData, extendInclude, extendRule, getDataFieldValue, setDataFieldValue, initFilter, guid } from "../../utils/common";
|
|
||||||
import moment from 'moment';
|
|
||||||
import config from "../../config.js"
|
|
||||||
import storage from '../../utils/storage'
|
|
||||||
import { Button, Row, Col, Form, Input, Select, Upload, Icon, Modal, Spin,Table } from 'antd';
|
|
||||||
/**
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
// 编辑
|
|
||||||
export default {
|
|
||||||
onBeforeSaveHandleRecord(params) {
|
|
||||||
params.record.TaskID = params.data.TaskID //TaskID传递消息表ID
|
|
||||||
params.record.PUBLISH = params.customParams;
|
|
||||||
// params.record.FORM_CODE = params.data.reloadKey.substring(0,params.data.reloadKey.indexOf("_"));
|
|
||||||
},
|
|
||||||
onBeforeEdit(params) {
|
|
||||||
const { isNew, dispatch, login, setFieldValueByBatch, setFieldEditable, setFieldVisible,stateData } = params ? params : {};
|
|
||||||
if (isNew) {
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(stateData.HIDDEN_DANGER_CONFIRM_ID && stateData.HIDDEN_DANGER_CONFIRM_ID!==null)
|
|
||||||
{
|
|
||||||
setFieldVisible("Nav_CheckType.NAME", false);
|
|
||||||
setFieldVisible("PLANCHECKFREQUENCY", false);
|
|
||||||
setFieldVisible("DEPARTMENT_TYPE", false);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{setFieldVisible("Nav_CheckType.NAME", true);
|
|
||||||
setFieldVisible("PLANCHECKFREQUENCY", true);
|
|
||||||
setFieldVisible("DEPARTMENT_TYPE", true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@ -1,32 +0,0 @@
|
|||||||
import { message } from "antd/lib/index";
|
|
||||||
import { getPropertyData, extendInclude, extendRule, getDataFieldValue, setDataFieldValue, initFilter, guid } from "../../utils/common";
|
|
||||||
import moment from 'moment';
|
|
||||||
import config from "../../config.js"
|
|
||||||
import storage from '../../utils/storage'
|
|
||||||
import { Button, Row, Col, Form, Input, Select, Upload, Icon, Modal, Spin,Table } from 'antd';
|
|
||||||
/**
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
// 编辑
|
|
||||||
export default {
|
|
||||||
onBeforeSaveHandleRecord(params) {
|
|
||||||
params.record.TaskID = params.data.TaskID //TaskID传递消息表ID
|
|
||||||
params.record.PUBLISH = params.customParams;
|
|
||||||
// params.record.FORM_CODE = params.data.reloadKey.substring(0,params.data.reloadKey.indexOf("_"));
|
|
||||||
},
|
|
||||||
onBeforeEdit(params) {
|
|
||||||
const { isNew, dispatch, login, setFieldValueByBatch, setFieldEditable, setFieldVisible,stateData } = params ? params : {};
|
|
||||||
if (isNew) {
|
|
||||||
setFieldVisible("CONTEXT", false);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if(stateData.STATUS === 40)
|
|
||||||
{
|
|
||||||
setFieldVisible("CONTEXT", true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{setFieldVisible("CONTEXT", false);}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user