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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
| <template>
| <el-dialog v-dialogDrag ref="uploadRef" :visible.sync="currentDialogVisible" :title="title" class="import-dialog-container" width="580px" @close="dialogClose">
| <el-form>
| <el-row>
| <el-form-item label="车队名称:" style="padding-left: 30px;">
| <el-input v-model="form.vehicleGroupName" class="w-200"></el-input>
| </el-form-item>
| <el-form-item label="负责人:" style="padding-left: 43px;">
| <el-input v-model="form.teamLeader " class="w-200"></el-input>
| </el-form-item>
| </el-row>
| </el-form>
| <div slot="footer" class="dialog-footer">
| <el-button @click="showPay()">取 消</el-button>
| <el-button type="primary" @click="save()">保存</el-button>
| </div>
| </el-dialog>
| </template>
| <script>
| export default {
| props: {
| visible: {
| type: Boolean,
| default: false
| },
| label: {
| type: String,
| default: null
| },
| config: {
| type: Object,
| default: () => {
| return {};
| }
| },
| // 导入前事件
| beforeImportSubmit: {
| type: Function,
| default: () => {
| return () => {};
| }
| }
| },
| data() {
| return {
| form: {
| vehicleGroupName: null,
| teamLeader: null
| }
| };
| },
| computed: {
| // 标题
| title: function() {
| return this.config.title || "批量导入操作";
| },
| // 显示窗口
| currentDialogVisible: {
| get: function() {
| return this.visible;
| },
| set: function(val) {
| this.$emit("update:visible", val);
| }
| }
| },
| mounted() {
| this.uploadKey = this.common.getGUID();
| },
| methods: {
| // 保存数据
| save() {
| // this.$emit("generate-bills", this.form);
| this.currentDialogVisible = false;
| },
| // 关闭窗口
| dialogClose() {
| this.$emit("on-close"); // 关闭事件
| },
| showPay() {
| this.currentDialogVisible = false;
| }
| }
| };
| </script>
|
| <style lang="scss" scoped>
| .import-dialog-container {
| /deep/ .el-upload-list {
| margin-right: 20px;
| }
| /deep/ .scrollbar-wrap {
| max-height: 400px;
| overflow-x: hidden;
| padding: 0px;
| padding-bottom: 30px !important;
| padding-top: 0px !important;
| }
| .msg-container {
| margin: 0;
| padding: 0;
| .msg-item {
| margin: 0;
| padding: 5px 0;
| word-wrap: break-word;
| }
| }
| .body-content {
| margin-top: 20px;
| }
| }
| </style>
|
|