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
| <template>
|
| <div>
|
| <vol-box :width="500" :height="380" v-model="model" title="设备复位">
| <div style="display:flex;margin-top:20px;">
| <div style="padding:10px;20px;">
| <vol-form ref="sendTask" :formRules="equipmentResetFrom.data"
| :formFields="equipmentResetFrom.fields"></vol-form>
| </div>
| </div>
|
| <template #footer>
| <div style="text-align: center;">
| <el-button type="primary" size="max" icon="md-checkmark-circle" long
| @click="boxOutbound_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 {
| model: false,
| EquipmentReset: [],
| equipmentResetFrom: {
| model: false,
| fields: { writeValue: '' },
| data: [
| [
| {
| columnType: 'string',
| required: true,
| title: '写入值',
| field: 'writeValue',
| },
| ],
| ],
| },
| };
| },
|
| methods: {
| //手动完成任务
| showBoxOutboundAlert(res) {
| this.EquipmentReset = res;
| this.model = true;
| },
| boxOutbound_Ok() {
| let params = {
| MainData: {
| writeValue: this.equipmentResetFrom.fields.writeValue,
| },
| DetailData: null,
| DelKeys: this.EquipmentReset,
| Extra: false,
| };
| this.http
| .post('/api/Dt_TaskWCSinfo/EquipmentReset ', params, '正在执行中...')
| .then((x) => {
| if (!x.status) return this.$Message.error(x.message);
| this.$Message.success('手动复位成功');
| this.model = false;
| this.$parent.refresh();
| });
| },
| },
| };
| </script>
|
|