| | |
| | | params: query |
| | | }) |
| | | } |
| | | // /ApsBomHeader/refreshBomData |
| | | export function listApsBomRefreshBomDataList() { |
| | | return request({ |
| | | url: '/aps/ApsBomHeader/refreshBomData', |
| | | method: 'post', |
| | | }) |
| | | } |
| | | |
| | | // 查询BOM数据管理列表 |
| | | export function listApsBom(query) { |
| | | return request({ |
| | |
| | | url: `/aps/ApsPlateStandardRequire/generatorPlan`, |
| | | method: "post" |
| | | }); |
| | | } |
| | | // /ApsPlatOrderPlanManager/planDate |
| | | export function planDateList(query) { |
| | | return request({ |
| | | url: `/aps/ApsPlatOrderPlanManager/planDate`, |
| | | method: "put", |
| | | data: query |
| | | }); |
| | | } |
| | |
| | | placeholder:"请输入", |
| | | view:"查看", |
| | | viewDetails:"查看详情", |
| | | operate:"操作" |
| | | operate:"操作", |
| | | batchUpdate:"批量更新", |
| | | close:"关闭" |
| | | }, |
| | | }; |
| | | export const en = { |
| | |
| | | placeholder:"Please enter the ", |
| | | view:"View", |
| | | viewDetails:"View details", |
| | | operate:"Operate" |
| | | operate:"Operate", |
| | | batchUpdate:"Batch update", |
| | | close:"Close" |
| | | }, |
| | | }; |
| | |
| | | responseType: 'blob', |
| | | ...config |
| | | }).then(async (data) => { |
| | | console.log(data,"new Blob") |
| | | const isBlob = blobValidate(data); |
| | | if (isBlob) { |
| | | const blob = new Blob([data]) |
| | |
| | | type="success" |
| | | plain |
| | | icon="Refresh" |
| | | :disabled="loadingRefresh" |
| | | @click="handleRefresh" |
| | | v-hasPermi="['apsPartRouteStat:edit']" |
| | | v-hasPermi="['Aps:ApsBomHeader:refreshBomData']" |
| | | >{{ $t("common.common.update") }}</el-button |
| | | > |
| | | </el-col> |
| | |
| | | type="primary" |
| | | link |
| | | @click="handleCheckView(row)" |
| | | v-hasPermi="['aps:calendar:update']" |
| | | v-hasPermi="['Aps:apsBom:list']" |
| | | >查看</el-button |
| | | > |
| | | </template> |
| | |
| | | v-model="openDialog" |
| | | width="900px" |
| | | append-to-body |
| | | style="height:400px;overflow:hidden;" |
| | | > |
| | | <HxlhTable |
| | | style="width: 100%" |
| | | :columns="subGridOptions" |
| | | :data="subList" |
| | | :loading="loadingSub" |
| | | :height="heightSub" |
| | | :height="'280px;'" |
| | | > |
| | | </HxlhTable> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="openDialog = false">{{ |
| | | $t("common.common.cancel") |
| | | $t("common.common.close") |
| | | }}</el-button> |
| | | </span> |
| | | </template> |
| | |
| | | import { |
| | | listApsBomHeaderList, |
| | | listApsBomLineList, |
| | | listApsBomRefreshBomDataList |
| | | } from "@/api/basicData/bom/bom.js"; |
| | | import { listAll_plant } from "@/api/basicData/plant"; |
| | | import HxlhTable from "@/components/HxlhTable/index.vue"; |
| | |
| | | const subList = ref([]); |
| | | const loading = ref(false); |
| | | const loadingSub = ref(false); |
| | | const loadingRefresh = ref(false); |
| | | const showSearch = ref(true); |
| | | const total = ref(0); |
| | | const height = ref(document.documentElement.clientHeight - 210 + "px;"); |
| | |
| | | }, |
| | | { immediate: true, deep: true } |
| | | ); |
| | | |
| | | async function handleRefresh() { |
| | | loadingRefresh.value = true; |
| | | const res = await listApsBomRefreshBomDataList() |
| | | if(res.code == 200){ |
| | | ElMessage({ |
| | | message: t("plan.message.update"), |
| | | type: "success", |
| | | }); |
| | | loadingRefresh.value = false; |
| | | getList(); |
| | | }else{ |
| | | loadingRefresh.value = false; |
| | | } |
| | | } |
| | | function changePageNo(currentPage) { |
| | | queryParams.value.pageNum = currentPage; |
| | | page.value.current = currentPage; |
| | |
| | | type="primary" |
| | | link |
| | | @click="handleCheckView(row)" |
| | | v-hasPermi="['aps:calendar:update']" |
| | | v-hasPermi="['Aps:ApsStandardProcessRouteLine:list']" |
| | | >{{ $t("common.common.view") }}</el-button |
| | | > |
| | | </template> |
| | |
| | | :title="$t('common.common.viewDetails')" |
| | | v-model="openDialog" |
| | | width="900px" |
| | | style="height:400px;overflow:hidden;" |
| | | append-to-body |
| | | > |
| | | <HxlhTable |
| | |
| | | :columns="subGridOptions" |
| | | :data="subList" |
| | | :loading="loading" |
| | | :height="heightSub" |
| | | :height="'280px;'" |
| | | > |
| | | </HxlhTable> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="openDialog = false">{{ |
| | | $t("common.common.cancel") |
| | | $t("common.common.close") |
| | | }}</el-button> |
| | | </span> |
| | | </template> |
| | |
| | | { |
| | | title: t("basic.table.effectiveDate"), |
| | | field: "startDate", |
| | | width: 200, |
| | | width: 230, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("basic.table.expiringDate"), |
| | | field: "endDate", |
| | | width: 200, |
| | | width: 230, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("basic.table.integrationDate"), |
| | | field: "createTime", |
| | | width: 200, |
| | | width: 230, |
| | | align: "center", |
| | | }, |
| | | { |
| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item class="form_class"> |
| | | <el-button type="primary" @click="submitForm">保存</el-button> |
| | | <el-button type="primary" @click="submitForm" v-hasPermi="['system:dict:edit']">保存</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | }); |
| | | if (res.code == 200) { |
| | | ElMessage({ |
| | | message: "更新成功", |
| | | message:t("plan.message.update"), |
| | | type: "success", |
| | | }); |
| | | } |
| | |
| | | > |
| | | <el-row type="flex" justify="left"> |
| | | <el-col :span="locale === 'zh' ? 5 : 10"> |
| | | <el-form-item :label="$t('plan.query.itemNumber')" prop="itemNumber"> |
| | | <el-form-item :label="$t('plan.query.itemNumber')" prop="itemNum"> |
| | | <el-input |
| | | :style="{ width: locale === 'zh' ? '140px' : '300px' }" |
| | | v-model="queryParams.itemNumber" |
| | | :placeholder="`${$t('plan.placeholder.requireTraceID')}`" |
| | | v-model="queryParams.itemNum" |
| | | :placeholder="`${$t('common.common.placeholder')}${$t('plan.query.itemNumber')}`" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | |
| | | <el-col :span="locale === 'zh' ? 8 : 9"> |
| | | <el-form-item |
| | | :label="$t('plan.query.workOrderNo')" |
| | | prop="documentNumber" |
| | | prop="docNum" |
| | | > |
| | | <el-input |
| | | :style="{ width: locale === 'zh' ? '140px' : '210px' }" |
| | | v-model="queryParams.documentNumber" |
| | | v-model="queryParams.docNum" |
| | | :placeholder="`${$t('common.common.placeholder')}${$t( |
| | | 'plan.query.itemNumber' |
| | | 'plan.query.workOrderNo' |
| | | )}`" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | |
| | | plain |
| | | icon="Download" |
| | | @click="handleExport" |
| | | v-hasPermi="['Aps:apsPlatePlan:redundantOrderListExport']" |
| | | v-hasPermi="['Aps:ApsPlateStandardRequireError:export']" |
| | | >{{ $t("common.common.export") }}</el-button |
| | | > |
| | | </el-col> |
| | |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | documentNumber: null, |
| | | itemNumber: null, |
| | | docNum: null, |
| | | itemNum: null, |
| | | }, |
| | | }); |
| | | const { queryParams, form, rules } = toRefs(data); |
| | |
| | | { |
| | | title: t("plan.table.workOrderNo"), |
| | | field: "docNum", |
| | | width: 150, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.itemNumber"), |
| | | field: "itemNum", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.applicableFactories"), |
| | | field: "orgCode", |
| | | width: 200, |
| | | align: "center", |
| | | formatter: ({ cellValue, row, column }) => { |
| | | if (cellValue) { |
| | |
| | | { |
| | | title: t("plan.table.abnormalCause"), |
| | | field: "message", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.creationTime"), |
| | | field: "createTime", |
| | | width: 200, |
| | | align: "center", |
| | | } |
| | | ]; |
| | |
| | | <el-col :span="5"> --> |
| | | <el-form-item |
| | | :label="$t('plan.query.requireTraceID')" |
| | | prop="requireTraceId" |
| | | prop="requireTrackId" |
| | | > |
| | | <el-input |
| | | :style="{ width: locale == 'zh' ? '200px' : '280px' }" |
| | | v-model="queryParams.requireTraceId" |
| | | v-model="queryParams.requireTrackId" |
| | | :placeholder="`${$t('common.common.placeholder')}${$t( |
| | | 'plan.query.requireTraceID' |
| | | )}`" |
| | |
| | | :label="$t('plan.table.delayRiskIdentification')" |
| | | prop="hasDelayRisk" |
| | | > |
| | | <el-input |
| | | <!-- <el-input |
| | | :style="{ width: locale == 'zh' ? '200px' : '280px' }" |
| | | v-model="queryParams.hasDelayRisk" |
| | | :placeholder="`${$t('common.common.placeholder')}${$t( |
| | |
| | | )}`" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | | /> |
| | | /> --> |
| | | <el-select |
| | | clearable |
| | | v-model="queryParams.hasDelayRisk" |
| | | style="width: 140px" |
| | | > |
| | | <el-option |
| | | v-for="item in delayRiskOptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- </el-col> |
| | | <el-col :span="14" style="text-align: right"> --> |
| | |
| | | icon="Plus" |
| | | :disabled="multiple" |
| | | @click="handleBatchUpdatePlanDate" |
| | | v-hasPermi="['apsPlatePlan:edit']" |
| | | v-hasPermi="['ApsPlatOrderPlanManager:requirement:list']" |
| | | >{{ $t("plan.btns.batchUpdateOrderDate") }}</el-button |
| | | > |
| | | </el-col> |
| | |
| | | type="success" |
| | | plain |
| | | icon="Edit" |
| | | :disabled="loadingGenerateList" |
| | | @click="handleGenerateList" |
| | | v-hasPermi="['apsPlatePlan:edit']" |
| | | >{{ $t("plan.btns.generatePlanOrder") }}</el-button |
| | |
| | | type="primary" |
| | | link |
| | | @click="handleCheckView(row)" |
| | | v-hasPermi="['aps:calendar:update']" |
| | | v-hasPermi="['ApsPlatOrderPlanManager:requirement:list']" |
| | | >{{ $t("plan.btns.viewRequirement") }}</el-button |
| | | > |
| | | </template> |
| | |
| | | :title="$t('plan.title.viewAssociatedRequirements')" |
| | | v-model="openDialog" |
| | | width="900px" |
| | | style="height: 400px; overflow: hidden" |
| | | append-to-body |
| | | > |
| | | <HxlhTable |
| | |
| | | :columns="subGridOptions" |
| | | :data="subList" |
| | | :loading="loadingSub" |
| | | :height="heightSub" |
| | | :height="'280px'" |
| | | > |
| | | </HxlhTable> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="openDialog = false">{{ |
| | | $t("common.common.cancel") |
| | | $t("common.common.close") |
| | | }}</el-button> |
| | | </span> |
| | | </template> |
| | |
| | | :title="$t('plan.btns.batchUpdateOrderDate')" |
| | | v-model="openBatchDialog" |
| | | width="900px" |
| | | style="height: 400px; overflow: hidden" |
| | | append-to-body |
| | | > |
| | | <div class="mode_box"> |
| | | <span>{{ $t("plan.title.setMode") }}</span> |
| | | <el-radio-group v-model="radio"> |
| | | <el-radio-group v-model="radio" @change="changeRadioCustom"> |
| | | <el-radio :label="1">{{ |
| | | $t("plan.btns.batchUpdateOrderDate") |
| | | }}</el-radio> |
| | |
| | | <div class="red_color">{{ $t("plan.title.tipsBugSheetMetal") }}</div> |
| | | <div class="mode_box" v-if="radio === 2"> |
| | | <span>{{ $t("plan.title.CustomizePlannedCompletionDate") }}</span> |
| | | <el-date-picker |
| | | v-model="value4" |
| | | <!-- <el-date-picker |
| | | v-model="customicDate" |
| | | type="dates" |
| | | :placeholder="$t('plan.title.CustomizePlannedCompletionDate')" |
| | | @change="handleChangeCustomDate($event)" |
| | | /> --> |
| | | <el-date-picker |
| | | v-model="customicDate" |
| | | type="datetime" |
| | | :placeholder="$t('plan.title.CustomizePlannedCompletionDate')" |
| | | @change="handleChangeCustomDate($event)" |
| | | /> |
| | | </div> |
| | | <HxlhTable |
| | |
| | | :columns="subUpdateGridOptions" |
| | | :data="subUpdateList" |
| | | :loading="loading" |
| | | :height="heightSub" |
| | | :height="'200px'" |
| | | > |
| | | </HxlhTable> |
| | | <HxlhTable |
| | |
| | | :columns="subUpdateCustomGridOptions" |
| | | :data="subUpdateList" |
| | | :loading="loading" |
| | | :height="heightSub" |
| | | :height="'200px'" |
| | | > |
| | | </HxlhTable> |
| | | <template #footer> |
| | |
| | | <el-button @click="openBatchDialog = false">{{ |
| | | $t("common.common.cancel") |
| | | }}</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="hanleBatchUpdateDate" |
| | | :disabled="loadingUpdateDate" |
| | | v-hasPermi="['ApsPlatOrderPlanManager:requirement:list']" |
| | | >{{ $t("common.common.batchUpdate") }}</el-button |
| | | > |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | |
| | | <script setup name="Calendar"> |
| | | import HxlhTable from "@/components/HxlhTable"; |
| | | import { parseTime } from "@/utils/ruoyi.js"; |
| | | import useBasicStore from "@/store/modules/request/basic/page"; |
| | | import { listAll_plant } from "@/api/basicData/plant"; |
| | | import { metalOrderManageList,metalOrderManageSubList,generatorPlanList } from "@/api/mainPlan/metalOrderManage.js"; |
| | | import { |
| | | metalOrderManageList, |
| | | metalOrderManageSubList, |
| | | generatorPlanList, |
| | | planDateList, |
| | | } from "@/api/mainPlan/metalOrderManage.js"; |
| | | import { useI18n } from "vue-i18n"; //要在js中使用国际化 |
| | | import { ElMessage } from "element-plus"; |
| | | const { t, locale } = useI18n(); |
| | | const basicStore = useBasicStore(); |
| | | const { proxy } = getCurrentInstance(); |
| | | const delayRiskOptions = ref([ |
| | | { |
| | | label: "有风险", |
| | | value: "1", |
| | | }, |
| | | { |
| | | label: "无风险", |
| | | value: "0", |
| | | }, |
| | | ]); |
| | | const radio = ref(1); |
| | | const customicDate = ref(""); |
| | | const openDialog = ref(false); |
| | | const openBatchDialog = ref(false); |
| | | const subGridOptions = ref([]); |
| | |
| | | // const tableRef = ref(); |
| | | const orderList = ref([]); |
| | | const loading = ref(false); |
| | | const loadingSub = ref(false) |
| | | const loadingUpdateDate = ref(false); |
| | | const loadingGenerateList = ref(false); |
| | | const loadingSub = ref(false); |
| | | const showSearch = ref(true); |
| | | const ids = ref([]); |
| | | const single = ref(true); |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | workOrderNo: null, |
| | | requireTraceId: null, |
| | | requireTrackId: null, |
| | | mainPartNumber: null, |
| | | hasDelayRisk: null, |
| | | }, |
| | |
| | | locale, |
| | | (newLocale) => { |
| | | columns.value = [ |
| | | { type: "checkbox", width: 60, align: "center" }, |
| | | { type: "checkbox", width: 60, align: "center", fixed: "left" }, |
| | | { |
| | | title: t("basic.table.requirementID"), |
| | | field: "requireId", |
| | |
| | | }, |
| | | { |
| | | title: t("basic.table.requirementTraceabilityID"), |
| | | field: "requireTraceId", |
| | | field: "requireTrackId", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | |
| | | { |
| | | title: t("plan.table.planStartDay"), |
| | | field: "planStartDay", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.planEndDayDate"), |
| | | field: "planEndDay", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.workorderCreationTime"), |
| | | field: "orderCreateTime", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | |
| | | field: "hasDelayRisk", |
| | | width: 100, |
| | | align: "center", |
| | | formatter: ({ cellValue, row, column }) => { |
| | | if (cellValue) { |
| | | for (let i = 0; i < delayRiskOptions.value.length; i++) { |
| | | if (cellValue === delayRiskOptions.value[i].value) { |
| | | return delayRiskOptions.value[i].label; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | { |
| | | title: t("common.common.operate"), |
| | |
| | | field: "hasDelayRisk", |
| | | width: 100, |
| | | align: "center", |
| | | formatter: ({ cellValue, row, column }) => { |
| | | if (cellValue) { |
| | | for (let i = 0; i < delayRiskOptions.value.length; i++) { |
| | | if (cellValue === delayRiskOptions.value[i].value) { |
| | | return delayRiskOptions.value[i].label; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | ]; |
| | | subUpdateGridOptions.value = [ |
| | |
| | | }, |
| | | { |
| | | title: t("basic.table.requirementTraceabilityID"), |
| | | field: "requireTraceId", |
| | | field: "requireTrackId", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | |
| | | { |
| | | title: t("plan.table.planStartDay"), |
| | | field: "planStartDay", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.planEndDayDate"), |
| | | field: "planEndDay", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.startDateOfDemandPlan"), |
| | | field: "startDay", |
| | | width: 100, |
| | | field: "startDate", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.requirementPlanCompletionDate"), |
| | | field: "completeDay", |
| | | width: 100, |
| | | field: "completeDate", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | ]; |
| | |
| | | }, |
| | | { |
| | | title: t("basic.table.requirementTraceabilityID"), |
| | | field: "requireTraceId", |
| | | field: "requireTrackId", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | |
| | | { |
| | | title: t("plan.table.planStartDay"), |
| | | field: "planStartDay", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.planEndDayDate"), |
| | | field: "planEndDay", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.customizePlannedCompletionDate"), |
| | | field: "updateTime", |
| | | width: 100, |
| | | field: "customTime", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | ]; |
| | |
| | | deep: true, |
| | | } |
| | | ); |
| | | function changeRadioCustom() {} |
| | | function handleBatchUpdatePlanDate() { |
| | | openBatchDialog.value = true; |
| | | } |
| | | function handleChangeCustomDate(e) { |
| | | customicDate.value = parseTime(e); //new Date(e).getFullYear()+ '-' + parseInt(new Date(e).getMonth()*1+1) + '-' + new Date(e).getDate() |
| | | console.log(customicDate.value, "chang date"); |
| | | if (radio.value == 2) { |
| | | subUpdateList.value = subUpdateList.value.map((item) => { |
| | | return { |
| | | ...item, |
| | | customTime: customicDate.value, |
| | | }; |
| | | }); |
| | | console.log(subUpdateList.value, "changeRadioCustom"); |
| | | } |
| | | } |
| | | function handleCheckView(row) { |
| | | openDialog.value = true; |
| | | loadingSub.value = true; |
| | | metalOrderManageSubList(row.workOrderNo).then((res)=>{ |
| | | subList.value = res; |
| | | loadingSub.value = false; |
| | | console.log(res,"metalOrderManageSubListmetalOrderManageSubList") |
| | | }).catch(()=>{ |
| | | loadingSub.value = false; |
| | | }) |
| | | metalOrderManageSubList(row.workOrderNo) |
| | | .then((res) => { |
| | | subList.value = res; |
| | | loadingSub.value = false; |
| | | }) |
| | | .catch(() => { |
| | | loadingSub.value = false; |
| | | }); |
| | | } |
| | | async function handleGenerateList(){ |
| | | await generatorPlanList() |
| | | async function hanleBatchUpdateDate() { |
| | | loadingUpdateDate.value = true; |
| | | let planIds = subUpdateList.value.map((item) => { |
| | | return item.id; |
| | | }); |
| | | let res = null; |
| | | console.log(planIds, "planIds"); |
| | | if (radio.value == 1) { |
| | | res = await planDateList({ |
| | | isCustom: false, |
| | | planIds, |
| | | }); |
| | | } else { |
| | | res = await planDateList({ |
| | | isCustom: true, |
| | | planIds, |
| | | customDate: customicDate.value, |
| | | }); |
| | | console.log(res, "res planDateList"); |
| | | } |
| | | if (res.code === 200) { |
| | | ElMessage({ |
| | | message: t("plan.message.update"), |
| | | type: "success", |
| | | }); |
| | | openBatchDialog.value = false; |
| | | loadingUpdateDate.value = false; |
| | | getList(); |
| | | } else { |
| | | openBatchDialog.value = true; |
| | | loadingUpdateDate.value = false; |
| | | } |
| | | } |
| | | async function handleGenerateList() { |
| | | loadingGenerateList.value = true; |
| | | const res = await generatorPlanList(); |
| | | if (res.code == 200) { |
| | | ElMessage({ |
| | | message: t("plan.message.update"), |
| | | type: "success", |
| | | }); |
| | | loadingGenerateList.value = false; |
| | | getList(); |
| | | }else { |
| | | loadingGenerateList.value = false; |
| | | } |
| | | } |
| | | /** 查询钣金工单计划管理列表 */ |
| | | function getList() { |
| | | loading.value = true; |
| | | if (basicStore.sheetMetalOrderManageList&&basicStore.sheetMetalOrderManageList.rows) { |
| | | orderList.value = basicStore.sheetMetalOrderManageList.rows; |
| | | loading.value = false; |
| | | } else { |
| | | basicStore.getMetalOrderManagerList(queryParams.value).then((response) => { |
| | | metalOrderManageList(queryParams.value) |
| | | .then((response) => { |
| | | orderList.value = response.rows; |
| | | page.value.total = response.total; |
| | | loading.value = false; |
| | | }).catch(()=>{ |
| | | }) |
| | | .catch((res) => { |
| | | loading.value = false; |
| | | }); |
| | | } |
| | | // metalOrderManageList(queryParams.value).then((response) => { |
| | | // orderList.value = response.rows; |
| | | // page.value.total = response.total; |
| | | // loading.value = false; |
| | | // }); |
| | | // axios |
| | | // .all([ |
| | | // /** 查询工厂列表 */ |
| | | // listAll_plant({}), |
| | | // /** 查询车间列表 */ |
| | | // listAll_shop({}), |
| | | // ]) |
| | | // .then( |
| | | // axios.spread((response1, response2) => { |
| | | // plantList.value = response1.data; |
| | | // shopList.value = response2.data; |
| | | // loading.value = false; |
| | | // }) |
| | | // ) |
| | | // .catch((error) => { |
| | | // console.error("请求出错:", error); |
| | | // }); |
| | | } |
| | | |
| | | // axios |
| | | // .all([ |
| | | // /** 查询工厂列表 */ |
| | | // listAll_plant({}), |
| | | // /** 查询车间列表 */ |
| | | // listAll_shop({}), |
| | | // ]) |
| | | // .then( |
| | | // axios.spread((response1, response2) => { |
| | | // plantList.value = response1.data; |
| | | // shopList.value = response2.data; |
| | | // loading.value = false; |
| | | // }) |
| | | // ) |
| | | // .catch((error) => { |
| | | // console.error("请求出错:", error); |
| | | // }); |
| | | /** 搜索按钮操作 */ |
| | | function handleQuery() { |
| | | console.log("111111"); |
| | | queryParams.value.pageNum = 1; |
| | | getList(); |
| | | } |
| | |
| | | :label-width="locale === 'zh' ? '90px' : '200px'" |
| | | > |
| | | <el-row type="flex" justify="left"> |
| | | <el-col :span="locale === 'zh' ? 5 : 10"> |
| | | <el-form-item :label="$t('plan.query.itemNumber')" prop="itemNumber"> |
| | | <el-col :span="locale === 'zh' ? 5 : 8" style="text-align:left;"> |
| | | <el-form-item :label="$t('plan.query.itemNumber')" style="display:flex; justify-content:flex-start; align-item:center" prop="itemNumber"> |
| | | <el-input |
| | | :style="{ width: locale === 'zh' ? '140px' : '300px' }" |
| | | :style="{ width: locale === 'zh' ? '140px' : '240px' }" |
| | | v-model="queryParams.itemNumber" |
| | | :placeholder="`${$t('plan.placeholder.requireTraceID')}`" |
| | | clearable |
| | |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="locale === 'zh' ? 8 : 9"> |
| | | <el-col :span="locale === 'zh' ? 8 : 8"> |
| | | <el-form-item |
| | | :label="$t('plan.query.workOrderNo')" |
| | | prop="documentNumber" |
| | |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="locale === 'zh' ? 11 : 5" style="text-align: right"> |
| | | <el-col :span="locale === 'zh' ? 11 : 8" style="text-align: right"> |
| | | <el-form-item class="column-with-margin"> |
| | | <el-button type="primary" icon="Search" @click="handleQuery">{{ |
| | | $t("common.common.query") |
| | |
| | | { |
| | | title: t("plan.table.planEndDayDate"), |
| | | field: "planEndDay", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.workorderCreationTime"), |
| | | field: "orderCreateTime", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | ]; |
| | |
| | | <el-col :span="locale === 'zh' ? 5 : 10"> |
| | | <el-form-item |
| | | :label="$t('plan.query.requireTraceID')" |
| | | prop="requireId" |
| | | prop="requireTrackId" |
| | | > |
| | | <el-input |
| | | :style="{ width: locale === 'zh' ? '140px' : '300px' }" |
| | | v-model="queryParams.requireId" |
| | | v-model="queryParams.requireTrackId" |
| | | :placeholder="`${$t('plan.placeholder.requireTraceID')}`" |
| | | clearable |
| | | @keyup.enter="handleQuery" |
| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | bomLineCode: null, |
| | | requireId: null |
| | | requireTrackId: null |
| | | }, |
| | | }); |
| | | const { queryParams } = toRefs(data); |
| | |
| | | }, |
| | | { |
| | | title: t("plan.table.requireTraceID"), |
| | | field: "requireId", |
| | | field: "requireTrackId", |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | |
| | | { |
| | | title: t("plan.table.planEndDayDate"), |
| | | field: "completeDate", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: t("plan.table.requirementDate"), |
| | | field: "demandDate", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | { |
| | |
| | | { |
| | | title: t("plan.table.productionBase"), |
| | | field: "productionBase", |
| | | width: 100, |
| | | width: 200, |
| | | align: "center", |
| | | }, |
| | | ]; |
| | |
| | | listAll_plant({}).then(response=>{ |
| | | plantList.value = response.data; |
| | | }) |
| | | } |
| | | // 表单重置 |
| | | function reset() { |
| | | queryParams.value = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | bomLineCode: null, |
| | | requireId: null |
| | | }; |
| | | proxy.resetForm("queryRef"); |
| | | } |
| | | |
| | | /** 搜索按钮操作 */ |