增加导入模版逻辑判断

This commit is contained in:
wuweihua
2026-11-02 16:41:47 +08:00
parent e93f0c0233
commit 7d3854bb4f
4 changed files with 1202 additions and 11 deletions
@@ -890,7 +890,10 @@ async function onRowPriceChange(row) {
proxy.$modal.msgSuccess('价格已更新(完成时统一落库)')
return
}
if (!row.psdId) return
if (!row.psdId) {
proxy.$modal.msgWarning('明细尚未落库,请先点「完成」保存后再改价')
return
}
const prevFv = row._editPrevFv
const prevReg = row._editPrevReg
try {
@@ -899,6 +902,7 @@ async function onRowPriceChange(row) {
} catch (e) {
if (prevFv !== undefined) row.fvValue = prevFv
if (prevReg !== undefined) row.fvRegistrationFee = prevReg
proxy.$modal.msgError((e && e.message) ? e.message : '价格更新失败')
}
}