@@ -1063,7 +1065,11 @@ const handleSelectionPublish = async ()=>{
clearTableDataSearch()
}
}
-
+// 数字输入-改变事件
+const inputNumberChange = (field, index, row, val) => {
+ console.log('inputNumberChange', field, index, row, val)
+ row.planQty = row.boxQty * row.purchaseStdQty
+}
/** 初始化 **/
onMounted(async () => {
getList()
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
index 3c979a7b3..a9564865c 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
@@ -917,7 +917,28 @@ export const PurchasePlanDetail = useCrudSchemas(
isPlaceholder:false
}
},
-
+ {
+ label: '箱数',
+ field: 'boxQty',
+ sort: 'custom',
+ sortSearchDefault: 9,
+ sortTableDefault: 21,
+ table: {
+ width: 150
+ },
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 0
+ },
+ form: {
+ component: 'InputNumber',
+ componentProps: {
+ min: 0,
+ precision: 0
+ }
+ }
+ },
{
label: '计划采购数量',
field: 'planQty',
@@ -940,7 +961,7 @@ export const PurchasePlanDetail = useCrudSchemas(
}
},
// {
- // label: '箱数',
+ // label: '订单数量',
// field: 'orderQty',
// sort: 'custom',
// sortSearchDefault: 8,