Browse Source

要货计划前端页面修改

intex_online20250427
叶佳兴 6 days ago
parent
commit
65e7ee928a
  1. 343
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts
  2. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  3. 37
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

343
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRequestMain/packageoverRequestMain.data.ts

@ -2,8 +2,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as WarehouseApi from '@/api/wms/warehouse' import * as LocationApi from '@/api/wms/location'
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
import * as ItempackagingApi from '@/api/wms/itempackage' import * as ItempackagingApi from '@/api/wms/itempackage'
import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data' import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackage/itempackage.data'
@ -13,23 +13,24 @@ import { BalancePopWindow } from '@/views/wms/inventoryManage/balance/balance.da
// 获取自动提交自动通过自动执行,跳过任务直接生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接生成记录的默认值
const queryParams = { const queryParams = {
pageSize:10, pageSize: 10,
pageNo:1, pageNo: 1,
code:'PackageOverRequest' code: 'PackageOverRequest'
} }
const data = await getRequestsettingApi.getRequestsettingPage(queryParams) const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsettingData =data?.list[0]||{} const requestsettingData = data?.list[0] || {}
// 获取当前操作人的部门 // 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user' import { useUserStore } from '@/store/modules/user'
import { TableColumn } from '@/types/table' import { TableColumn } from '@/types/table'
const userStore = useUserStore() const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept const userDept = userStore.userSelfInfo.dept
// id 转str 否则form回显匹配不到 // id 转str 否则form回显匹配不到
userDept.id = userDept.id.toString() userDept.id = userDept.id.toString()
const userDeptArray:any = [userDept] const userDeptArray: any = [userDept]
export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const PackageoverRequestMain = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -39,7 +40,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'left' fixed: 'left'
}, },
isForm: false, isForm: false,
isSearch: true, isSearch: true
}, },
{ {
label: '状态', label: '状态',
@ -76,11 +77,11 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isTable: false, isTable: false,
isForm: false, isForm: false
}, },
{ {
label: '截止时间', label: '截止时间',
@ -96,63 +97,125 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style:{width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isTable: false, isTable: false
}, },
{ {
label: '从库代码', label: '从库代码',
field: 'fromWarehouseCode', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
isForm: true,
isTable: true,
isDetail: true,
table: { table: {
width: 150 width: 150
}, },
isTable: false,
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
enterSearch: true, enterSearch: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择仓库代码', // 输入框占位文本 searchListPlaceholder: '请选择从库位代码',
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code',
searchTitle: '仓库信息', // 查询弹窗标题 searchTitle: '库位信息',
searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类 searchAllSchemas: Location.allSchemas,
searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法 searchPage: LocationApi.selectBusinessTypeToLocation,
searchCondition: [{ searchCondition: [
key: 'available', {
value: 'TRUE', key: 'businessType',
value: 'HoldToOk',
isMainValue: false isMainValue: false
}], },
// 失去焦点校验参数 {
verificationParams: [{ key: 'isIn',
value: 'out',
isMainValue: false
}
],
verificationParams: [
{
key: 'code', key: 'code',
action: '==', action: '==',
value: '', value: '',
isMainValue: false, isMainValue: false,
isSearch: 'true', isSearch: true,
isFormModel: true, isFormModel: true
}] }
] // 失去焦点校验参数
} }
} }
}, },
{ {
label: '到库代码', label: '到库代码',
field: 'toWarehouseCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isTable: false, tableForm: {
disabled: true
},
form: { form: {
componentProps: { componentProps: {
disabled: true disabled: true
} }
} }
}, },
// {
// label: '从仓库代码',
// field: 'fromWarehouseCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isTable: false,
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择仓库代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '仓库信息', // 查询弹窗标题
// searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类
// searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }],
// // 失去焦点校验参数
// verificationParams: [{
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: 'true',
// isFormModel: true,
// }]
// }
// }
// },
// {
// label: '到仓库代码',
// field: 'toWarehouseCode',
// sort: 'custom',
// table: {
// width: 150
// },
// isTable: false,
// form: {
// componentProps: {
// disabled: true
// }
// }
// },
{ {
label: '从库区类型范围', label: '从库区类型范围',
field: 'fromAreaTypes', field: 'fromAreaTypes',
@ -164,7 +227,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isForm: false, isForm: false
}, },
{ {
label: '到库区类型范围', label: '到库区类型范围',
@ -244,7 +307,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: false
}, },
{ {
label: '业务类型', label: '业务类型',
@ -363,7 +426,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isForm: false, isForm: false,
@ -375,7 +438,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, }
}, },
{ {
label: '创建者', label: '创建者',
@ -385,7 +448,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable: false, isTable: false,
isForm: false, isForm: false
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
@ -404,10 +467,10 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isForm: false, isForm: false
}, },
{ {
label: '最后更新者', label: '最后更新者',
@ -417,7 +480,7 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
isTable: false, isTable: false,
isForm: false, isForm: false
}, },
{ {
label: '操作', label: '操作',
@ -428,16 +491,16 @@ export const PackageoverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
fixed: 'right' fixed: 'right'
} }
} }
])) ])
)
// 表单校验 // 表单校验
export const PackageoverRequestMainRules = reactive({ export const PackageoverRequestMainRules = reactive({
fromWarehouseCode: [ fromWarehouseCode: [{ required: true, message: '请选择仓库代码', trigger: 'change' }]
{ required: true, message: '请选择仓库代码', trigger: 'change' }
],
}) })
export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PackageoverRequestDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',
@ -469,7 +532,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '库存余额信息', // 查询弹窗标题 searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: BalancePopWindow.allSchemas, // 查询弹窗所需类 searchAllSchemas: BalancePopWindow.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法 searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法
searchCondition:[ searchCondition: [
{ {
key: 'warehouseCode', key: 'warehouseCode',
value: 'fromWarehouseCode', value: 'fromWarehouseCode',
@ -480,18 +543,19 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'inventoryStatus', key: 'inventoryStatus',
value: 'OK', value: 'OK',
isMainValue: false isMainValue: false
}] }
]
} }
}, },
tableForm:{ tableForm: {
multiple:true, multiple: true,
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择品番', // 输入框占位文本 searchListPlaceholder: '请选择品番', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'itemCode', // 查询弹窗赋值字段
searchTitle: '库存余额信息', // 查询弹窗标题 searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: BalancePopWindow.allSchemas, // 查询弹窗所需类 searchAllSchemas: BalancePopWindow.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法 searchPage: BalanceApi.getBalancePage, // 查询弹窗所需分页方法
searchCondition:[ searchCondition: [
{ {
key: 'warehouseCode', key: 'warehouseCode',
value: 'fromWarehouseCode', value: 'fromWarehouseCode',
@ -502,8 +566,9 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'inventoryStatus', key: 'inventoryStatus',
value: 'OK', value: 'OK',
isMainValue: false isMainValue: false
}] }
}, ]
}
}, },
{ {
label: '品名', label: '品名',
@ -575,7 +640,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 120 width: 120
}, },
tableForm:{ tableForm: {
type: 'Select', type: 'Select',
disabled: true disabled: true
}, },
@ -593,8 +658,8 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 120 width: 120
}, },
tableForm:{ tableForm: {
enterSearch:true, enterSearch: true,
isInpuFocusShow: true, isInpuFocusShow: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本 searchListPlaceholder: '请选择包装规格', // 输入框占位文本
@ -602,24 +667,29 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料包装信息', // 查询弹窗标题 searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法 searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{ },
{
key: 'itemCode', key: 'itemCode',
value: 'itemCode', value: 'itemCode',
isMainValue: true isMainValue: true
}], }
],
// 失去焦点校验参数 // 失去焦点校验参数
verificationParams: [{ verificationParams: [
{
key: 'packUnit', key: 'packUnit',
action: '==', action: '==',
value: '', value: '',
isMainValue: false, isMainValue: false,
isSearch: 'true', isSearch: 'true',
isFormModel: true, isFormModel: true
}] }
]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -630,25 +700,30 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料包装信息', // 查询弹窗标题 searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法 searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{ },
{
key: 'itemCode', key: 'itemCode',
value: 'itemCode', value: 'itemCode',
message: '请先选择品番!', // 当前置条件为空时 弹出信息提示 message: '请先选择品番!', // 当前置条件为空时 弹出信息提示
isMainValue: true isMainValue: true
}], }
],
// 失去焦点校验参数 // 失去焦点校验参数
verificationParams: [{ verificationParams: [
{
key: 'packUnit', key: 'packUnit',
action: '==', action: '==',
value: '', value: '',
isMainValue: false, isMainValue: false,
isSearch: 'true', isSearch: 'true',
isFormModel: true, isFormModel: true
}] }
]
} }
} }
}, },
@ -660,8 +735,8 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 120 width: 120
}, },
tableForm:{ tableForm: {
enterSearch:true, enterSearch: true,
isInpuFocusShow: true, isInpuFocusShow: true,
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择包装规格', // 输入框占位文本 searchListPlaceholder: '请选择包装规格', // 输入框占位文本
@ -669,25 +744,30 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料包装信息', // 查询弹窗标题 searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法 searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{ },
{
key: 'itemCode', key: 'itemCode',
value: 'itemCode', value: 'itemCode',
message: '请先选择品番!', // 当前置条件为空时 弹出信息提示 message: '请先选择品番!', // 当前置条件为空时 弹出信息提示
isMainValue: true isMainValue: true
}], }
],
// 失去焦点校验参数 // 失去焦点校验参数
verificationParams: [{ verificationParams: [
{
key: 'packUnit', key: 'packUnit',
action: '==', action: '==',
value: '', value: '',
isMainValue: false, isMainValue: false,
isSearch: 'true', isSearch: 'true',
isFormModel: true, isFormModel: true
}] }
]
}, },
form: { form: {
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
@ -698,24 +778,29 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '物料包装信息', // 查询弹窗标题 searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法 searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [
{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{ },
{
key: 'itemCode', key: 'itemCode',
value: 'itemCode', value: 'itemCode',
isMainValue: true isMainValue: true
}], }
],
// 失去焦点校验参数 // 失去焦点校验参数
verificationParams: [{ verificationParams: [
{
key: 'packUnit', key: 'packUnit',
action: '==', action: '==',
value: '', value: '',
isMainValue: false, isMainValue: false,
isSearch: 'true', isSearch: 'true',
isFormModel: true, isFormModel: true
}] }
]
} }
} }
}, },
@ -726,7 +811,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 120 width: 120
}, },
tableForm:{ tableForm: {
disabled: true disabled: true
}, },
form: { form: {
@ -742,7 +827,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 120 width: 120
}, },
tableForm:{ tableForm: {
disabled: true disabled: true
}, },
form: { form: {
@ -758,39 +843,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 120 width: 120
}, },
tableForm:{ tableForm: {
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled: true
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '到库位代码',
field: 'toLocationCode',
sort: 'custom',
table: {
width: 150
},
tableForm:{
disabled: true disabled: true
}, },
form: { form: {
@ -799,6 +852,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ {
label: '从库位组代码', label: '从库位组代码',
field: 'fromLocationGroupCode', field: 'fromLocationGroupCode',
@ -806,7 +860,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
disabled: true disabled: true
}, },
form: { form: {
@ -822,7 +876,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
disabled: true disabled: true
}, },
form: { form: {
@ -838,7 +892,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
disabled: true disabled: true
}, },
form: { form: {
@ -854,7 +908,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm: {
disabled: true disabled: true
}, },
form: { form: {
@ -890,7 +944,7 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTable: false, isTable: false
}, },
{ {
label: '创建时间', label: '创建时间',
@ -908,13 +962,13 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width:'100%'}, style: { width: '100%' },
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isTableForm: false, isTableForm: false
}, },
{ {
label: '创建者', label: '创建者',
@ -944,10 +998,10 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x'
} }
}, },
isTableForm: false, isTableForm: false
}, },
{ {
label: '最后更新者', label: '最后更新者',
@ -957,19 +1011,14 @@ export const PackageoverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, isTableForm: false
} }
])) ])
)
// 表单校验 // 表单校验
export const PackageoverRequestDetailRules = reactive({ export const PackageoverRequestDetailRules = reactive({
itemCode: [ itemCode: [{ required: true, message: '请选择品番', trigger: 'change' }],
{ required: true, message: '请选择品番', trigger: 'change' } fromPackUnit: [{ required: true, message: '请选择从包装规格', trigger: 'change' }],
], toPackUnit: [{ required: true, message: '请选择到包装规格', trigger: 'change' }]
fromPackUnit: [
{ required: true, message: '请选择从包装规格', trigger: 'change' }
],
toPackUnit: [
{ required: true, message: '请选择到包装规格', trigger: 'change' }
],
}) })

