feat: 表单打印时包含流转信息

master
ssc 3 years ago
parent 51d66cce1e
commit 6e4d3d4cc2
  1. 3
      src/views/plugin/workflow/mixins/ex-form.js
  2. 7
      src/views/plugin/workflow/process/components/detail.vue

@ -24,6 +24,7 @@ export default {
bpmnOption: {}, // 流程图配置信息 bpmnOption: {}, // 流程图配置信息
defaultChecked: '', // 人员选择默认选中 defaultChecked: '', // 人员选择默认选中
waiting: true, // 骨架屏加载中 waiting: true, // 骨架屏加载中
isPrintShow: false, // 是否打印显示
} }
}, },
methods: { methods: {
@ -413,6 +414,7 @@ export default {
}) })
}) })
} }
this.isPrintShow = true
setTimeout(() => { setTimeout(() => {
loading.close() loading.close()
// const watermarkText = this.userInfo.user_name + " " + this.userInfo.dept_name // const watermarkText = this.userInfo.user_name + " " + this.userInfo.dept_name
@ -421,6 +423,7 @@ export default {
this.option = option this.option = option
this.summaryOption = summaryOption this.summaryOption = summaryOption
Watermark.remove() // 删除水印 Watermark.remove() // 删除水印
this.isPrintShow = false
}, 500) }, 500)
}, },
// 生成打印临时option // 生成打印临时option

@ -34,6 +34,13 @@
:option="option" :option="option"
:upload-preview="handleUploadPreview"> :upload-preview="handleUploadPreview">
</avue-form> </avue-form>
<el-card shadow="never"
style="margin-top: 5px;"
header="流转信息"
:body-style="{padding: '20px 0'}"
v-if="isPrintShow">
<wf-flow :flow="flow"></wf-flow>
</el-card>
</div> </div>
</el-card> </el-card>
<el-card shadow="never" <el-card shadow="never"

Loading…
Cancel
Save