From 1918ef5dd0296e358ef56e841e66b13a1c2f0333 Mon Sep 17 00:00:00 2001 From: zelian_wu Date: Thu, 27 Jun 2024 14:44:49 +0800 Subject: [PATCH] 2024/06/27 --- .../modules/finshProduct/outWarehouse/shipmentBox.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/modules/finshProduct/outWarehouse/shipmentBox.vue b/src/views/modules/finshProduct/outWarehouse/shipmentBox.vue index 847d81e..c1d97e6 100644 --- a/src/views/modules/finshProduct/outWarehouse/shipmentBox.vue +++ b/src/views/modules/finshProduct/outWarehouse/shipmentBox.vue @@ -125,12 +125,15 @@ export default { this.form.rollNo = '' return } - let scanRow = val.split(',') + let scanRow = val.split('|') + if (scanRow.length < 4){ + this.$message.warning("二维码格式有误!") + return + } let params = { ...this.form, id:null, - rollNo:scanRow[1], - site:scanRow[0], + rollNo:scanRow[3], createBy:this.$store.state.user.name, } saveShipmentRollData(params).then(({data})=>{