Browse Source

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

intex_online20250528
张立 2 weeks ago
parent
commit
4e980a9a48
  1. 9
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

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

@ -117,7 +117,14 @@
@detailOpenForm="detailOpenForm"
@handleSubmitForm="handleDetailSubmitForm"
@detailBasicFormOnChange="detailBasicFormOnChange"
:sumFormDataByForm="
(formRef, formModel) => {
const { planQty = 0, purchaseStdQty = 0 } = formModel
formRef.value.setValues({
boxQty: Math.ceil(Number(planQty) / Number(purchaseStdQty))
})
}
"
>
<template #boxQty="{row}" >
{{ Math.ceil(Number(row.planQty) / Number(row.purchaseStdQty))}}

Loading…
Cancel
Save