#
Junjie
2025-07-23 e58316187232a0489e9e004bc038f404ca7f5948
pages/basics/stockCheck.vue
@@ -279,9 +279,10 @@
         },
         confirm() {
            let arr = this.matList[this.rowNum].origin.split("/")
            console.log(arr);
            let mainAnfme = this.count * parseFloat(arr[1]) * parseFloat(arr[0])
            console.log(mainAnfme);
            this.matList[this.rowNum].anfme = mainAnfme
            let flooredNum = Math.floor(mainAnfme * 10000) / 10000; // 截断到小数点后4位
            this.matList[this.rowNum].anfme = flooredNum
            this.matList[this.rowNum].weight = this.count
            this.$refs.revise.close()
         },