提交 2ae40e2a authored 作者: 钟是志's avatar 钟是志

30240 [需求]【贵建学工打印】打印的样表需要按照发的原件调整  完成

上级 beac2f5a
......@@ -47,7 +47,7 @@ import {
queryApiActionPath,
queryFileUrl,
} from '@/webPublic/one_stop_public/utils/queryConfig';
import { isJSON } from '@/webPublic/zyd_public/utils/utils';
import { getIsGui_Jian, isJSON } from '@/webPublic/zyd_public/utils/utils';
import HistoryFormList from '@/webPublic/one_stop_public/DetailForAudit/HistoryFormList';
@connect()
......@@ -137,6 +137,17 @@ class DetailSplit extends Component {
this.flowExamineModal.showModal(...ags);
};
goPrintDiy = () => {
router.push({
pathname: '/xg/grade/help/PKSRD/DiyPrint',
state: {
},
query: {
code: this.state.code,
},
});
};
componentDidMount() {
this.getInit();
......@@ -389,7 +400,9 @@ class DetailSplit extends Component {
const code = e.currentTarget.dataset.codeId;
let url = window.location.href.split('#')[0];
if (code) {
window.open(url + '#' + this.props.history.location.pathname + '?code=' + code + '&showAll=false');
window.open(
url + '#' + this.props.history.location.pathname + '?code=' + code + '&showAll=false',
);
}
};
......@@ -466,11 +479,13 @@ class DetailSplit extends Component {
}}>
{isCloseFlowPath ? null : ( // 关闭流程紧急度显示
<span
style={{
style={
{
// position: 'absolute',
// left: 0,
// top: '30%',
}}>
}
}>
{isSecond ? (
<>
<span style={{ marginRight: 12 }}>
......@@ -503,7 +518,9 @@ class DetailSplit extends Component {
)}
{data.appName ? data.appName : '当前表单'}
{(isEnd || isAllPrint) && showPrint !== false ? (
{(isEnd || isAllPrint) &&
showPrint !== false &&
appId !== '1328230407929331712' && (
<>
<Popconfirm
onConfirm={() => {
......@@ -548,7 +565,8 @@ class DetailSplit extends Component {
}
okText="确定"
cancelText="取消">
{(data.isPrint == null || data.isPrint || isAllPrint) && showPrint !== false ? (
{(data.isPrint == null || data.isPrint || isAllPrint) &&
showPrint !== false ? (
<Button
style={{
position: 'absolute',
......@@ -563,8 +581,19 @@ class DetailSplit extends Component {
)}
</Popconfirm>
</>
) : (
''
)}
{appId === '1328230407929331712' &&
getIsGui_Jian() && (
<Button
onClick={this.goPrintDiy}
style={{
position: 'absolute',
right: 200,
top: '30%',
}}
type="primary">
打印预览
</Button>
)}
</div>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论