| | |
| | | </div> |
| | | <div style="font-weight: bold;display: flex;align-items: center;"> |
| | | <span class="full-title">样品状态</span>: |
| | | <el-radio-group v-model="item.labelStatus" style="margin-top: 7px;margin-left: 4px;" v-removeAriaHidden> |
| | | <el-radio-group v-model="item.labelStatus" style="margin-top: 7px;margin-left: 4px;"> |
| | | <el-radio label="0" style="font-weight: bold;margin-right: 7px;">待检</el-radio> |
| | | <el-radio label="1" style="font-weight: bold;margin-right: 7px;">在检</el-radio> |
| | | <el-radio label="2" style="font-weight: bold;margin-right: 7px;">已检</el-radio> |
| | |
| | | |
| | | <script> |
| | | import PrintJS from "print-js"; |
| | | import {printLabel} from "@/api/business/rawMaterialOrder"; |
| | | import {stringToBase64} from '@/utils/base64Util' |
| | | |
| | | export default { |
| | | name: "printDialog", |
| | |
| | | selection.map(m=> { |
| | | ids.push(m.id) |
| | | }) |
| | | this.$axios.post(this.$api.materialInspection.printLabel,{ |
| | | ids: ids |
| | | },{ |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | }, |
| | | noQs:true |
| | | }).then(res => { |
| | | printLabel({ids: ids}).then(res => { |
| | | if (res.code === 200 && res.data.length > 0) { |
| | | res.data.forEach(item => { |
| | | console.log('item---', item) |
| | | item.sendTime = item.sendTime && item.sendTime.substring(0, 10) |
| | | item.sampleNumber = item.qtyArrived + item.buyUnitMeas |
| | | this.$set(item, 'barcode', item.entrustCode) |
| | | this.$set(item, 'barcode', item.entrustCode+","+stringToBase64(item.color)) |
| | | this.$set(item, 'isLeave', item.labelStatus === '2') |
| | | }) |
| | | this.barcodeData = res.data |