From e90cabd83458b3ea33b67059ee931994e1dc3825 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Fri, 24 May 2024 16:33:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AB=E6=96=99=E6=A0=87=E7=AD=BE=20?= =?UTF-8?q?=EF=BC=9A=E5=8F=AB=E6=96=99=E6=80=BB=E6=95=B0=E9=87=8F=3D=20?= =?UTF-8?q?=E5=8F=AB=E6=96=99=E5=8C=85=E8=A3=85=E6=95=B0=E9=87=8F*?= =?UTF-8?q?=E5=8C=85=E8=A3=85=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../labelManage/callmaterials/callmaterials.data.ts | 5 +++-- .../wms/basicDataManage/labelManage/callmaterials/index.vue | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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, + }) + }" />