From 198f9b1460eae7c5fe012a78e48b38911ce76936 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 02 十一月 2026 11:19:26 +0800
Subject: [PATCH] 采购/到货:去掉方案里没有的质检字段与入口
---
src/views/erp/purchase/order/data.ts | 7 --
src/views/erp/purchase/request/detail/index.vue | 6 --
src/views/erp/purchase/order/modules/item-form.vue | 13 ----
src/views/erp/purchase/request/data.ts | 7 --
src/views/wls/arrivalnotice/index.vue | 11 ---
src/views/erp/purchase/request/modules/form.vue | 1
src/views/wls/arrivalnotice/components/line-select-dialog.vue | 16 -----
src/views/wls/arrivalnotice/modules/line-list.vue | 30 ---------
src/views/erp/purchase/request/modules/item-form.vue | 13 ----
src/views/wls/arrivalnotice/data.ts | 33 -----------
10 files changed, 3 insertions(+), 134 deletions(-)
diff --git a/src/views/erp/purchase/order/data.ts b/src/views/erp/purchase/order/data.ts
index 37765ac..81947a2 100644
--- a/src/views/erp/purchase/order/data.ts
+++ b/src/views/erp/purchase/order/data.ts
@@ -272,13 +272,6 @@
slots: { default: 'remark' },
},
{
- field: 'qcCheckFlag',
- title: '鏄惁璐ㄦ',
- minWidth: 80,
- fixed: 'right',
- slots: { default: 'qcCheckFlag' },
- },
- {
field: 'count',
title: '鏁伴噺',
minWidth: 120,
diff --git a/src/views/erp/purchase/order/modules/item-form.vue b/src/views/erp/purchase/order/modules/item-form.vue
index 7ba1dc1..41d12d9 100644
--- a/src/views/erp/purchase/order/modules/item-form.vue
+++ b/src/views/erp/purchase/order/modules/item-form.vue
@@ -10,7 +10,7 @@
erpPriceMultiply,
} from '@vben/utils';
-import { Input, InputNumber, Switch } from 'ant-design-vue';
+import { Input, InputNumber } from 'ant-design-vue';
import { TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
@@ -130,7 +130,6 @@
taxPrice: undefined,
totalPrice: undefined,
remark: undefined,
- qcCheckFlag: false,
};
tableData.value.push(newRow);
// 閫氱煡鐖剁粍浠舵洿鏂�
@@ -249,16 +248,6 @@
<template #remark="{ row }">
<Input v-if="!disabled" v-model:value="row.remark" class="w-full" />
<span v-else>{{ row.remark || '-' }}</span>
- </template>
- <template #qcCheckFlag="{ row }">
- <Switch
- v-if="!disabled"
- v-model:checked="row.qcCheckFlag"
- checked-children="鏄�"
- un-checked-children="鍚�"
- @change="handleRowChange(row)"
- />
- <span v-else>{{ row.qcCheckFlag ? '鏄�' : '鍚�' }}</span>
</template>
<template #taxPercent="{ row }">
<InputNumber
diff --git a/src/views/erp/purchase/request/data.ts b/src/views/erp/purchase/request/data.ts
index cdb2b48..45b86b7 100644
--- a/src/views/erp/purchase/request/data.ts
+++ b/src/views/erp/purchase/request/data.ts
@@ -255,13 +255,6 @@
slots: { default: 'remark' },
},
{
- field: 'qcCheckFlag',
- title: '鏄惁璐ㄦ',
- minWidth: 80,
- fixed: 'right',
- slots: { default: 'qcCheckFlag' },
- },
- {
title: '鎿嶄綔',
width: 50,
fixed: 'right',
diff --git a/src/views/erp/purchase/request/detail/index.vue b/src/views/erp/purchase/request/detail/index.vue
index 2f026c5..163a292 100644
--- a/src/views/erp/purchase/request/detail/index.vue
+++ b/src/views/erp/purchase/request/detail/index.vue
@@ -65,12 +65,6 @@
minWidth: 160,
showOverflow: 'tooltip',
},
- {
- field: 'qcCheckFlag',
- title: '鏄惁璐ㄦ',
- minWidth: 80,
- formatter: ({ cellValue }) => (cellValue ? '鏄�' : '鍚�'),
- },
];
}
diff --git a/src/views/erp/purchase/request/modules/form.vue b/src/views/erp/purchase/request/modules/form.vue
index ff87d9a..d2c67eb 100644
--- a/src/views/erp/purchase/request/modules/form.vue
+++ b/src/views/erp/purchase/request/modules/form.vue
@@ -86,7 +86,6 @@
count: item.count,
taxPercent: item.taxPercent,
demandTime: item.demandTime,
- qcCheckFlag: item.qcCheckFlag,
remark: item.remark,
}));
try {
diff --git a/src/views/erp/purchase/request/modules/item-form.vue b/src/views/erp/purchase/request/modules/item-form.vue
index 7cd972a..60c0dbf 100644
--- a/src/views/erp/purchase/request/modules/item-form.vue
+++ b/src/views/erp/purchase/request/modules/item-form.vue
@@ -9,7 +9,7 @@
erpPriceMultiply,
} from '@vben/utils';
-import { Input, InputNumber, DatePicker, Switch } from 'ant-design-vue';
+import { Input, InputNumber, DatePicker } from 'ant-design-vue';
import { TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
@@ -96,7 +96,6 @@
demandTime: undefined,
remark: undefined,
totalPrice: 0,
- qcCheckFlag: false,
};
tableData.value.push(newRow);
emit('update:items', [...tableData.value]);
@@ -231,16 +230,6 @@
<template #remark="{ row }">
<Input v-if="!disabled" v-model:value="row.remark" class="w-full" @change="handleRowChange(row)" />
<span v-else>{{ row.remark || '-' }}</span>
- </template>
- <template #qcCheckFlag="{ row }">
- <Switch
- v-if="!disabled"
- v-model:checked="row.qcCheckFlag"
- checked-children="鏄�"
- un-checked-children="鍚�"
- @change="handleRowChange(row)"
- />
- <span v-else>{{ row.qcCheckFlag ? '鏄�' : '鍚�' }}</span>
</template>
<template #actions="{ row }">
<TableAction
diff --git a/src/views/wls/arrivalnotice/components/line-select-dialog.vue b/src/views/wls/arrivalnotice/components/line-select-dialog.vue
index 8081565..d4d45df 100644
--- a/src/views/wls/arrivalnotice/components/line-select-dialog.vue
+++ b/src/views/wls/arrivalnotice/components/line-select-dialog.vue
@@ -4,8 +4,6 @@
import { nextTick, ref } from 'vue';
-import { DICT_TYPE } from '@vben/constants';
-
import { message, Modal } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
@@ -51,20 +49,6 @@
{
field: 'arrivalQuantity',
title: '鍒拌揣鏁伴噺',
- width: 100,
- },
- {
- field: 'iqcCheckFlag',
- title: '鏄惁妫�楠�',
- width: 90,
- cellRender: {
- name: 'CellDict',
- props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
- },
- },
- {
- field: 'qualifiedQuantity',
- title: '鍚堟牸鏁伴噺',
width: 100,
},
{
diff --git a/src/views/wls/arrivalnotice/data.ts b/src/views/wls/arrivalnotice/data.ts
index 995e60f..80bed0c 100644
--- a/src/views/wls/arrivalnotice/data.ts
+++ b/src/views/wls/arrivalnotice/data.ts
@@ -9,7 +9,6 @@
import { Button } from 'ant-design-vue';
-import { z } from '#/adapter/form';
import { generateAutoCode } from '#/api/mes/md/autocode/record';
import { getRangePickerDefaultProps } from '#/utils';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
@@ -298,32 +297,6 @@
width: 100,
},
{
- field: 'iqcCheckFlag',
- title: '鏄惁妫�楠�',
- width: 90,
- cellRender: {
- name: 'CellDict',
- props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
- },
- },
- {
- field: 'iqcCheckResult',
- title: '璐ㄦ缁撴灉',
- width: 100,
- slots: { default: 'iqcCheckResult' },
- },
- {
- field: 'qualifiedQuantity',
- title: '鍚堟牸鏁伴噺',
- width: 100,
- },
- {
- field: 'iqcCode',
- title: '妫�楠屽崟鍙�',
- minWidth: 140,
- slots: { default: 'iqcCode' },
- },
- {
field: 'remark',
title: '澶囨敞',
minWidth: 120,
@@ -364,12 +337,6 @@
precision: 2,
},
rules: 'required',
- },
- {
- fieldName: 'iqcCheckFlag',
- label: '鏄惁妫�楠�',
- component: 'Switch',
- rules: z.boolean().default(false),
},
{
fieldName: 'remark',
diff --git a/src/views/wls/arrivalnotice/index.vue b/src/views/wls/arrivalnotice/index.vue
index 198da46..0bba3b2 100644
--- a/src/views/wls/arrivalnotice/index.vue
+++ b/src/views/wls/arrivalnotice/index.vue
@@ -67,11 +67,6 @@
}
}
-/** 鎻愮ず鍓嶅線璐ㄦ妯″潡 */
-function handleQc() {
- message.info('璇峰墠寰�銆愯川閲忕鐞� - IQC妫�楠屻�戜腑杩涜鏉ユ枡妫�楠屾搷浣�');
-}
-
/** 鎵ц鍏ュ簱锛氭牴鎹埌璐ч�氱煡鍗曠敓鎴愰噰璐叆搴撳崟 */
async function handleReceipt(row: MesWmArrivalNoticeApi.ArrivalNotice) {
const hideLoading = message.loading({
@@ -207,12 +202,6 @@
title: $t('ui.actionMessage.deleteConfirm', [row.code]),
confirm: handleDelete.bind(null, row),
},
- },
- {
- label: '鎵ц璐ㄦ',
- type: 'link',
- ifShow: row.status === MesWmArrivalNoticeStatusEnum.PENDING_QC,
- onClick: handleQc,
},
{
label: '鎵ц鍏ュ簱',
diff --git a/src/views/wls/arrivalnotice/modules/line-list.vue b/src/views/wls/arrivalnotice/modules/line-list.vue
index be40c57..21df504 100644
--- a/src/views/wls/arrivalnotice/modules/line-list.vue
+++ b/src/views/wls/arrivalnotice/modules/line-list.vue
@@ -6,11 +6,9 @@
import { computed } from 'vue';
-import { useRouter } from 'vue-router';
-
import { useVbenModal } from '@vben/common-ui';
-import { Button, message, Tag } from 'ant-design-vue';
+import { Button, message } from 'ant-design-vue';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import {
@@ -27,7 +25,6 @@
noticeId: number;
}>();
-const router = useRouter();
const isEditable = computed(() =>
// 鏄惁鍙紪杈戞槑缁嗚
@@ -66,13 +63,6 @@
handleRefresh();
} finally {
hideLoading();
- }
-}
-
-/** 璺宠浆 IQC 妫�楠屽崟璇︽儏 */
-function handleOpenIqc(row: MesWmArrivalNoticeLineApi.ArrivalNoticeLine) {
- if (row.iqcId) {
- router.push({ name: 'MesQcIqc', query: { id: row.iqcId } });
}
}
@@ -121,24 +111,6 @@
},
]"
/>
- </template>
- <template #iqcCode="{ row }">
- <Button
- v-if="row.iqcCode"
- size="small"
- type="link"
- @click="handleOpenIqc(row)"
- >
- {{ row.iqcCode }}
- </Button>
- <span v-else>-</span>
- </template>
- <template #iqcCheckResult="{ row }">
- <Tag v-if="row.iqcCheckResult === 1" color="success">鍚堟牸</Tag>
- <Tag v-else-if="row.iqcCheckResult === 2" color="warning">鐗归噰</Tag>
- <Tag v-else-if="row.iqcCheckResult === 3" color="error">涓嶅悎鏍奸��璐�</Tag>
- <Tag v-else-if="row.iqcCheckResult === 4" color="error">涓嶅悎鏍兼姤搴�</Tag>
- <span v-else>-</span>
</template>
<template #actions="{ row }">
<TableAction
--
Gitblit v1.9.3