feat(wms): 入库单打印增加质检要求字段

- 在入库单打印表格中添加质检要求列
- 在 API 类型定义中添加质检要求字段
- 更新数据模型和查询参数以支持质检要求
master
zangch@mesnac.com 4 months ago
parent 8eeda538cd
commit 53eb1fecde

@ -91,6 +91,11 @@ export interface InstockPrintVO {
*/ */
agvStatus?: string; agvStatus?: string;
/**
* (0,1)
*/
inspectionRequest?: string;
} }
export interface InstockPrintForm extends BaseEntity { export interface InstockPrintForm extends BaseEntity {
@ -185,6 +190,13 @@ export interface InstockPrintForm extends BaseEntity {
* AGV0 / 1 / 2 * AGV0 / 1 / 2
*/ */
agvStatus?: string; agvStatus?: string;
/**
* (0,1)
*/
inspectionRequest?: string;
} }
export interface InstockPrintQuery extends PageQuery { export interface InstockPrintQuery extends PageQuery {
@ -282,6 +294,11 @@ export interface InstockPrintQuery extends PageQuery {
*/ */
agvStatus?: string; agvStatus?: string;
/**
* (0,1)
*/
inspectionRequest?: string;
/** /**
* *

@ -850,6 +850,11 @@ const submitForm = async() => {
childrenTableInfoForm.value.batchCode = generateBatchCode(childrenTableInfoForm.value) childrenTableInfoForm.value.batchCode = generateBatchCode(childrenTableInfoForm.value)
await updateInstockDetail(childrenTableInfoForm.value) await updateInstockDetail(childrenTableInfoForm.value)
// === ===
await getChildrenTable({
instockId: partntTableSelectCell.value.instockId,
auditStatus: partntTableSelectCell.value.auditStatus
})
getChildrenTable({instockId: partntTableSelectCell.value.instockId}) getChildrenTable({instockId: partntTableSelectCell.value.instockId})
childrenTableInfoVisible.value = false childrenTableInfoVisible.value = false
} }

@ -127,6 +127,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="质检要求" align="center" prop="inspectionRequest" v-if="columns[9].visible">
<template #default="scope">
<dict-tag :options="inspection_request" :value="scope.row.inspectionRequest"/>
</template>
</el-table-column>
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope"> <template #default="scope">
<el-tooltip content="修改" placement="top"> <el-tooltip content="修改" placement="top">
@ -202,7 +208,7 @@ import {
import { getBaseMaterialCategoryListInWMS } from '@/api/wms/baseMaterialCategory'; import { getBaseMaterialCategoryListInWMS } from '@/api/wms/baseMaterialCategory';
const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { material_mategories, wms_barcode_if } = toRefs<any>(proxy?.useDict('material_mategories', 'wms_barcode_if')); const { material_mategories, wms_barcode_if, inspection_request } = toRefs<any>(proxy?.useDict('material_mategories', 'wms_barcode_if', 'inspection_request'));
const instockPrintList = ref<InstockPrintVO[]>([]); const instockPrintList = ref<InstockPrintVO[]>([]);
const buttonLoading = ref(false); const buttonLoading = ref(false);
const loading = ref(true); const loading = ref(true);
@ -236,6 +242,7 @@ const initFormData: InstockPrintForm = {
inboundStatus: undefined, inboundStatus: undefined,
actualInboundTime: undefined, actualInboundTime: undefined,
createTime: undefined, createTime: undefined,
inspectionRequest: undefined,
} }
const data = reactive<PageData<InstockPrintForm, InstockPrintQuery>>({ const data = reactive<PageData<InstockPrintForm, InstockPrintQuery>>({
@ -260,6 +267,7 @@ const data = reactive<PageData<InstockPrintForm, InstockPrintQuery>>({
inboundStatus: undefined, inboundStatus: undefined,
actualInboundTime: undefined, actualInboundTime: undefined,
createTime: undefined, createTime: undefined,
inspectionRequest: undefined,
params: { params: {
} }
}, },
@ -343,6 +351,7 @@ const columns = ref<FieldOption[]>([
// { key: 9, label: ``, visible: false }, // { key: 9, label: ``, visible: false },
// { key: 10, label: ``, visible: false }, // { key: 10, label: ``, visible: false },
{ key: 8, label: `打印时间`, visible: true }, { key: 8, label: `打印时间`, visible: true },
{ key: 9, label: `质检要求`, visible: true },
// { key: 13, label: `id`, visible: inboundStatusdVisble.value }, // { key: 13, label: `id`, visible: inboundStatusdVisble.value },
// { key: 14, label: `(0-,1-,2-)`, visible: inboundStatusdVisble.value }, // { key: 14, label: `(0-,1-,2-)`, visible: inboundStatusdVisble.value },
// { key: 15, label: ``, visible: inboundStatusdVisble.value }, // { key: 15, label: ``, visible: inboundStatusdVisble.value },

Loading…
Cancel
Save