bug: 🐛 修复打包报错
This commit is contained in:
parent
7ce15ddf0e
commit
d1d2840abd
@ -67,7 +67,7 @@
|
|||||||
// 再step1中点击下一步的时候,就去获取step1中的表单数据
|
// 再step1中点击下一步的时候,就去获取step1中的表单数据
|
||||||
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 ? `数量不一致` : '',
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -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 ?? '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user