diff --git a/src/api/wms/balanceDifference/index.ts b/src/api/wms/balanceDifference/index.ts new file mode 100644 index 000000000..ec3cf977c --- /dev/null +++ b/src/api/wms/balanceDifference/index.ts @@ -0,0 +1,89 @@ +import request from '@/config/axios' + +export interface BalanceVO { + packingNumber: string + containerNumber: string + itemCode: string + batch: string + altBatch: string + arriveDate: Date + produceDate: Date + expireDate: Date + inventoryStatus: string + locationCode: string + locationGroupCode: string + areaCode: string + warehouseCode: string + erpLocationCode: string + ownerCode: string + uom: string + qty: number + lockedQty: number + usableQty: number + singlePrice: number + amount: number + putInTime: Date + frozen: string + frozenReason: string + lastTransNumber: string + weight: number + area: number + volume: number +} + +export const getTransactionBalancePage = async (params) => { + params.areaCode = "DIFF"; + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/transaction/senior', data }) + } else { + return await request.get({ url: `/wms/transaction/page_balance`, params }) + } +} + +// 查询库存余额列表(包括已冻结,已失效的物料) +export const getBalancePageAll = async (params) => { + params.locationCode = "DIFF"; + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/balanceDIFF/seniorAll', data }) + } else { + return await request.get({ url: `/wms/balanceDIFF/pageAll`, params }) + } +} + +// 导出库存余额 Excel +export const exportBalance = async (params) => { + params.locationCode = "DIFF"; + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/balanceDIFF/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/balanceDIFF/export-excel`, params }) + } +} + + +// 查询库存余额列表(包括已冻结,已失效的物料) +export const getBalancePageAllDiff = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/balanceDIFF/seniorAll', data }) + } else { + return await request.get({ url: `/wms/balanceDIFF/pageAll`, params }) + } +} +// 查询库存余额列表增加物料筛选条件 +export const getBalanceItemPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/balanceDIFF/seniorItems', data }) + } else { + return await request.get({ url: `/wms/balanceDIFF/pageItems`, params }) + } +} + diff --git a/src/api/wms/differenceRecordDetail/index.ts b/src/api/wms/differenceRecordDetail/index.ts new file mode 100644 index 000000000..d5806446d --- /dev/null +++ b/src/api/wms/differenceRecordDetail/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +export interface DifferenceRecordDetailVO { + id: number + packingNumber: string + containerNumber: string + batch: string + fromLocationCode: string + inventoryStatus: string + masterId: number + number: string + itemCode: string + remark: string + siteId: string + itemName: string + itemDesc1: string + itemDesc2: string + qty: number + uom: string + concurrencyStamp: number +} + +// 查询差异出库记录子列表 +export const getDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/difference-record-detail/senior', data }) + } else { + return await request.get({ url: `/wms/difference-record-detail/page`, params }) + } +} + +// 查询差异出库记录子详情 +export const getDetail = async (id: number) => { + return await request.get({ url: `/wms/difference-record-detail/get?id=` + id }) +} + +// 新增差异出库记录子 +export const createDetail = async (data: DifferenceRecordDetailVO) => { + return await request.post({ url: `/wms/difference-record-detail/create`, data }) +} + +// 修改差异出库记录子 +export const updateDetail = async (data: DifferenceRecordDetailVO) => { + return await request.put({ url: `/wms/difference-record-detail/update`, data }) +} + +// 删除差异出库记录子 +export const deleteDetail = async (id: number) => { + return await request.delete({ url: `/wms/difference-record-detail/delete?id=` + id }) +} + +// 导出差异出库记录子 Excel +export const exportDetail = async (params) => { + return await request.download({ url: `/wms/difference-record-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/difference-record-detail/get-import-template' }) +} diff --git a/src/api/wms/differenceRequestDetail/index.ts b/src/api/wms/differenceRequestDetail/index.ts new file mode 100644 index 000000000..669a8b057 --- /dev/null +++ b/src/api/wms/differenceRequestDetail/index.ts @@ -0,0 +1,62 @@ +import request from '@/config/axios' + +export interface DifferenceRequestDetailVO { + id: number + packingNumber: string + containerNumber: string + batch: string + fromLocationCode: string + inventoryStatus: string + masterId: number + number: string + itemCode: string + remark: string + siteId: string + itemName: string + itemDesc1: string + itemDesc2: string + qty: number + uom: string + concurrencyStamp: number +} + +// 查询差异出库申请子列表 +export const getDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/difference-request-detail/senior', data }) + } else { + return await request.get({ url: `/wms/difference-request-detail/page`, params }) + } +} + +// 查询差异出库申请子详情 +export const getDetail = async (id: number) => { + return await request.get({ url: `/wms/difference-request-detail/get?id=` + id }) +} + +// 新增差异出库申请子 +export const createDetail = async (data: DifferenceRequestDetailVO) => { + return await request.post({ url: `/wms/difference-request-detail/create`, data }) +} + +// 修改差异出库申请子 +export const updateDetail = async (data: DifferenceRequestDetailVO) => { + return await request.put({ url: `/wms/difference-request-detail/update`, data }) +} + +// 删除差异出库申请子 +export const deleteDetail = async (id: number) => { + return await request.delete({ url: `/wms/difference-request-detail/delete?id=` + id }) +} + +// 导出差异出库申请子 Excel +export const exportDetail = async (params) => { + return await request.download({ url: `/wms/difference-request-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/difference-request-detail/get-import-template' }) +} diff --git a/src/api/wms/differenceRequestMain/index.ts b/src/api/wms/differenceRequestMain/index.ts new file mode 100644 index 000000000..65ab44f38 --- /dev/null +++ b/src/api/wms/differenceRequestMain/index.ts @@ -0,0 +1,87 @@ +import request from '@/config/axios' + +export interface DifferenceRequestMainVO { + id: number + number: string + businessType: string + remark: string + reason: string + reasonCode: string + usageCode: string + usageDescription: string + departmentCode: string + status: string + autoCommit: string + autoAgree: string + autoExecute: string + extraProperties: string + siteId: string + requestTime: Date + dueTime: Date + concurrencyStamp: number + ruleUserId: number + serialNumber: string +} + +// 查询差异出库申请主列表 +export const getMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/difference-request-main/senior', data }) + } else { + return await request.get({ url: `/wms/difference-request-main/page`, params }) + } +} + +// 查询差异出库申请主详情 +export const getMain = async (id: number) => { + return await request.get({ url: `/wms/difference-request-main/get?id=` + id }) +} + +// 新增差异出库申请主 +export const createMain = async (data: DifferenceRequestMainVO) => { + return await request.post({ url: `/wms/difference-request-main/create`, data }) +} + +// 修改差异出库申请主 +export const updateMain = async (data: DifferenceRequestMainVO) => { + return await request.put({ url: `/wms/difference-request-main/update`, data }) +} + +// 删除差异出库申请主 +export const deleteMain = async (id: number) => { + return await request.delete({ url: `/wms/difference-request-main/delete?id=` + id }) +} + +// 导出差异出库申请主 Excel +export const exportMain = async (params) => { + return await request.download({ url: `/wms/difference-request-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/difference-request-main/get-import-template' }) +} + +// 关闭 +export const closeMain = async (id: number) => { + return await request.put({ url: `/wms/difference-request-main/close?id=` + id }) +} +// 提交 +export const submitMain = async (id: number) => { + return await request.put({ url: `/wms/difference-request-main/submit?id=` + id }) +} +// 处理 +export const handleMain = async (id: number) => { + return await request.put({ url: `/wms/difference-request-main/handle?id=` + id }) +} +// 审批通过 +export const agreeMain = async (id: number) => { + return await request.put({ url: `/wms/difference-request-main/agree?id=` + id }) +} +//审批拒绝 +export const abortMain = async (id: number) => { + return await request.put({ url: `/wms/difference-request-main/refused?id=` + id }) +} + diff --git a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts index cc48f1781..861ca38fd 100644 --- a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts +++ b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts @@ -106,19 +106,19 @@ export const Stdcostprice = useCrudSchemas(reactive([ isSearch : true, isTable : true }, - // { - // label: '价格', - // field: 'price', - // sort: 'custom', - // isSearch: true, - // form: { - // component: 'InputNumber', - // componentProps: { - // min: 0, - // precision: 6 - // } - // } - // }, + { + label: '价格', + field: 'price', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + componentProps: { + min: 0, + precision: 6 + } + } + }, { label: '是否可用', field: 'available', diff --git a/src/views/wms/basicDataManage/itemPull/index.vue b/src/views/wms/basicDataManage/itemPull/index.vue index 0882d6a2d..b040a32e6 100644 --- a/src/views/wms/basicDataManage/itemPull/index.vue +++ b/src/views/wms/basicDataManage/itemPull/index.vue @@ -210,7 +210,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await ItemPullApi.exportItemPull(tableObject.params) - download.excel(data, '物料拉动配置.xlsx') + download.excel(data, '品番拉动配置.xlsx') } catch { } finally { exportLoading.value = false diff --git a/src/views/wms/basicDataManage/itemPull/itemPull.data.ts b/src/views/wms/basicDataManage/itemPull/itemPull.data.ts index 54455365e..a8a7342b4 100644 --- a/src/views/wms/basicDataManage/itemPull/itemPull.data.ts +++ b/src/views/wms/basicDataManage/itemPull/itemPull.data.ts @@ -4,16 +4,50 @@ import * as SupplierApi from '@/api/wms/supplier' import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' import * as ItembasicApi from '@/api/wms/itembasic' import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' +import * as AreaApi from '@/api/wms/areabasic' +import { Area } from '@/views/wms/basicDataManage/factoryModeling/areabasic/areabasic.data' // 表单校验 export const ItemPullRules = reactive({ - itemCode: [required], + defaultErpLocationCode: [required], replenishType: [required], pullType: [required] }) export const ItemPull = useCrudSchemas( reactive([ + { + label: 'ERP默认收货库位', + field: 'defaultErpLocationCode', + sort: 'custom', + table: { + width: 150, + fixed: 'left' + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + multiple: true, + enterSearch: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择ERP默认收货库位', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '库区信息', // 查询弹窗标题 + searchAllSchemas: Area.allSchemas, // 查询弹窗所需类 + searchPage: AreaApi.getAreaPage, // 查询弹窗所需分页方法 + verificationParams: [ + { + key: 'code', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true + } + ] // 失去焦点校验参数 + } + } + }, { label: '品番', field: 'itemCode', @@ -21,7 +55,7 @@ export const ItemPull = useCrudSchemas( isSearch: true, table: { width: 180, - fixed: 'left' + }, form: { // labelMessage: '信息提示说明!!!', @@ -104,7 +138,6 @@ export const ItemPull = useCrudSchemas( isSearch: true, table: { width: 150, - fixed: 'left' }, form: { // labelMessage: '信息提示说明!!!', diff --git a/src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue b/src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue index a67edd609..2e62f5e0c 100644 --- a/src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue @@ -142,7 +142,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => let tfk = JSON.parse(JSON.stringify(tableFormKeys)) tfk['code'] = item['code'] tfk['shift'] = item['shift'] - tfk['beginTime'] = item['begeinTime'] + tfk['beginTime'] = item['beginTime'] tableData.value.push(tfk) }) } @@ -389,17 +389,34 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { detailRef.value.openDetail(row, titleName, titleValue, 'basicSupplierAddrDeliTimeDetail') } +/** 删除按钮操作 */ +// const handleDelete = async (id: number) => { +// try { +// // 删除的二次确认 +// await message.delConfirm() +// // 发起删除 +// await ModelDeliTimeDetailApi.deleteSupplierAddrDeliTimeDetail(id) +// message.success(t('common.delSuccess')) +// // 刷新列表 +// await getList() +// } catch {} +// } + /** 删除按钮操作 */ const handleDelete = async (id: number) => { try { // 删除的二次确认 await message.delConfirm() + tableObject.loading = true // 发起删除 await ModelDeliTimeDetailApi.deleteSupplierAddrDeliTimeDetail(id) message.success(t('common.delSuccess')) - // 刷新列表 + tableObject.loading = false + // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 导出按钮操作 */ diff --git a/src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts b/src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts index b796c0be4..78e298a96 100644 --- a/src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts @@ -1,5 +1,4 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' -import { dateFormatter } from '@/utils/formatTime' import * as SupplierApi from '@/api/wms/supplier' // import {Supplier} from '@/basicDataManage/supplierManage/supplier/supplier.data' import { Supplier } from '../supplier/supplier.data' @@ -7,312 +6,289 @@ import { DeliTimeWms } from '../DeliTimeWms/deliTimeWms.data' import * as DeliTimeWmsApi from '@/api/wms/deliTimeWms' import { fa } from 'element-plus/es/locale' import * as modelDeliTimeApi from '@/api/wms/modelDeliTime' - +import { dateFormatter, dateFormatterHHMMSS } from '@/utils/formatTime' // 表单校验 export const ModelDeliTimeDetailRules = reactive({ modelShow: [required], yearAndMonthShow: [required], - delayDeli: [required], + delayDeli: [required] }) function getMonthArr() { - let dateArr = []; - let year = new Date().getFullYear(); - let month = new Date().getMonth(); + let dateArr = [] + let year = new Date().getFullYear() + let month = new Date().getMonth() const n = 12 if (n < month) { //1.nmonth的情况 - for (let i = (12 - (n - month) + 1); i <= 12; i++) { - let m1 = i < 10 ? "0" + i : i; + //2.n>month的情况 + for (let i = 12 - (n - month) + 1; i <= 12; i++) { + let m1 = i < 10 ? '0' + i : i dateArr.push({ label: year + '-' + m1, value: year + '-' + m1 - }); + }) } for (let i = 1; i <= month; i++) { - let m1 = i < 10 ? "0" + i : i; + let m1 = i < 10 ? '0' + i : i dateArr.push({ - label: (parseFloat(year) + 1) + '-' + m1, - value: (parseFloat(year) + 1) + '-' + m1, - }); + label: parseFloat(year) + 1 + '-' + m1, + value: parseFloat(year) + 1 + '-' + m1 + }) } } - return dateArr; + return dateArr } -export const ModelList = useCrudSchemas(reactive([ - { - label: '受入号', - field: 'model', - sort: 'custom', - isSearch: true, - }, -])) +export const ModelList = useCrudSchemas( + reactive([ + { + label: '受入号', + field: 'model', + sort: 'custom', + isSearch: true + } + ]) +) -export const ModelDeliTime = useCrudSchemas(reactive([ - // { - // label: '供应商代码', - // field: 'supplierCode', - // sort: 'custom', - // isSearch: true, - // form: { - // // labelMessage: '信息提示说明!!!', - // componentProps: { - // isSearchList: true, // 开启查询弹窗 - // enterSearch: true, - // searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 - // searchField: 'number', // 查询弹窗赋值字段 - // searchTitle: '供应商', // 查询弹窗标题 - // searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 - // searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法 - // searchCondition: [ - // { - // key: 'available', - // value: "TRUE", - // isMainValue: false - // } - // ], - // // 失去焦点校验参数 - // verificationParams: [{ - // key: 'code', - // action: '==', - // value: '', - // isMainValue: false, - // isSearch: 'true', - // isFormModel: true, - // }] - // } - // } - // }, - // { - // label: '供应商名称', - // field: 'supplierName', - // sort: 'custom', - // form :{ - // componentProps:{ - // disabled:true - // } - // }, - // }, - { - label: '受入号', - field: 'model', - sort: 'custom', - isSearch: true, - isTable: true, - isDetail: true, - // form: { - // component: 'Select', - // componentProps: { - // multiple: true, - // collapseTags: true, - // collapseTagsTooltip: true, - // maxCollapseTags: "2", - // optionsAlias: { - // labelField: 'label', - // valueField: 'value' +export const ModelDeliTime = useCrudSchemas( + reactive([ + // { + // label: '供应商代码', + // field: 'supplierCode', + // sort: 'custom', + // isSearch: true, + // form: { + // // labelMessage: '信息提示说明!!!', + // componentProps: { + // isSearchList: true, // 开启查询弹窗 + // enterSearch: true, + // searchListPlaceholder: '请选择供应商代码', // 输入框占位文本 + // searchField: 'number', // 查询弹窗赋值字段 + // searchTitle: '供应商', // 查询弹窗标题 + // searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 + // searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法 + // searchCondition: [ + // { + // key: 'available', + // value: "TRUE", + // isMainValue: false + // } + // ], + // // 失去焦点校验参数 + // verificationParams: [{ + // key: 'code', + // action: '==', + // value: '', + // isMainValue: false, + // isSearch: 'true', + // isFormModel: true, + // }] // } // } - // } - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - multiple:true, - disabled:true, - enterSearch: false, - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择受入号', // 输入框占位文本 - searchField: 'model', // 查询弹窗赋值字段 - searchTitle: '受入号', // 查询弹窗标题 - searchAllSchemas: ModelList.allSchemas, // 查询弹窗所需类 - searchPage: modelDeliTimeApi.getSupplierAddrList, // 查询弹窗所需分页方法 - searchCondition: [ - { - key: 'available', - value: 'TRUE', - isMainValue: false - }, - ], - verificationParams: [ - { - key: 'itemCode', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true - } - ] // 失去焦点校验参数 - } - } - }, - // { - // label: '受入号', - // field: 'model', - // sort: 'custom', - // isTable: true, - // isDetail: true, - // isForm: false, - // }, - { - label: '年月', - field: 'yearAndMonthShow', - sort: 'custom', - isTable: false, - isDetail: false, - form: { - component: 'Select', - api: () => getMonthArr(), - value:[], - componentProps: { - multiple: true, - collapseTags: true, - collapseTagsTooltip: true, - maxCollapseTags:"2", - optionsAlias: { - labelField: 'label', - valueField: 'value' + // }, + // { + // label: '供应商名称', + // field: 'supplierName', + // sort: 'custom', + // form :{ + // componentProps:{ + // disabled:true + // } + // }, + // }, + { + label: '受入号', + field: 'model', + sort: 'custom', + isSearch: true, + isTable: true, + isDetail: true, + // form: { + // component: 'Select', + // componentProps: { + // multiple: true, + // collapseTags: true, + // collapseTagsTooltip: true, + // maxCollapseTags: "2", + // optionsAlias: { + // labelField: 'label', + // valueField: 'value' + // } + // } + // } + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + multiple: true, + disabled: true, + enterSearch: false, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择受入号', // 输入框占位文本 + searchField: 'model', // 查询弹窗赋值字段 + searchTitle: '受入号', // 查询弹窗标题 + searchAllSchemas: ModelList.allSchemas, // 查询弹窗所需类 + searchPage: modelDeliTimeApi.getSupplierAddrList, // 查询弹窗所需分页方法 + searchCondition: [ + { + key: 'available', + value: 'TRUE', + isMainValue: false + } + ], + verificationParams: [ + { + key: 'itemCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true + } + ] // 失去焦点校验参数 } } - } - }, - { - label: '年月', - field: 'yearAndMonth', - sort: 'custom', - isTable: true, - isDetail: true, - isForm: false, - isSearch: true, - search: { - component: 'DatePicker', - componentProps: { - type: 'month', - valueFormat: 'YYYY-MM', + }, + // { + // label: '受入号', + // field: 'model', + // sort: 'custom', + // isTable: true, + // isDetail: true, + // isForm: false, + // }, + { + label: '年月', + field: 'yearAndMonthShow', + sort: 'custom', + isTable: false, + isDetail: false, + form: { + component: 'Select', + api: () => getMonthArr(), + value: [], + componentProps: { + multiple: true, + collapseTags: true, + collapseTagsTooltip: true, + maxCollapseTags: '2', + optionsAlias: { + labelField: 'label', + valueField: 'value' + } + } } }, - }, - { - label: '延迟便次', - field: 'delayDeli', - sort: 'custom', - form: { - component: 'InputNumber', - value: 0, - componentProps: { - min:0, - precision:0 + { + label: '年月', + field: 'yearAndMonth', + sort: 'custom', + isTable: true, + isDetail: true, + isForm: false, + isSearch: true, + search: { + component: 'DatePicker', + componentProps: { + type: 'month', + valueFormat: 'YYYY-MM' + } } }, - }, - { - label: '班次', - field: 'shift', - sort: 'custom', - isForm: false, - dictType: DICT_TYPE.DELISHIF, - dictClass: 'string', - }, - { - label: '编号', - field: 'code', - sort: 'custom', - isForm: false, - }, - { - label: '创建时间', - field: 'createTime', - sort: 'custom', - formatter: dateFormatter, - search: { - component: 'DatePicker', - componentProps: { - valueFormat: 'YYYY-MM-DD HH:mm:ss', - type: 'daterange', - defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + { + label: '延迟便次', + field: 'delayDeli', + sort: 'custom', + form: { + component: 'InputNumber', + value: 0, + componentProps: { + min: 0, + precision: 0 + } } }, - isForm: false, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' + { + label: '班次', + field: 'shift', + sort: 'custom', + isForm: false, + dictType: DICT_TYPE.DELISHIF, + dictClass: 'string' }, - }, - { - label: '操作', - field: 'action', - isForm: false, - isDetail:false, - table: { - width: 150, - fixed: 'right' - } - } -])) - - - -export const ModelDeliTimeDetail = useCrudSchemas(reactive([ - { - label: '编号', - field: 'code', - sort: 'custom', - isForm: false, - tableForm:{ - multiple: true,//多选 - isInpuFocusShow: false, // 开启查询弹窗 - disabled:true, - searchListPlaceholder: '请选择便次时间配置',// 输入框占位文本 - searchField: 'code', // 查询弹窗赋值字段 - searchTitle: '便次时间配置', // 查询弹窗标题 - searchAllSchemas: DeliTimeWms.allSchemas, // 查询弹窗所需类 - searchPage: DeliTimeWmsApi.getDeliTimePage, // 查询弹窗所需分页方法 - searchCondition: [{ - key: 'available', - value: 'TRUE', - action: '==', - isSearch: true, - isMainValue: false + { + label: '编号', + field: 'code', + sort: 'custom', + isForm: false + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + search: { + component: 'DatePicker', + componentProps: { + valueFormat: 'YYYY-MM-DD HH:mm:ss', + type: 'daterange', + defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] + } }, - ], - verificationPage: DeliTimeWmsApi.getDeliTimePage, // tableForm下方输入框校验失去焦点之后是否正确的方法 - // isShowTableFormSearch: true, //tableForm下方是否出现输入框 - verificationParams: [{ - key: 'itemCode', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true, - }], // 失去焦点校验参数 + isForm: false, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + } }, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - disabled:true, - enterSearch: true, - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择品番', // 输入框占位文本 - searchField: 'itemCode', // 查询弹窗赋值字段 - searchTitle: '供应商物料信息', // 查询弹窗标题 + { + label: '操作', + field: 'action', + isForm: false, + isDetail: false, + table: { + width: 150, + fixed: 'right' + } + } + ]) +) + +export const ModelDeliTimeDetail = useCrudSchemas( + reactive([ + { + label: '编号', + field: 'code', + sort: 'custom', + isForm: false, + tableForm: { + multiple: true, //多选 + isInpuFocusShow: false, // 开启查询弹窗 + disabled: true, + searchListPlaceholder: '请选择便次时间配置', // 输入框占位文本 + searchField: 'code', // 查询弹窗赋值字段 + searchTitle: '便次时间配置', // 查询弹窗标题 searchAllSchemas: DeliTimeWms.allSchemas, // 查询弹窗所需类 searchPage: DeliTimeWmsApi.getDeliTimePage, // 查询弹窗所需分页方法 searchCondition: [ { key: 'available', value: 'TRUE', + action: '==', + isSearch: true, isMainValue: false - }, + } ], + verificationPage: DeliTimeWmsApi.getDeliTimePage, // tableForm下方输入框校验失去焦点之后是否正确的方法 + // isShowTableFormSearch: true, //tableForm下方是否出现输入框 verificationParams: [ { key: 'itemCode', @@ -323,40 +299,103 @@ export const ModelDeliTimeDetail = useCrudSchemas(reactive([ isFormModel: true } ] // 失去焦点校验参数 + }, + form: { + // labelMessage: '信息提示说明!!!', + componentProps: { + disabled: true, + enterSearch: true, + isSearchList: true, // 开启查询弹窗 + searchListPlaceholder: '请选择品番', // 输入框占位文本 + searchField: 'itemCode', // 查询弹窗赋值字段 + searchTitle: '供应商物料信息', // 查询弹窗标题 + searchAllSchemas: DeliTimeWms.allSchemas, // 查询弹窗所需类 + searchPage: DeliTimeWmsApi.getDeliTimePage, // 查询弹窗所需分页方法 + searchCondition: [ + { + key: 'available', + value: 'TRUE', + isMainValue: false + } + ], + verificationParams: [ + { + key: 'itemCode', + action: '==', + value: '', + isMainValue: false, + isSearch: true, + isFormModel: true + } + ] // 失去焦点校验参数 + } + } + }, + { + label: '班次', + field: 'shift', + sort: 'custom', + isForm: false, + dictType: DICT_TYPE.DELISHIF, + dictClass: 'string', + tableForm: { + disabled: true, + type: 'Select' + } + }, + { + label: '开始时间', + field: 'beginTime', + sort: 'custom', + formatter: dateFormatterHHMMSS, + isSearch: true, + search: { + component: 'TimePicker', + componentProps: { + type: 'time', + dateFormat: 'HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss' + } + }, + form: { + component: 'TimePicker', + componentProps: { + disabled: true, + type: 'time', + dateFormat: 'HH:mm:ss', + valueFormat: 'x' + } + }, + tableForm: { + disabled: true, + type:'FormDateTime', + format:'HH:mm:ss', + valueFormat: 'x' + }, + detail: { + dateFormat: 'HH:mm:ss' + } + }, + { + label: '操作', + field: 'action', + isForm: false, + isTableForm: false, + table: { + width: 150, + fixed: 'right' } } - }, - { - label: '班次', - field: 'shift', - sort: 'custom', - isForm: false, - dictType: DICT_TYPE.DELISHIF, - dictClass: 'string', - tableForm:{ - disabled:true, - type:'Select' - } - }, - { - label: '操作', - field: 'action', - isForm: false, - isTableForm:false, - table: { - width: 150, - fixed: 'right' - } - } - // { - // label: '开始时间', - // field: 'beginTime', - // sort: 'custom', - // isForm: false, - // formatter: dateFormatter, - // tableForm:{ - // disabled:true, - // formatter: dateFormatter, - // } - // }, -])) \ No newline at end of file + // { + // label: '开始时间', + // field: 'beginTime', + // sort: 'custom', + // isForm: false, + // formatter: dateFormatter, + // tableForm:{ + // disabled:true, + // formatter: dateFormatter, + // } + // }, + ]) +) diff --git a/src/views/wms/countManage/count/countConfig/countConfig.data.ts b/src/views/wms/countManage/count/countConfig/countConfig.data.ts index 654455e28..972acaae5 100644 --- a/src/views/wms/countManage/count/countConfig/countConfig.data.ts +++ b/src/views/wms/countManage/count/countConfig/countConfig.data.ts @@ -146,7 +146,8 @@ export const CountConfig = useCrudSchemas(reactive([ component: 'InputNumber', value: 0, componentProps: { - min:0, + disabled: true, + min:1, precision:2 } }, diff --git a/src/views/wms/countManage/count/countConfig/index.vue b/src/views/wms/countManage/count/countConfig/index.vue index 11a8f2d12..e786ca77f 100644 --- a/src/views/wms/countManage/count/countConfig/index.vue +++ b/src/views/wms/countManage/count/countConfig/index.vue @@ -1,18 +1,22 @@