|
|
@@ -19,7 +19,7 @@
|
|
19
|
19
|
<el-row >
|
|
20
|
20
|
<el-col :span="8">
|
|
21
|
21
|
<el-form-item label="申请仓库" prop="deptname">
|
|
22
|
|
- <el-input v-model="ruleForm.store" placeholder="请输入申请仓库"/>
|
|
|
22
|
+ <select-departments :departments-param="departmentsParam" @post-departments="getDepartments"/>
|
|
23
|
23
|
</el-form-item>
|
|
24
|
24
|
</el-col>
|
|
25
|
25
|
<el-col :span="8">
|
|
|
@@ -97,6 +97,10 @@ export default {
|
|
97
|
97
|
return {
|
|
98
|
98
|
|
|
99
|
99
|
hospitalsId: 0,
|
|
|
100
|
+ departmentsParam: {
|
|
|
101
|
+ id: 0,
|
|
|
102
|
+ name: ''
|
|
|
103
|
+ },
|
|
100
|
104
|
thirdOrderTypeParam: {
|
|
101
|
105
|
typeid: 3,
|
|
102
|
106
|
pid: 2005
|
|
|
@@ -122,7 +126,8 @@ export default {
|
|
122
|
126
|
type: 0, // 工单类别
|
|
123
|
127
|
hosid: '', // 院区id
|
|
124
|
128
|
hosname: '', // 院区id
|
|
125
|
|
- store:'', //仓库
|
|
|
129
|
+ deptname:'', //仓库
|
|
|
130
|
+ deptid:'',//仓库
|
|
126
|
131
|
positon:'', //仓库位置
|
|
127
|
132
|
source: '电话',
|
|
128
|
133
|
usercode: '', // 申请人编码
|
|
|
@@ -173,7 +178,8 @@ export default {
|
|
173
|
178
|
source: this.ruleForm.source, // 工单来源
|
|
174
|
179
|
orthertype: this.ruleForm.orthertype,
|
|
175
|
180
|
hosid: this.ruleForm.hosid, // 院区id
|
|
176
|
|
- store: this.ruleForm.store, // 仓库
|
|
|
181
|
+ store: this.ruleForm.deptname, // 仓库
|
|
|
182
|
+ storeid:this.ruleForm.deptid, // 仓库id
|
|
177
|
183
|
positon: this.ruleForm.positon, //仓库位置
|
|
178
|
184
|
usercode: this.ruleForm.usercode, // 申请人编码
|
|
179
|
185
|
username: this.ruleForm.username, // 申请人
|
|
|
@@ -232,11 +238,13 @@ export default {
|
|
232
|
238
|
console.log(data)
|
|
233
|
239
|
// this.getDepartment()
|
|
234
|
240
|
},
|
|
|
241
|
+
|
|
235
|
242
|
// 科室下拉改变事件
|
|
236
|
243
|
getDepartments(data) {
|
|
237
|
244
|
console.log(data)
|
|
238
|
245
|
this.ruleForm.deptid = data.value
|
|
239
|
246
|
this.ruleForm.deptname = data.name
|
|
|
247
|
+ this.repairmanParam.id = data.value
|
|
240
|
248
|
},
|
|
241
|
249
|
getRepairman(data) {
|
|
242
|
250
|
console.log(data)
|