1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
| <template>
| <el-dialog :visible.sync="currentVisible" title="打印条码">
| <el-alert title="提示:下面可改变需要打印的实际数量" type="success"></el-alert>
| <el-table :data="tableData" stripe style="width: 100%">
| <el-table-column prop="productModel" label="条码" width="180">
| </el-table-column>
| <el-table-column prop="productStorage" label="打印数量" width="180">
| <template slot-scope="{$idnex, row}">
| <el-input-number v-model.number="row.productStorage" controls-position="right" class="w-100"></el-input-number>
| </template>
| </el-table-column>
| <el-table-column prop="productSpec" label="规格">
| </el-table-column>
| </el-table>
|
| <div slot="footer" class="dialog-footer">
| <el-button @click="currentVisible = false">取 消</el-button>
| <el-button type="primary" @click="printBarcode">确 定</el-button>
| </div>
| </el-dialog>
| </template>
|
| <script>
| export default {
| name: "position-group-barcode",
| components: {},
| props: {
| visible: {
| type: Boolean,
| default: false,
| required: true
| }
| },
| data() {
| return {
| id: "",
| tableData: [],
| formLabelWidth: "80px"
| };
| },
| computed: {
| currentVisible: {
| get: function() {
| return this.visible;
| },
| set: function(val) {
| this.$emit("update:visible", val);
| }
| }
| },
| methods: {
| showData(rows) {
| this.tableData = rows;
| },
| printBarcode() {
| localStorage.setItem("tableData", JSON.stringify(this.tableData));
|
| var url = "/#/storage/base/position-group-print-barcode";
| window.open(url);
| }
| }
| };
| </script>
|
|