| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-row :gutter="20"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryRef" |
| | |
| | | v-show="showSearch" |
| | | :label-width="locale === 'zh' ? '90px' : '160px'" |
| | | > |
| | | <!-- <el-row :gutter="20"> |
| | | <el-col :span="10"> --> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="locale === 'zh' ? 5 : 9"> |
| | | <el-form-item :label="$t('plan.query.itemNumber')" prop="itemCode"> |
| | | <el-input |
| | | style="width: 210px" |
| | | :style="{ width: locale === 'zh' ? '140px' : '220px' }" |
| | | v-model="queryParams.itemCode" |
| | | :placeholder="`${$t('common.common.placeholder')}${$t( |
| | | 'plan.query.itemNumber' |
| | |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- </el-col> |
| | | <el-col :span="10"> --> |
| | | </el-col> |
| | | <el-col :span="locale === 'zh' ? 7 : 9"> |
| | | <el-form-item |
| | | :label="$t('plan.table.applicableFactories')" |
| | | prop="orgCode" |
| | |
| | | <el-select |
| | | clearable |
| | | v-model="queryParams.orgCode" |
| | | style="width: 160px" |
| | | :style="{ width: locale === 'zh' ? '180px' : '240px' }" |
| | | :placeholder="`${$t('common.common.placeholder')}${$t( |
| | | 'plan.table.applicableFactories' |
| | | )}`" |
| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- </el-col> |
| | | <el-col :span="4" style="text-align: right"> --> |
| | | <el-form-item> |
| | | </el-col> |
| | | <el-col :span="locale === 'zh' ? 11 : 6" style="text-align: right"> |
| | | <el-form-item class="column-with-margin"> |
| | | <el-button type="primary" icon="Search" @click="handleQuery">{{ |
| | | $t("common.common.query") |
| | | }}</el-button> |
| | |
| | | $t("common.common.reset") |
| | | }}</el-button> |
| | | </el-form-item> |
| | | <!-- </el-col> |
| | | </el-row> --> |
| | | </el-form> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | |
| | | v-model="openDialog" |
| | | width="900px" |
| | | append-to-body |
| | | style="height:400px;overflow:hidden;" |
| | | style="height: 400px; overflow: hidden" |
| | | > |
| | | <HxlhTable |
| | | style="width: 100%" |
| | |
| | | import { |
| | | listApsBomHeaderList, |
| | | listApsBomLineList, |
| | | listApsBomRefreshBomDataList |
| | | listApsBomRefreshBomDataList, |
| | | } from "@/api/basicData/bom/bom.js"; |
| | | import { listAll_plant } from "@/api/basicData/plant"; |
| | | import HxlhTable from "@/components/HxlhTable/index.vue"; |
| | |
| | | }, |
| | | }, |
| | | { |
| | | title: "操作", |
| | | title: t("common.common.operate"), |
| | | width: 100, |
| | | fixed: "right", |
| | | slots: { default: "buttons" }, |
| | |
| | | ); |
| | | async function handleRefresh() { |
| | | loadingRefresh.value = true; |
| | | const res = await listApsBomRefreshBomDataList() |
| | | const res = await listApsBomRefreshBomDataList(); |
| | | if(res.code == 200){ |
| | | ElMessage({ |
| | | message: t("plan.message.update"), |