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

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

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