diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts index 5c852da86..6c1e22092 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/callmaterials.data.ts @@ -97,7 +97,7 @@ export const Callmaterials = useCrudSchemas(reactive([ }, { label: '叫料包装数量', - field: 'qty', + field: 'callmaterialQty', sort: 'custom', table: { width: 120 @@ -114,7 +114,7 @@ export const Callmaterials = useCrudSchemas(reactive([ }, { label: '包装数量', - field: 'callmaterialQty', + field: 'qty', sort: 'custom', table: { width: 120 @@ -138,6 +138,7 @@ export const Callmaterials = useCrudSchemas(reactive([ form: { component: 'InputNumber', componentProps: { + disabled: true, style: {width:'100%'}, min: 0, precision: 6 diff --git a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue index 1aa4b89a4..ba361799f 100644 --- a/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue +++ b/src/views/wms/basicDataManage/labelManage/callmaterials/index.vue @@ -49,6 +49,12 @@ :apiCreate="CallmaterialsApi.createCallmaterials" @searchTableSuccess="searchTableSuccess" :isBusiness="false" + :sumFormDataByForm ="(formRef,formModel)=>{ + const {qty=0,callmaterialQty=0} = formModel + formRef.value.setValues({ + callmaterialQtySum:qty*callmaterialQty, + }) + }" />