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
| <template>
| <div class="app-container">
| <el-form
| :model="queryParams"
| ref="queryForm"
| size="small"
| :inline="true"
| label-width="68px"
| >
| <el-form-item label="体检号" prop="tjh">
| <el-input
| v-model="queryParams.tjh"
| placeholder="请输入体检号"
| clearable
| />
| </el-form-item>
| <el-form-item label="体检类型" prop="tblx">
| <el-select
| v-model="queryParams.tblx"
| :popper-append-to-body="false"
| filterable
| placeholder="请选择体检类型"
| clearable
| @change="idFn1"
| >
| <el-option
| v-for="item in CompanyList"
| :key="item.tblx"
| :label="item.tblx"
| :value="item.tblxId"
| />
| </el-select>
| </el-form-item>
| <el-form-item>
| <el-button
| type="primary"
| size="mini"
| @click="handleManual"
| >手工同步</el-button
| >
| <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
| >重置</el-button
| >
| </el-form-item>
| </el-form>
| </div>
| </template>
|
| <script>
| import { shoudongtbjyjcwsxmjg } from "@/api/system/menu";
| export default {
|
| name: "Manual",
| dicts: [
| "dict_user_national",
|
| ],
| data() {
| return{
| queryParams: {
| tjh: null,
| tblx: null,
| },
| CompanyList:[
| {
| tblx:"检验",
| tblxId:"jy"
|
| },
| {
| tblx:"检查",
| tblxId:"jc"
|
| },
| {
| tblx:"检验和检查",
| tblxId:"jyjc"
|
| }
| ]
| }
| },
| created() {
| // this.handleManual();
| },
| methods: {
| handleManual() {
| shoudongtbjyjcwsxmjg(this.queryParams).then(res => {
| this.$modal.msgSuccess("同步成功");
| })
| },
| resetQuery() {
| this.resetForm("queryForm");
| },
|
| idFn1(value) {
| if (value) {
| console.log(value)
| }
| },
|
| }
| };
| </script>
| <style scoped>
| .el-select-dropdown{
| position: absolute !important;
| top: 30px !important;
| left: 0px !important;
| }
|
| </style>
|
|
|