bug: 🐛 修复打包报错
Some checks failed
Release / lint (push) Successful in 49s
Release / Release (push) Failing after 57s

This commit is contained in:
my_ong 2025-03-04 12:20:45 +08:00
parent 7ce15ddf0e
commit d1d2840abd
2 changed files with 5 additions and 5 deletions

View File

@ -67,7 +67,7 @@
// step1step1 // step1step1
selectData.value = applyFormRef.value.getTableData() selectData.value = applyFormRef.value.getTableData()
selectData.value.forEach((item: RowVO) => { selectData.value.forEach((item: RowVO) => {
if (item.assignRule === 'HIGH_VALUE') { if (item.assignRule) {
totalValue.value += item.quantity totalValue.value += item.quantity
} }
}) })
@ -91,7 +91,7 @@
applyNum: item.quantity, applyNum: item.quantity,
assignRule: item.assignRule, assignRule: item.assignRule,
scanNum: groupedSums[item.code] || 0, scanNum: groupedSums[item.code] || 0,
remark: item.quantity != groupedSums[item.code] && item.assignRule === 'HIGH_VALUE' ? `数量不一致` : '', remark: item.quantity != groupedSums[item.code] && item.assignRule ? `数量不一致` : '',
} }
}) })
} }

View File

@ -109,7 +109,7 @@
* 请求接口获取缓存数据 * 请求接口获取缓存数据
*/ */
const getCache = () => { const getCache = () => {
api.materialApi.material.all((data) => { api.materialApi.material.all({}, (data) => {
data.forEach((item) => { data.forEach((item) => {
if (item.code) { if (item.code) {
materialMapCache.value.set(item.code, item) // 6 materialMapCache.value.set(item.code, item) // 6
@ -122,7 +122,7 @@
interface TableRowVO { interface TableRowVO {
id: number id: number
barcode: string barcode: string
assignRule: string assignRule: boolean
name: string name: string
code: string code: string
spec: string spec: string
@ -188,7 +188,7 @@
const row: TableRowVO = { const row: TableRowVO = {
id: materialInfo?.id ?? 0, id: materialInfo?.id ?? 0,
barcode: sn, barcode: sn,
assignRule: materialInfo?.assignRule ?? '', assignRule: materialInfo?.assignRule ?? false,
name: materialInfo?.name ?? '', name: materialInfo?.name ?? '',
code: materialInfo?.code ?? '', code: materialInfo?.code ?? '',
spec: materialInfo?.spec ?? '', spec: materialInfo?.spec ?? '',