diff --git a/.env.test b/.env.test index 27d463213..53100a20f 100644 --- a/.env.test +++ b/.env.test @@ -37,4 +37,7 @@ VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html' VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310' # 租户配置 -VITE_TENANT='["长春","成都"]' \ No newline at end of file +VITE_TENANT='["长春","成都"]' + +# 查看质检报告环境 +VITE_REPORT_URL = 'http://dev.ccwin-in.com:25400' diff --git a/README.md b/README.md index 517596a90..7787e8e4a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## dev发布2024-05-20-001 +## dev发布2024-05-21-002 **xxxx.data.ts 文件配置说明** **form表单查询弹窗配置** form: { diff --git a/src/api/eam/documentTypeSelectSet/index.ts b/src/api/eam/documentTypeSelectSet/index.ts index f58a4858e..13b7164d6 100644 --- a/src/api/eam/documentTypeSelectSet/index.ts +++ b/src/api/eam/documentTypeSelectSet/index.ts @@ -1,5 +1,5 @@ import request from '@/config/axios' -import {BasicSpotCheckSelectSetVO} from "@/api/eam/basicSpotCheckSelectSet"; +import {BasicSpotCheckSelectSetVO} from "@/api/eam/spotCheckSelectSet"; export interface DocumentTypeSelectSetVO { id: number @@ -19,43 +19,43 @@ export const getDocumentTypeSelectSetPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/eam/document-type-select-set/senior', data }) + return await request.post({ url: '/eam/basic/document-type-select-set/senior', data }) } else { - return await request.get({ url: `/eam/document-type-select-set/page`, params }) + return await request.get({ url: `/eam/basic/document-type-select-set/page`, params }) } } // 查询文档类型选择集详情 export const getDocumentTypeSelectSet = async (id: number) => { - return await request.get({ url: `/eam/document-type-select-set/get?id=` + id }) + return await request.get({ url: `/eam/basic/document-type-select-set/get?id=` + id }) } // 新增文档类型选择集 export const createDocumentTypeSelectSet = async (data: DocumentTypeSelectSetVO) => { - return await request.post({ url: `/eam/document-type-select-set/create`, data }) + return await request.post({ url: `/eam/basic/document-type-select-set/create`, data }) } // 修改文档类型选择集 export const updateDocumentTypeSelectSet = async (data: DocumentTypeSelectSetVO) => { - return await request.put({ url: `/eam/document-type-select-set/update`, data }) + return await request.put({ url: `/eam/basic/document-type-select-set/update`, data }) } // 删除文档类型选择集 export const deleteDocumentTypeSelectSet = async (id: number) => { - return await request.delete({ url: `/eam/document-type-select-set/delete?id=` + id }) + return await request.delete({ url: `/eam/basic/document-type-select-set/delete?id=` + id }) } // 导出文档类型选择集 Excel export const exportDocumentTypeSelectSet = async (params) => { - return await request.download({ url: `/eam/document-type-select-set/export-excel`, params }) + return await request.download({ url: `/eam/basic/document-type-select-set/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/eam/document-type-select-set/get-import-template' }) + return request.download({ url: '/eam/basic/document-type-select-set/get-import-template' }) } // 启用 / 禁用 export const updateEnableCode = async (data: DocumentTypeSelectSetVO) => { - return await request.post({ url: `/eam/document-type-select-set/ables` , data }) + return await request.post({ url: `/eam/basic/document-type-select-set/ables` , data }) } diff --git a/src/api/eam/inspectionItemSelectSet/index.ts b/src/api/eam/inspectionItemSelectSet/index.ts index ec0cfe547..c3e897706 100644 --- a/src/api/eam/inspectionItemSelectSet/index.ts +++ b/src/api/eam/inspectionItemSelectSet/index.ts @@ -18,43 +18,43 @@ export const getInspectionItemSelectSetPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/eam/inspection-item-select-set/senior', data }) + return await request.post({ url: '/eam/basic/inspection-item-select-set/senior', data }) } else { - return await request.get({ url: `/eam/inspection-item-select-set/page`, params }) + return await request.get({ url: `/eam/basic/inspection-item-select-set/page`, params }) } } // 查询巡检项选择集详情 export const getInspectionItemSelectSet = async (id: number) => { - return await request.get({ url: `/eam/inspection-item-select-set/get?id=` + id }) + return await request.get({ url: `/eam/basic/inspection-item-select-set/get?id=` + id }) } // 新增巡检项选择集 export const createInspectionItemSelectSet = async (data: InspectionItemSelectSetVO) => { - return await request.post({ url: `/eam/inspection-item-select-set/create`, data }) + return await request.post({ url: `/eam/basic/inspection-item-select-set/create`, data }) } // 修改巡检项选择集 export const updateInspectionItemSelectSet = async (data: InspectionItemSelectSetVO) => { - return await request.put({ url: `/eam/inspection-item-select-set/update`, data }) + return await request.put({ url: `/eam/basic/inspection-item-select-set/update`, data }) } // 删除巡检项选择集 export const deleteInspectionItemSelectSet = async (id: number) => { - return await request.delete({ url: `/eam/inspection-item-select-set/delete?id=` + id }) + return await request.delete({ url: `/eam/basic/inspection-item-select-set/delete?id=` + id }) } // 导出巡检项选择集 Excel export const exportInspectionItemSelectSet = async (params) => { - return await request.download({ url: `/eam/inspection-item-select-set/export-excel`, params }) + return await request.download({ url: `/eam/basic/inspection-item-select-set/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/eam/inspection-item-select-set/get-import-template' }) + return request.download({ url: '/eam/basic/inspection-item-select-set/get-import-template' }) } // 启用 / 禁用 export const updateEnableCode = async (data: InspectionItemSelectSetVO) => { - return await request.post({ url: `/eam/inspection-item-select-set/ables` , data }) + return await request.post({ url: `/eam/basic/inspection-item-select-set/ables` , data }) } diff --git a/src/api/eam/maintenanceItemSelectSet/index.ts b/src/api/eam/maintenanceItemSelectSet/index.ts new file mode 100644 index 000000000..35f0c9817 --- /dev/null +++ b/src/api/eam/maintenanceItemSelectSet/index.ts @@ -0,0 +1,60 @@ +import request from '@/config/axios' + +export interface MaintenanceItemSelectSetVO { + id: number + name: string + itemCode: string + departmentCode: string + remark: string + siteId: string + available: string + deletionTime: Date + deleterId: byte[] + concurrencyStamp: number +} + +// 查询保养项选择集列表 +export const getBasicMaintenanceItemSelectSetPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/eam/basic/maintenance-item-select-set/senior', data }) + } else { + return await request.get({ url: `/eam/basic/maintenance-item-select-set/page`, params }) + } +} + +// 查询保养项选择集详情 +export const getBasicMaintenanceItemSelectSet = async (id: number) => { + return await request.get({ url: `/eam/basic/maintenance-item-select-set/get?id=` + id }) +} + +// 新增保养项选择集 +export const createBasicMaintenanceItemSelectSet = async (data: MaintenanceItemSelectSetVO) => { + return await request.post({ url: `/eam/basic/maintenance-item-select-set/create`, data }) +} + +// 修改保养项选择集 +export const updateBasicMaintenanceItemSelectSet = async (data: MaintenanceItemSelectSetVO) => { + return await request.put({ url: `/eam/basic/maintenance-item-select-set/update`, data }) +} + +// 删除保养项选择集 +export const deleteBasicMaintenanceItemSelectSet = async (id: number) => { + return await request.delete({ url: `/eam/basic/maintenance-item-select-set/delete?id=` + id }) +} + +// 导出保养项选择集 Excel +export const exportBasicMaintenanceItemSelectSet = async (params) => { + return await request.download({ url: `/eam/basic/maintenance-item-select-set/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/eam/basic/maintenance-item-select-set/get-import-template' }) +} + +// 启用 / 禁用 +export const updateEnableCode = async (data: MaintenanceItemSelectSetVO) => { + return await request.post({ url: `/eam/basic/inspection-item-select-set/ables` , data }) +} diff --git a/src/api/eam/basicSpotCheckSelectSet/index.ts b/src/api/eam/spotCheckSelectSet/index.ts similarity index 71% rename from src/api/eam/basicSpotCheckSelectSet/index.ts rename to src/api/eam/spotCheckSelectSet/index.ts index c48befc48..be9a0ccb3 100644 --- a/src/api/eam/basicSpotCheckSelectSet/index.ts +++ b/src/api/eam/spotCheckSelectSet/index.ts @@ -19,43 +19,43 @@ export const getBasicSpotCheckSelectSetPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/eam/basic-spot-check-select-set/senior', data }) + return await request.post({ url: '/eam/basic/spot-check-select-set/senior', data }) } else { - return await request.get({ url: `/eam/basic-spot-check-select-set/page`, params }) + return await request.get({ url: `/eam/basic/spot-check-select-set/page`, params }) } } // 查询点检选择集维护详情 export const getBasicSpotCheckSelectSet = async (id: number) => { - return await request.get({ url: `/eam/basic-spot-check-select-set/get?id=` + id }) + return await request.get({ url: `/eam/basic/spot-check-select-set/get?id=` + id }) } // 新增点检选择集维护 export const createBasicSpotCheckSelectSet = async (data: BasicSpotCheckSelectSetVO) => { - return await request.post({ url: `/eam/basic-spot-check-select-set/create`, data }) + return await request.post({ url: `/eam/basic/spot-check-select-set/create`, data }) } // 修改点检选择集维护 export const updateBasicSpotCheckSelectSet = async (data: BasicSpotCheckSelectSetVO) => { - return await request.put({ url: `/eam/basic-spot-check-select-set/update`, data }) + return await request.put({ url: `/eam/basic/spot-check-select-set/update`, data }) } // 删除点检选择集维护 export const deleteBasicSpotCheckSelectSet = async (id: number) => { - return await request.delete({ url: `/eam/basic-spot-check-select-set/delete?id=` + id }) + return await request.delete({ url: `/eam/basic/spot-check-select-set/delete?id=` + id }) } // 导出点检选择集维护 Excel export const exportBasicSpotCheckSelectSet = async (params) => { - return await request.download({ url: `/eam/basic-spot-check-select-set/export-excel`, params }) + return await request.download({ url: `/eam/basic/spot-check-select-set/export-excel`, params }) } // 下载用户导入模板 export const importTemplate = () => { - return request.download({ url: '/eam/basic-spot-check-select-set/get-import-template' }) + return request.download({ url: '/eam/basic/spot-check-select-set/get-import-template' }) } // 启用 / 禁用 export const updateEnableCode = async (data: BasicSpotCheckSelectSetVO) => { - return await request.post({ url: `/eam/basic-spot-check-select-set/ables` , data }) + return await request.post({ url: `/eam/basic/spot-check-select-set/ables` , data }) } diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts index 15189a33d..6ddf5473a 100644 --- a/src/api/wms/balance/index.ts +++ b/src/api/wms/balance/index.ts @@ -161,3 +161,15 @@ export const selectConfigToBalance = async (params) => { return request.get({ url: '/wms/balance/pageConfigToBalance', params}) } } + + +// 查询库存余额列表根据业务类型 根据库存状态及库区类型筛选 +export const getBalanceByBusinessTypeByItemType = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/balance/pageBusinessTypeToBalanceSenior', data }) + } else { + return await request.get({ url: `/wms/balance/pageBusinessTypeToBalance`, params }) + } +} \ No newline at end of file diff --git a/src/api/wms/customerreturnRequestMain/index.ts b/src/api/wms/customerreturnRequestMain/index.ts index 35a99a1fc..873bb25a4 100644 --- a/src/api/wms/customerreturnRequestMain/index.ts +++ b/src/api/wms/customerreturnRequestMain/index.ts @@ -117,4 +117,9 @@ export const pageItemCodeToBalance = async (params) => { } else { return request.get({ url: `/wms/customerreturn-request-main/pageItemCodeToBalance`, params }) } -} \ No newline at end of file +} + +// 生成标签 +export const genLabel = async (data) => { + return await request.post({ url: `/wms/customerreturn-request-main/genLabel`, data }) +} diff --git a/src/components/Annex/src/Annex.vue b/src/components/Annex/src/Annex.vue index ffb0dc15c..69c4c614c 100644 --- a/src/components/Annex/src/Annex.vue +++ b/src/components/Annex/src/Annex.vue @@ -69,7 +69,7 @@ const props = defineProps({ }, showAddBtn: { type: Boolean, - required: true + default: true }, }) // 子传父的时候需要先定义好emit这个方法 diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index 3f156883c..bc2dd67f4 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -247,7 +247,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ { path: '/purchasereceiptReport', component: () => import('@/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptReport/index.vue'), - name: 'NoFound', + name: 'purchasereceiptReport', meta: { hidden: true, title: t('ts.查看质检报告'), diff --git a/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts b/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts index 13bf5fff5..dde66e976 100644 --- a/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts +++ b/src/views/eam/basicInspectionOption/basicInspectionOption.data.ts @@ -1,11 +1,16 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' +import * as ItemApi from "@/api/eam/inspectionItemSelectSet"; +import { + InspectionItemSelectSet +} from "@/views/eam/inspectionItemSelectSet/inspectionItemSelectSet.data"; +import {getInspectionItemSelectSetPage} from "@/api/eam/inspectionItemSelectSet"; // 表单校验 export const BasicInspectionOptionRules = reactive({ code: [required], name: [required], - type: [required], + selectId: [required], }) export const BasicInspectionOption = useCrudSchemas(reactive([ @@ -30,6 +35,29 @@ export const BasicInspectionOption = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, }, + { + label: '选择集', + field: 'selectId', + sort: 'custom', + isDetail: true, + form: { + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchTitle: '巡检选择集信息', // 查询弹窗标题 + searchAllSchemas: InspectionItemSelectSet.allSchemas, // 查询弹窗所需类 + searchField: 'name', // 查询弹窗赋值字段 + searchPage: ItemApi.getInspectionItemSelectSetPage, // 查询弹窗所需分页方法 + multiple:true, + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } + }, { label: '描述', field: 'describing', @@ -56,12 +84,12 @@ export const BasicInspectionOption = useCrudSchemas(reactive([ } }, }, - { - label: '巡检项', - field: 'type', - sort: 'custom', - isSearch: true, - }, + // { + // label: '巡检项', + // field: 'type', + // sort: 'custom', + // isSearch: true, + // }, { label: '创建时间', field: 'createTime', diff --git a/src/views/eam/basicInspectionOption/index.vue b/src/views/eam/basicInspectionOption/index.vue index c58bf8890..1098f0ef9 100644 --- a/src/views/eam/basicInspectionOption/index.vue +++ b/src/views/eam/basicInspectionOption/index.vue @@ -165,6 +165,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + BasicInspectionOption.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + }else{ + BasicInspectionOption.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts b/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts index b3fdbcfb2..2daf541c2 100644 --- a/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts +++ b/src/views/eam/basicMaintenanceOption/basicMaintenanceOption.data.ts @@ -1,5 +1,10 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter } from '@/utils/formatTime' +import { + BasicMaintenanceItemSelectSet +} from "@/views/eam/maintenanceItemSelectSet/maintenanceItemSelectSet.data"; +import * as ItemApi from "@/api/eam/maintenanceItemSelectSet"; +import {getBasicMaintenanceItemSelectSetPage} from "@/api/eam/maintenanceItemSelectSet"; // 表单校验 export const BasicMaintenanceOptionRules = reactive({ @@ -30,6 +35,29 @@ export const BasicMaintenanceOption = useCrudSchemas(reactive([ sort: 'custom', isSearch: true, }, + { + label: '选择集', + field: 'selectId', + sort: 'custom', + isDetail: true, + form: { + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchTitle: '保养选择集信息', // 查询弹窗标题 + searchAllSchemas: BasicMaintenanceItemSelectSet.allSchemas, // 查询弹窗所需类 + searchField: 'name', // 查询弹窗赋值字段 + searchPage: ItemApi.getBasicMaintenanceItemSelectSetPage, // 查询弹窗所需分页方法 + multiple:true, + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] + } + } + }, { label: '描述', field: 'describing', @@ -37,10 +65,16 @@ export const BasicMaintenanceOption = useCrudSchemas(reactive([ isSearch: true, }, { - label: '项是否可修改默认是', + label: '项是否可修改', field: 'isUpdated', sort: 'custom', + dictType: DICT_TYPE.IS_UPDATED, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isTable: true, + isDetail: false, isSearch: true, + isTableForm: false, + isForm: true, form: { component: 'Switch', value: 'TRUE', @@ -50,12 +84,12 @@ export const BasicMaintenanceOption = useCrudSchemas(reactive([ } }, }, - { - label: '保养项', - field: 'type', - sort: 'custom', - isSearch: true, - }, + // { + // label: '保养项', + // field: 'type', + // sort: 'custom', + // isSearch: true, + // }, { label: '创建时间', field: 'createTime', @@ -103,14 +137,13 @@ export const BasicMaintenanceOption = useCrudSchemas(reactive([ label: '是否可用', field: 'available', sort: 'custom', - form: { - component: 'Switch', - value: 'TRUE', - componentProps: { - inactiveValue: 'FALSE', - activeValue: 'TRUE' - } - }, + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 + isTable: true, + isDetail: false, + isSearch: false, + isTableForm: false, + isForm: false, }, { label: '删除时间', diff --git a/src/views/eam/basicMaintenanceOption/index.vue b/src/views/eam/basicMaintenanceOption/index.vue index cc0acef00..2a95475e9 100644 --- a/src/views/eam/basicMaintenanceOption/index.vue +++ b/src/views/eam/basicMaintenanceOption/index.vue @@ -165,6 +165,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + BasicMaintenanceOption.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = true + } + }) + }else{ + BasicMaintenanceOption.allSchemas.formSchema.forEach((item) => { + if (item.field == 'code') { + item.componentProps.disabled = false + } + }) + } basicFormRef.value.open(type, row) } diff --git a/src/views/wms/basicDataManage/itemManage/relegateRequestDetail/index.vue b/src/views/eam/maintenanceItemSelectSet/index.vue similarity index 52% rename from src/views/wms/basicDataManage/itemManage/relegateRequestDetail/index.vue rename to src/views/eam/maintenanceItemSelectSet/index.vue index ca983bb05..a27d398b8 100644 --- a/src/views/wms/basicDataManage/itemManage/relegateRequestDetail/index.vue +++ b/src/views/eam/maintenanceItemSelectSet/index.vue @@ -1,7 +1,7 @@ @@ -137,7 +140,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ - defaultButtons.defaultAddBtn({hasPermi:'wms:container-record-detail:create'}), // 新增 + // defaultButtons.defaultAddBtn({hasPermi:'wms:container-record-detail:create'}), // 新增 defaultButtons.defaultExportBtn({hasPermi:'wms:container-record-detail:export'}), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 diff --git a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue index f6d0dffec..16eb68241 100644 --- a/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue @@ -118,6 +118,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['inventoryStatus'] = val[0]['inventoryStatus'] row['fromLocationCode'] = val[0]['locationCode'] row['itemCode'] = val[0]['itemCode'] + row['uom'] = val[0]['uom'] } else { const setV = {} setV[formField] = val[0][searchField] @@ -136,6 +137,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => { setV['inventoryStatus'] = val[0]['inventoryStatus'] setV['fromLocationCode'] = val[0]['locationCode'] setV['itemCode'] = val[0]['itemCode'] + row['uom'] = val[0]['uom'] formRef.setValues(setV) }) } diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue index f9096474d..e2920d06c 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue @@ -220,7 +220,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => row['supplierQty'] = val[0]['supplierQty'] row['supplierUom'] = val[0]['supplierUom'] row['inventoryStatus'] = val[0]['inventoryStatus'] - row['fromLocationCode'] = val[0]['toLocationCode'] + // row['fromLocationCode'] = val[0]['toLocationCode'] row['toLocationCode'] = val[0]['toLocationCode'] row['fromLocationGroupCode'] = val[0]['locationGroupCode'] row['toLocationGroupCode'] = null @@ -246,7 +246,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => row['containerNumber'] = val[0]['toContainerNumber'] row['containerNumber'] = val[0]['containerNumber'] row['containerNumber'] = val[0]['containerNumber'] - row['fromLocationCode'] = val[0]['fromLocationCode'] + // row['fromLocationCode'] = val[0]['fromLocationCode'] row['toLocationCode'] = val[0]['toLocationCode'] } } else { @@ -266,7 +266,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => if (res) tableData.value = res tableData.value.forEach((item) => { item.batch = item.toBatch - item.packingNumber = null + item.packingNumber = item.fromPackingNumber item.containerNumber = item.toContainerNumber item.receiptQty = item.qty item.toLocationGroupCode = null @@ -336,7 +336,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => { setV['supplierQty'] = val[0]['supplierQty'] setV['supplierUom'] = val[0]['supplierUom'] setV['inventoryStatus'] = val[0]['inventoryStatus'] - setV['fromLocationCode'] = val[0]['toLocationCode'] + // setV['fromLocationCode'] = val[0]['toLocationCode'] setV['toLocationCode'] = val[0]['toLocationCode'] setV['fromLocationGroupCode'] = val[0]['locationGroupCode'] setV['toLocationGroupCode'] = null @@ -362,7 +362,7 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef) => { setV['containerNumber'] = val[0]['toContainerNumber'] setV['containerNumber'] = val[0]['containerNumber'] setV['containerNumber'] = val[0]['containerNumber'] - setV['fromLocationCode'] = val[0]['fromLocationCode'] + // setV['fromLocationCode'] = val[0]['fromLocationCode'] setV['toLocationCode'] = val[0]['toLocationCode'] } }else { diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts index 2dbadc3fe..daf309ff7 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts @@ -823,16 +823,6 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive } } }, - { - label: '包装号', - field: 'packingNumber', - sort: 'custom', - table: { - width: 150 - }, - isTable: false, - isTableForm: true - }, { label: '替代批次', field: 'altBatch', @@ -1002,6 +992,16 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive } } }, + { + label: '从库位代码', + field: 'fromLocationCode', + sort: 'custom', + table: { + width: 150 + }, + hiddenInMain: true, + isTable: false, + }, { label: '到库位代码', field: 'toLocationCode', diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts index 34c890aa4..02ea8131c 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts @@ -16,7 +16,6 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive