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})=>{