|
@@ -52,30 +52,60 @@
|
|
|
</div>
|
|
|
<template #right>
|
|
|
<div class="main-box flx-col">
|
|
|
- <LjVxeTable
|
|
|
- ref="VxeTableRightRef"
|
|
|
- row-key="pzid"
|
|
|
- :columns="columns_right"
|
|
|
- :request-api="getCodeMxData"
|
|
|
- :data-callback="callback_right"
|
|
|
- :dwname="dwname_right"
|
|
|
- :table-props="tableProps"
|
|
|
- :table-events="tableEvents_right"
|
|
|
- :init-param="initParams_right"
|
|
|
- :auto-load-layout="false"
|
|
|
- pagination
|
|
|
- >
|
|
|
- <!-- 表格 header 按钮 -->
|
|
|
- <template #tableHeader>
|
|
|
- <el-button-group>
|
|
|
- <el-button @click="handleOpenNewRightTable">{{ $t("common.add") }}</el-button>
|
|
|
- <el-button @click="fDelete(2)">{{ $t("common.delText") }}</el-button>
|
|
|
- <el-button @click="fCopy">{{ $t("common.copy") }}</el-button>
|
|
|
- <el-button @click="fPaste(0)">{{ $t("common.supplyPaste") }}</el-button>
|
|
|
- <el-button @click="fPaste(1)">{{ $t("common.coverPaste") }}</el-button>
|
|
|
- </el-button-group>
|
|
|
+ <LjFoldLayout ref="LjFoldLayoutRef" v-bind="layoutSetting_bom" direction="vertical" :dwname="dwname_bom">
|
|
|
+ <LjVxeTable
|
|
|
+ ref="VxeTableRightRef"
|
|
|
+ row-key="pzid"
|
|
|
+ :columns="columns_right"
|
|
|
+ :request-api="getCodeMxData"
|
|
|
+ :data-callback="callback_right"
|
|
|
+ :dwname="dwname_right"
|
|
|
+ :table-props="tableProps"
|
|
|
+ :table-events="tableEvents_right"
|
|
|
+ :init-param="initParams_right"
|
|
|
+ :auto-load-layout="false"
|
|
|
+ pagination
|
|
|
+ >
|
|
|
+ <!-- 表格 header 按钮 -->
|
|
|
+ <template #tableHeader>
|
|
|
+ <el-button-group>
|
|
|
+ <el-button @click="handleOpenNewRightTable">{{ $t("common.add") }}</el-button>
|
|
|
+ <el-button @click="fDelete(2)">{{ $t("common.delText") }}</el-button>
|
|
|
+ <el-button @click="fCopy">{{ $t("common.copy") }}</el-button>
|
|
|
+ <el-button @click="fPaste(0)">{{ $t("common.supplyPaste") }}</el-button>
|
|
|
+ <el-button @click="fPaste(1)">{{ $t("common.coverPaste") }}</el-button>
|
|
|
+ </el-button-group>
|
|
|
+ </template>
|
|
|
+ </LjVxeTable>
|
|
|
+ <template #right>
|
|
|
+ <div class="main-box flx-col">
|
|
|
+ <LjVxeTable
|
|
|
+ ref="VxeTableRightRef"
|
|
|
+ row-key="pzid"
|
|
|
+ :columns="columns_right"
|
|
|
+ :request-api="getCodeMxData"
|
|
|
+ :data-callback="callback_right"
|
|
|
+ :dwname="dwname_right"
|
|
|
+ :table-props="tableProps"
|
|
|
+ :table-events="tableEvents_right"
|
|
|
+ :init-param="initParams_right"
|
|
|
+ :auto-load-layout="false"
|
|
|
+ pagination
|
|
|
+ >
|
|
|
+ <!-- 表格 header 按钮 -->
|
|
|
+ <template #tableHeader>
|
|
|
+ <el-button-group>
|
|
|
+ <el-button @click="handleOpenNewRightTable">{{ $t("common.add") }}</el-button>
|
|
|
+ <el-button @click="fDelete(2)">{{ $t("common.delText") }}</el-button>
|
|
|
+ <el-button @click="fCopy">{{ $t("common.copy") }}</el-button>
|
|
|
+ <el-button @click="fPaste(0)">{{ $t("common.supplyPaste") }}</el-button>
|
|
|
+ <el-button @click="fPaste(1)">{{ $t("common.coverPaste") }}</el-button>
|
|
|
+ </el-button-group>
|
|
|
+ </template>
|
|
|
+ </LjVxeTable>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
- </LjVxeTable>
|
|
|
+ </LjFoldLayout>
|
|
|
</div>
|
|
|
</template>
|
|
|
</LjFoldLayout>
|
|
@@ -89,11 +119,6 @@
|
|
|
}"
|
|
|
:style="{ padding: 0 }"
|
|
|
>
|
|
|
- <!-- <template #header>
|
|
|
- <div class="flx-1">
|
|
|
- <span class="text-h5-b">物料: {{ mtrlname }}</span>
|
|
|
- </div>
|
|
|
- </template> -->
|
|
|
<div class="flx-1 h-full">
|
|
|
<LjHeaderMenu :data="mainData" :action="orderStatus ? orderEditAction : orderDefaultAction" />
|
|
|
<Detail class="flx-1" :data="mainData" :status="orderStatus" :enum="enumMap" :type="detailType" />
|
|
@@ -111,11 +136,14 @@ import LjHeaderMenu from "@/components/LjHeaderMenu/index.vue";
|
|
|
import { useI18n } from "vue-i18n";
|
|
|
import { useAuthButtons } from "@/hooks/useAuthButtons";
|
|
|
import { cloneDeep } from "lodash-es";
|
|
|
+import { template } from "xe-utils";
|
|
|
|
|
|
const dwname = "web_configure_code";
|
|
|
+const dwname_bom = "web_configure_code_bom";
|
|
|
const dwname_left = "web_configure_typelist";
|
|
|
const dwname_mid = "web_configure_codelist";
|
|
|
const dwname_right = "web_configure_codemxlist";
|
|
|
+const dwname_bottom = "web_configure_bomlist";
|
|
|
|
|
|
const mainData = ref({});
|
|
|
const initParams_mid = ref({ typeid: 0 as Number });
|
|
@@ -133,8 +161,15 @@ const tableProps = {
|
|
|
const layoutSetting = {
|
|
|
dwname: dwname,
|
|
|
left: {
|
|
|
- width: 30
|
|
|
+ width: 18
|
|
|
},
|
|
|
+ right: {
|
|
|
+ width: 35
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+const layoutSetting_bom = {
|
|
|
+ dwname: dwname_bom,
|
|
|
right: {
|
|
|
width: 30
|
|
|
}
|