|
|
@@ -368,25 +368,29 @@
|
|
368
|
368
|
</el-row>
|
|
369
|
369
|
<el-row v-if="dealWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0">
|
|
370
|
370
|
<el-row v-for="(item, index) in dispatchhaocaiarrError" :key="index">
|
|
371
|
|
- <el-col :span="7">
|
|
|
371
|
+ <el-col :span="8">
|
|
372
|
372
|
<el-form-item prop="devname">
|
|
373
|
373
|
<el-cascader ref="cascaderbb" :options="bborderData" :props="TagProps" clearable filterable
|
|
374
|
374
|
placeholder="请选择标本" @change="(devname) => handleChange(devname, index)"></el-cascader>
|
|
375
|
375
|
</el-form-item>
|
|
376
|
376
|
</el-col>
|
|
377
|
|
- <el-col :span="6">
|
|
|
377
|
+ <el-col :span="12">
|
|
378
|
378
|
<el-form-item prop="num">
|
|
379
|
379
|
<el-input-number v-model="item.F_Number" :min="0" size="medium" />
|
|
|
380
|
+ <el-button type="primary" icon="el-icon-close" circle @click="removeItem(index)" />
|
|
380
|
381
|
</el-form-item>
|
|
381
|
382
|
</el-col>
|
|
382
|
|
- <el-col :span="11">
|
|
|
383
|
+ <!-- <el-col :span="11">
|
|
383
|
384
|
<el-form-item prop="num">
|
|
384
|
385
|
<el-input style="width: 180px" v-model="item.F_ReceiveUser" placeholder="科室交接人"></el-input>
|
|
385
|
386
|
<el-button type="primary" icon="el-icon-close" circle @click="removeItem(index)" />
|
|
386
|
387
|
</el-form-item>
|
|
387
|
|
- </el-col>
|
|
|
388
|
+ </el-col> -->
|
|
388
|
389
|
</el-row>
|
|
389
|
390
|
</el-row>
|
|
|
391
|
+ <el-form-item label="科室交接人" v-if="dealWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0">
|
|
|
392
|
+ <el-input placeholder="科室交接人" v-model="dealWorkForm.recipient"></el-input>
|
|
|
393
|
+ </el-form-item>
|
|
390
|
394
|
<el-form-item label="附件" v-if="bbtags.indexOf('急查标本') < 0">
|
|
391
|
395
|
<el-upload :headers="headers" :on-remove="handle_remove" :on-success="handle_success"
|
|
392
|
396
|
:file-list="dealWorkFormFile" :action="imgUrl" list-type="picture-card">
|
|
|
@@ -425,26 +429,30 @@
|
|
425
|
429
|
</el-row>
|
|
426
|
430
|
<el-row v-if="dealEditWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0">
|
|
427
|
431
|
<el-row v-for="(item, index) in dispatchhaocaiarrEdit" :key="index">
|
|
428
|
|
- <el-col :span="7">
|
|
|
432
|
+ <el-col :span="8">
|
|
429
|
433
|
<el-form-item>
|
|
430
|
434
|
<el-cascader v-model="item.F_DicId" ref="cascaderbbedit" :options="bborderData" :props="TagProps"
|
|
431
|
435
|
clearable filterable placeholder="请选择标本" @change="(F_DicId) => handleChangeEdit(F_DicId, index)">
|
|
432
|
436
|
</el-cascader>
|
|
433
|
437
|
</el-form-item>
|
|
434
|
438
|
</el-col>
|
|
435
|
|
- <el-col :span="6">
|
|
|
439
|
+ <el-col :span="12">
|
|
436
|
440
|
<el-form-item prop="num">
|
|
437
|
441
|
<el-input-number v-model="item.F_Number" :min="0" size="medium" />
|
|
|
442
|
+ <el-button type="primary" icon="el-icon-close" circle @click="removeItemEdit(index)" />
|
|
438
|
443
|
</el-form-item>
|
|
439
|
444
|
</el-col>
|
|
440
|
|
- <el-col :span="11">
|
|
|
445
|
+ <!-- <el-col :span="11">
|
|
441
|
446
|
<el-form-item prop="num">
|
|
442
|
447
|
<el-input style="width: 180px" v-model="item.F_ReceiveUser" placeholder="科室交接人"></el-input>
|
|
443
|
448
|
<el-button type="primary" icon="el-icon-close" circle @click="removeItemEdit(index)" />
|
|
444
|
449
|
</el-form-item>
|
|
445
|
|
- </el-col>
|
|
|
450
|
+ </el-col> -->
|
|
446
|
451
|
</el-row>
|
|
447
|
452
|
</el-row>
|
|
|
453
|
+ <el-form-item label="科室接收人" v-if="dealEditWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0">
|
|
|
454
|
+ <el-input placeholder="科室接收人" v-model="dealEditWorkForm.recipient"></el-input>
|
|
|
455
|
+ </el-form-item>
|
|
448
|
456
|
<el-form-item label="附件" v-if="bbtags.indexOf('急查标本') < 0">
|
|
449
|
457
|
<el-upload :headers="headers" :on-remove="handle_removeEdit" :on-success="handle_successEdit"
|
|
450
|
458
|
:file-list="dealEditWorkFormFile" :action="imgUrl" list-type="picture-card">
|
|
|
@@ -702,12 +710,12 @@
|
|
702
|
710
|
dispatchhaocaiarrError: [{
|
|
703
|
711
|
F_DicId: "",
|
|
704
|
712
|
F_Number: 0,
|
|
705
|
|
- F_ReceiveUser: "",
|
|
|
713
|
+ // F_ReceiveUser: "",
|
|
706
|
714
|
}, ],
|
|
707
|
715
|
dispatchhaocaiarrEdit: [{
|
|
708
|
716
|
F_DicId: '',
|
|
709
|
717
|
F_Number: 0,
|
|
710
|
|
- F_ReceiveUser: "",
|
|
|
718
|
+ // F_ReceiveUser: "",
|
|
711
|
719
|
}, ],
|
|
712
|
720
|
reason1: "",
|
|
713
|
721
|
reason2: "",
|
|
|
@@ -917,13 +925,13 @@
|
|
917
|
925
|
dealWorkForm: {
|
|
918
|
926
|
file: "",
|
|
919
|
927
|
remark: "",
|
|
920
|
|
- // recipient: "",
|
|
|
928
|
+ recipient:"",
|
|
921
|
929
|
isabnormal: "0",
|
|
922
|
930
|
},
|
|
923
|
931
|
dealEditWorkForm: {
|
|
924
|
932
|
file: "",
|
|
925
|
933
|
remark: "",
|
|
926
|
|
- // recipient: "",
|
|
|
934
|
+ recipient: "",
|
|
927
|
935
|
isabnormal: "0",
|
|
928
|
936
|
},
|
|
929
|
937
|
collectForm: {
|
|
|
@@ -1030,7 +1038,7 @@
|
|
1030
|
1038
|
const params = {
|
|
1031
|
1039
|
F_DicId: "",
|
|
1032
|
1040
|
F_Number: 0,
|
|
1033
|
|
- F_ReceiveUser: "",
|
|
|
1041
|
+ // F_ReceiveUser: "",
|
|
1034
|
1042
|
};
|
|
1035
|
1043
|
this.dispatchhaocaiarrError.push(params);
|
|
1036
|
1044
|
},
|
|
|
@@ -1038,7 +1046,7 @@
|
|
1038
|
1046
|
const params = {
|
|
1039
|
1047
|
F_DicId: "",
|
|
1040
|
1048
|
F_Number: 0,
|
|
1041
|
|
- F_ReceiveUser: "",
|
|
|
1049
|
+ // F_ReceiveUser: "",
|
|
1042
|
1050
|
};
|
|
1043
|
1051
|
this.dispatchhaocaiarrEdit.push(params);
|
|
1044
|
1052
|
},
|
|
|
@@ -1157,7 +1165,7 @@
|
|
1157
|
1165
|
type: 1
|
|
1158
|
1166
|
};
|
|
1159
|
1167
|
GetOrderDetail(params).then(res => {
|
|
1160
|
|
- if (res.data.length > 0 && res.data[0].F_OperationType == 9) {
|
|
|
1168
|
+ if (res.data.length > 0 && res.data[0].F_OperationType == 9 && res.data[0].F_LogContent.length > 3) {
|
|
1161
|
1169
|
this.dealEditWorkForm.remark = res.data[0].F_LogContent.slice(res.data[0].F_LogContent.indexOf(',') + 1,
|
|
1162
|
1170
|
res.data[0].F_LogContent.length)
|
|
1163
|
1171
|
}
|
|
|
@@ -1178,6 +1186,7 @@
|
|
1178
|
1186
|
if (res.data[0].F_IsAbnormal) {
|
|
1179
|
1187
|
this.dealEditWorkForm.isabnormal = res.data[0].F_IsAbnormal.toString()
|
|
1180
|
1188
|
}
|
|
|
1189
|
+ this.dealEditWorkForm.recipient = res.data[0].F_Recipient
|
|
1181
|
1190
|
if (this.bbtags.indexOf('急查标本') >= 0) {
|
|
1182
|
1191
|
for (var i = 0; i < res.data[0].PSInfo.length; i++) {
|
|
1183
|
1192
|
res.data[0].PSInfo[i].F_DicName =
|
|
|
@@ -1192,7 +1201,7 @@
|
|
1192
|
1201
|
F_DicId: res.data[0].SDInfo[i].F_DicId,
|
|
1193
|
1202
|
F_DicName: res.data[0].SDInfo[i].F_DicName,
|
|
1194
|
1203
|
F_Number: res.data[0].SDInfo[i].F_Number,
|
|
1195
|
|
- F_ReceiveUser: res.data[0].SDInfo[i].F_ReceiveUser
|
|
|
1204
|
+ // F_ReceiveUser: res.data[0].SDInfo[i].F_ReceiveUser
|
|
1196
|
1205
|
})
|
|
1197
|
1206
|
}
|
|
1198
|
1207
|
this.dispatchhaocaiarrEdit = sdarr
|
|
|
@@ -1665,12 +1674,9 @@
|
|
1665
|
1674
|
// return;
|
|
1666
|
1675
|
if (formName === "dealWorkForm") {
|
|
1667
|
1676
|
if (this.dispatchhaocaiarrError.length > 0) {
|
|
1668
|
|
-
|
|
1669
|
|
- //v-if="dealWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0"
|
|
1670
|
|
-
|
|
1671
|
1677
|
if (this.dealWorkForm.isabnormal === '1' && this.bbtags.indexOf('急查标本') >= 0) {
|
|
1672
|
1678
|
const index = this.dispatchhaocaiarrError.findIndex((o) => {
|
|
1673
|
|
- return !o.F_ReceiveUser || !o.F_DicName || !o.F_Number;
|
|
|
1679
|
+ return !o.F_DicId || !o.F_Number;
|
|
1674
|
1680
|
});
|
|
1675
|
1681
|
if (index >= 0) {
|
|
1676
|
1682
|
this.$message.error("请选择对应物资信息");
|
|
|
@@ -1682,11 +1688,9 @@
|
|
1682
|
1688
|
}
|
|
1683
|
1689
|
if (formName === "dealEditWorkForm") {
|
|
1684
|
1690
|
if (this.dispatchhaocaiarrEdit.length > 0) {
|
|
1685
|
|
-
|
|
1686
|
|
- if (this.dealWorkForm.isabnormal === '1' && this.bbtags.indexOf('急查标本') >= 0) {
|
|
1687
|
|
-
|
|
|
1691
|
+ if (this.dealEditWorkForm.isabnormal === '1' && this.bbtags.indexOf('急查标本') >= 0) {
|
|
1688
|
1692
|
const index = this.dispatchhaocaiarrEdit.findIndex((o) => {
|
|
1689
|
|
- return !o.F_ReceiveUser || !o.F_DicName || !o.F_Number;
|
|
|
1693
|
+ return !o.F_DicId || !o.F_Number;
|
|
1690
|
1694
|
});
|
|
1691
|
1695
|
if (index >= 0) {
|
|
1692
|
1696
|
this.$message.error("请选择对应物资信息");
|
|
|
@@ -1753,12 +1757,15 @@
|
|
1753
|
1757
|
console.log(formName);
|
|
1754
|
1758
|
if (formName === "dealWorkForm") {
|
|
1755
|
1759
|
const psarr = [];
|
|
1756
|
|
- console.log(this.dispatchhaocaiarrError);
|
|
1757
|
1760
|
this.dealWorkForm.pslist = this.dispatchhaocaiarrError;
|
|
1758
|
1761
|
if (this.bbtags.indexOf("急查标本") < 0) {
|
|
1759
|
1762
|
this.dealWorkForm.pslist = [];
|
|
1760
|
|
- // this.dealWorkForm.recipient = "";
|
|
1761
|
|
- this.dealWorkForm.isabnormal = "0";
|
|
|
1763
|
+ this.dealWorkForm.recipient = "";
|
|
|
1764
|
+ this.dealWorkForm.isabnormal = "";
|
|
|
1765
|
+ }
|
|
|
1766
|
+ if(this.dealWorkForm.isabnormal == "0"){
|
|
|
1767
|
+ this.dealWorkForm.pslist = [];
|
|
|
1768
|
+ this.dealWorkForm.recipient = ""
|
|
1762
|
1769
|
}
|
|
1763
|
1770
|
if (this.dealWorkForm.file === "") {
|
|
1764
|
1771
|
// this.$message.error('请上传附件')
|
|
|
@@ -1769,14 +1776,18 @@
|
|
1769
|
1776
|
this.dealWorkForm.file.length - 1
|
|
1770
|
1777
|
);
|
|
1771
|
1778
|
}
|
|
1772
|
|
- console.log(this.dealWorkForm);
|
|
1773
|
1779
|
}
|
|
1774
|
1780
|
if (formName === "dealEditWorkForm") {
|
|
1775
|
1781
|
const psarr = [];
|
|
1776
|
1782
|
this.dealEditWorkForm.pslist = this.dispatchhaocaiarrEdit;
|
|
1777
|
1783
|
if (this.bbtags.indexOf("急查标本") < 0) {
|
|
1778
|
1784
|
this.dealEditWorkForm.pslist = [];
|
|
1779
|
|
- this.dealEditWorkForm.isabnormal = "0";
|
|
|
1785
|
+ this.dealEditWorkForm.recipient = "";
|
|
|
1786
|
+ this.dealEditWorkForm.isabnormal = "";
|
|
|
1787
|
+ }
|
|
|
1788
|
+ if(this.dealEditWorkForm.isabnormal == "0"){
|
|
|
1789
|
+ this.dealEditWorkForm.pslist = [];
|
|
|
1790
|
+ this.dealEditWorkForm.recipient = ""
|
|
1780
|
1791
|
}
|
|
1781
|
1792
|
if (this.dealEditWorkForm.file === "") {
|
|
1782
|
1793
|
// this.$message.error('请上传附件')
|
|
|
@@ -2003,12 +2014,14 @@
|
|
2003
|
2014
|
this.dealWorkForm.remark = "";
|
|
2004
|
2015
|
this.dealWorkFormFile = [];
|
|
2005
|
2016
|
this.dealWorkForm.isabnormal = "0";
|
|
|
2017
|
+ this.dealWorkForm.recipient = "";
|
|
2006
|
2018
|
}
|
|
2007
|
2019
|
if (this.optionName == "schEdit") {
|
|
2008
|
2020
|
this.dealEditWorkForm.file = "";
|
|
2009
|
2021
|
this.dealEditWorkForm.remark = "";
|
|
2010
|
2022
|
this.dealEditWorkFormFile = [];
|
|
2011
|
2023
|
this.dealEditWorkForm.isabnormal = "0";
|
|
|
2024
|
+ this.dealEditWorkForm.recipient = "";
|
|
2012
|
2025
|
}
|
|
2013
|
2026
|
if (this.optionName == "dispatch_shouqubiaoben") {
|
|
2014
|
2027
|
this.collectForm.file = "";
|