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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
| <template>
| <div>
| <!-- 呼叫空托盘 -->
| <vol-box :width="500" :height="150" v-model="callEmptyPalletOption.model" title="呼叫空托盘">
| <div style="padding:10px;20px;">
| <vol-form ref="sendTask" :formRules="callEmptyPalletOption.data"
| :formFields="callEmptyPalletOption.fields"></vol-form>
| </div>
| <template #footer>
| <div style="text-align: center;">
| <el-button type="primary" size="max" icon="md-checkmark-circle" long
| @click="callEmptyPallet_Ok">确认呼叫</el-button>
| </div>
| </template>
| </vol-box>
| </div>
|
| <div>
| <!-- 修改测量间隔时间 -->
| <vol-box :width="500" :height="150" v-model="modifyGapTimeOption.model" title="修改测量间隔时间">
| <div style="padding:10px;20px;">
| <vol-form ref="sendTask" :labelWidth=120 :formRules="modifyGapTimeOption.data"
| :formFields="modifyGapTimeOption.fields"></vol-form>
| </div>
| <template #footer>
| <div style="text-align: center;">
| <el-button type="primary" size="max" icon="md-checkmark-circle" long
| @click="modifyGapTime_Ok">确认修改</el-button>
| </div>
| </template>
| </vol-box>
| </div>
|
| </template>
|
|
| <script>
| import VolBox from '@/components/basic/VolBox.vue';
| import VolForm from '@/components/basic/VolForm.vue';
| export default {
| components: { 'vol-box': VolBox, 'vol-form': VolForm },
| methods: {},
| data() {
| return {
| callEmptyPalletOption: {
| model: false,
| fields: { callNumber: '' },
| data: [
| [
| {
| columnType: 'string',
| required: false,
| title: '呼叫数量',
| field: 'callNumber',
| },
| ],
| ],
| },
| modifyGapTimeOption: {
| model: false,
| fields: { gapTime: '' },
| data: [
| [
| {
| columnType: 'string',
| required: false,
| title: '间隔时间(分钟)',
| field: 'gapTime',
| },
| ],
| ],
| },
| };
| },
|
| methods: {
| //呼叫空托盘
| showCallEmptyPalletAlert() {
| this.callEmptyPalletOption.model = true;
| },
|
| callEmptyPallet_Ok() {
| if (this.callEmptyPalletOption.fields.callNumber == '')
| this.callEmptyPalletOption.fields.callNumber = 1;
| let params = {
| MainData: {
| callNumber: this.callEmptyPalletOption.fields.callNumber,
| },
| DetailData: null,
| DelKeys: null,
| Extra: false,
| };
| this.http
| .post(
| '/api/VV_ContainerInfo_EmptyPallet/CallEmptyPallet',
| params,
| '空托盘呼叫中....'
| )
| .then((x) => {
| if (!x.status) return this.$Message.error(x.message);
| else this.$Message.success('空托盘呼叫成功');
| this.callEmptyPalletOption.model = false;
| this.refresh();
| });
| },
|
| //修改测量间隔时间
| showModifyGapTimeAlert() {
| this.modifyGapTimeOption.model = true;
| },
|
| modifyGapTime_Ok() {
| if (this.modifyGapTimeOption.fields.callNumber == '') {
| this.$Message.error('请输入间隔时间值');
| return;
| }
| let params = {
| MainData: {
| gapTime: this.modifyGapTimeOption.fields.gapTime,
| },
| DetailData: null,
| DelKeys: null,
| Extra: false,
| };
| this.http
| .post(
| '/api/Dt_general_info/ModifyGapTime',
| params,
| '间隔时间修改中....'
| )
| .then((x) => {
| if (!x.status) return this.$Message.error(x.message);
| else this.$Message.success('修改成功');
| this.modifyGapTimeOption.model = false;
| this.$parent.refresh();
| });
| },
| },
| };
| </script>
|
|