merge: pull remote master and keep local dispatch qty with refill support

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
tzy 2026-08-27 10:55:54 +08:00
commit 5357434d9d
2 changed files with 4 additions and 3 deletions

View File

@ -1336,12 +1336,13 @@ function disphand(process: ProcessPlanItemVO, order?: OrderProcessPlanVO) {
const planQty = Number(entity.quantity) || 0 const planQty = Number(entity.quantity) || 0
const completedQty = Number(process.completedQty) || 0 const completedQty = Number(process.completedQty) || 0
// checkOverProcessNum = // checkOverProcessNum = +
const assignedQty = (process.assignWorkList ?? []).reduce( const assignedQty = (process.assignWorkList ?? []).reduce(
(s, a) => s + (Number(a.quantity) || 0), (s, a) => s + (Number(a.quantity) || 0),
0, 0,
) )
const remainQty = Math.max(0, planQty - assignedQty) const refillNum = Number(process.refillNum) || 0
const remainQty = Math.max(0, planQty + refillNum - assignedQty)
dispatchmodal.value = true dispatchmodal.value = true
dispatchformRef.value?.restoreValidation() dispatchformRef.value?.restoreValidation()
dispatchform.id = entity.id dispatchform.id = entity.id

View File

@ -353,7 +353,7 @@ const columns: DataTableColumns<StockIn> = [
render(row) { render(row) {
return h('div', [ return h('div', [
h('div', row.updateTime || '-'), h('div', row.updateTime || '-'),
h('div', { class: 'muted' }, row.updateBy ? `更新人 ${row.updateBy}` : ''), h('div', { class: 'muted' }, row.userName ? `更新人 ${row.userName}` : ''),
]) ])
}, },
}, },