Browse Source

发料修改

hella_online_20240829
陈薪名 4 months ago
parent
commit
1dc6ba0aeb
  1. 26
      src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts
  2. 15
      src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

26
src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts

@ -473,8 +473,8 @@ export const IssueRecordDetail = useCrudSchemas(
hiddenInMain: true hiddenInMain: true
}, },
{ {
label: '包装规格', label: '包装规格',
field: 'packUnit', field: 'fromPackUnit',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -482,8 +482,26 @@ export const IssueRecordDetail = useCrudSchemas(
sortTableDefault: 8 sortTableDefault: 8
}, },
{ {
label: '包装数量', label: '到包装规格',
field: 'packQty', field: 'toPackUnit',
sort: 'custom',
table: {
width: 150
},
sortTableDefault: 8
},
{
label: '从包装数量',
field: 'fromPackQty',
sort: 'custom',
table: {
width: 150
},
sortTableDefault: 8
},
{
label: '到包装数量',
field: 'toPackQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150

15
src/views/wms/issueManage/issue/issueRequestMain/issueRequestMain.data.ts

@ -314,7 +314,8 @@ export const IssueRequestMain = useCrudSchemas(
width: 150 width: 150
}, },
form: { form: {
component: 'Select' component: 'Select',
value: '1'
} }
}, },
{ {
@ -905,7 +906,7 @@ export const IssueRequestDetail = useCrudSchemas(
tableForm: { tableForm: {
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择包装规格', // 输入框占位文本 searchListPlaceholder: '请选择包装规格', // 输入框占位文本
searchField: 'itemCode', // 查询弹窗赋值字段 searchField: 'packUnit', // 查询弹窗赋值字段
searchTitle: '物料包装信息', // 查询弹窗标题 searchTitle: '物料包装信息', // 查询弹窗标题
searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类 searchAllSchemas: Itempackaging.allSchemas, // 查询弹窗所需类
searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法 searchPage: ItempackagingApi.getItempackagingPage, // 查询弹窗所需分页方法
@ -959,7 +960,6 @@ export const IssueRequestDetail = useCrudSchemas(
table: { table: {
width: 150 width: 150
}, },
hiddenInMain: true,
tableForm: { tableForm: {
disabled:true, disabled:true,
type: 'InputNumber', type: 'InputNumber',
@ -990,7 +990,7 @@ export const IssueRequestDetail = useCrudSchemas(
form: { form: {
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
min: 0, min: 1,
precision: 0 precision: 0
} }
} }
@ -1285,8 +1285,8 @@ export const IssueRequestDetailRules = reactive({
{ required: true, message: '请输入到库位代码', trigger: 'blur' } { required: true, message: '请输入到库位代码', trigger: 'blur' }
], ],
qty1: [ qty1: [
{ required: true, message: '请输入包装数量', trigger: 'blur' }, { required: true, message: '请输入包装数量', trigger: 'change' },
{ min: true, message: '包装数量不能小于1', trigger: 'blur' } // { min: 0, message: '包装数量不能小于1', trigger: 'blur' }
], ],
qty: [ qty: [
{ required: true, message: '请输入数量', trigger: 'blur' } { required: true, message: '请输入数量', trigger: 'blur' }
@ -1297,4 +1297,7 @@ export const IssueRequestDetailRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
packUnit: [
{ required: true, message: '请选择包装规格', trigger: 'change' }
]
}) })

Loading…
Cancel
Save