Browse Source

YT-2647新增要货计划时,页面增加 “箱数” 字段,默认为0。输入箱数后,系统自动计算出 “计划采购数量”,计划采购数量=箱数 * 采购标包数量。如果手动修改了 “计划采购数量”,不需要更新 “箱数”,但是如果修改了 “箱数”,就需要重新计算 “计划采购数量”。箱数字段不需要存在表里,只用做快捷计算。注:YT-2435中把订单数量改为了箱数,现在需要改回去,订单数量还是叫订单数量。

intex_online20250528
张立 4 weeks ago
parent
commit
6ff60d9ed1
  1. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  2. 25
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts

10
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -73,7 +73,9 @@
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@onEnter="onEnter"
@onBlur="onEnter">
@onBlur="onEnter"
@inputNumberChange="inputNumberChange"
>
<template #TableFormHead>
<div style="border-top:1px solid #ebeef5;padding:10px 10px 0 10px ;margin-right:10px" v-if="clickType =='create'">
@ -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()

25
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,

Loading…
Cancel
Save