2
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -1067,7 +1067,7 @@ const handleSelectionPublish = async ()=>{
getList() getList()
importTemplateData.templateUrl = await PurchasePlanMainApi.importTemplate() importTemplateData.templateUrl = await PurchasePlanMainApi.importTemplate()
nextTick(()=>{ nextTick(()=>{
tableColumns.value=tableColumns.value.filter(item=>item.field!='shippedQty') // tableColumns.value=tableColumns.value.filter(item=>item.field!='shippedQty')
}) })
}) })
</script> </script>

37
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

@ -937,24 +937,24 @@ export const PurchasePlanDetail = useCrudSchemas(
} }
} }
}, },
{ // {
label: '订单数量', // label: '订单数量',
field: 'orderQty', // field: 'orderQty',
sort: 'custom', // sort: 'custom',
sortSearchDefault: 8, // sortSearchDefault: 8,
sortTableDefault:23, // sortTableDefault:23,
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
componentProps: { // componentProps: {
disabled: true // disabled: true
} // }
}, // },
tableForm: { // tableForm: {
disabled: true // disabled: true
} // }
}, // },
{ {
label: '采购标包数量', label: '采购标包数量',
field: 'purchaseStdQty', field: 'purchaseStdQty',
@ -1038,7 +1038,6 @@ export const PurchasePlanDetail = useCrudSchemas(
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
isTable: true, isTable: true,
hiddenInMain: true,
}, },
{ {
label: '已收采购数量', label: '已收采购数量',

Loading…
Cancel
Save