| | |
| | | <el-row> |
| | | <el-col :span="10" :offset="3">包装台账二维码:</el-col> |
| | | <el-col :span="10"> |
| | | <vueQr :text="JSON.stringify(item)" :size="110" :margin="1"></vueQr> |
| | | <vueQr :text=str+item.packageBoxId :size="110" :margin="1"></vueQr> |
| | | </el-col> |
| | | </el-row> |
| | | </el-card> |
| | |
| | | export default { |
| | | data(){ |
| | | return { |
| | | str:"http://192.168.2.213:8080/#/pack?id=", |
| | | qrData:[], |
| | | diaPrintTab: false, |
| | | multipleSelection: [], |
| | |
| | | }, |
| | | handleSelectionChange(val){ |
| | | this.multipleSelection = val |
| | | console.log(this.multipleSelection[0].id,"数据"); |
| | | let lastRow = val[val.length - 1] |
| | | this.handleCurrentChange(lastRow) |
| | | }, |
| | |
| | | let obj = { |
| | | packageNo: item.packageNo, |
| | | contractNo: item.contractNo, |
| | | boxInfo: [] |
| | | packageBoxId:item.id |
| | | } |
| | | list({packageBoxId:item.id}).then((res) =>{ |
| | | res.data.data.forEach(ele=>{ |
| | | obj.boxInfo.push({ |
| | | product: ele.product, |
| | | productNo: ele.productNo, |
| | | specs: ele.specs, |
| | | unit: ele.unit, |
| | | number: ele.number |
| | | }) |
| | | }) |
| | | }) |
| | | this.qrData.push(obj) |
| | | }) |
| | | }, |
| | |
| | | el.packageBoxId =this.goid |
| | | }); |
| | | console.log(this.testStandardParams); |
| | | return |
| | | // return |
| | | saveList(this.testStandardParams).then((res) =>{ |
| | | if(res.status===200){ |
| | | this.$message.success('保存成功') |