标签生成
parent
44738fb9fb
commit
688325f852
|
|
@ -20,6 +20,7 @@
|
|||
"url": "http://47.100.54.81:3000/LiuXue/youchain-web-master.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@chenfengyuan/vue-qrcode": "^1.0.2",
|
||||
"@jiaminghi/data-view": "^2.10.0",
|
||||
"@riophae/vue-treeselect": "^0.4.0",
|
||||
"axios": "^0.21.1",
|
||||
|
|
@ -39,6 +40,7 @@
|
|||
"normalize.css": "7.0.0",
|
||||
"nprogress": "0.2.0",
|
||||
"path-to-regexp": "2.4.0",
|
||||
"qrcode": "^1.5.4",
|
||||
"qs": "^6.10.1",
|
||||
"screenfull": "4.2.0",
|
||||
"sortablejs": "^1.8.4",
|
||||
|
|
@ -48,6 +50,8 @@
|
|||
"vue-cropper": "0.4.9",
|
||||
"vue-echarts": "^5.0.0-beta.0",
|
||||
"vue-image-crop-upload": "^2.5.0",
|
||||
"vue-print-next": "^1.1.6",
|
||||
"vue-qrcode": "^2.2.2",
|
||||
"vue-router": "3.0.2",
|
||||
"vue-splitpane": "1.0.4",
|
||||
"vuedraggable": "2.20.0",
|
||||
|
|
|
|||
21
src/main.js
21
src/main.js
|
|
@ -4,16 +4,9 @@ import Cookies from 'js-cookie'
|
|||
|
||||
import 'normalize.css/normalize.css'
|
||||
import VueClipboard from 'vue-clipboard2'
|
||||
import { printPlugin } from 'vue-print-next';
|
||||
import Element, { Table, TableColumn } from 'element-ui'
|
||||
const TableProps = Element.Table.props
|
||||
const TableColumnProps = Element.TableColumn.props
|
||||
TableProps.border = { type: Boolean, default: true } // 边框
|
||||
TableProps.align = { type: String, default: 'center' } // 居中
|
||||
TableProps.stripe = { type: Boolean, default: false } // 斑马纹
|
||||
TableColumnProps.showOverflowTooltip = { type: Boolean, default: true } // 文本溢出
|
||||
// TableColumnProps.sortable = { type: Boolean, default: true } // 置默认的排序列和排序顺序
|
||||
Vue.use(Table)
|
||||
Vue.use(TableColumn)
|
||||
|
||||
// 数据字典
|
||||
import dict from './components/Dict'
|
||||
import FileSaver from "file-saver";
|
||||
|
|
@ -23,6 +16,16 @@ import checkPer from '@/utils/permission'
|
|||
import permission from './components/Permission'
|
||||
import './assets/styles/element-variables.scss'
|
||||
|
||||
const TableProps = Element.Table.props
|
||||
const TableColumnProps = Element.TableColumn.props
|
||||
TableProps.border = { type: Boolean, default: true } // 边框
|
||||
TableProps.align = { type: String, default: 'center' } // 居中
|
||||
TableProps.stripe = { type: Boolean, default: false } // 斑马纹
|
||||
TableColumnProps.showOverflowTooltip = { type: Boolean, default: true } // 文本溢出
|
||||
// TableColumnProps.sortable = { type: Boolean, default: true } // 置默认的排序列和排序顺序
|
||||
Vue.use(Table)
|
||||
Vue.use(TableColumn)
|
||||
Vue.use(printPlugin)
|
||||
// global css
|
||||
import './assets/styles/index.scss'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,106 +0,0 @@
|
|||
<template>
|
||||
<el-dialog
|
||||
title="满车入库"
|
||||
:visible.sync="dialogVisible"
|
||||
width="400px"
|
||||
:before-close="handleClose">
|
||||
|
||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
|
||||
|
||||
<el-form-item label="容器" prop="containerCode">
|
||||
<el-input v-model="form.stockCode" placeholder="请输入容器号"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="点位" prop="pointCode">
|
||||
<el-input v-model="form.pointCode" placeholder="请输入点位"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="物料" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入物料"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="cancelForm">取 消</el-button>
|
||||
<el-button type="primary" @click="stockInConfirm">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import crud from '@/mixins/crud'
|
||||
import pointUrl, { fullStockIn } from '@/api/point'
|
||||
import CRUD from '@crud/crud'
|
||||
|
||||
export default {
|
||||
mixins: [crud],
|
||||
data() {
|
||||
return {
|
||||
dialogVisible: false,
|
||||
FullStockIn: {
|
||||
itemCode: '',
|
||||
stockCode: '',
|
||||
agvScene: '',
|
||||
pointCode: ''
|
||||
},
|
||||
rules: {
|
||||
pointCode: [
|
||||
{required: true, message: '点位必填', trigger: 'blur'}
|
||||
],
|
||||
stockCode: [
|
||||
{required: true, message: '容器必填', trigger: 'blur'}
|
||||
],
|
||||
itemCode: [
|
||||
{required: true, message: '物料必填', trigger: 'blur'}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
//关闭
|
||||
handleClose(done) {
|
||||
done();
|
||||
},
|
||||
stockInClick(data){
|
||||
this.form.pointCode=data.code;
|
||||
},
|
||||
stockInConfirm() {
|
||||
this.$refs['form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.FullStockIn.stockCode = this.form.stockCode
|
||||
this.FullStockIn.pointCode = this.form.pointCode
|
||||
this.FullStockIn.itemCode = this.form.itemCode
|
||||
this.FullStockIn.agvScene="ZC"
|
||||
pointUrl.fullStockIn(this.FullStockIn).then(res => {
|
||||
if(res.status==200){
|
||||
this.dialogVisible = false
|
||||
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS);
|
||||
this.$parent.shuaxinContainerList()
|
||||
this.$refs['form'].resetFields();
|
||||
}else{
|
||||
this.$parent.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.ERROR);
|
||||
}
|
||||
}).catch(() => {
|
||||
|
||||
})
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
},
|
||||
cancelForm() {
|
||||
this.dialogVisible = false
|
||||
this.$refs['form'].resetFields();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
|
@ -0,0 +1,766 @@
|
|||
<template>
|
||||
<div>
|
||||
<button v-print>打印整个页面</button>
|
||||
<button v-print="'#printMe'">打印局部内容</button>
|
||||
<button @click="getPointListData">预览</button>
|
||||
<div class="container" >
|
||||
<!-- 标签容器 - 使用flex布局实现每行两个 -->
|
||||
<div id="printMe" v-for="(group, groupIndex) in groupedLocations" :key="groupIndex" class="group-container">
|
||||
<div
|
||||
v-for="(location, indexInGroup) in group"
|
||||
:key="groupIndex * 3 + indexInGroup"
|
||||
class="label-item"
|
||||
>
|
||||
<table class="label-table">
|
||||
<tr>
|
||||
<td class="td-item" style="width:45mm" colspan="3">纳所/品番</td>
|
||||
<td class="td-item-value" colspan="9">{{ location.productCode }}</td>
|
||||
<td class="td-item" colspan="3">箱种</td>
|
||||
<td class="td-item-value" colspan="2">{{ location.boxType }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-item" colspan="3">品名</td>
|
||||
<td class="td-item-value" colspan="9">{{ location.productCode }}</td>
|
||||
<td class="td-item" colspan="3">收容数</td>
|
||||
<td class="td-item"colspan="2">{{ location.boxType }}</td>
|
||||
</tr>
|
||||
<tr style="height: 13mm">
|
||||
<td class="td-item" colspan="3">材库</td>
|
||||
<td class="td-item-value" colspan="4">{{ location.productCode }}</td>
|
||||
<td class="td-item" colspan="2">制库</td>
|
||||
<td class="td-item-value" colspan="4">{{ location.boxType }}</td>
|
||||
<td class="td-item" colspan="2">税别</td>
|
||||
<td class="td-item-value" colspan="2">{{ location.boxType }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td-item" colspan="3">供应商</td>
|
||||
<td class="td-item-value" colspan="14">{{ location.productCode }}</td>
|
||||
|
||||
</tr>
|
||||
<tr style="height: 13mm">
|
||||
<td class="td-item" colspan="3">适用机型</td>
|
||||
<td class="td-item" style="width:45mm" colspan="2">{{ location.applicableModels[0] }}</td>
|
||||
<td class="td-item" style="width:45mm" colspan="2">{{ location.applicableModels[1] }}</td>
|
||||
<td class="td-item" style="width:45mm" colspan="2">{{ location.applicableModels[2] }}</td>
|
||||
<td class="td-item" style="width:45mm" colspan="2">{{ location.applicableModels[3] }}</td>
|
||||
<td class="td-item" style="width:45mm" colspan="2">{{ location.applicableModels[4] }}</td>
|
||||
<td class="td-item" colspan="4" rowspan="2" style="width: 40mm;height: 20mm;">
|
||||
<vue-qrcode
|
||||
:value="getQrContent(location)"
|
||||
:options="qrOptions"
|
||||
tag="img"
|
||||
class="qr-code"
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="height: 13mm">
|
||||
<td class="td-item" colspan="3">使用数量</td>
|
||||
<td class="td-item" colspan="2">{{ location.usageQuantities[0] }}</td>
|
||||
<td class="td-item" colspan="2">{{ location.usageQuantities[1] }}</td>
|
||||
<td class="td-item" colspan="2">{{ location.usageQuantities[2] }}</td>
|
||||
<td class="td-item" colspan="2">{{ location.usageQuantities[3] }}</td>
|
||||
<td class="td-item" colspan="2">{{ location.usageQuantities[4] }}</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { vPrint } from 'vue-print-next';
|
||||
import { VuePrintNext } from 'vue-print-next';
|
||||
import DonMessage from "@/utils/message";
|
||||
import pagination from "@crud/Pagination.vue";
|
||||
import crudOperation from "@crud/CRUD.operation.vue";
|
||||
import rrOperation from "@crud/RR.operation.vue";
|
||||
import udOperation from "@crud/UD.operation.vue";
|
||||
import CRUD, {crud, form, header, presenter} from "@crud/crud";
|
||||
import crudStock from "@/api/stock";
|
||||
import {getToken} from "@/utils/auth";
|
||||
import {getStockTypes} from "@/api/stockType";
|
||||
import {queryPointList} from "@/api/point";
|
||||
import {getAres} from "@/api/area";
|
||||
|
||||
import VueQrcode from '@chenfengyuan/vue-qrcode';
|
||||
|
||||
export default {
|
||||
name: 'PointPrint',
|
||||
components: {
|
||||
VueQrcode
|
||||
},
|
||||
directives: {
|
||||
print: vPrint
|
||||
},
|
||||
computed: {
|
||||
groupedLocations() {
|
||||
const groups = [];
|
||||
// 将原始数组按每3个一组分割
|
||||
for (let i = 0; i < this.locations.length; i += 3) {
|
||||
groups.push(this.locations.slice(i, i + 3));
|
||||
}
|
||||
return groups;
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
qrOptions: {
|
||||
width: 60, // 二维码宽度
|
||||
margin: 0, // 边距
|
||||
errorCorrectionLevel: 'H' // 容错级别(高)
|
||||
},
|
||||
qrSize: 120, // 二维码尺寸
|
||||
// 示例数据 - 实际应用中可从API获取
|
||||
locations: [
|
||||
{
|
||||
name: "A区-01-001",
|
||||
qrValue: "A01-001",
|
||||
productCode: "00221/RE556-06022",
|
||||
boxType: "SPT",
|
||||
productName: "侧板L(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20101",
|
||||
productionWarehouse: "121012",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", " U20上 ", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-002",
|
||||
qrValue: "A01-002",
|
||||
productCode: "00221/RE556-06023",
|
||||
boxType: "SPT",
|
||||
productName: "侧板R(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20102",
|
||||
productionWarehouse: "121013",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "B区-02-101",
|
||||
qrValue: "B02-101",
|
||||
productCode: "00345/TC789-12001",
|
||||
boxType: "LPR",
|
||||
productName: "液压阀组件",
|
||||
capacity: "5",
|
||||
materialWarehouse: "U30567",
|
||||
productionWarehouse: "131045",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "液压科技",
|
||||
applicableModels: ["U30全系", "RX305", "RX306", "RDL系列"],
|
||||
usageQuantities: ["1", "1", "2", "1"]
|
||||
},
|
||||
{
|
||||
name: "C区-03-205",
|
||||
qrValue: "C03-205",
|
||||
productCode: "00456/MK321-04511",
|
||||
boxType: "MCT",
|
||||
productName: "控制模块V3",
|
||||
capacity: "10",
|
||||
materialWarehouse: "U40899",
|
||||
productionWarehouse: "141202",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "电子创新",
|
||||
applicableModels: ["U20全系", "RX全系", "RDL全系", "EX系列"],
|
||||
usageQuantities: ["1", "1", "1", "―"]
|
||||
},
|
||||
{
|
||||
name: "D区-04-301",
|
||||
qrValue: "D04-301",
|
||||
productCode: "00567/PT456-78900",
|
||||
boxType: "HVB",
|
||||
productName: "高压油管组件",
|
||||
capacity: "8",
|
||||
materialWarehouse: "U50123",
|
||||
productionWarehouse: "151078",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "液压管道",
|
||||
applicableModels: ["U35动臂", "U40斗杆", "RX307", "EX45"],
|
||||
usageQuantities: ["2", "1", "1", "1"]
|
||||
},
|
||||
{
|
||||
name: "E区-05-122",
|
||||
qrValue: "E05-122",
|
||||
productCode: "00678/BD123-45678",
|
||||
boxType: "FGP",
|
||||
productName: "履带板组件",
|
||||
capacity: "4",
|
||||
materialWarehouse: "U60789",
|
||||
productionWarehouse: "161234",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "机械制造",
|
||||
applicableModels: ["U35全系", "U40全系", "RX308", "EX60"],
|
||||
usageQuantities: ["4", "4", "2", "2"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-001",
|
||||
qrValue: "A01-001",
|
||||
productCode: "00221/RE556-06022",
|
||||
boxType: "SPT",
|
||||
productName: "侧板L(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20101",
|
||||
productionWarehouse: "121012",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-002",
|
||||
qrValue: "A01-002",
|
||||
productCode: "00221/RE556-06023",
|
||||
boxType: "SPT",
|
||||
productName: "侧板R(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20102",
|
||||
productionWarehouse: "121013",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "B区-02-101",
|
||||
qrValue: "B02-101",
|
||||
productCode: "00345/TC789-12001",
|
||||
boxType: "LPR",
|
||||
productName: "液压阀组件",
|
||||
capacity: "5",
|
||||
materialWarehouse: "U30567",
|
||||
productionWarehouse: "131045",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "液压科技",
|
||||
applicableModels: ["U30全系", "RX305", "RX306", "RDL系列"],
|
||||
usageQuantities: ["1", "1", "2", "1"]
|
||||
},
|
||||
{
|
||||
name: "C区-03-205",
|
||||
qrValue: "C03-205",
|
||||
productCode: "00456/MK321-04511",
|
||||
boxType: "MCT",
|
||||
productName: "控制模块V3",
|
||||
capacity: "10",
|
||||
materialWarehouse: "U40899",
|
||||
productionWarehouse: "141202",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "电子创新",
|
||||
applicableModels: ["U20全系", "RX全系", "RDL全系", "EX系列"],
|
||||
usageQuantities: ["1", "1", "1", "―"]
|
||||
},
|
||||
{
|
||||
name: "D区-04-301",
|
||||
qrValue: "D04-301",
|
||||
productCode: "00567/PT456-78900",
|
||||
boxType: "HVB",
|
||||
productName: "高压油管组件",
|
||||
capacity: "8",
|
||||
materialWarehouse: "U50123",
|
||||
productionWarehouse: "151078",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "液压管道",
|
||||
applicableModels: ["U35动臂", "U40斗杆", "RX307", "EX45"],
|
||||
usageQuantities: ["2", "1", "1", "1"]
|
||||
},
|
||||
{
|
||||
name: "E区-05-122",
|
||||
qrValue: "E05-122",
|
||||
productCode: "00678/BD123-45678",
|
||||
boxType: "FGP",
|
||||
productName: "履带板组件",
|
||||
capacity: "4",
|
||||
materialWarehouse: "U60789",
|
||||
productionWarehouse: "161234",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "机械制造",
|
||||
applicableModels: ["U35全系", "U40全系", "RX308", "EX60"],
|
||||
usageQuantities: ["4", "4", "2", "2"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-001",
|
||||
qrValue: "A01-001",
|
||||
productCode: "00221/RE556-06022",
|
||||
boxType: "SPT",
|
||||
productName: "侧板L(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20101",
|
||||
productionWarehouse: "121012",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-002",
|
||||
qrValue: "A01-002",
|
||||
productCode: "00221/RE556-06023",
|
||||
boxType: "SPT",
|
||||
productName: "侧板R(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20102",
|
||||
productionWarehouse: "121013",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "B区-02-101",
|
||||
qrValue: "B02-101",
|
||||
productCode: "00345/TC789-12001",
|
||||
boxType: "LPR",
|
||||
productName: "液压阀组件",
|
||||
capacity: "5",
|
||||
materialWarehouse: "U30567",
|
||||
productionWarehouse: "131045",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "液压科技",
|
||||
applicableModels: ["U30全系", "RX305", "RX306", "RDL系列"],
|
||||
usageQuantities: ["1", "1", "2", "1"]
|
||||
},
|
||||
{
|
||||
name: "C区-03-205",
|
||||
qrValue: "C03-205",
|
||||
productCode: "00456/MK321-04511",
|
||||
boxType: "MCT",
|
||||
productName: "控制模块V3",
|
||||
capacity: "10",
|
||||
materialWarehouse: "U40899",
|
||||
productionWarehouse: "141202",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "电子创新",
|
||||
applicableModels: ["U20全系", "RX全系", "RDL全系", "EX系列"],
|
||||
usageQuantities: ["1", "1", "1", "―"]
|
||||
},
|
||||
{
|
||||
name: "D区-04-301",
|
||||
qrValue: "D04-301",
|
||||
productCode: "00567/PT456-78900",
|
||||
boxType: "HVB",
|
||||
productName: "高压油管组件",
|
||||
capacity: "8",
|
||||
materialWarehouse: "U50123",
|
||||
productionWarehouse: "151078",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "液压管道",
|
||||
applicableModels: ["U35动臂", "U40斗杆", "RX307", "EX45"],
|
||||
usageQuantities: ["2", "1", "1", "1"]
|
||||
},
|
||||
{
|
||||
name: "E区-05-122",
|
||||
qrValue: "E05-122",
|
||||
productCode: "00678/BD123-45678",
|
||||
boxType: "FGP",
|
||||
productName: "履带板组件",
|
||||
capacity: "4",
|
||||
materialWarehouse: "U60789",
|
||||
productionWarehouse: "161234",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "机械制造",
|
||||
applicableModels: ["U35全系", "U40全系", "RX308", "EX60"],
|
||||
usageQuantities: ["4", "4", "2", "2"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-001",
|
||||
qrValue: "A01-001",
|
||||
productCode: "00221/RE556-06022",
|
||||
boxType: "SPT",
|
||||
productName: "侧板L(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20101",
|
||||
productionWarehouse: "121012",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-002",
|
||||
qrValue: "A01-002",
|
||||
productCode: "00221/RE556-06023",
|
||||
boxType: "SPT",
|
||||
productName: "侧板R(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20102",
|
||||
productionWarehouse: "121013",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "B区-02-101",
|
||||
qrValue: "B02-101",
|
||||
productCode: "00345/TC789-12001",
|
||||
boxType: "LPR",
|
||||
productName: "液压阀组件",
|
||||
capacity: "5",
|
||||
materialWarehouse: "U30567",
|
||||
productionWarehouse: "131045",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "液压科技",
|
||||
applicableModels: ["U30全系", "RX305", "RX306", "RDL系列"],
|
||||
usageQuantities: ["1", "1", "2", "1"]
|
||||
},
|
||||
{
|
||||
name: "C区-03-205",
|
||||
qrValue: "C03-205",
|
||||
productCode: "00456/MK321-04511",
|
||||
boxType: "MCT",
|
||||
productName: "控制模块V3",
|
||||
capacity: "10",
|
||||
materialWarehouse: "U40899",
|
||||
productionWarehouse: "141202",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "电子创新",
|
||||
applicableModels: ["U20全系", "RX全系", "RDL全系", "EX系列"],
|
||||
usageQuantities: ["1", "1", "1", "―"]
|
||||
},
|
||||
{
|
||||
name: "D区-04-301",
|
||||
qrValue: "D04-301",
|
||||
productCode: "00567/PT456-78900",
|
||||
boxType: "HVB",
|
||||
productName: "高压油管组件",
|
||||
capacity: "8",
|
||||
materialWarehouse: "U50123",
|
||||
productionWarehouse: "151078",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "液压管道",
|
||||
applicableModels: ["U35动臂", "U40斗杆", "RX307", "EX45"],
|
||||
usageQuantities: ["2", "1", "1", "1"]
|
||||
},
|
||||
{
|
||||
name: "E区-05-122",
|
||||
qrValue: "E05-122",
|
||||
productCode: "00678/BD123-45678",
|
||||
boxType: "FGP",
|
||||
productName: "履带板组件",
|
||||
capacity: "4",
|
||||
materialWarehouse: "U60789",
|
||||
productionWarehouse: "161234",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "机械制造",
|
||||
applicableModels: ["U35全系", "U40全系", "RX308", "EX60"],
|
||||
usageQuantities: ["4", "4", "2", "2"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-001",
|
||||
qrValue: "A01-001",
|
||||
productCode: "00221/RE556-06022",
|
||||
boxType: "SPT",
|
||||
productName: "侧板L(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20101",
|
||||
productionWarehouse: "121012",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-002",
|
||||
qrValue: "A01-002",
|
||||
productCode: "00221/RE556-06023",
|
||||
boxType: "SPT",
|
||||
productName: "侧板R(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20102",
|
||||
productionWarehouse: "121013",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "B区-02-101",
|
||||
qrValue: "B02-101",
|
||||
productCode: "00345/TC789-12001",
|
||||
boxType: "LPR",
|
||||
productName: "液压阀组件",
|
||||
capacity: "5",
|
||||
materialWarehouse: "U30567",
|
||||
productionWarehouse: "131045",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "液压科技",
|
||||
applicableModels: ["U30全系", "RX305", "RX306", "RDL系列"],
|
||||
usageQuantities: ["1", "1", "2", "1"]
|
||||
},
|
||||
{
|
||||
name: "C区-03-205",
|
||||
qrValue: "C03-205",
|
||||
productCode: "00456/MK321-04511",
|
||||
boxType: "MCT",
|
||||
productName: "控制模块V3",
|
||||
capacity: "10",
|
||||
materialWarehouse: "U40899",
|
||||
productionWarehouse: "141202",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "电子创新",
|
||||
applicableModels: ["U20全系", "RX全系", "RDL全系", "EX系列"],
|
||||
usageQuantities: ["1", "1", "1", "―"]
|
||||
},
|
||||
{
|
||||
name: "D区-04-301",
|
||||
qrValue: "D04-301",
|
||||
productCode: "00567/PT456-78900",
|
||||
boxType: "HVB",
|
||||
productName: "高压油管组件",
|
||||
capacity: "8",
|
||||
materialWarehouse: "U50123",
|
||||
productionWarehouse: "151078",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "液压管道",
|
||||
applicableModels: ["U35动臂", "U40斗杆", "RX307", "EX45"],
|
||||
usageQuantities: ["2", "1", "1", "1"]
|
||||
},
|
||||
{
|
||||
name: "E区-05-122",
|
||||
qrValue: "E05-122",
|
||||
productCode: "00678/BD123-45678",
|
||||
boxType: "FGP",
|
||||
productName: "履带板组件",
|
||||
capacity: "4",
|
||||
materialWarehouse: "U60789",
|
||||
productionWarehouse: "161234",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "机械制造",
|
||||
applicableModels: ["U35全系", "U40全系", "RX308", "EX60"],
|
||||
usageQuantities: ["4", "4", "2", "2"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-001",
|
||||
qrValue: "A01-001",
|
||||
productCode: "00221/RE556-06022",
|
||||
boxType: "SPT",
|
||||
productName: "侧板L(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20101",
|
||||
productionWarehouse: "121012",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-002",
|
||||
qrValue: "A01-002",
|
||||
productCode: "00221/RE556-06023",
|
||||
boxType: "SPT",
|
||||
productName: "侧板R(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20102",
|
||||
productionWarehouse: "121013",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "B区-02-101",
|
||||
qrValue: "B02-101",
|
||||
productCode: "00345/TC789-12001",
|
||||
boxType: "LPR",
|
||||
productName: "液压阀组件",
|
||||
capacity: "5",
|
||||
materialWarehouse: "U30567",
|
||||
productionWarehouse: "131045",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "液压科技",
|
||||
applicableModels: ["U30全系", "RX305", "RX306", "RDL系列"],
|
||||
usageQuantities: ["1", "1", "2", "1"]
|
||||
},
|
||||
{
|
||||
name: "C区-03-205",
|
||||
qrValue: "C03-205",
|
||||
productCode: "00456/MK321-04511",
|
||||
boxType: "MCT",
|
||||
productName: "控制模块V3",
|
||||
capacity: "10",
|
||||
materialWarehouse: "U40899",
|
||||
productionWarehouse: "141202",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "电子创新",
|
||||
applicableModels: ["U20全系", "RX全系", "RDL全系", "EX系列"],
|
||||
usageQuantities: ["1", "1", "1", "―"]
|
||||
},
|
||||
{
|
||||
name: "D区-04-301",
|
||||
qrValue: "D04-301",
|
||||
productCode: "00567/PT456-78900",
|
||||
boxType: "HVB",
|
||||
productName: "高压油管组件",
|
||||
capacity: "8",
|
||||
materialWarehouse: "U50123",
|
||||
productionWarehouse: "151078",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "液压管道",
|
||||
applicableModels: ["U35动臂", "U40斗杆", "RX307", "EX45"],
|
||||
usageQuantities: ["2", "1", "1", "1"]
|
||||
},
|
||||
{
|
||||
name: "E区-05-122",
|
||||
qrValue: "E05-122",
|
||||
productCode: "00678/BD123-45678",
|
||||
boxType: "FGP",
|
||||
productName: "履带板组件",
|
||||
capacity: "4",
|
||||
materialWarehouse: "U60789",
|
||||
productionWarehouse: "161234",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "机械制造",
|
||||
applicableModels: ["U35全系", "U40全系", "RX308", "EX60"],
|
||||
usageQuantities: ["4", "4", "2", "2"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-001",
|
||||
qrValue: "A01-001",
|
||||
productCode: "00221/RE556-06022",
|
||||
boxType: "SPT",
|
||||
productName: "侧板L(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20101",
|
||||
productionWarehouse: "121012",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "A区-01-002",
|
||||
qrValue: "A01-002",
|
||||
productCode: "00221/RE556-06023",
|
||||
boxType: "SPT",
|
||||
productName: "侧板R(B-2)",
|
||||
capacity: "20",
|
||||
materialWarehouse: "U20102",
|
||||
productionWarehouse: "121013",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "固兰特",
|
||||
applicableModels: ["U20动臂", "U20斗杆", "U20上", "RX306上"],
|
||||
usageQuantities: ["1", "―", "―", "―"]
|
||||
},
|
||||
{
|
||||
name: "B区-02-101",
|
||||
qrValue: "B02-101",
|
||||
productCode: "00345/TC789-12001",
|
||||
boxType: "LPR",
|
||||
productName: "液压阀组件",
|
||||
capacity: "5",
|
||||
materialWarehouse: "U30567",
|
||||
productionWarehouse: "131045",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "液压科技",
|
||||
applicableModels: ["U30全系", "RX305", "RX306", "RDL系列"],
|
||||
usageQuantities: ["1", "1", "2", "1"]
|
||||
},
|
||||
{
|
||||
name: "C区-03-205",
|
||||
qrValue: "C03-205",
|
||||
productCode: "00456/MK321-04511",
|
||||
boxType: "MCT",
|
||||
productName: "控制模块V3",
|
||||
capacity: "10",
|
||||
materialWarehouse: "U40899",
|
||||
productionWarehouse: "141202",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课", supplier: "电子创新",
|
||||
applicableModels: ["U20全系", "RX全系", "RDL全系", "EX系列"],
|
||||
usageQuantities: ["1", "1", "1", "―"]
|
||||
},
|
||||
{
|
||||
name: "D区-04-301",
|
||||
qrValue: "D04-301",
|
||||
productCode: "00567/PT456-78900",
|
||||
boxType: "HVB",
|
||||
productName: "高压油管组件",
|
||||
capacity: "8",
|
||||
materialWarehouse: "U50123",
|
||||
productionWarehouse: "151078",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
|
||||
supplier: "液压管道",
|
||||
applicableModels: ["U35动臂", "U40斗杆", "RX307", "EX45"],
|
||||
usageQuantities: ["2", "1", "1", "1"]
|
||||
},
|
||||
{
|
||||
name: "E区-05-122",
|
||||
qrValue: "E05-122",
|
||||
productCode: "00678/BD123-45678",
|
||||
boxType: "FGP",
|
||||
productName: "履带板组件",
|
||||
capacity: "4",
|
||||
materialWarehouse: "U60789",
|
||||
productionWarehouse: "161234",
|
||||
taxCategory: "U20101;121012-00221;RE556-06022;课",
|
||||
supplier: "机械制造",
|
||||
applicableModels: ["U35全系", "U40全系", "RX308", "EX60"],
|
||||
usageQuantities: ["4", "4", "2", "2"]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
getQrContent(location) {
|
||||
// 自定义二维码内容,这里用箱种和品番组合
|
||||
return `${location.taxCategory}`;
|
||||
|
||||
// 如果只需要箱种,可以直接用:
|
||||
// return location.boxType;
|
||||
},
|
||||
//获取点位表的数据
|
||||
getPointListData(){
|
||||
new VuePrintNext({
|
||||
el: '#printMe', /* 其他参数 */
|
||||
popTitle: '打印拣货单',
|
||||
preview: true,// 启用打印预览
|
||||
paperSize: 'A5'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Microsoft YaHei', sans-serif;
|
||||
}
|
||||
body {
|
||||
background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
|
||||
padding: 20px;
|
||||
min-height: 100vh;
|
||||
}
|
||||
.group-container{
|
||||
padding-top: 10mm;
|
||||
box-shadow: none;margin-bottom:0;padding: 0;border-radius: 0;
|
||||
page-break-after: always;
|
||||
break-after: page;
|
||||
}
|
||||
.label-item {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
background: #C03639;
|
||||
justify-content: center;
|
||||
}
|
||||
.td-item{
|
||||
text-align: center;
|
||||
border: #000000 2px solid;
|
||||
}
|
||||
|
||||
.td-item-value{
|
||||
font-size: 12pt;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
border: #000000 2px solid;
|
||||
}
|
||||
|
||||
.qr-code {
|
||||
padding: 1mm;
|
||||
width: 28mm; /* 控制显示大小 */
|
||||
height: 28mm;
|
||||
image-rendering: crisp-edges; /* 保持清晰度 */
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.label-table {
|
||||
margin-top: 5mm;
|
||||
margin-bottom: 5mm;
|
||||
|
||||
width: 200mm;
|
||||
height: 80mm;
|
||||
background: #ffffff;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
</style>
|
||||
Loading…
Reference in New Issue