表单间距调整

szh-new
lijingjia 5 months ago
parent 51ca74d043
commit 3959c73344

@ -332,7 +332,7 @@
} }
&:not(.ant-form-item-with-help) { &:not(.ant-form-item-with-help) {
margin-bottom: 15px; margin-bottom: 10px;
} }
&.suffix-item { &.suffix-item {

@ -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>

@ -35,7 +35,7 @@ h5 {
// //
.ds-form-detail { .ds-form-detail {
.ant-form-item { .ant-form-item {
margin-bottom: 15px; margin-bottom: 10px;
} }
.ant-form-item-control-input-content { .ant-form-item-control-input-content {
white-space: nowrap; white-space: nowrap;

@ -62,7 +62,7 @@
@visibleChange="handleVisibleChange" @visibleChange="handleVisibleChange"
@confirm="openPreOrderFun" @confirm="openPreOrderFun"
> >
<button> <span class="iconfont icon-yunshu1" style="font-size: 14px"></span>舱单 </button> <button> <span class="iconfont icon-yunshu1" style="font-size: 14px"></span> 舱单 </button>
</a-popconfirm> </a-popconfirm>
<!-- <button @click="openModel('paper')"> <!-- <button @click="openModel('paper')">
<span class="iconfont icon-zhizhishu" style="font-size: 18px"></span>下货纸 <span class="iconfont icon-zhizhishu" style="font-size: 18px"></span>下货纸

Loading…
Cancel
Save