liuzhihui лет назад: 2
Родитель
Сommit
08fecb8fb0

+ 42 - 29
CallCenterWeb.UI/RMYY/src/components/button/orderList.vue

@@ -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 = "";

+ 10 - 6
CallCenterWeb.UI/RMYY/src/views/comDispatch/components/dispatchdetail.vue

@@ -72,9 +72,9 @@
72 72
               </tr>
73 73
               <tr v-show="isDD.indexOf('DD') >= 0 || isDD === 'GLY'">
74 74
                 <th>接单时间:</th>
75
-                <td>{{ orderDetailData.F_AcceptTime || "-" }}</td>
75
+                <td colspan="2">{{ orderDetailData.F_AcceptTime || "-" }}</td>
76 76
                 <th>完成时间:</th>
77
-                <td colspan="3">{{ orderDetailData.F_Endtime || "-" }}</td>
77
+                <td colspan="2">{{ orderDetailData.F_Endtime || "-" }}</td>
78 78
               </tr>
79 79
               <tr v-if="
80 80
                   orderDetailData.PSInfo && orderDetailData.PSInfo.length > 0
@@ -99,7 +99,7 @@
99 99
                       v-if="index!=orderDetailData.PSInfo.length-1">,</span></span>
100 100
                 </td> -->
101 101
               </tr>
102
-              <tr v-for="(item, index) in orderDetailData.PSInfo" :key="index+0">
102
+              <tr v-for="(item, index) in orderDetailData.PSInfo" :key="index+2">
103 103
                 <th v-if="item.F_ToDept">送达科室:</th>
104 104
                 <th v-if="item.F_ToDept">
105 105
                   {{
@@ -133,7 +133,7 @@
133 133
                 ">
134 134
                 <th :rowspan="orderDetailData.SDInfo.length + 1">异常配送信息:</th>
135 135
               </tr>
136
-              <tr v-for="(item, index) in orderDetailData.SDInfo" :key="index+0">
136
+              <tr v-for="(item, index) in orderDetailData.SDInfo" :key="index+11">
137 137
                 <th v-if="item.F_ToDept">送达科室:</th>
138 138
                 <th v-if="item.F_ToDept">
139 139
                   {{
@@ -162,10 +162,14 @@
162 162
                 </td>
163 163
                 <th>-</th>
164 164
               </tr>
165
-              <tr v-if="orderDetailData.F_Recipient">
165
+              <tr v-if="orderDetailData.F_TypeName2.indexOf('标本')>=0 && orderDetailData.F_IsAbnormal != null">
166 166
                 <th>是否异常:</th>
167
-                <td colspan="5">
167
+                <td colspan="2">
168 168
                   {{ orderDetailData.F_IsAbnormal == 0 ? "否" : "是" }}
169
+                </td>
170
+                <th>科室交接人:</th>
171
+                <td colspan="2">
172
+                  {{ orderDetailData.F_Recipient || "-"}}
169 173
                 </td>
170 174
               </tr>
171 175
               <tr>

+ 6 - 6
CallCenterWeb.UI/RMYYAPP/pages/myTask/comDispatch/comDispatchDetail/comDispatchDetail.vue

@@ -202,17 +202,17 @@
202 202
 					<text v-if="item.F_DicName">{{item.F_DicName + '('+ item.F_Number + ')'}}</text>
203 203
 					<text v-else class="contentText"></text>
204 204
 				</view> -->
205
-      </view>
206
-      <view class="contentTable" v-if="detailContentData.F_Recipient">
207
-        <text class="contentTitle">接收人:</text>
208
-        <text class="contentText">{{ detailContentData.F_Recipient }}</text>
209
-      </view>
210
-      <view class="contentTable" v-if="detailContentData.F_Recipient">
205
+      </view>      
206
+      <view class="contentTable" v-if="detailContentData.F_IsAbnormal != null">
211 207
         <text class="contentTitle">是否异常:</text>
212 208
         <text class="contentText">{{
213 209
           detailContentData.F_IsAbnormal == 0 ? "否" : "是"
214 210
         }}</text>
215 211
       </view>
212
+	  <view class="contentTable" v-if="detailContentData.F_IsAbnormal != null">
213
+	    <text class="contentTitle">科室交接人:</text>
214
+	    <text class="contentText">{{ detailContentData.F_Recipient || "-"}}</text>
215
+	  </view>
216 216
       <!-- <view class="contentTable" v-if="detailContentData.F_WorkOrderCodes">
217 217
 				<text class="contentTitle">关联工单:</text>
218 218
 				<text class="contentText">{{ detailContentData.F_WorkOrderCodes }}</text>

+ 14 - 3
CallCenterWeb.UI/RMYYAPP/pages/myTask/comDispatch/comDispatchDetail/dealDetail/dealDetail.vue

@@ -45,12 +45,12 @@
45 45
             ></uni-icons>
46 46
           </view>
47 47
           <view style="width: 100%" v-for="(item, index) in dicList">
48
-            <view style="width: 60%; padding: 15px">
48
+            <!-- <view style="width: 60%; padding: 15px">
49 49
               <uni-easyinput
50 50
                 v-model="item.F_ReceiveUser"
51 51
                 placeholder="科室交接人"
52 52
               />
53
-            </view>
53
+            </view> -->
54 54
             <view style="display: flex">
55 55
               <view class="dicSelect" style="width: 60%; padding: 15px">
56 56
                 <uni-data-picker
@@ -67,6 +67,13 @@
67 67
             </view>
68 68
           </view>
69 69
         </view>
70
+		<uni-forms-item v-show="isabnormal === '1'" label="科室接收人" name="recipient">
71
+		  <uni-easyinput
72
+		    type="text"
73
+		    v-model="recipient"
74
+		    placeholder="科室接收人"
75
+		  />
76
+		</uni-forms-item>
70 77
         <uni-forms-item label="附件" name="" v-if="findIndex < 0">
71 78
           <view class="example-body">
72 79
             <upload
@@ -124,7 +131,7 @@ export default {
124 131
           F_DicId: 0,
125 132
           F_DicName: "",
126 133
           F_Number: 1,
127
-          F_ReceiveUser: "",
134
+          // F_ReceiveUser: "",
128 135
         },
129 136
       ],
130 137
       getFontSizeValue: "1rem",
@@ -257,6 +264,10 @@ export default {
257 264
         params.isabnormal = "";
258 265
         params.recipient = "";
259 266
       }
267
+	  if(this.isabnormal == "0"){
268
+		params.pslist = null;
269
+		params.recipient = "";
270
+	  }
260 271
       if (this.state == 1) {
261 272
         this.$mHelper.httpPost(
262 273
           "Scheduling/DealWorkOrder",