|
@ -168,6 +168,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
|
|
import * as accuracyFun from "@/utils/calculate" |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
|
const { t } = useI18n() // 国际化 |
|
|
const { t } = useI18n() // 国际化 |
|
|
|
|
|
|
|
@ -381,7 +382,8 @@ const submitForm = () => { |
|
|
let obj = tableData.value.find((item) => { |
|
|
let obj = tableData.value.find((item) => { |
|
|
item.allNumber = 0 |
|
|
item.allNumber = 0 |
|
|
item.packageList.forEach((cur) => { |
|
|
item.packageList.forEach((cur) => { |
|
|
item.allNumber += parseFloat(cur.qtyOne) || 0 |
|
|
item.allNumber = accuracyFun.add(item.allNumber , parseFloat(cur.qtyOne)?parseFloat(cur.qtyOne):0) |
|
|
|
|
|
// item.allNumber += parseFloat(cur.qtyOne) || 0 |
|
|
}) |
|
|
}) |
|
|
return item.allNumber != parseFloat(item.qty) |
|
|
return item.allNumber != parseFloat(item.qty) |
|
|
}) |
|
|
}) |
|
|