feat(wms): 添加实际库区查询并优化仓库选择组件
refactor: 移除无用代码并优化标签打印样式
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div class="label-container" :style="{ '--print-scale': printScale }">
|
||||
<!-- 顶部公司信息 -->
|
||||
<div class="label-box">
|
||||
<!-- 顶部公司信息 -->
|
||||
<div class="company-header">
|
||||
<img :src="logo" alt="Company Logo" class="company-logo" />
|
||||
<div class="company-name">
|
||||
@@ -109,6 +110,8 @@
|
||||
<QRCode :content="content.qrcodeRecordId || ''" :size="90" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -280,17 +283,29 @@ export default {
|
||||
|
||||
<style scoped>
|
||||
.label-container {
|
||||
padding: 1em;
|
||||
/* width: 680.315px; */
|
||||
/* height: 377.953px; */
|
||||
/* width: fit-content;
|
||||
height: fit-content; */
|
||||
/* 减少内边距,避免生成PDF时上下留白不一致 */
|
||||
/* padding: 0.1em;
|
||||
font-size: 12px;
|
||||
border: 1px solid #000;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Arial', sans-serif; */
|
||||
/* border: 1px solid #000; */
|
||||
}
|
||||
|
||||
.label-box {
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
/* 减少内边距,避免生成PDF时上下留白不一致 */
|
||||
/* margin: 1em; */
|
||||
padding: 0.1em;
|
||||
font-size: 12px;
|
||||
border: 1px solid #000;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Arial', sans-serif;
|
||||
/* border: 1px solid #000; */
|
||||
}
|
||||
|
||||
.company-header {
|
||||
|
||||
@@ -20,6 +20,12 @@
|
||||
style="width: 100%; display: inline-block;" clearable />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="实际库区" prop="actualWarehouseId" v-if="!hideWarehouseQuery">
|
||||
<actual-warehouse-select v-model="queryParams.actualWarehouseId" placeholder="请选择仓库/库区/库位"
|
||||
style="width: 100%; display: inline-block;" clearable
|
||||
:canSelectDisabled="true" :canSelectLevel2="true" :clearInput="false" :showEmpty="true"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="产品名称" prop="itemName">
|
||||
<muti-select v-model="queryParams.itemName" :options="dict.type.coil_itemname" placeholder="请选择物料" clearable />
|
||||
</el-form-item>
|
||||
@@ -602,7 +608,9 @@ export default {
|
||||
itemName: itemName,
|
||||
updateTime: row.updateTime?.split(' ')[0] || '',
|
||||
};
|
||||
this.$refs.labelRender.printLabel();
|
||||
this.$nextTick(() => {
|
||||
this.$refs.labelRender.printLabel();
|
||||
})
|
||||
},
|
||||
// 处理材料类型变化
|
||||
handleMaterialTypeChange(value) {
|
||||
|
||||
Reference in New Issue
Block a user