|
|
@@ -689,14 +689,6 @@
|
|
689
|
689
|
>
|
|
690
|
690
|
<el-table-column prop="F_DicName" label="物品" align="center" />
|
|
691
|
691
|
<el-table-column prop="F_Number" label="数量" align="center" />
|
|
692
|
|
- <!-- <el-table-column prop="" label="实收数量" align="center">
|
|
693
|
|
- <template slot-scope="scope">
|
|
694
|
|
- <el-input
|
|
695
|
|
- v-model="scope.row.F_PaidInQuantity"
|
|
696
|
|
- placeholder="请输入数量"
|
|
697
|
|
- ></el-input>
|
|
698
|
|
- </template>
|
|
699
|
|
- </el-table-column> -->
|
|
700
|
692
|
</el-table>
|
|
701
|
693
|
<el-form
|
|
702
|
694
|
ref="dealWorkForm"
|
|
|
@@ -704,26 +696,20 @@
|
|
704
|
696
|
:rules="rules"
|
|
705
|
697
|
label-width="100px"
|
|
706
|
698
|
>
|
|
707
|
|
- <!-- <el-form-item label="接收人" v-if="bbtags.indexOf('急查标本') >= 0">
|
|
708
|
|
- <el-input
|
|
709
|
|
- v-model="dealWorkForm.recipient"
|
|
710
|
|
- placeholder="请输入接收人工号"
|
|
711
|
|
- ></el-input>
|
|
712
|
|
- </el-form-item> -->
|
|
713
|
699
|
<el-form-item label="是否异常" v-if="bbtags.indexOf('急查标本') >= 0">
|
|
714
|
700
|
<el-radio-group v-model="dealWorkForm.isabnormal">
|
|
715
|
701
|
<el-radio label="0">否</el-radio>
|
|
716
|
702
|
<el-radio label="1">是</el-radio>
|
|
717
|
703
|
</el-radio-group>
|
|
718
|
704
|
</el-form-item>
|
|
719
|
|
- <el-row v-if="dealWorkForm.isabnormal === '1'">
|
|
|
705
|
+ <el-row v-if="dealWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0">
|
|
720
|
706
|
<el-col>
|
|
721
|
707
|
<el-form-item label="标本信息" required>
|
|
722
|
708
|
<el-button icon="el-icon-plus" @click="addItem()">添加</el-button>
|
|
723
|
709
|
</el-form-item>
|
|
724
|
710
|
</el-col>
|
|
725
|
711
|
</el-row>
|
|
726
|
|
- <el-row v-if="dealWorkForm.isabnormal === '1'">
|
|
|
712
|
+ <el-row v-if="dealWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0">
|
|
727
|
713
|
<el-row v-for="(item, index) in dispatchhaocaiarrError" :key="index">
|
|
728
|
714
|
<el-col :span="7">
|
|
729
|
715
|
<el-form-item prop="devname">
|
|
|
@@ -732,6 +718,7 @@
|
|
732
|
718
|
:options="bborderData"
|
|
733
|
719
|
:props="TagProps"
|
|
734
|
720
|
clearable
|
|
|
721
|
+ filterable
|
|
735
|
722
|
placeholder="请选择标本"
|
|
736
|
723
|
@change="(devname) => handleChange(devname, index)"
|
|
737
|
724
|
></el-cascader>
|
|
|
@@ -794,6 +781,109 @@
|
|
794
|
781
|
>
|
|
795
|
782
|
</div>
|
|
796
|
783
|
</el-dialog>
|
|
|
784
|
+ <!-- 送达的编辑 -->
|
|
|
785
|
+ <el-dialog :visible.sync="dialogStatus.dialog_schEdit" title="编辑">
|
|
|
786
|
+ <el-table
|
|
|
787
|
+ :data="dispatchhaocaiarr"
|
|
|
788
|
+ border
|
|
|
789
|
+ stripe
|
|
|
790
|
+ v-if="bbtags.indexOf('急查标本') >= 0"
|
|
|
791
|
+ >
|
|
|
792
|
+ <el-table-column prop="F_DicName" label="物品" align="center" />
|
|
|
793
|
+ <el-table-column prop="F_Number" label="数量" align="center" />
|
|
|
794
|
+ </el-table>
|
|
|
795
|
+ <el-form
|
|
|
796
|
+ ref="dealEditWorkForm"
|
|
|
797
|
+ :model="dealEditWorkForm"
|
|
|
798
|
+ :rules="rules"
|
|
|
799
|
+ label-width="100px"
|
|
|
800
|
+ >
|
|
|
801
|
+ <el-form-item label="是否异常" v-if="bbtags.indexOf('急查标本') >= 0">
|
|
|
802
|
+ <el-radio-group v-model="dealEditWorkForm.isabnormal">
|
|
|
803
|
+ <el-radio label="0">否</el-radio>
|
|
|
804
|
+ <el-radio label="1">是</el-radio>
|
|
|
805
|
+ </el-radio-group>
|
|
|
806
|
+ </el-form-item>
|
|
|
807
|
+ <el-row v-if="dealEditWorkForm.isabnormal === '1'&& bbtags.indexOf('急查标本') >= 0">
|
|
|
808
|
+ <el-col>
|
|
|
809
|
+ <el-form-item label="标本信息" required>
|
|
|
810
|
+ <el-button icon="el-icon-plus" @click="addItemEdit()">添加</el-button>
|
|
|
811
|
+ </el-form-item>
|
|
|
812
|
+ </el-col>
|
|
|
813
|
+ </el-row>
|
|
|
814
|
+ <el-row v-if="dealEditWorkForm.isabnormal === '1' && bbtags.indexOf('急查标本') >= 0">
|
|
|
815
|
+ <el-row v-for="(item, index) in dispatchhaocaiarrEdit" :key="index">
|
|
|
816
|
+ <el-col :span="7">
|
|
|
817
|
+ <el-form-item>
|
|
|
818
|
+ <el-cascader
|
|
|
819
|
+ v-model="item.F_DicId"
|
|
|
820
|
+ ref="cascaderbbedit"
|
|
|
821
|
+ :options="bborderData"
|
|
|
822
|
+ :props="TagProps"
|
|
|
823
|
+ clearable
|
|
|
824
|
+ filterable
|
|
|
825
|
+ placeholder="请选择标本"
|
|
|
826
|
+ @change="(F_DicId) => handleChangeEdit(F_DicId, index)"
|
|
|
827
|
+ ></el-cascader>
|
|
|
828
|
+ </el-form-item>
|
|
|
829
|
+ </el-col>
|
|
|
830
|
+ <el-col :span="6">
|
|
|
831
|
+ <el-form-item prop="num">
|
|
|
832
|
+ <el-input-number
|
|
|
833
|
+ v-model="item.F_Number"
|
|
|
834
|
+ :min="1"
|
|
|
835
|
+ size="medium"
|
|
|
836
|
+ />
|
|
|
837
|
+ </el-form-item>
|
|
|
838
|
+ </el-col>
|
|
|
839
|
+ <el-col :span="11">
|
|
|
840
|
+ <el-form-item prop="num">
|
|
|
841
|
+ <el-input
|
|
|
842
|
+ style="width: 180px"
|
|
|
843
|
+ v-model="item.F_ReceiveUser"
|
|
|
844
|
+ placeholder="科室交接人"
|
|
|
845
|
+ ></el-input>
|
|
|
846
|
+ <el-button
|
|
|
847
|
+ type="primary"
|
|
|
848
|
+ icon="el-icon-close"
|
|
|
849
|
+ circle
|
|
|
850
|
+ @click="removeItemEdit(index)"
|
|
|
851
|
+ />
|
|
|
852
|
+ </el-form-item>
|
|
|
853
|
+ </el-col>
|
|
|
854
|
+ </el-row>
|
|
|
855
|
+ </el-row>
|
|
|
856
|
+ <el-form-item label="附件" v-if="bbtags.indexOf('急查标本') < 0">
|
|
|
857
|
+ <el-upload
|
|
|
858
|
+ :headers="headers"
|
|
|
859
|
+ :on-remove="handle_removeEdit"
|
|
|
860
|
+ :on-success="handle_successEdit"
|
|
|
861
|
+ :file-list="dealEditWorkFormFile"
|
|
|
862
|
+ :action="imgUrl"
|
|
|
863
|
+ list-type="picture-card"
|
|
|
864
|
+ >
|
|
|
865
|
+ <i class="el-icon-plus" />
|
|
|
866
|
+ </el-upload>
|
|
|
867
|
+ </el-form-item>
|
|
|
868
|
+ <el-form-item label="说明">
|
|
|
869
|
+ <el-input
|
|
|
870
|
+ :autosize="{ minRows: 4, maxRows: 8 }"
|
|
|
871
|
+ v-model="dealEditWorkForm.remark"
|
|
|
872
|
+ show-word-limit
|
|
|
873
|
+ maxlength="100"
|
|
|
874
|
+ type="textarea"
|
|
|
875
|
+ />
|
|
|
876
|
+ </el-form-item>
|
|
|
877
|
+ </el-form>
|
|
|
878
|
+ <div slot="footer" class="dialog-footer">
|
|
|
879
|
+ <el-button @click="dialogStatus.dialog_schEdit = false"
|
|
|
880
|
+ >取 消</el-button
|
|
|
881
|
+ >
|
|
|
882
|
+ <el-button type="primary" @click="submitForm('dealEditWorkForm')"
|
|
|
883
|
+ >确 定</el-button
|
|
|
884
|
+ >
|
|
|
885
|
+ </div>
|
|
|
886
|
+ </el-dialog>
|
|
797
|
887
|
<!-- 综合调度收取标本 -->
|
|
798
|
888
|
<el-dialog
|
|
799
|
889
|
:visible.sync="dialogStatus.dialog_dispatch_shouqubiaoben"
|
|
|
@@ -860,6 +950,43 @@
|
|
860
|
950
|
:rules="rules"
|
|
861
|
951
|
label-width="100px"
|
|
862
|
952
|
>
|
|
|
953
|
+ <el-form-item label="服务态度" prop="Attitude">
|
|
|
954
|
+ <el-rate
|
|
|
955
|
+ v-model="carEvaluteForm.Attitude"
|
|
|
956
|
+ :texts="evaluateText"
|
|
|
957
|
+ show-text
|
|
|
958
|
+ />
|
|
|
959
|
+ </el-form-item>
|
|
|
960
|
+ <el-form-item label="服务质量" prop="Quality">
|
|
|
961
|
+ <el-rate
|
|
|
962
|
+ v-model="carEvaluteForm.Quality"
|
|
|
963
|
+ :texts="evaluateText"
|
|
|
964
|
+ show-text
|
|
|
965
|
+ />
|
|
|
966
|
+ </el-form-item>
|
|
|
967
|
+ <el-form-item label="完成时效" prop="Efficiency">
|
|
|
968
|
+ <el-rate
|
|
|
969
|
+ v-model="carEvaluteForm.Efficiency"
|
|
|
970
|
+ :texts="evaluateText"
|
|
|
971
|
+ show-text
|
|
|
972
|
+ />
|
|
|
973
|
+ </el-form-item>
|
|
|
974
|
+ <el-form-item label="文字评价" prop="Evaluation">
|
|
|
975
|
+ <el-input
|
|
|
976
|
+ :autosize="{ minRows: 4, maxRows: 8 }"
|
|
|
977
|
+ v-model="carEvaluteForm.Evaluation"
|
|
|
978
|
+ show-word-limit
|
|
|
979
|
+ maxlength="100"
|
|
|
980
|
+ type="textarea"
|
|
|
981
|
+ />
|
|
|
982
|
+ </el-form-item>
|
|
|
983
|
+ </el-form>
|
|
|
984
|
+ <!-- <el-form
|
|
|
985
|
+ ref="carEvaluteForm"
|
|
|
986
|
+ :model="carEvaluteForm"
|
|
|
987
|
+ :rules="rules"
|
|
|
988
|
+ label-width="100px"
|
|
|
989
|
+ >
|
|
863
|
990
|
<el-form-item label="评价内容">
|
|
864
|
991
|
<el-input
|
|
865
|
992
|
:autosize="{ minRows: 4, maxRows: 8 }"
|
|
|
@@ -876,7 +1003,7 @@
|
|
876
|
1003
|
show-text
|
|
877
|
1004
|
/>
|
|
878
|
1005
|
</el-form-item>
|
|
879
|
|
- </el-form>
|
|
|
1006
|
+ </el-form> -->
|
|
880
|
1007
|
<div slot="footer" class="dialog-footer">
|
|
881
|
1008
|
<el-button @click="dialogStatus.dialog_cldu_pingjia = false"
|
|
882
|
1009
|
>取 消</el-button
|
|
|
@@ -1101,6 +1228,7 @@ import {
|
|
1101
|
1228
|
postDispatchCheckWorkOrder,
|
|
1102
|
1229
|
postDispatchBackWorkOrder,
|
|
1103
|
1230
|
postDispatchDealWorkOrder,
|
|
|
1231
|
+ postDispatchDealEditWorkOrder,
|
|
1104
|
1232
|
postCollectSpecimens,
|
|
1105
|
1233
|
postDelDispatchWorkOrder,
|
|
1106
|
1234
|
postwithdrawDispatchWorkOrder,
|
|
|
@@ -1146,12 +1274,20 @@ export default {
|
|
1146
|
1274
|
F_ReceiveUser: "",
|
|
1147
|
1275
|
},
|
|
1148
|
1276
|
],
|
|
|
1277
|
+ dispatchhaocaiarrEdit:[
|
|
|
1278
|
+ {
|
|
|
1279
|
+ F_DicId: '',
|
|
|
1280
|
+ F_Number: 1,
|
|
|
1281
|
+ F_ReceiveUser: "",
|
|
|
1282
|
+ },
|
|
|
1283
|
+ ],
|
|
1149
|
1284
|
reason1: "",
|
|
1150
|
1285
|
reason2: "",
|
|
1151
|
1286
|
reason3: "",
|
|
1152
|
1287
|
reason4: "",
|
|
1153
|
1288
|
reasonarr1: [],
|
|
1154
|
1289
|
dialogStatus: {
|
|
|
1290
|
+ dialog_schEdit:false,
|
|
1155
|
1291
|
dialog_dispatch_zhuanpai: false,
|
|
1156
|
1292
|
dialog_zhdd_zhipai: false,
|
|
1157
|
1293
|
dialog_zhdd_tuihui: false,
|
|
|
@@ -1270,7 +1406,10 @@ export default {
|
|
1270
|
1406
|
},
|
|
1271
|
1407
|
carEvaluteForm: {
|
|
1272
|
1408
|
Evaluation: "",
|
|
1273
|
|
- score: 0,
|
|
|
1409
|
+ Attitude: 0,
|
|
|
1410
|
+ Quality: 0,
|
|
|
1411
|
+ Efficiency: 0,
|
|
|
1412
|
+ // score: 0,
|
|
1274
|
1413
|
},
|
|
1275
|
1414
|
evaluateForm: {
|
|
1276
|
1415
|
Attitude: 0,
|
|
|
@@ -1353,6 +1492,12 @@ export default {
|
|
1353
|
1492
|
// recipient: "",
|
|
1354
|
1493
|
isabnormal: "0",
|
|
1355
|
1494
|
},
|
|
|
1495
|
+ dealEditWorkForm:{
|
|
|
1496
|
+ file: "",
|
|
|
1497
|
+ remark: "",
|
|
|
1498
|
+ // recipient: "",
|
|
|
1499
|
+ isabnormal: "0",
|
|
|
1500
|
+ },
|
|
1356
|
1501
|
collectForm: {
|
|
1357
|
1502
|
jcnum: "0",
|
|
1358
|
1503
|
fjcnum: "0",
|
|
|
@@ -1375,6 +1520,7 @@ export default {
|
|
1375
|
1520
|
imgUrl:
|
|
1376
|
1521
|
this.$store.getters.serverConfig.BASE_API + "FaultRepair/UploadFile",
|
|
1377
|
1522
|
dealWorkFormFile: [],
|
|
|
1523
|
+ dealEditWorkFormFile:[],
|
|
1378
|
1524
|
collectFormFile: [],
|
|
1379
|
1525
|
rules: {
|
|
1380
|
1526
|
file: [
|
|
|
@@ -1473,6 +1619,14 @@ export default {
|
|
1473
|
1619
|
};
|
|
1474
|
1620
|
this.dispatchhaocaiarrError.push(params);
|
|
1475
|
1621
|
},
|
|
|
1622
|
+ addItemEdit(){
|
|
|
1623
|
+ const params = {
|
|
|
1624
|
+ F_DicId: "",
|
|
|
1625
|
+ F_Number: 1,
|
|
|
1626
|
+ F_ReceiveUser: "",
|
|
|
1627
|
+ };
|
|
|
1628
|
+ this.dispatchhaocaiarrEdit.push(params);
|
|
|
1629
|
+ },
|
|
1476
|
1630
|
getDepUsers() {
|
|
1477
|
1631
|
const deptid = this.$store.getters.teamId;
|
|
1478
|
1632
|
return new Promise((resolve) => {
|
|
|
@@ -1495,11 +1649,20 @@ export default {
|
|
1495
|
1649
|
console.log(index);
|
|
1496
|
1650
|
this.dispatchhaocaiarrError.splice(index, 1);
|
|
1497
|
1651
|
},
|
|
|
1652
|
+ removeItemEdit(index) {
|
|
|
1653
|
+ console.log(index);
|
|
|
1654
|
+ this.dispatchhaocaiarrEdit.splice(index, 1);
|
|
|
1655
|
+ },
|
|
1498
|
1656
|
handleChange(data, index) {
|
|
1499
|
1657
|
const obj = this.$refs["cascaderbb"][index].getCheckedNodes();
|
|
1500
|
1658
|
this.dispatchhaocaiarrError[index].F_DicId = data;
|
|
1501
|
1659
|
this.dispatchhaocaiarrError[index].F_DicName = obj[0].data.text;
|
|
1502
|
1660
|
},
|
|
|
1661
|
+ handleChangeEdit(data, index) {
|
|
|
1662
|
+ const obj = this.$refs["cascaderbbedit"][index].getCheckedNodes();
|
|
|
1663
|
+ this.dispatchhaocaiarrEdit[index].F_DicId = data;
|
|
|
1664
|
+ this.dispatchhaocaiarrEdit[index].F_DicName = obj[0].data.text;
|
|
|
1665
|
+ },
|
|
1503
|
1666
|
handleChange1(data) {
|
|
1504
|
1667
|
this.returnWorkForm.key = data.split(",")[0];
|
|
1505
|
1668
|
this.returnWorkForm.value = data.split(",")[1];
|
|
|
@@ -1518,12 +1681,37 @@ export default {
|
|
1518
|
1681
|
},
|
|
1519
|
1682
|
handle_success(res) {
|
|
1520
|
1683
|
this.dealWorkForm.file += res.data[0].F_FileId + ",";
|
|
1521
|
|
- this.$refs.dealWorkForm.clearValidate("file");
|
|
|
1684
|
+ // this.$refs.dealEditWorkForm.clearValidate("file");
|
|
|
1685
|
+ },
|
|
|
1686
|
+ handle_successEdit(res) {
|
|
|
1687
|
+ this.dealEditWorkForm.file += res.data[0].F_FileId + ",";
|
|
1522
|
1688
|
},
|
|
1523
|
1689
|
handle_remove(res) {
|
|
1524
|
1690
|
const str = res.response.data[0].F_FileId + ",";
|
|
1525
|
1691
|
this.dealWorkForm.file = this.dealWorkForm.file.replace(str, "");
|
|
1526
|
1692
|
},
|
|
|
1693
|
+ handle_removeEdit(res) {
|
|
|
1694
|
+ var oldstr = "";
|
|
|
1695
|
+ var str = "";
|
|
|
1696
|
+ if (res.F_FileId) {
|
|
|
1697
|
+ oldstr = res.F_FileId + ",";
|
|
|
1698
|
+ }
|
|
|
1699
|
+ if (res.response) {
|
|
|
1700
|
+ str = res.response.data[0].F_FileId + ",";
|
|
|
1701
|
+ }
|
|
|
1702
|
+ if (oldstr) {
|
|
|
1703
|
+ this.dealEditWorkForm.file = this.dealEditWorkForm.file.replace(
|
|
|
1704
|
+ oldstr,
|
|
|
1705
|
+ ""
|
|
|
1706
|
+ );
|
|
|
1707
|
+ }
|
|
|
1708
|
+ if (str) {
|
|
|
1709
|
+ this.dealEditWorkForm.file = this.dealEditWorkForm.file.replace(
|
|
|
1710
|
+ str,
|
|
|
1711
|
+ ""
|
|
|
1712
|
+ );
|
|
|
1713
|
+ }
|
|
|
1714
|
+ },
|
|
1527
|
1715
|
handle_successcol(res) {
|
|
1528
|
1716
|
this.collectForm.file += res.data[0].F_FileId + ",";
|
|
1529
|
1717
|
},
|
|
|
@@ -1539,9 +1727,19 @@ export default {
|
|
1539
|
1727
|
GetFaultRepairDetail(params).then((res) => {
|
|
1540
|
1728
|
this.haocaiarr = res.data[0].Equips;
|
|
1541
|
1729
|
this.FileUrl = res.data[0].FileUrl;
|
|
1542
|
|
- // this.PictureUrl = res.data[0].PictureUrl
|
|
1543
|
1730
|
});
|
|
1544
|
1731
|
},
|
|
|
1732
|
+ getDispatchHaocaiEdit(){
|
|
|
1733
|
+ const params = {
|
|
|
1734
|
+ WorkOrderCode: this.wocode,
|
|
|
1735
|
+ type: 1
|
|
|
1736
|
+ };
|
|
|
1737
|
+ GetOrderDetail(params).then(res=>{
|
|
|
1738
|
+ if(res.data.length>0&&res.data[0].F_OperationType==9){
|
|
|
1739
|
+ this.dealEditWorkForm.remark = res.data[0].F_LogContent.slice(res.data[0].F_LogContent.indexOf(',')+1,res.data[0].F_LogContent.length)
|
|
|
1740
|
+ }
|
|
|
1741
|
+ })
|
|
|
1742
|
+ },
|
|
1545
|
1743
|
getDispatchHaocai() {
|
|
1546
|
1744
|
const params = {
|
|
1547
|
1745
|
WorkOrderCode: this.wocode,
|
|
|
@@ -1553,14 +1751,40 @@ export default {
|
|
1553
|
1751
|
parseInt(res.data[0].F_WorkOrderCategory)
|
|
1554
|
1752
|
].text;
|
|
1555
|
1753
|
// console.log(this.bbtags)
|
|
1556
|
|
- this.dispatchhaocaiarr = res.data[0].PSInfo;
|
|
1557
|
|
- for (var i = 0; i < res.data[0].PSInfo.length; i++) {
|
|
1558
|
|
- res.data[0].PSInfo[i].F_DicName =
|
|
1559
|
|
- this.$store.getters.bbxxTypeMap[
|
|
1560
|
|
- parseInt(res.data[0].PSInfo[i].F_DicId)
|
|
1561
|
|
- ].text;
|
|
|
1754
|
+ this.dispatchhaocaiarr = res.data[0].PSInfo || [];
|
|
|
1755
|
+ if(res.data[0].F_IsAbnormal){
|
|
|
1756
|
+ this.dealEditWorkForm.isabnormal = res.data[0].F_IsAbnormal.toString()
|
|
|
1757
|
+ }
|
|
|
1758
|
+ if(this.bbtags.indexOf('急查标本')>=0){
|
|
|
1759
|
+ for (var i = 0; i < res.data[0].PSInfo.length; i++) {
|
|
|
1760
|
+ res.data[0].PSInfo[i].F_DicName =
|
|
|
1761
|
+ this.$store.getters.bbxxTypeMap[
|
|
|
1762
|
+ parseInt(res.data[0].PSInfo[i].F_DicId)
|
|
|
1763
|
+ ].text;
|
|
|
1764
|
+ }
|
|
|
1765
|
+ }
|
|
|
1766
|
+ const sdarr = []
|
|
|
1767
|
+ for (var i = 0; i < res.data[0].SDInfo.length; i++) {
|
|
|
1768
|
+ sdarr.push({
|
|
|
1769
|
+ F_DicId: res.data[0].SDInfo[i].F_DicId,
|
|
|
1770
|
+ F_DicName: res.data[0].SDInfo[i].F_DicName,
|
|
|
1771
|
+ F_Number: res.data[0].SDInfo[i].F_Number,
|
|
|
1772
|
+ F_ReceiveUser:res.data[0].SDInfo[i].F_ReceiveUser
|
|
|
1773
|
+ })
|
|
|
1774
|
+ }
|
|
|
1775
|
+ this.dispatchhaocaiarrEdit = sdarr
|
|
|
1776
|
+ this.dealEditWorkFormFile = []
|
|
|
1777
|
+ this.dealEditWorkForm.file = "";
|
|
|
1778
|
+ if (res.data[0].DealFileUrl) {
|
|
|
1779
|
+ for (var i = 0; i < res.data[0].DealFileUrl.length; i++) {
|
|
|
1780
|
+ this.dealEditWorkForm.file += res.data[0].DealFileUrl[i].F_FileId + ",";
|
|
|
1781
|
+ this.dealEditWorkFormFile.push({
|
|
|
1782
|
+ F_FileId: res.data[0].DealFileUrl[i].F_FileId,
|
|
|
1783
|
+ name: res.data[0].DealFileUrl[i].F_FileName,
|
|
|
1784
|
+ url: res.data[0].DealFileUrl[i].F_FileUrl,
|
|
|
1785
|
+ });
|
|
|
1786
|
+ }
|
|
1562
|
1787
|
}
|
|
1563
|
|
- // console.log(res.data[0].PSInfo)
|
|
1564
|
1788
|
});
|
|
1565
|
1789
|
},
|
|
1566
|
1790
|
getFileUrl() {
|
|
|
@@ -1822,6 +2046,10 @@ export default {
|
|
1822
|
2046
|
if (name === "dispatch_daoda") {
|
|
1823
|
2047
|
this.getDispatchHaocai();
|
|
1824
|
2048
|
}
|
|
|
2049
|
+ if (name === "schEdit") {
|
|
|
2050
|
+ this.getDispatchHaocai();
|
|
|
2051
|
+ this.getDispatchHaocaiEdit();
|
|
|
2052
|
+ }
|
|
1825
|
2053
|
if (name === "fanxiu") {
|
|
1826
|
2054
|
this.getReason("FXYY");
|
|
1827
|
2055
|
}
|
|
|
@@ -1914,7 +2142,6 @@ export default {
|
|
1914
|
2142
|
};
|
|
1915
|
2143
|
}
|
|
1916
|
2144
|
option.action(params).then((response) => {
|
|
1917
|
|
- console.log("处理结果");
|
|
1918
|
2145
|
if (response.state === "success") {
|
|
1919
|
2146
|
this.$message({
|
|
1920
|
2147
|
type: "success",
|
|
|
@@ -2051,7 +2278,18 @@ export default {
|
|
2051
|
2278
|
}
|
|
2052
|
2279
|
}
|
|
2053
|
2280
|
}
|
|
2054
|
|
-
|
|
|
2281
|
+ if (formName === "carEvaluteForm") {
|
|
|
2282
|
+ if (
|
|
|
2283
|
+ this.carEvaluteForm.Attitude < 3 ||
|
|
|
2284
|
+ this.carEvaluteForm.Quality < 3 ||
|
|
|
2285
|
+ this.carEvaluteForm.Efficiency < 3
|
|
|
2286
|
+ ) {
|
|
|
2287
|
+ if (this.carEvaluteForm.Evaluation === "") {
|
|
|
2288
|
+ this.$message.warning("请输入文字评价");
|
|
|
2289
|
+ return;
|
|
|
2290
|
+ }
|
|
|
2291
|
+ }
|
|
|
2292
|
+ }
|
|
2055
|
2293
|
this.$refs[formName].validate((valid) => {
|
|
2056
|
2294
|
if (valid) {
|
|
2057
|
2295
|
console.log(formName);
|
|
|
@@ -2062,7 +2300,7 @@ export default {
|
|
2062
|
2300
|
if (this.bbtags.indexOf("急查标本") < 0) {
|
|
2063
|
2301
|
this.dealWorkForm.pslist = [];
|
|
2064
|
2302
|
// this.dealWorkForm.recipient = "";
|
|
2065
|
|
- this.dealWorkForm.isabnormal = "";
|
|
|
2303
|
+ this.dealWorkForm.isabnormal = "0";
|
|
2066
|
2304
|
}
|
|
2067
|
2305
|
if (this.dealWorkForm.file === "") {
|
|
2068
|
2306
|
// this.$message.error('请上传附件')
|
|
|
@@ -2075,6 +2313,23 @@ export default {
|
|
2075
|
2313
|
}
|
|
2076
|
2314
|
console.log(this.dealWorkForm);
|
|
2077
|
2315
|
}
|
|
|
2316
|
+ if (formName === "dealEditWorkForm") {
|
|
|
2317
|
+ const psarr = [];
|
|
|
2318
|
+ this.dealEditWorkForm.pslist = this.dispatchhaocaiarrEdit;
|
|
|
2319
|
+ if (this.bbtags.indexOf("急查标本") < 0) {
|
|
|
2320
|
+ this.dealEditWorkForm.pslist = [];
|
|
|
2321
|
+ this.dealEditWorkForm.isabnormal = "0";
|
|
|
2322
|
+ }
|
|
|
2323
|
+ if (this.dealEditWorkForm.file === "") {
|
|
|
2324
|
+ // this.$message.error('请上传附件')
|
|
|
2325
|
+ // return
|
|
|
2326
|
+ } else {
|
|
|
2327
|
+ this.dealEditWorkForm.file = this.dealEditWorkForm.file.slice(
|
|
|
2328
|
+ 0,
|
|
|
2329
|
+ this.dealEditWorkForm.file.length - 1
|
|
|
2330
|
+ );
|
|
|
2331
|
+ }
|
|
|
2332
|
+ }
|
|
2078
|
2333
|
if (formName === "collectForm") {
|
|
2079
|
2334
|
if (this.collectForm.file === "") {
|
|
2080
|
2335
|
// this.$message.error('请上传附件')
|
|
|
@@ -2183,6 +2438,9 @@ export default {
|
|
2183
|
2438
|
case "dealWorkForm":
|
|
2184
|
2439
|
this.postEvent = postDispatchDealWorkOrder;
|
|
2185
|
2440
|
break;
|
|
|
2441
|
+ case "dealEditWorkForm":
|
|
|
2442
|
+ this.postEvent = postDispatchDealEditWorkOrder;
|
|
|
2443
|
+ break;
|
|
2186
|
2444
|
case "collectForm":
|
|
2187
|
2445
|
this.postEvent = postCollectSpecimens;
|
|
2188
|
2446
|
break;
|
|
|
@@ -2289,7 +2547,12 @@ export default {
|
|
2289
|
2547
|
this.dealWorkForm.remark = "";
|
|
2290
|
2548
|
this.dealWorkFormFile = [];
|
|
2291
|
2549
|
this.dealWorkForm.isabnormal = "0";
|
|
2292
|
|
- // this.dealWorkForm.recipient = "";
|
|
|
2550
|
+ }
|
|
|
2551
|
+ if (this.optionName == "schEdit") {
|
|
|
2552
|
+ this.dealEditWorkForm.file = "";
|
|
|
2553
|
+ this.dealEditWorkForm.remark = "";
|
|
|
2554
|
+ this.dealEditWorkFormFile = [];
|
|
|
2555
|
+ this.dealEditWorkForm.isabnormal = "0";
|
|
2293
|
2556
|
}
|
|
2294
|
2557
|
if (this.optionName == "dispatch_shouqubiaoben") {
|
|
2295
|
2558
|
this.collectForm.file = "";
|