|
@@ -7,10 +7,10 @@
|
|
|
:loading="loading"
|
|
|
highlight-current-row
|
|
|
:action-list="[
|
|
|
- // {
|
|
|
- // text: '新增',
|
|
|
- // action: () => clickModal(),
|
|
|
- // },
|
|
|
+ {
|
|
|
+ text: '新增',
|
|
|
+ action: () => clickModal(),
|
|
|
+ },
|
|
|
{
|
|
|
text: '应用包材配置',
|
|
|
action: () => clickUse(),
|
|
@@ -69,6 +69,22 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template #paperBoxId>
|
|
|
+ <div style="width: 100%">
|
|
|
+ <el-button
|
|
|
+ v-if="!formData.data.paperBoxId || formData.data.paperBoxId === '0'"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ @click="handleOpen('paperBox', '1682221409847304194')"
|
|
|
+ style="margin: 5px 0; background-color: #43b214; border-color: #43b214">
|
|
|
+ 选择BOM
|
|
|
+ </el-button>
|
|
|
+ <div style="width: 100%; display: flex; align-items: center" v-else>
|
|
|
+ <el-icon style="font-size: 16px; cursor: pointer" @click="clickRemove('paperBox')"><Remove /></el-icon>
|
|
|
+ <span>{{ formData.data.paperBoxCode }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template #bubblePackId>
|
|
|
<div style="width: 100%">
|
|
|
<el-button
|
|
@@ -260,6 +276,19 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "纸箱",
|
|
|
+ prop: "paperBoxCode",
|
|
|
+ align: "center",
|
|
|
+ },
|
|
|
+ render(val) {
|
|
|
+ if (val) {
|
|
|
+ return val;
|
|
|
+ }
|
|
|
+ return "-";
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "气泡袋",
|
|
|
prop: "bubblePackCode",
|
|
|
align: "center",
|
|
@@ -435,6 +464,11 @@ const formConfig = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
|
+ slotName: "paperBoxId",
|
|
|
+ label: "纸箱",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "slot",
|
|
|
slotName: "bubblePackId",
|
|
|
label: "气泡袋",
|
|
|
},
|