Browse Source

BUG修复

1、WMS物料包装信息中选择物料代码后应该带出计量单位且计量单位不可编辑
master_hella_20240701
bjang03 6 months ago
parent
commit
eb05d4dea1
  1. 3
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue
  2. 7
      src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts

3
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -210,6 +210,7 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
setV['uom'] = val[0]['uom']
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }
@ -281,4 +282,4 @@ onMounted(async () => {
importTemplateData.templateUrl = await ItempackagingApi.importTemplate() importTemplateData.templateUrl = await ItempackagingApi.importTemplate()
}) })
</script> </script>
@/api/wms/itempackage @/api/wms/itempackage

7
src/views/wms/basicDataManage/itemManage/itempackage/itempackage.data.ts

@ -47,6 +47,11 @@ export const Itempackaging = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
table: { table: {
width: 120 width: 120
},form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
disabled: true
}
} }
}, },
{ {
@ -236,4 +241,4 @@ export const ItempackagingRules = reactive({
packUnit: [{ required: true, message: '包装单位不能为空', trigger: 'change' }], packUnit: [{ required: true, message: '包装单位不能为空', trigger: 'change' }],
packQty: [{ required: true, message: '包装数量不能为空', trigger: 'change' }], packQty: [{ required: true, message: '包装数量不能为空', trigger: 'change' }],
available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }] available: [{ required: true, message: '是否可用不能为空', trigger: 'change' }]
}) })

Loading…
Cancel
Save