|
|
@ -30,17 +30,20 @@
|
|
|
|
</a-radio-group>
|
|
|
|
</a-radio-group>
|
|
|
|
<p class="message">默认打印格式为pdf,如需其他格式请选择</p>
|
|
|
|
<p class="message">默认打印格式为pdf,如需其他格式请选择</p>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item
|
|
|
|
<a-spin :spinning="loading">
|
|
|
|
label="点击选择模版将跳转打印预览页"
|
|
|
|
<a-form-item
|
|
|
|
>
|
|
|
|
label="点击选择模版将跳转打印预览页"
|
|
|
|
<a-row :gutter="15">
|
|
|
|
>
|
|
|
|
<a-col :span="12" v-for="item in modelData" :key="item.id" @click="toPrint(item.id)">
|
|
|
|
<a-row :gutter="15">
|
|
|
|
<div class="model-card">
|
|
|
|
<a-col :span="12" v-for="item in modelData" :key="item.id" @click="toPrint(item.id)">
|
|
|
|
{{ item.templateName }}
|
|
|
|
<div class="model-card">
|
|
|
|
</div>
|
|
|
|
<span class="iconfont icon-printing" :style="{ fontSize: '13px' }"></span>
|
|
|
|
</a-col>
|
|
|
|
{{ item.templateName }}
|
|
|
|
</a-row>
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-col>
|
|
|
|
|
|
|
|
</a-row>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
</a-spin>
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
</a-spin>
|
|
|
|
</a-spin>
|
|
|
|
<template #footer>
|
|
|
|
<template #footer>
|
|
|
@ -74,7 +77,9 @@
|
|
|
|
const init = (v) => {
|
|
|
|
const init = (v) => {
|
|
|
|
visible.value = true
|
|
|
|
visible.value = true
|
|
|
|
jsonDataStr.value = JSON.stringify(v)
|
|
|
|
jsonDataStr.value = JSON.stringify(v)
|
|
|
|
|
|
|
|
loading.value = true
|
|
|
|
GetOpenPrintModuleList().then(res => {
|
|
|
|
GetOpenPrintModuleList().then(res => {
|
|
|
|
|
|
|
|
loading.value = false
|
|
|
|
const { data } = res
|
|
|
|
const { data } = res
|
|
|
|
let modelId = null
|
|
|
|
let modelId = null
|
|
|
|
data.forEach(item => {
|
|
|
|
data.forEach(item => {
|
|
|
@ -87,6 +92,8 @@
|
|
|
|
modelData.value = r.data
|
|
|
|
modelData.value = r.data
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
loading.value = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -134,5 +141,8 @@
|
|
|
|
.ant-modal-footer {
|
|
|
|
.ant-modal-footer {
|
|
|
|
display: none;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.model-card:hover {
|
|
|
|
|
|
|
|
color: #4A54FF;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|