feat(web-admin): plan form package UI keyed by product and package spec
Contract-bound stop products use package options from the contract, arrange-qty cache/API include packageSpec, and save validates required package selections. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ded6aeaa85
commit
39161e43e4
9 files changed
+342
-37
No files matched your search
@@ -150,6 +150,7 @@
|
||||
:compact="compactProducts"
|
||||
:contract-id="stopContractId"
|
||||
:exclude-plan-id="excludePlanId"
|
||||
:contract-product-rows="contractProductRows"
|
||||
@remove="removeStopProduct"
|
||||
/>
|
||||
</div>
|
||||
@@ -165,6 +166,7 @@
|
||||
import PlPlanContractMultiSelect from '@/components/business/pl-plan-contract-multi-select/index.vue'
|
||||
import PlPlanStopProductTable from '@/components/business/pl-plan-stop-product-table/index.vue'
|
||||
import { resolveAddressNotesFill } from '@/utils/pl-address-notes-fill'
|
||||
import type { ContractProductRowLite } from '@/utils/pl-plan-contract-product'
|
||||
import {
|
||||
canManualToggleStopDibang,
|
||||
resolveStopDibangDefaults,
|
||||
@@ -182,12 +184,15 @@
|
||||
excludePlanId?: string
|
||||
/** 当前计划车牌(主牌),用于地磅可选车例外 */
|
||||
vehiclePlate?: string
|
||||
/** 装货合同产品行摘要(包装下拉) */
|
||||
contractProductRows?: ContractProductRowLite[]
|
||||
}>(),
|
||||
{
|
||||
readonly: false,
|
||||
compactProducts: true,
|
||||
excludePlanId: '',
|
||||
vehiclePlate: ''
|
||||
vehiclePlate: '',
|
||||
contractProductRows: () => []
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user