|
|
@@ -10,16 +10,18 @@
|
|
10
|
10
|
</uni-forms-item>
|
|
11
|
11
|
<uni-forms-item label="申请科室" required name="ApplicationDept">
|
|
12
|
12
|
<uni-data-picker :readonly="true" placeholder="请选择申请科室" :localdata="deptDataTree"
|
|
13
|
|
- v-model="valiFormData.ApplicationDept" @nodeclick="deptNodeclick" :showSearch="showSearch" @popupclosed="popupclosedDept" @searchTrue="departSearchTrue">
|
|
|
13
|
+ v-model="valiFormData.ApplicationDept" @nodeclick="deptNodeclick" :showSearch="showSearch"
|
|
|
14
|
+ @popupclosed="popupclosedDept" @searchTrue="departSearchTrue">
|
|
14
|
15
|
</uni-data-picker>
|
|
15
|
16
|
</uni-forms-item>
|
|
16
|
17
|
<uni-forms-item label="科室电话" required name="DeptPhone">
|
|
17
|
18
|
<uni-easyinput v-model="valiFormData.DeptPhone" placeholder="请输入联系电话" />
|
|
18
|
19
|
</uni-forms-item>
|
|
19
|
20
|
<uni-forms-item label="申请人" required name="ApplicantName">
|
|
20
|
|
- <uni-combox :candidates="candidates" placeholder="输入搜索内容" @input="handleInput" v-model="valiFormData.ApplicantName"></uni-combox>
|
|
|
21
|
+ <uni-combox :candidates="candidates" placeholder="输入搜索内容" @input="handleInput"
|
|
|
22
|
+ v-model="valiFormData.ApplicantName"></uni-combox>
|
|
21
|
23
|
</uni-forms-item>
|
|
22
|
|
-
|
|
|
24
|
+
|
|
23
|
25
|
<uni-forms-item label="联系电话" required name="Phone">
|
|
24
|
26
|
<uni-easyinput v-model="valiFormData.Phone" placeholder="请输入联系电话" />
|
|
25
|
27
|
</uni-forms-item>
|
|
|
@@ -28,29 +30,37 @@
|
|
28
|
30
|
</uni-forms-item>
|
|
29
|
31
|
<view style="margin: 15px 0;" v-show="valiFormData.WorkOrderCategory && flag[flaginfo]">
|
|
30
|
32
|
<view style="margin-bottom: 15px;">
|
|
31
|
|
- <text class="infoTittle"><text v-show="flaginfo==='2001' || flaginfo==='2003'|| flaginfo==='127548'|| flaginfo==='10617' || flaginfo==='9129'|| flaginfo==='9130' || flaginfo==='2007'" style="color: red;">*</text>{{flagName[flaginfo]}}</text>
|
|
|
33
|
+ <text class="infoTittle"><text
|
|
|
34
|
+ v-show="flaginfo==='2001' || flaginfo==='2003'|| flaginfo==='127548'|| flaginfo==='10617' || flaginfo==='9129'|| flaginfo==='9130' || flaginfo==='2007'"
|
|
|
35
|
+ style="color: red;">*</text>{{flagName[flaginfo]}}</text>
|
|
32
|
36
|
<uni-icons type="plus" size="30" color="#007aff" @click="plusClck()"></uni-icons>
|
|
33
|
37
|
<uni-icons type="minus" size="30" color="#007aff" @click="minusClck()"></uni-icons>
|
|
34
|
38
|
</view>
|
|
35
|
39
|
<view style="width: 100%;height: 85px;" v-for="(item, index) in dicList">
|
|
36
|
40
|
<view class="dicSelect" v-if="identification==='JC' || identification==='FJ'">
|
|
37
|
|
- <uni-data-picker class="uni_item" placeholder="请选择标本信息" :localdata="dataOrderType" @nodeclick="(e)=>nodeclickMuter(e,index)">
|
|
|
41
|
+ <uni-data-picker class="uni_item" placeholder="请选择标本信息" :localdata="dataOrderType"
|
|
|
42
|
+ @nodeclick="(e)=>nodeclickMuter(e,index)">
|
|
38
|
43
|
</uni-data-picker>
|
|
39
|
44
|
</view>
|
|
40
|
45
|
<view style="margin-bottom: 2px;width: 100%;" v-if="identification==='2007'">
|
|
41
|
|
- <uni-data-picker placeholder="请选择科室" v-model="item.F_ToDept" :showSearch="showSearch" :localdata="deptDataTree" @nodeclick="(e)=>nodeclickDept(e,index)">
|
|
|
46
|
+ <uni-data-picker placeholder="请选择科室" v-model="item.F_ToDept"
|
|
|
47
|
+ @popupclosed="popupclosedDeptww" :showSearch="showSearch" :localdata="deptDataTree"
|
|
|
48
|
+ @nodeclick="(e)=>nodeclickDept(e,index)">
|
|
42
|
49
|
</uni-data-picker>
|
|
43
|
50
|
</view>
|
|
44
|
51
|
<view v-if="identification!=='JC' && identification!=='FJ'" class="dicSelect">
|
|
45
|
|
- <dictionaries-select v-if="identification!=='2007'" :flag="flag[flaginfo]" :valInfo="index" :val="item.F_DicId + ','+ item.F_DicName"
|
|
46
|
|
- @post-select-dic="postSelectDic"></dictionaries-select>
|
|
47
|
|
- <luyj-select-lay v-if="identification==='2007'" lay-omit name="name" :options="bloodList" :zindex="1" slabel='text' @selectitem="(e)=>selectitem(e,index)">
|
|
|
52
|
+ <dictionaries-select v-if="identification!=='2007'" :flag="flag[flaginfo]" :valInfo="index"
|
|
|
53
|
+ :val="item.F_DicId + ','+ item.F_DicName" @post-select-dic="postSelectDic">
|
|
|
54
|
+ </dictionaries-select>
|
|
|
55
|
+ <luyj-select-lay v-if="identification==='2007'" lay-omit name="name" :options="bloodList"
|
|
|
56
|
+ :zindex="1" slabel='text' @selectitem="(e)=>selectitem(e,index)">
|
|
48
|
57
|
</luyj-select-lay>
|
|
49
|
58
|
</view>
|
|
50
|
59
|
<view class="dicNum">
|
|
51
|
60
|
<uni-number-box v-model="item.F_Number" />
|
|
52
|
61
|
</view>
|
|
53
|
|
- <view style="display: block;width: 100%;text-align: center;" v-if="identification === '2001' || identification === '2003'|| identification === 'YQT'">
|
|
|
62
|
+ <view style="display: block;width: 100%;text-align: center;"
|
|
|
63
|
+ v-if="identification === '2001' || identification === '2003'|| identification === 'YQT'">
|
|
54
|
64
|
<uni-data-checkbox v-model="item.F_IsBorrow" :localdata="F_IsBorrowTypesList" />
|
|
55
|
65
|
</view>
|
|
56
|
66
|
</view>
|
|
|
@@ -76,7 +86,8 @@
|
|
76
|
86
|
<button class="mini-btn" type="primary" size="mini" @tap="onUpload">上传</button>
|
|
77
|
87
|
</view>
|
|
78
|
88
|
<view class="padding">
|
|
79
|
|
- <uni-file-picker limit="5" file-mediatype="all" :value="fileLists" @delete="deleteFile"></uni-file-picker>
|
|
|
89
|
+ <uni-file-picker limit="5" file-mediatype="all" :value="fileLists" @delete="deleteFile">
|
|
|
90
|
+ </uni-file-picker>
|
|
80
|
91
|
</view>
|
|
81
|
92
|
</view>
|
|
82
|
93
|
</uni-forms-item>
|
|
|
@@ -110,10 +121,10 @@
|
|
110
|
121
|
},
|
|
111
|
122
|
data() {
|
|
112
|
123
|
return {
|
|
113
|
|
- bloodList:[],
|
|
114
|
|
- dataOrderType:[],
|
|
|
124
|
+ bloodList: [],
|
|
|
125
|
+ dataOrderType: [],
|
|
115
|
126
|
identification: '', // 工单标识
|
|
116
|
|
- getFontSizeValue:'1rem',
|
|
|
127
|
+ getFontSizeValue: '1rem',
|
|
117
|
128
|
showSearch: true,
|
|
118
|
129
|
logo: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F00%2F00%2F07%2F155788a6d8a5c42.jpg&refer=http%3A%2F%2Fbpic.588ku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1619847627&t=2da40b583002205c204d980b54b35040',
|
|
119
|
130
|
isShowIsEnd: false,
|
|
|
@@ -127,7 +138,7 @@
|
|
127
|
138
|
ApplicantName: '',
|
|
128
|
139
|
Phone: '', //联系电话
|
|
129
|
140
|
Location: '', // 科室位置
|
|
130
|
|
- DeptPhone:'',
|
|
|
141
|
+ DeptPhone: '',
|
|
131
|
142
|
ToPlace: '', // 送达地点
|
|
132
|
143
|
Content: '', // 工单内容
|
|
133
|
144
|
DealDept: '', // 维修部门
|
|
|
@@ -136,23 +147,23 @@
|
|
136
|
147
|
opt: 2,
|
|
137
|
148
|
EmergencyTypes: '',
|
|
138
|
149
|
},
|
|
139
|
|
- F_IsBorrowTypesList:[{
|
|
|
150
|
+ F_IsBorrowTypesList: [{
|
|
140
|
151
|
text: '借',
|
|
141
|
152
|
value: '1'
|
|
142
|
|
- },{
|
|
|
153
|
+ }, {
|
|
143
|
154
|
text: '还',
|
|
144
|
155
|
value: '2'
|
|
145
|
|
- }],
|
|
|
156
|
+ }],
|
|
146
|
157
|
EmergencyTypesList: [{
|
|
147
|
158
|
text: '一般',
|
|
148
|
159
|
value: '一般'
|
|
149
|
|
- },{
|
|
|
160
|
+ }, {
|
|
150
|
161
|
text: '紧急',
|
|
151
|
162
|
value: '紧急'
|
|
152
|
163
|
}],
|
|
153
|
|
- changeindex:"",
|
|
154
|
|
- changedept:"",
|
|
155
|
|
- departId:0,
|
|
|
164
|
+ changeindex: "",
|
|
|
165
|
+ changedept: "",
|
|
|
166
|
+ departId: 0,
|
|
156
|
167
|
redPrescriptionNum: 0, // 红处方数量
|
|
157
|
168
|
workorderid: '',
|
|
158
|
169
|
stepData: pageData.stepData,
|
|
|
@@ -170,14 +181,14 @@
|
|
170
|
181
|
typeid: 0,
|
|
171
|
182
|
candidates: [],
|
|
172
|
183
|
// 标本信息(BBXX),设备信息(SBXX),物资信息(WZXX),病床信息(BCXX),药品信息(YPXX)
|
|
173
|
|
- flagid: ["2001","2002","2003","2006","2005","9014","9129","9130",'2007',"127548","10617"],
|
|
|
184
|
+ flagid: ["2001", "2002", "2003", "2006", "2005", "9014", "9129", "9130", '2007', "127548", "10617"],
|
|
174
|
185
|
flaginfo: '',
|
|
175
|
186
|
fileLists: [],
|
|
176
|
187
|
flag: {
|
|
177
|
|
- "2006": 'BBXX',
|
|
178
|
|
- "2001": 'SBXX',
|
|
|
188
|
+ "2006": 'BBXX',
|
|
|
189
|
+ "2001": 'SBXX',
|
|
179
|
190
|
"2002": 'WZXX',
|
|
180
|
|
- "2003": 'BCXX',
|
|
|
191
|
+ "2003": 'BCXX',
|
|
181
|
192
|
"2005": 'YPXX',
|
|
182
|
193
|
"9014": 'YPXX',
|
|
183
|
194
|
"9129": 'BBXX',
|
|
|
@@ -242,19 +253,20 @@
|
|
242
|
253
|
}
|
|
243
|
254
|
},
|
|
244
|
255
|
onLoad(option) {
|
|
245
|
|
- this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
|
|
|
256
|
+ this.getFontSizeValue = uni.getStorageSync('fontSizeValue') + 'rem'
|
|
246
|
257
|
this.workorderid = option.wid
|
|
247
|
258
|
// 添加工单,申请人默认当前登录人
|
|
248
|
|
- if(uni.getStorageSync("deptId")){
|
|
|
259
|
+ if (uni.getStorageSync("deptId")) {
|
|
249
|
260
|
this.valiFormData.ApplicationDept = uni.getStorageSync("deptId")
|
|
250
|
261
|
this.getDeptLocation(uni.getStorageSync("deptId"))
|
|
251
|
262
|
pageData.getApplicant(uni.getStorageSync("deptId"), (res, data, candidates) => {
|
|
252
|
263
|
this.candidates = candidates
|
|
253
|
264
|
this.ApplicantData = res
|
|
254
|
265
|
this.orderApplicantData = data
|
|
255
|
|
- if(uni.getStorageSync("userCode")) {
|
|
|
266
|
+ if (uni.getStorageSync("userCode")) {
|
|
256
|
267
|
this.valiFormData.Applicant = uni.getStorageSync("userCode")
|
|
257
|
|
- this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, uni.getStorageSync("userCode"))
|
|
|
268
|
+ this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, uni
|
|
|
269
|
+ .getStorageSync("userCode"))
|
|
258
|
270
|
const user = this.orderApplicantData.find((o) => {
|
|
259
|
271
|
return o.usercode === this.valiFormData.Applicant.toString()
|
|
260
|
272
|
})
|
|
|
@@ -272,16 +284,17 @@
|
|
272
|
284
|
this.deptDataTree = res
|
|
273
|
285
|
this.assignedDepartData = res
|
|
274
|
286
|
})
|
|
275
|
|
- if(this.workorderid) {
|
|
|
287
|
+ if (this.workorderid) {
|
|
276
|
288
|
this.readonly = true
|
|
277
|
289
|
this.getDetail()
|
|
278
|
290
|
}
|
|
279
|
|
- window.scrollTo(0,0)
|
|
|
291
|
+ window.scrollTo(0, 0)
|
|
280
|
292
|
this.getDicValueList()
|
|
281
|
293
|
},
|
|
282
|
294
|
watch: {
|
|
283
|
295
|
'departList': function() {
|
|
284
|
|
- this.valiFormData.ApplicationDept = this.$mHelper.findParents(this.departList,this.valiFormData.ApplicationDept).split('/').length + '_'+ this.valiFormData.ApplicationDept
|
|
|
296
|
+ this.valiFormData.ApplicationDept = this.$mHelper.findParents(this.departList, this.valiFormData
|
|
|
297
|
+ .ApplicationDept).split('/').length + '_' + this.valiFormData.ApplicationDept
|
|
285
|
298
|
}
|
|
286
|
299
|
},
|
|
287
|
300
|
methods: {
|
|
|
@@ -290,7 +303,7 @@
|
|
290
|
303
|
Flag: 'XYLX',
|
|
291
|
304
|
Name: ''
|
|
292
|
305
|
}
|
|
293
|
|
- this.$http.get("Dictionary/GetDicValueList",params).then((response)=>{
|
|
|
306
|
+ this.$http.get("Dictionary/GetDicValueList", params).then((response) => {
|
|
294
|
307
|
let newData = []
|
|
295
|
308
|
response.rows.forEach((element, index) => {
|
|
296
|
309
|
const obj = {}
|
|
|
@@ -304,46 +317,59 @@
|
|
304
|
317
|
// }
|
|
305
|
318
|
})
|
|
306
|
319
|
},
|
|
307
|
|
- selectitem(val,index) {
|
|
|
320
|
+ selectitem(val, index) {
|
|
308
|
321
|
var namestr = ''
|
|
309
|
322
|
var idstr = ''
|
|
310
|
323
|
if (val) {
|
|
311
|
|
- for(var i=0;i<val.length;i++){
|
|
312
|
|
- namestr += val[i].value.split(',')[1]+','
|
|
313
|
|
- idstr += val[i].value.split(',')[0]+','
|
|
|
324
|
+ for (var i = 0; i < val.length; i++) {
|
|
|
325
|
+ namestr += val[i].value.split(',')[1] + ','
|
|
|
326
|
+ idstr += val[i].value.split(',')[0] + ','
|
|
314
|
327
|
}
|
|
315
|
|
- this.dicList[index].F_DicId = idstr.slice(0,namestr.length-1)
|
|
316
|
|
- this.dicList[index].F_DicName = namestr.slice(0,namestr.length-1)
|
|
|
328
|
+ this.dicList[index].F_DicId = idstr.slice(0, namestr.length - 1)
|
|
|
329
|
+ this.dicList[index].F_DicName = namestr.slice(0, namestr.length - 1)
|
|
317
|
330
|
}
|
|
318
|
|
-
|
|
|
331
|
+
|
|
319
|
332
|
},
|
|
320
|
|
- getBBxx(){
|
|
|
333
|
+ getBBxx() {
|
|
321
|
334
|
let str
|
|
322
|
|
- if(this.identification == 'JC'){
|
|
|
335
|
+ if (this.identification == 'JC') {
|
|
323
|
336
|
str = '急查标本'
|
|
324
|
337
|
}
|
|
325
|
|
- if(this.identification == 'FJ'){
|
|
|
338
|
+ if (this.identification == 'FJ') {
|
|
326
|
339
|
str = '非急查标本'
|
|
327
|
340
|
}
|
|
328
|
|
- pageData.getBB(str,(res, data) => {
|
|
|
341
|
+ pageData.getBB(str, (res, data) => {
|
|
329
|
342
|
this.dataOrderType = res
|
|
330
|
343
|
})
|
|
331
|
344
|
},
|
|
332
|
|
- nodeclickMuter(e,index){
|
|
|
345
|
+ nodeclickMuter(e, index) {
|
|
333
|
346
|
this.dicList[index].F_DicId = e.value
|
|
334
|
347
|
this.dicList[index].F_DicName = e.text
|
|
335
|
348
|
},
|
|
336
|
|
- nodeclickDept(e,index){
|
|
337
|
|
- this.dicList[index].F_ToDept = e.value
|
|
338
|
|
- // if(e.zIndex==0){
|
|
339
|
|
- // this.changedept = ""
|
|
340
|
|
- // this.changeindex = ""
|
|
341
|
|
- // this.dicList[index].F_ToDept = ""
|
|
342
|
|
- // }else{
|
|
343
|
|
- // this.changedept = e.value
|
|
344
|
|
- // this.changeindex = index
|
|
345
|
|
- // this.dicList[index].F_ToDept = e.value
|
|
346
|
|
- // }
|
|
|
349
|
+ nodeclickDept(e, index) {
|
|
|
350
|
+ if (e.zIndex == 0) {
|
|
|
351
|
+ this.changedept = ""
|
|
|
352
|
+ this.changeindex = ""
|
|
|
353
|
+ this.dicList[index].F_ToDept = ""
|
|
|
354
|
+ } else {
|
|
|
355
|
+ this.changedept = e.value
|
|
|
356
|
+ this.changeindex = index
|
|
|
357
|
+ }
|
|
|
358
|
+ },
|
|
|
359
|
+ popupclosedDeptww() {
|
|
|
360
|
+ if (this.changeindex) {
|
|
|
361
|
+ const index = this.changeindex
|
|
|
362
|
+ this.dicList[index].F_ToDept = this.changedept
|
|
|
363
|
+ }
|
|
|
364
|
+ if (this.changeindex === 0) {
|
|
|
365
|
+ this.dicList = [{
|
|
|
366
|
+ F_DicId: this.dicList[0].F_DicId,
|
|
|
367
|
+ F_DicName: this.dicList[0].F_DicName,
|
|
|
368
|
+ F_Number: this.dicList[0].F_Number,
|
|
|
369
|
+ F_IsBorrow: this.dicList[0].F_IsBorrow,
|
|
|
370
|
+ F_ToDept: this.changedept,
|
|
|
371
|
+ }]
|
|
|
372
|
+ }
|
|
347
|
373
|
},
|
|
348
|
374
|
// 获取科室位置
|
|
349
|
375
|
postSelectDicPlace(res) {
|
|
|
@@ -355,7 +381,7 @@
|
|
355
|
381
|
this.fileLists.splice(num, 1)
|
|
356
|
382
|
},
|
|
357
|
383
|
/* 附件上传 */
|
|
358
|
|
- onUpload() {
|
|
|
384
|
+ onUpload() {
|
|
359
|
385
|
this.$refs.lFile.upload({
|
|
360
|
386
|
//替换为你的上传接口地址
|
|
361
|
387
|
url: indexConfig.baseUrl + "/FaultRepair/UploadFile",
|
|
|
@@ -378,28 +404,27 @@
|
|
378
|
404
|
})
|
|
379
|
405
|
})
|
|
380
|
406
|
},
|
|
381
|
|
- postImgData(res) {
|
|
382
|
|
- },
|
|
|
407
|
+ postImgData(res) {},
|
|
383
|
408
|
// 工单类别
|
|
384
|
|
- postSelectData(e,id,type,ident) {
|
|
385
|
|
- console.log(e,ident)
|
|
|
409
|
+ postSelectData(e, id, type, ident) {
|
|
|
410
|
+ console.log(e, ident)
|
|
386
|
411
|
this.identification = ident
|
|
387
|
412
|
this.flaginfo = String(id)
|
|
388
|
413
|
this.valiFormData.WorkOrderCategory = e
|
|
389
|
|
- if(this.flagid.indexOf(this.flaginfo) > -1) {
|
|
|
414
|
+ if (this.flagid.indexOf(this.flaginfo) > -1) {
|
|
390
|
415
|
this.dicList = [{
|
|
391
|
416
|
F_DicId: 0,
|
|
392
|
417
|
F_DicName: '',
|
|
393
|
418
|
F_Number: 0
|
|
394
|
419
|
}]
|
|
395
|
|
- }else{
|
|
|
420
|
+ } else {
|
|
396
|
421
|
this.dicList = 0
|
|
397
|
422
|
}
|
|
398
|
423
|
this.getBBxx()
|
|
399
|
424
|
},
|
|
400
|
425
|
// 综合调度信息
|
|
401
|
426
|
postSelectDic(e, index) {
|
|
402
|
|
- console.log(e,'888999')
|
|
|
427
|
+ console.log(e, '888999')
|
|
403
|
428
|
this.dicList[index].F_DicId = e.split(',')[0]
|
|
404
|
429
|
this.dicList[index].F_DicName = e.split(',')[1]
|
|
405
|
430
|
},
|
|
|
@@ -408,7 +433,7 @@
|
|
408
|
433
|
F_DicId: 0,
|
|
409
|
434
|
F_DicName: '',
|
|
410
|
435
|
F_Number: 0,
|
|
411
|
|
- F_ToDept:""
|
|
|
436
|
+ F_ToDept: ""
|
|
412
|
437
|
}
|
|
413
|
438
|
this.dicList.push(params)
|
|
414
|
439
|
|
|
|
@@ -416,8 +441,8 @@
|
|
416
|
441
|
minusClck() {
|
|
417
|
442
|
this.dicList.splice(this.dicList.length - 1, 1)
|
|
418
|
443
|
},
|
|
419
|
|
- clearTagAdmin(value){
|
|
420
|
|
- this.userListSelect = this.userListSelect.filter(item => item != value);
|
|
|
444
|
+ clearTagAdmin(value) {
|
|
|
445
|
+ this.userListSelect = this.userListSelect.filter(item => item != value);
|
|
421
|
446
|
},
|
|
422
|
447
|
// 申请部门
|
|
423
|
448
|
deptNodeclick(e) {
|
|
|
@@ -439,7 +464,7 @@
|
|
439
|
464
|
this.getDeptLocation(e.value.split('_')[1])
|
|
440
|
465
|
}
|
|
441
|
466
|
},
|
|
442
|
|
- departSearchTrue(e){
|
|
|
467
|
+ departSearchTrue(e) {
|
|
443
|
468
|
this.valiFormData.ApplicationDept = e.value
|
|
444
|
469
|
},
|
|
445
|
470
|
popupclosedDept(e) {
|
|
|
@@ -453,17 +478,19 @@
|
|
453
|
478
|
// }
|
|
454
|
479
|
// },
|
|
455
|
480
|
//科室位置
|
|
456
|
|
- getDeptLocation(id){
|
|
457
|
|
- this.$http.get("Department/GetModel", {deptid:id}).then((response) => {
|
|
|
481
|
+ getDeptLocation(id) {
|
|
|
482
|
+ this.$http.get("Department/GetModel", {
|
|
|
483
|
+ deptid: id
|
|
|
484
|
+ }).then((response) => {
|
|
458
|
485
|
if (response.state.toLowerCase() === "success") {
|
|
459
|
486
|
this.valiFormData.Location = response.data.F_Location
|
|
460
|
487
|
this.valiFormData.ToPlace = response.data.F_Location
|
|
461
|
|
- this.valiFormData.DeptPhone = response.data.F_OfficeTelephone
|
|
|
488
|
+ this.valiFormData.DeptPhone = response.data.F_OfficeTelephone
|
|
462
|
489
|
}
|
|
463
|
490
|
})
|
|
464
|
491
|
},
|
|
465
|
492
|
handleInput(res) {
|
|
466
|
|
- let e = this.$mHelper.getValueByText(res,this.ApplicantData)
|
|
|
493
|
+ let e = this.$mHelper.getValueByText(res, this.ApplicantData)
|
|
467
|
494
|
this.valiFormData.Applicant = e
|
|
468
|
495
|
this.valiFormData.ApplicantName = res
|
|
469
|
496
|
const user = this.orderApplicantData.find((o) => {
|
|
|
@@ -476,7 +503,9 @@
|
|
476
|
503
|
},
|
|
477
|
504
|
// 地址
|
|
478
|
505
|
getLocation(user) {
|
|
479
|
|
- this.$http.get("UserAccount/GetModel", {usercode: user}).then((response) => {
|
|
|
506
|
+ this.$http.get("UserAccount/GetModel", {
|
|
|
507
|
+ usercode: user
|
|
|
508
|
+ }).then((response) => {
|
|
480
|
509
|
if (response.state.toLowerCase() === "success") {
|
|
481
|
510
|
this.valiFormData.Location = response.data.F_Location
|
|
482
|
511
|
this.valiFormData.ToPlace = response.data.F_Location
|
|
|
@@ -485,7 +514,7 @@
|
|
485
|
514
|
},
|
|
486
|
515
|
// 指派部门
|
|
487
|
516
|
maintenanceNodeclick(e) {
|
|
488
|
|
- if(e) {
|
|
|
517
|
+ if (e) {
|
|
489
|
518
|
this.departMain = e.value
|
|
490
|
519
|
pageData.getApplicant(e.value, (res) => {
|
|
491
|
520
|
this.MaintenancerData = res
|
|
|
@@ -504,49 +533,50 @@
|
|
504
|
533
|
submit(ref) {
|
|
505
|
534
|
// console.log(this.dicList)
|
|
506
|
535
|
// return
|
|
507
|
|
- if(this.identification === '2001' || this.identification === '2003' || this.identification === 'YQT'|| this.identification === 'JC' || this.identification === 'FJ' || this.identification === '2007'){
|
|
508
|
|
- if(this.dicList.length == 0 || (this.dicList.length>0 && !this.dicList[0].F_DicName)){
|
|
|
536
|
+ if (this.identification === '2001' || this.identification === '2003' || this.identification === 'YQT' ||
|
|
|
537
|
+ this.identification === 'JC' || this.identification === 'FJ' || this.identification === '2007') {
|
|
|
538
|
+ if (this.dicList.length == 0 || (this.dicList.length > 0 && !this.dicList[0].F_DicName)) {
|
|
509
|
539
|
this.$mHelper.toast('请选择对应物资信息')
|
|
510
|
540
|
return
|
|
511
|
541
|
}
|
|
512
|
542
|
}
|
|
513
|
|
- if(this.identification === '2001' || this.identification === '2003'|| this.identification === 'YQT'){
|
|
|
543
|
+ if (this.identification === '2001' || this.identification === '2003' || this.identification === 'YQT') {
|
|
514
|
544
|
const index = this.dicList.findIndex((o) => {
|
|
515
|
|
- return !o.F_IsBorrow || !o.F_DicName || !o.F_Number;
|
|
|
545
|
+ return !o.F_IsBorrow || !o.F_DicName || !o.F_Number;
|
|
516
|
546
|
});
|
|
517
|
547
|
if (index >= 0) {
|
|
518
|
|
- this.$mHelper.toast('请选择对应物资信息')
|
|
519
|
|
- return;
|
|
|
548
|
+ this.$mHelper.toast('请选择对应物资信息')
|
|
|
549
|
+ return;
|
|
520
|
550
|
}
|
|
521
|
551
|
}
|
|
522
|
|
- if(this.identification === '2007'){
|
|
|
552
|
+ if (this.identification === '2007') {
|
|
523
|
553
|
const index = this.dicList.findIndex((o) => {
|
|
524
|
|
- return !o.F_ToDept || !o.F_DicName || !o.F_Number;
|
|
|
554
|
+ return !o.F_ToDept || !o.F_DicName || !o.F_Number;
|
|
525
|
555
|
});
|
|
526
|
556
|
if (index >= 0) {
|
|
527
|
|
- this.$mHelper.toast('请选择对应物资信息')
|
|
528
|
|
- return;
|
|
|
557
|
+ this.$mHelper.toast('请选择对应物资信息')
|
|
|
558
|
+ return;
|
|
529
|
559
|
}
|
|
530
|
560
|
}
|
|
531
|
|
- if(this.identification === 'JC'||this.identification === 'FJ'){
|
|
|
561
|
+ if (this.identification === 'JC' || this.identification === 'FJ') {
|
|
532
|
562
|
const index = this.dicList.findIndex((o) => {
|
|
533
|
|
- return !o.F_DicName || !o.F_Number;
|
|
|
563
|
+ return !o.F_DicName || !o.F_Number;
|
|
534
|
564
|
});
|
|
535
|
565
|
if (index >= 0) {
|
|
536
|
|
- this.$mHelper.toast('请选择对应物资信息')
|
|
537
|
|
- return;
|
|
|
566
|
+ this.$mHelper.toast('请选择对应物资信息')
|
|
|
567
|
+ return;
|
|
538
|
568
|
}
|
|
539
|
569
|
}
|
|
540
|
|
- if(this.dicList.length == 0 || (this.dicList.length>0 && !this.dicList[0].F_DicName)){
|
|
|
570
|
+ if (this.dicList.length == 0 || (this.dicList.length > 0 && !this.dicList[0].F_DicName)) {
|
|
541
|
571
|
this.dicList = null
|
|
542
|
572
|
}
|
|
543
|
573
|
this.imgIdList = []
|
|
544
|
574
|
this.disabledButton = true
|
|
545
|
|
- this.fileLists.forEach(v =>{
|
|
|
575
|
+ this.fileLists.forEach(v => {
|
|
546
|
576
|
this.imgIdList.push(v.id)
|
|
547
|
577
|
})
|
|
548
|
|
- for(var i=0;i<this.dicList.length;i++){
|
|
549
|
|
- if(this.dicList[i].F_ToDept){
|
|
|
578
|
+ for (var i = 0; i < this.dicList.length; i++) {
|
|
|
579
|
+ if (this.dicList[i].F_ToDept) {
|
|
550
|
580
|
this.dicList[i].F_ToDept = this.dicList[i].F_ToDept.split('_')[1]
|
|
551
|
581
|
}
|
|
552
|
582
|
}
|
|
|
@@ -557,7 +587,7 @@
|
|
557
|
587
|
Applicant: this.valiFormData.Applicant, //申请人
|
|
558
|
588
|
Phone: this.valiFormData.Phone, //联系电话
|
|
559
|
589
|
Location: this.valiFormData.Location, // 科室位置
|
|
560
|
|
- DeptPhone:this.valiFormData.DeptPhone,
|
|
|
590
|
+ DeptPhone: this.valiFormData.DeptPhone,
|
|
561
|
591
|
// ToPlace: this.valiFormData.ToPlace, // 送达地点
|
|
562
|
592
|
Content: this.valiFormData.Content, // 工单内容
|
|
563
|
593
|
DealDept: this.valiFormData.DealDept, // 维修部门
|
|
|
@@ -568,12 +598,14 @@
|
|
568
|
598
|
// EmergencyTypes: this.valiFormData.EmergencyTypes,
|
|
569
|
599
|
cfnum: this.redPrescriptionNum
|
|
570
|
600
|
}
|
|
571
|
|
- if(this.workorderid) {
|
|
|
601
|
+ if (this.workorderid) {
|
|
572
|
602
|
params.WorkOrderCode = this.workorderid
|
|
573
|
603
|
params.usertype = 1
|
|
574
|
|
- this.$mHelper.httpPost("Scheduling/UpdateSchedulingWorkOrder", this.serialize(params), 1, res => this.disabledButton = res)
|
|
575
|
|
- }else{
|
|
576
|
|
- this.$mHelper.httpPost("Scheduling/AddSchedulingWorkOrder", this.serialize(params), 1, res => this.disabledButton = res)
|
|
|
604
|
+ this.$mHelper.httpPost("Scheduling/UpdateSchedulingWorkOrder", this.serialize(params), 1,
|
|
|
605
|
+ res => this.disabledButton = res)
|
|
|
606
|
+ } else {
|
|
|
607
|
+ this.$mHelper.httpPost("Scheduling/AddSchedulingWorkOrder", this.serialize(params), 1,
|
|
|
608
|
+ res => this.disabledButton = res)
|
|
577
|
609
|
}
|
|
578
|
610
|
}).catch(err => {
|
|
579
|
611
|
this.disabledButton = false
|
|
|
@@ -593,7 +625,8 @@
|
|
593
|
625
|
if (v instanceof Date) {
|
|
594
|
626
|
v = parseTime(v)
|
|
595
|
627
|
}
|
|
596
|
|
- str.push((v !== null && typeof v === 'object') ? this.serialize(v, k) : encodeURIComponent(k) +'=' + encodeURIComponent(v))
|
|
|
628
|
+ str.push((v !== null && typeof v === 'object') ? this.serialize(v, k) : encodeURIComponent(k) +
|
|
|
629
|
+ '=' + encodeURIComponent(v))
|
|
597
|
630
|
}
|
|
598
|
631
|
}
|
|
599
|
632
|
}
|
|
|
@@ -606,21 +639,22 @@
|
|
606
|
639
|
}
|
|
607
|
640
|
this.$http.get("Scheduling/GetWorkOrder", params).then((response) => {
|
|
608
|
641
|
if (response.state.toLowerCase() === "success") {
|
|
609
|
|
- this.valiFormData.WorkOrderCategory = response.data[0].F_WorkOrderCategory // 工单类别
|
|
610
|
|
- this.valiFormData.Content = response.data[0].F_Content // 工单内容
|
|
611
|
|
- if(response.data[0].F_ApplicationDept) {
|
|
612
|
|
- this.valiFormData.ApplicationDept = response.data[0].F_ApplicationDept.trim() // 申请部门
|
|
|
642
|
+ this.valiFormData.WorkOrderCategory = response.data[0].F_WorkOrderCategory // 工单类别
|
|
|
643
|
+ this.valiFormData.Content = response.data[0].F_Content // 工单内容
|
|
|
644
|
+ if (response.data[0].F_ApplicationDept) {
|
|
|
645
|
+ this.valiFormData.ApplicationDept = response.data[0].F_ApplicationDept.trim() // 申请部门
|
|
613
|
646
|
pageData.getApplicant(this.valiFormData.ApplicationDept, (res) => {
|
|
614
|
647
|
this.ApplicantData = res
|
|
615
|
648
|
})
|
|
616
|
|
- this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData, response.data[0].F_Applicant)
|
|
617
|
|
- this.valiFormData.Applicant = response.data[0].F_Applicant //申请人
|
|
|
649
|
+ this.valiFormData.ApplicantName = this.$mHelper.findUserName(this.ApplicantData,
|
|
|
650
|
+ response.data[0].F_Applicant)
|
|
|
651
|
+ this.valiFormData.Applicant = response.data[0].F_Applicant //申请人
|
|
618
|
652
|
}
|
|
619
|
|
- this.valiFormData.Phone = response.data[0].F_Phone // 联系电话
|
|
|
653
|
+ this.valiFormData.Phone = response.data[0].F_Phone // 联系电话
|
|
620
|
654
|
this.valiFormData.DeptPhone = response.data[0].F_DeptPhone
|
|
621
|
|
- this.valiFormData.Location = response.data[0].F_Location
|
|
|
655
|
+ this.valiFormData.Location = response.data[0].F_Location
|
|
622
|
656
|
// this.valiFormData.ToPlace = response.data[0].F_ToPlace
|
|
623
|
|
- this.valiFormData.File = response.data[0].F_File
|
|
|
657
|
+ this.valiFormData.File = response.data[0].F_File
|
|
624
|
658
|
// this.valiFormData.EmergencyTypes = response.data[0].F_EmergencyTypes
|
|
625
|
659
|
const ps = []
|
|
626
|
660
|
response.data[0].PSInfo.forEach(v => {
|
|
|
@@ -630,7 +664,7 @@
|
|
630
|
664
|
F_Number: v.F_Number
|
|
631
|
665
|
})
|
|
632
|
666
|
})
|
|
633
|
|
- this.dicList = ps
|
|
|
667
|
+ this.dicList = ps
|
|
634
|
668
|
if (response.data[0].FileUrl) {
|
|
635
|
669
|
response.data[0].FileUrl.forEach((v, n) => {
|
|
636
|
670
|
//详情图片回显
|
|
|
@@ -638,7 +672,7 @@
|
|
638
|
672
|
url: v.F_FileUrl,
|
|
639
|
673
|
extname: v.F_FileType,
|
|
640
|
674
|
name: v.F_FileName.substring(19),
|
|
641
|
|
- id:v.F_FileId
|
|
|
675
|
+ id: v.F_FileId
|
|
642
|
676
|
})
|
|
643
|
677
|
})
|
|
644
|
678
|
}
|
|
|
@@ -658,7 +692,7 @@
|
|
658
|
692
|
|
|
659
|
693
|
<style lang="scss" scoped>
|
|
660
|
694
|
@import '@/common/addFormDeep.scss';
|
|
661
|
|
-
|
|
|
695
|
+
|
|
662
|
696
|
.wrapper {
|
|
663
|
697
|
padding: 10px 15px;
|
|
664
|
698
|
background-color: #fff;
|