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
| <template>
| <div class="page-list-container">
| <!--数据Table-->
| <yrt-data-list :ref="dataListRef" :editor-ref="editorRef" :data-options="dataOptions" :fields.sync="dataListOptions.fields" :buttons="dataListOptions.buttons" :button-click="buttonClick" :data-list-selections.sync="dataListSelections" :auth-nodes="authNodes">
| </yrt-data-list>
| </div>
| </template>
| <script>
| import baseLayout from "@/components/common/base-layout.vue";
|
| export default {
| name: "outbound-sale-sendlist",
| components: {},
| mixins: [baseLayout],
| data() {
| return {};
| },
| methods: {
| // 列表工具栏点击事件
| buttonClick(authNode) {
| switch (authNode) {
| case "print":
| // 打印交货清单
| this.detailPrint();
| return false;
| }
| },
| // 打印交货清单
| detailPrint() {
| var ids = [];
| this.dataListSelections.forEach(item => {
| ids.push(item[this.dataOptions.idField]);
| });
| if (!ids.length) {
| this.$message.error("至少选择一项!");
| return;
| }
| sessionStorage["print-send-list"] = JSON.stringify(this.dataListSelections);
| // console.log(localStorage["print-send-list"]);
| window.open("/#/print/send-list");
| }
| }
| };
| </script>
|
|