From b6ffcb64554e349f15336d2d2764a49bb4d479d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Wed, 6 Mar 2024 16:00:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../labelManage/callMaterials/index.vue | 264 ------------------ .../callmaterials/callmaterials.data.ts | 192 ------------- .../labelManage/callmaterials/index.vue | 264 ------------------ 3 files changed, 720 deletions(-) delete mode 100644 src/views/wms/basicDataManage/labelManage/callMaterials/index.vue delete mode 100644 src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts delete mode 100644 src/views/wms/basicDataManage/labelManage/callmaterials/index.vue diff --git a/src/views/wms/basicDataManage/labelManage/callMaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callMaterials/index.vue deleted file mode 100644 index a5605811e..000000000 --- a/src/views/wms/basicDataManage/labelManage/callMaterials/index.vue +++ /dev/null @@ -1,264 +0,0 @@ - - - diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts deleted file mode 100644 index 72a53bc6a..000000000 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts +++ /dev/null @@ -1,192 +0,0 @@ -import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' - -import * as ItembasicApi from '@/api/wms/itembasic' -import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' -import * as LocationApi from '@/api/wms/location' -import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' -import * as PackageunitApi from '@/api/wms/packageunit' -import { Packageunit } from '@/views/wms/basicDataManage/itemManage/packageunit/packageunit.data' - -// 表单校验 -export const CallmaterialsRules = reactive({ - itemCode: [required], - itemName: [required], - barcodeString: [required] -}) - -export const Callmaterials = useCrudSchemas(reactive([ - { - label: '物料代码', - field: 'itemCode', - sort: 'custom', - table: { - width: 150, - fixed: 'left' - }, - isSearch: true, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择物料代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '物料信息', // 查询弹窗标题 - searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 - searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 - searchCondition: [{ - key: 'available', - value: 'TRUE', - isMainValue: false - }] - } - } - }, - { - label: '库位', - field: 'location', - sort: 'custom', - table: { - width: 150 - }, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择库位代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '库位信息', // 查询弹窗标题 - searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 - searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法 - } - }, - isSearch: true - }, - { - label: '数量', - field: 'qty', - sort: 'custom', - table: { - width: 120 - }, - form: { - component: 'InputNumber', - componentProps: { - style: {width:'100%'}, - min: 0, - precision: 6 - } - } - }, - { - label: '计量单位', - field: 'uom', - sort: 'custom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - table: { - width: 120 - }, - }, - { - label: '批次', - field: 'batch', - sort: 'custom', - isSearch: true, - table: { - width: 120 - } - }, - { - label: '包装规格', - field: 'packUnit', - sort: 'custom', - table: { - width: 150 - }, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择包装规格代码', // 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '包装规格信息', // 查询弹窗标题 - searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类 - searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法 - } - } - }, - { - label: '是否确认接收', - field: 'isRecive', - sort: 'custom', - dictType: DICT_TYPE.TRUE_FALSE, - dictClass: 'string', - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - form: { - component: 'Switch', - value: 'FALSE', - componentProps: { - inactiveValue: 'FALSE', - activeValue: 'TRUE' - } - } - }, - { - label: '创建者id', - field: 'creator', - sort: 'custom', - isForm: false, - table: { - width: 180, - } - }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - isForm: false, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180, - } - }, - { - label: '最后更新者id', - field: 'updater', - sort: 'custom', - isForm: false, - table: { - width: 180, - } - }, - { - label: '最后更新时间', - field: 'updateTime', - sort: 'custom', - formatter: dateFormatter, - isForm: false, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, - table: { - width: 180, - } - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 180, - fixed: 'right' - } - } -])) diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue deleted file mode 100644 index a5605811e..000000000 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue +++ /dev/null @@ -1,264 +0,0 @@ - - - From d187caf9f358193ac0e2ccef55172f7e4891f7e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Wed, 6 Mar 2024 16:00:48 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../callmaterials/callmaterials.data.ts | 192 +++++++++++++ .../labelManage/callmaterials/index.vue | 264 ++++++++++++++++++ 2 files changed, 456 insertions(+) create mode 100644 src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts create mode 100644 src/views/wms/basicDataManage/labelManage/callmaterials/index.vue diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts new file mode 100644 index 000000000..72a53bc6a --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts @@ -0,0 +1,192 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +import * as ItembasicApi from '@/api/wms/itembasic' +import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' +import * as LocationApi from '@/api/wms/location' +import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' +import * as PackageunitApi from '@/api/wms/packageunit' +import { Packageunit } from '@/views/wms/basicDataManage/itemManage/packageunit/packageunit.data' + +// 表单校验 +export const CallmaterialsRules = reactive({ + itemCode: [required], + itemName: [required], + barcodeString: [required] +}) + +export const Callmaterials = useCrudSchemas(reactive([ + { + label: '物料代码', + field: 'itemCode', + sort: 'custom', + table: { + width: 150, + fixed: 'left' + }, + isSearch: true, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '物料信息', // 查询弹窗标题 + searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] + } + } + }, + { + label: '库位', + field: 'location', + sort: 'custom', + table: { + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择库位代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '库位信息', // 查询弹窗标题 + searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 + searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法 + } + }, + isSearch: true + }, + { + label: '数量', + field: 'qty', + sort: 'custom', + table: { + width: 120 + }, + form: { + component: 'InputNumber', + componentProps: { + style: {width:'100%'}, + min: 0, + precision: 6 + } + } + }, + { + label: '计量单位', + field: 'uom', + sort: 'custom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + table: { + width: 120 + }, + }, + { + label: '批次', + field: 'batch', + sort: 'custom', + isSearch: true, + table: { + width: 120 + } + }, + { + label: '包装规格', + field: 'packUnit', + sort: 'custom', + table: { + width: 150 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择包装规格代码', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '包装规格信息', // 查询弹窗标题 + searchAllSchemas: Packageunit.allSchemas, // 查询弹窗所需类 + searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法 + } + } + }, + { + label: '是否确认接收', + field: 'isRecive', + sort: 'custom', + dictType: DICT_TYPE.TRUE_FALSE, + dictClass: 'string', + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + form: { + component: 'Switch', + value: 'FALSE', + componentProps: { + inactiveValue: 'FALSE', + activeValue: 'TRUE' + } + } + }, + { + label: '创建者id', + field: 'creator', + sort: 'custom', + isForm: false, + table: { + width: 180, + } + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180, + } + }, + { + label: '最后更新者id', + field: 'updater', + sort: 'custom', + isForm: false, + table: { + width: 180, + } + }, + { + label: '最后更新时间', + field: 'updateTime', + sort: 'custom', + formatter: dateFormatter, + isForm: false, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + table: { + width: 180, + } + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 180, + fixed: 'right' + } + } +])) diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue new file mode 100644 index 000000000..a5605811e --- /dev/null +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue @@ -0,0 +1,264 @@ + + + From 4f02affb58bc7507086c3dc1914227189193f4ac Mon Sep 17 00:00:00 2001 From: chenfang Date: Wed, 6 Mar 2024 16:07:18 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=BA=93=E5=8C=BA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=9A=90=E8=97=8F=E9=83=A8=E5=88=86=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itemarea/itemarea.data.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts b/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts index 58096e357..c693b29fe 100644 --- a/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts @@ -67,7 +67,7 @@ export const Itemarea = useCrudSchemas(reactive([ label: '入库包装规格', field: 'inPackUnit', sort: 'custom', - isSearch: true, + isSearch: false, table: { width: 150 }, @@ -94,7 +94,7 @@ export const Itemarea = useCrudSchemas(reactive([ label: '出库包装规格', field: 'outPackUnit', sort: 'custom', - isSearch: true, + isSearch: false, table: { width: 150 }, @@ -186,7 +186,7 @@ export const Itemarea = useCrudSchemas(reactive([ label: '补料来源库区', field: 'repleinshFromArea', sort: 'custom', - isSearch: true, + isSearch: false, table: { width: 150 }, @@ -228,7 +228,7 @@ export const Itemarea = useCrudSchemas(reactive([ label: '管理精度', field: 'manageMode', sort: 'custom', - isSearch: true, + isSearch: false, dictType: DICT_TYPE.MANAGEMENT_MODE, dictClass: 'string', // colorType: 'danger', @@ -301,7 +301,7 @@ export const Itemarea = useCrudSchemas(reactive([ label: '是否可用', field: 'available', sort: 'custom', - isSearch: true, + isSearch: false, dictType: DICT_TYPE.TRUE_FALSE, dictClass: 'string', // colorType: 'danger', @@ -322,13 +322,13 @@ export const Itemarea = useCrudSchemas(reactive([ label: '出库后剩余库存自动转换为出库包装规格', field: 'surplusToOutpackunit', sort: 'custom', - isSearch: true, + isSearch: false, }, { label: '超过高储是否允许叫料', field: 'allowIssueRequest', sort: 'custom', - isSearch: true, + isSearch: false, }, { label: '优先空库位',