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
selectData.value = applyFormRef.value.getTableData()
selectData.value.forEach((item: RowVO) => {
if (item.assignRule === 'HIGH_VALUE') {
if (item.assignRule) {
totalValue.value += item.quantity
}
})
@ -91,7 +91,7 @@
applyNum: item.quantity,
assignRule: item.assignRule,
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 = () => {
api.materialApi.material.all((data) => {
api.materialApi.material.all({}, (data) => {
data.forEach((item) => {
if (item.code) {
materialMapCache.value.set(item.code, item) // 6
@ -122,7 +122,7 @@
interface TableRowVO {
id: number
barcode: string
assignRule: string
assignRule: boolean
name: string
code: string
spec: string
@ -188,7 +188,7 @@
const row: TableRowVO = {
id: materialInfo?.id ?? 0,
barcode: sn,
assignRule: materialInfo?.assignRule ?? '',
assignRule: materialInfo?.assignRule ?? false,
name: materialInfo?.name ?? '',
code: materialInfo?.code ?? '',
spec: materialInfo?.spec ?? '',