From a8a64bd20e3c0f1866c11ba403c293683882ce48 Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期五, 09 五月 2025 17:20:56 +0800
Subject: [PATCH] 提交工艺路线更新联调,查询条件样式
---
src/views/mainPlan/abnormalPartNumberReport/index.vue | 106 ++++++++++++++---------------------------------------
1 files changed, 28 insertions(+), 78 deletions(-)
diff --git a/src/views/mainPlan/abnormalPartNumberReport/index.vue b/src/views/mainPlan/abnormalPartNumberReport/index.vue
index 0585e63..59785ee 100644
--- a/src/views/mainPlan/abnormalPartNumberReport/index.vue
+++ b/src/views/mainPlan/abnormalPartNumberReport/index.vue
@@ -9,34 +9,34 @@
: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">
+ <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')}`"
+ :style="{ width: locale === 'zh' ? '140px' : '240px' }"
+ v-model="queryParams.itemNum"
+ :placeholder="`${$t('common.common.placeholder')}${$t('plan.query.itemNumber')}`"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
- <el-col :span="locale === 'zh' ? 8 : 9">
+ <el-col :span="locale === 'zh' ? 8 :10">
<el-form-item
:label="$t('plan.query.workOrderNo')"
- prop="documentNumber"
+ prop="docNum"
>
<el-input
- :style="{ width: locale === 'zh' ? '140px' : '210px' }"
- v-model="queryParams.documentNumber"
+ :style="{ width: locale === 'zh' ? '140px' : '260px' }"
+ v-model="queryParams.docNum"
:placeholder="`${$t('common.common.placeholder')}${$t(
- 'plan.query.itemNumber'
+ 'plan.query.workOrderNo'
)}`"
clearable
@keyup.enter="handleQuery"
/>
</el-form-item>
</el-col>
- <el-col :span="locale === 'zh' ? 11 : 5" style="text-align: right">
+ <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")
@@ -56,7 +56,7 @@
plain
icon="Download"
@click="handleExport"
- v-hasPermi="['Aps:apsPlatePlan:redundantOrderListExport']"
+ v-hasPermi="['Aps:ApsPlateStandardRequireError:export']"
>{{ $t("common.common.export") }}</el-button
>
</el-col>
@@ -84,18 +84,9 @@
<script setup name="Calendar">
import HxlhTable from "@/components/HxlhTable";
-import {
- listCalendar,
- getCalendar,
- delCalendar,
- addCalendar,
- updateCalendar,
-} from "@/api/basicData/calendar";
import { redundantOrderList } from "@/api/basicData/sheetMetalConfig/sheetMetalConfig";
-import axios from "axios";
import { listAll_plant } from "@/api/basicData/plant";
-import { listAll_shop, listAps_shop } from "@/api/basicData/shop";
-import { selectProcessNameList } from "@/api/basicData/processRoute.js";
+import { plateStandardRequireErrorList } from "@/api/basicData/sheetMetalConfig/sheetMetalConfig.js";
import { useI18n } from "vue-i18n"; //瑕佸湪js涓娇鐢ㄥ浗闄呭寲
const { t, locale } = useI18n();
const { proxy } = getCurrentInstance();
@@ -103,28 +94,16 @@
const orderList = ref([]);
const loading = ref(true);
const showSearch = ref(true);
-const ids = ref([]);
-const single = ref(true);
-const multiple = ref(true);
-const total = ref(0);
-const title = ref("");
const data = reactive({
- form: {
- type: "1",
- },
queryParams: {
pageNum: 1,
pageSize: 10,
- documentNumber: null,
- itemNumber: null,
+ docNum: null,
+ itemNum: null,
},
});
const { queryParams, form, rules } = toRefs(data);
-const typeRadioNumber = ref(1);
const plantList = ref([]);
-const shopList = ref([]);
-const allShopList = ref([]);
-const processList = ref([]);
const height = ref(document.documentElement.clientHeight - 220 + "px;");
// 琛ㄦ牸閰嶇疆-鍒楄〃
const columns = ref([]);
@@ -140,32 +119,17 @@
columns.value = [
{
title: t("plan.table.workOrderNo"),
- field: "documentNumber",
- width: 150,
+ field: "docNum",
align: "center",
},
{
- title: t("plan.table.subItemPartNumber"),
- field: "itemNumber",
- width: 200,
- align: "center",
- },
- {
- title: t("plan.table.productionQuantity"),
- field: "productionQuantity",
- width: 200,
- align: "center",
- },
- {
- title: t("plan.table.mismatchedProductionQuantity"),
- field: "unmatchedQuantity",
- width: 200,
+ title: t("plan.table.itemNumber"),
+ field: "itemNum",
align: "center",
},
{
title: t("plan.table.applicableFactories"),
- field: "plant",
- width: 200,
+ field: "orgCode",
align: "center",
formatter: ({ cellValue, row, column }) => {
if (cellValue) {
@@ -178,37 +142,23 @@
},
},
{
- title: t("plan.table.productionBase"),
- field: "productionBase",
- width: 200,
+ title: t("plan.table.abnormalCause"),
+ field: "message",
align: "center",
},
{
- title: t("plan.table.planStartDay"),
- field: "planStartDay",
- width: 200,
+ title: t("plan.table.creationTime"),
+ field: "createTime",
align: "center",
- },
- {
- title: t("plan.table.planEndDayDate"),
- field: "planEndDay",
- width: 100,
- align: "center",
- },
- {
- title: t("plan.table.workorderCreationTime"),
- field: "orderCreateTime",
- width: 100,
- align: "center",
- },
+ }
];
},
{ immediate: true, deep: true }
);
-/** 鏌ヨ鏃ュ巻绠$悊鍒楄〃 */
+/** 鏌ヨ鏂欏彿寮傚父宸ュ崟鍒楄〃 */
function getList() {
loading.value = true;
- redundantOrderList(queryParams.value).then((response) => {
+ plateStandardRequireErrorList(queryParams.value).then((response) => {
orderList.value = response.rows;
page.value.total = response.total;
loading.value = false;
@@ -238,11 +188,11 @@
/** 瀵煎嚭鎸夐挳鎿嶄綔 */
function handleExport() {
proxy.download(
- "aps/apsPlatePlan/redundantOrderListExport",
+ "aps/ApsPlateStandardRequireError/export",
{
...queryParams.value,
},
- `redundantOrderList_${new Date().getTime()}.xlsx`
+ `abnormalPartNumberReport_${new Date().getTime()}.xlsx`
);
}
function changePageNo(currentPage) {
--
Gitblit v1.9.3