From 84322760ab07c4f2bcb6c9d4efd9e54ff936a2fc Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 26 Mar 2024 16:07:42 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=8A=A5=E5=BA=9F=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productreceiptscrapRequestMain/index.vue | 4 ++-- .../productreceiptscrapRequestMain.data.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue index ff70c327f..3541ec885 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue @@ -585,8 +585,8 @@ const submitFormLabel = async (formType, data) => { try { detatableData.tableList.forEach(async (item) => { // 创建标签 要物料库区配置表中 入库包装规格 - item.packUnit = null - item.inOfOut = 'in' + // item.packUnit = null + // item.inOfOut = 'in' await PackageApi.createPackageLabel(item).then(res => { isCreateLabel.value = true message.success('创建标签成功') diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts index f53d8bba2..535b4adc7 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts @@ -446,7 +446,6 @@ export const ProductreceiptRequestMain = useCrudSchemas(reactive([ disabled: true } }, - isForm: false }, { label: '操作', From 4bc2afd82ae0e670d824077b1062acf33344d74d Mon Sep 17 00:00:00 2001 From: chenfang Date: Tue, 26 Mar 2024 17:41:08 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=B1=95=E7=A4=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/dict.ts | 3 +- .../deliverJobMain/deliverJobMain.data.ts | 8 + .../deliver/deliverJobMain/index.vue | 191 +++++++++--------- .../deliverRecordMain.data.ts | 8 + .../deliverRequestMain.data.ts | 71 ++++++- .../deliverPlanMain/deliverPlanMain.data.ts | 77 ++++++- 6 files changed, 256 insertions(+), 102 deletions(-) diff --git a/src/utils/dict.ts b/src/utils/dict.ts index a55244551..c2a9ff9f1 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -276,5 +276,6 @@ export enum DICT_TYPE { PACK_UNIT_TYPE = 'pack_unit_type', // 包装规格类型 TRANSFER_REASON = 'transfer_reason', // 调拨出入库原因 PURCHASERECEIPT_SOURCE_TYPE="purchasereceipt_source_type",//采购收货数据来源 - PLAN_PRODUCTION_TYPE = "plan_production_type" // 生产计划类型 + PLAN_PRODUCTION_TYPE = "plan_production_type", // 生产计划类型 + DELIVER_TYPE="deliver_type",//发货类型 } diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts index db84960d1..3e307ff01 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts @@ -761,6 +761,14 @@ export const DeliverJobDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '在途库库位', + field: 'onTheWayLocationCode', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '从库位代码', field: 'fromLocationCode', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue index 8d5aeea6c..93cdffaa4 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue +++ b/src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue @@ -180,112 +180,109 @@ const isShowMainButton = (row,val) => { // 列表-操作按钮 const butttondata = (row) => { return [ - // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 - // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 - // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 - // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 + defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 + defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 + defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 + defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // 执行 ] } // 列表-操作按钮事件 const buttonTableClick = async (val, row) => {  if (val == 'mainJobExe') { // 执行 -    let aaa = { - "id": "1809190002130023685", - "requestNumber": "REQ1720231222-0004", - "deliverPlanNumber": "DP20231222-0004", - "customerDeliverNumber": "CUST20231222-00000005", - "customerCode": "CF", - "customerDockCode": "CFCKYT", - "deliverDock": null, - "carrierCode": null, - "transferMode": null, - "vehiclePlateNumber": null, - "fromWarehouseCode": null, - "toWarehouseCode": "CFCK", - "requestTime": 1703207798000, - "requestDueTime": 1703952000000, - "status": "2", - "expiredTime": null, - "updateTime": 1703207917000, - "updater": "超级管理员", - "jobStageStatus": null, - "priority": null, - "priorityincrement": null, - "departmentCode": "100", - "acceptUserId": "1", - "acceptTime": 1703207934000, - "completeUserId": null, - "completeTime": null, - "fromAreaTypes": "FG", - "toAreaTypes": "CUST", - "number": "JOB2420231222-0006", - "businessType": "DeliverJob", - "remark": "", - "createTime": 1703207917000, - "creator": "超级管理员", - "ruleUserId": null, - "fromAreaCodes": "采购在途库", - "toAreaCodes": "采购在途库", - "fromDockCode": null, - "autoComplete": "FALSE", - "allowModifyLocation": "FALSE", - "allowModifyQty": "TRUE", - "allowBiggerQty": "TRUE", - "allowSmallerQty": "TRUE", - "allowModifyInventoryStatus": "TRUE", - "allowContinuousScanning": "TRUE", - "allowPartialComplete": "TRUE", - "allowModifyBatch": "FALSE", - "allowModifyPackingNumber": "FALSE", - "inInventoryStatuses": "OK", - "outInventoryStatuses": "OK", - "concurrencyStamp": 1, - "subList": [{ - "id": "1809190001245559379", - "soNumber": null, - "soLine": null, - "packingNumber": null, - "batch": "20230808", - "inventoryStatus": "OK", - "ownerCode": null, - "containerNumber": null, - "fromLocationCode": "L-R-001-001-1-01", - "toLocationCode": "CUST", - "itemCode": "testCF", - "itemName": "陈放测试物料", - "itemDesc1": "测试用", - "itemDesc2": "测试用", - "projectCode": "5", - "qty": 5, - "uom": "EA", - "number": "JOB2420231222-0006", - "remark": "", - "createTime": 1703207917000, - "creator": "超级管理员", - "toPackingNumber": null, - "toContainerNumber": null, - "toBatch": null, - "handleQty": null, - "toInventoryStatus": null, - recordList: [{ - handleQty: 10, - toPackingNumber: '12', - toContainerNumber: '001', - toBatch: '21', + let aaa = { + "id": 3, + "requestNumber": "REQ1720240326-0012", + "deliverPlanNumber": "", + "customerDeliverNumber": "CUST20240326-00000012", + "customerCode": "KHV", + "customerDockCode": "YTV4", + "deliverDock": null, + "carrierCode": "", + "transferMode": "", + "vehiclePlateNumber": "", + "fromWarehouseCode": null, + "toWarehouseCode": "CKV", + "requestTime": 1711443936000, + "requestDueTime": null, + "status": "2", + "expiredTime": null, + "updateTime": 1711443936000, + "updater": "超级管理员", + "jobStageStatus": null, + "priority": null, + "priorityincrement": null, + "departmentCode": "100", + "acceptUserId": "1", + "acceptTime": 1711443941000, + "completeUserId": null, + "completeTime": null, + "fromAreaTypes": "FG,STOCK_UP", + "toAreaTypes": "CUST,THIRD_PARTY", + "number": "JOB2420240326-0013", + "businessType": "Deliver", + "remark": "", + "createTime": 1711443936000, + "creator": "超级管理员", + "ruleUserId": null, + "fromAreaCodes": "FG", + "toAreaCodes": "CUST,ZTQ", + "fromDockCode": null, + "autoComplete": "FALSE", + "allowModifyLocation": "FALSE", + "allowModifyQty": "TRUE", + "allowBiggerQty": "TRUE", + "allowSmallerQty": "TRUE", + "allowModifyInventoryStatus": "TRUE", + "allowContinuousScanning": "TRUE", + "allowPartialComplete": "TRUE", + "allowModifyBatch": "FALSE", + "allowModifyPackingNumber": "FALSE", + "inInventoryStatuses": "OK", + "outInventoryStatuses": "OK", + "concurrencyStamp": 1, + "useOnTheWayLocation": null, + "subList": [{ + "id": 3, + "soNumber": null, + "soLine": null, + "packingNumber": null, + "batch": "2024021801", + "inventoryStatus": "OK", + "ownerCode": null, + "containerNumber": null, + "fromLocationCode": "FG", + "toLocationCode": "SFK", + "itemCode": "vvcs-zhj1", + "itemName": "测试物件", + "itemDesc1": "水冷系-散热器", + "itemDesc2": "水冷系-散热器", + "projectCode": "PJ001", + "qty": 11, + "uom": "PC", + "number": "JOB2420240326-0013", + "remark": "", + "createTime": 1711443936000, + "creator": "超级管理员", + "toPackingNumber": null, + "toContainerNumber": null, + "toBatch": null, + "handleQty": null, + "toInventoryStatus": null, + "updateTime": 1711443936000, + "updater": "超级管理员", + "onTheWayLocationCode": "FHZTK", + recordList: [{ + handleQty: 11, + toPackingNumber: null, + toContainerNumber: null, + toBatch: '2024021801', toInventoryStatus: 'OK', - toLocationCode: 'H03', - supplierCode: '31213', - },{ - handleQty: 22, - toPackingNumber: 'M20230421000005', - toContainerNumber: '001', - toBatch: '20230808', - toInventoryStatus: 'OK', - toLocationCode: 'SFG', + toLocationCode: "SFK", supplierCode: '31213', }] - }] + } + ] } handleHandle(aaa) console.log('列表-操作按钮事件-执行') diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts index a11a3c3f1..a3ca68a6e 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts @@ -516,6 +516,14 @@ export const DeliverRecordDetail = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '在途库库位', + field: 'onTheWayLocationCode', + sort: 'custom', + table: { + width: 150 + }, + }, { label: '从库位代码', field: 'fromLocationCode', diff --git a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts index ae7805bab..fcb7b4b31 100644 --- a/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts @@ -19,6 +19,9 @@ import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/cu import * as CarrierApi from '@/api/wms/carrier' import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data' +import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' + +import * as WorkstationApi from '@/api/wms/workstation' const { t } = useI18n() // 国际化 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 @@ -166,6 +169,16 @@ export const DeliverRequestMain = useCrudSchemas(reactive([ } } }, + { + label: '发货类型', + field: 'deliverType', + sort: 'custom', + dictType: DICT_TYPE.DELIVER_TYPE, + dictClass: 'string', + table: { + width: 150 + }, + }, { label: '承运商', field: 'carrierCode', @@ -200,6 +213,15 @@ export const DeliverRequestMain = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '发货库区类型', + field: 'deliverType', + sort: 'custom', + dictType: DICT_TYPE.DELIVER_TYPE, + table: { + width: 150 + }, + }, { label: '车牌号', field: 'vehiclePlateNumber', @@ -527,6 +549,9 @@ export const DeliverRequestMainRules = reactive({ customerCode: [ { required: true, message: '请选择客户代码', trigger: 'change' } ], + deliverType: [ + { required: true, message: '发货库区类型不能为空', trigger: 'change' } + ], customerDockCode: [ { required: true, message: '请选择客户月台代码', trigger: 'change' } ], @@ -783,7 +808,8 @@ export const DeliverRequestDetail = useCrudSchemas(reactive([ width: 150 }, tableForm: { - type: 'Select' + type: 'Select', + disabled: true }, form: { componentProps: { @@ -798,8 +824,44 @@ export const DeliverRequestDetail = useCrudSchemas(reactive([ table: { width: 150 }, - isTableForm: false, - isForm: false, + tableForm:{ + isInpuFocusShow: true, // 开启查询弹窗 + searchListPlaceholder: '请选择到库位代码', + searchField: 'code', + searchTitle: '库位基础信息', + searchAllSchemas: Location.allSchemas, + searchPage: WorkstationApi.selectAreaTypeToLocation, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'areaType', + value: "deliverType", + message:"请选择发货类型", + isMainValue: true + }] + }, + form: { + componentProps: { + isSearchList: true, + searchListPlaceholder: '请选择到库位代码', + searchField: 'code', + searchTitle: '库位基础信息', + searchAllSchemas: Location.allSchemas, + searchPage: WorkstationApi.selectAreaTypeToLocation, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'areaType', + value: "deliverType", + message:"请选择发货类型", + isMainValue: false + }] + } + }, }, { label: '库存状态', @@ -966,4 +1028,7 @@ export const DeliverRequestDetailRules = reactive({ remark: [ { max: 50, message: '不得超过50个字符', trigger: 'blur' } ], + toLocationCode: [ + { required: true, message: '请选择到库位代码', trigger: 'change' } + ], }) \ No newline at end of file diff --git a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts index c7bea610a..0ab9228ad 100644 --- a/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts +++ b/src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts @@ -10,8 +10,15 @@ import { Customerdock } from '@/views/wms/basicDataManage/customerManage/custome import * as CustomerItemApi from '@/api/wms/customeritem' import { Customeritem } from '@/views/wms/basicDataManage/customerManage/customeritem/customeritem.data' + +import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' + +import * as WorkstationApi from '@/api/wms/workstation' + import * as getPlansettingApi from '@/api/wms/plansetting/index' +import * as getBusinessTypeApi from '@/api/wms/businesstype/index' + const { t } = useI18n() // 国际化 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 @@ -23,6 +30,13 @@ const queryParams = { const data = await getPlansettingApi.getPlansettingPage(queryParams) const plansettingData =data?.list[0]||{} + const businessTypeQueryParams = { + pageSize:10, + pageNo:1, + code:'Deliver' +} +const data1 = await getBusinessTypeApi.getBusinesstypePage(businessTypeQueryParams) +const businessTypeData =data1?.list[0]||{} /** * @returns {Array} 发货计划主表 */ @@ -63,6 +77,16 @@ export const DeliverPlanMain = useCrudSchemas(reactive([ } } }, + { + label: '发货类型', + field: 'deliverType', + sort: 'custom', + dictType: DICT_TYPE.DELIVER_TYPE, + dictClass: 'string', + table: { + width: 150 + }, + }, { label: '计划日期', field: 'planDate', @@ -317,6 +341,9 @@ export const DeliverPlanMainRules = reactive({ customerCode: [ { required: true, message: '请选择客户代码', trigger: 'change' } ], + deliverType: [ + { required: true, message: '发货库区类型不能为空', trigger: 'change' } + ], planDate: [ { required: true, message: '计划日期不能为空', trigger: 'change' } ], @@ -405,7 +432,6 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ searchCondition: [{ key: 'available', value: 'TRUE', - isMainValue: false },{ key: 'customerCode', value: 'customerCode', @@ -500,6 +526,52 @@ export const DeliverPlanDetail = useCrudSchemas(reactive([ } } }, + { + label: '到库位代码', + field: 'toLocationCode', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + isInpuFocusShow: true, // 开启查询弹窗 + searchListPlaceholder: '请选择到库位代码', + searchField: 'code', + searchTitle: '库位基础信息', + searchAllSchemas: Location.allSchemas, + searchPage: WorkstationApi.selectAreaTypeToLocation, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'areaType', + value: "deliverType", + message:"请选择发货类型", + isMainValue: true + }] + }, + form: { + componentProps: { + isSearchList: true, + searchListPlaceholder: '请选择到库位代码', + searchField: 'code', + searchTitle: '库位基础信息', + searchAllSchemas: Location.allSchemas, + searchPage: WorkstationApi.selectAreaTypeToLocation, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + },{ + key: 'areaType', + value: "deliverType", + message:"请选择发货类型", + isMainValue: false + }] + } + }, + }, { label: '备注', field: 'remark', @@ -657,6 +729,9 @@ export const DeliverPlanDetailRules = reactive({ itemCode: [ { required: true, message: '请选择物料代码', trigger: 'change' } ], + toLocationCode: [ + { required: true, message: '请选择到库位代码', trigger: 'change' } + ], available: [ { required: true, message: '请选择是否可用', trigger: 'change' } ], From 3c9a4bbc3aec2ff83ef0e807b60b416311727da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=9C=E9=98=B3?= <1301318913@qq.com> Date: Wed, 27 Mar 2024 11:07:57 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E5=A2=9E=E5=8A=A0mes=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=97=A5=E5=8E=86=E6=8E=92=E4=BA=A7=E8=AE=A1=E5=88=92=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/productionPlan/index.ts | 61 +++++ src/views/mes/productionPlan/index.vue | 244 ++++++++++++++++++ .../mes/productionPlan/productionPlan.data.ts | 182 +++++++++++++ 3 files changed, 487 insertions(+) create mode 100644 src/api/mes/productionPlan/index.ts create mode 100644 src/views/mes/productionPlan/index.vue create mode 100644 src/views/mes/productionPlan/productionPlan.data.ts diff --git a/src/api/mes/productionPlan/index.ts b/src/api/mes/productionPlan/index.ts new file mode 100644 index 000000000..de60663ba --- /dev/null +++ b/src/api/mes/productionPlan/index.ts @@ -0,0 +1,61 @@ +import request from '@/config/axios' + +export interface ProductionPlanVO { + id: number + planCode: string + planName: string + teamType: string + endTime: Date + shiftMode: string + billState: number + deleteTime: Date + status: string + concurrencyStamp: number + remark: string + deleter: string + siteId: number + textOne: string + textTwo: string + textThree: string +} + +// 查询生产排产计划列表 +export const getProductionPlanPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/mes/productionPlan/senior', data }) + } else { + return await request.get({ url: `/mes/productionPlan/page`, params }) + } +} + +// 查询生产排产计划详情 +export const getProductionPlan = async (id: number) => { + return await request.get({ url: `/mes/productionPlan/get?id=` + id }) +} + +// 新增生产排产计划 +export const createProductionPlan = async (data: ProductionPlanVO) => { + return await request.post({ url: `/mes/productionPlan/create`, data }) +} + +// 修改生产排产计划 +export const updateProductionPlan = async (data: ProductionPlanVO) => { + return await request.put({ url: `/mes/productionPlan/update`, data }) +} + +// 删除生产排产计划 +export const deleteProductionPlan = async (id: number) => { + return await request.delete({ url: `/mes/productionPlan/delete?id=` + id }) +} + +// 导出生产排产计划 Excel +export const exportProductionPlan = async (params) => { + return await request.download({ url: `/mes/productionPlan/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/mes/productionPlan/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/mes/productionPlan/index.vue b/src/views/mes/productionPlan/index.vue new file mode 100644 index 000000000..1c9271bea --- /dev/null +++ b/src/views/mes/productionPlan/index.vue @@ -0,0 +1,244 @@ + + + diff --git a/src/views/mes/productionPlan/productionPlan.data.ts b/src/views/mes/productionPlan/productionPlan.data.ts new file mode 100644 index 000000000..539264c0e --- /dev/null +++ b/src/views/mes/productionPlan/productionPlan.data.ts @@ -0,0 +1,182 @@ +import type { CrudSchema } from '@/hooks/web/useCrudSchemas' +import { dateFormatter } from '@/utils/formatTime' + +// 表单校验 +export const ProductionPlanRules = reactive({ + endTime: [required], + concurrencyStamp: [required], +}) + +export const ProductionPlan = useCrudSchemas(reactive([ + { + label: 'id', + field: 'id', + sort: 'custom', + isForm: false, + }, + { + label: '计划编号', + field: 'planCode', + sort: 'custom', + isSearch: true, + }, + { + label: '计划名称', + field: 'planName', + sort: 'custom', + isSearch: true, + }, + { + label: '班组类型', + field: 'teamType', + sort: 'custom', + isSearch: true, + // form: { + // component: 'SelectV2' + // }, + }, + { + label: '结束时间', + field: 'endTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + 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')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '轮班方式', + field: 'shiftMode', + sort: 'custom', + isSearch: true, + }, + { + label: '单据状态', + field: 'billState', + sort: 'custom', + isSearch: true, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '删除时间', + field: 'deleteTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + 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')] + } + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + valueFormat: 'x' + } + }, + }, + { + label: '状态', + field: 'status', + sort: 'custom', + isSearch: true, + form: { + component: 'Radio' + }, + }, + { + label: '并发乐观锁', + field: 'concurrencyStamp', + sort: 'custom', + isSearch: false, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '备注', + field: 'remark', + sort: 'custom', + isSearch: true, + }, + { + label: '创建时间', + field: 'createTime', + sort: 'custom', + formatter: dateFormatter, + isSearch: true, + 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')] + } + }, + isForm: false, + }, + { + label: '删除用户名', + field: 'deleter', + sort: 'custom', + isSearch: true, + }, + { + label: '位置ID', + field: 'siteId', + sort: 'custom', + isSearch: false, + form: { + component: 'InputNumber', + value: 0 + }, + }, + { + label: '备用字段一', + field: 'textOne', + sort: 'custom', + isSearch: false, + }, + { + label: '备用字段二', + field: 'textTwo', + sort: 'custom', + isSearch: false, + }, + { + label: '备用字段三', + field: 'textThree', + sort: 'custom', + isSearch: false, + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' + } + } +])) From 027d879a425945625c2534d111d447204b5ae1c0 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Wed, 27 Mar 2024 11:11:08 +0800 Subject: [PATCH 4/6] test --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a28b719c2..554ca3d62 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ form: { ] } } + + **tableForm明细列表查询弹窗配置** tableForm:{ isInpuFocusShow: true, // 开启查询弹窗 【**与form表单中唯一不同属性**】 From e3bcb7d1bca307e961cf43672ee826418bf0d54b Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 27 Mar 2024 11:32:47 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/supplierdeliverRecordMain/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue index 5e1b2a07e..9119693f4 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/index.vue @@ -175,7 +175,8 @@ const handlerCreatePurchasereceiptRequest = async (number:string) => { // 单据打印 const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL -const documentSrc = ref(BASE_URL + '/jmreport/view/884680688168280064?token=' + getAccessToken()) +//const documentSrc = ref(BASE_URL + '/jmreport/view/884680688168280064?token=' + getAccessToken()) +const documentSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken()) const handleDocumentPrint = async (id) => { window.open(documentSrc.value + '&id=' + id) } From 2d0630ebd10a930f0a19ec3bbe557fae937c7dce Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Wed, 27 Mar 2024 11:33:43 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/supplierdeliverRequestMain/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 35dd36a73..13a635690 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -601,7 +601,8 @@ const print = async () => { } // 单据打印 -const documentSrc = ref(BASE_URL + '/jmreport/view/884680688168280064?token=' + getAccessToken()) +// const documentSrc = ref(BASE_URL + '/jmreport/view/884680688168280064?token=' + getAccessToken()) +const documentSrc = ref(BASE_URL + '/jmreport/view/932556833517789184?token=' + getAccessToken()) const handleDocumentPrint = async (id) => { window.open(documentSrc.value + '&id=' + id) }