浏览代码

拉取代码

maotao 9 月之前
父节点
当前提交
1b59b5d042
共有 2 个文件被更改,包括 32 次插入14 次删除
  1. 3 4
      components/cancelBlood/cancelBlood.vue
  2. 29 10
      components/selectAccount2/selectAccount2.vue

+ 3 - 4
components/cancelBlood/cancelBlood.vue

@@ -64,7 +64,7 @@
64
           bloodIds: this.coopData.children.map(v => v.children).flat().map(v => v.id).toString(),
64
           bloodIds: this.coopData.children.map(v => v.children).flat().map(v => v.id).toString(),
65
           closeOrder: this.isShowTips ? 1 : 0,
65
           closeOrder: this.isShowTips ? 1 : 0,
66
           handoverUser: data.accountId,
66
           handoverUser: data.accountId,
67
-          cancelReason: data.cancelReason.id,
67
+          cancelReason: data.cancelReason,
68
         };
68
         };
69
       
69
       
70
         post('/transflow/extra', postData).then(res => {
70
         post('/transflow/extra', postData).then(res => {
@@ -186,14 +186,13 @@
186
       showSelectAccount2(isShowTips = false) {
186
       showSelectAccount2(isShowTips = false) {
187
         this.isShowTips = isShowTips;
187
         this.isShowTips = isShowTips;
188
         this.hosModels2 = {
188
         this.hosModels2 = {
189
-          content: `请填写取消原因和交接人信息`,
189
+          content: `请填写取消送血原因和交接人信息`,
190
           disjunctor: true,
190
           disjunctor: true,
191
-          tips: isShowTips ? '本患者取消血后,工单将关闭!' : '',
191
+          tips: isShowTips ? '本患者取消血后,工单将关闭!' : '',
192
         };
192
         };
193
       },
193
       },
194
       // 取消发血
194
       // 取消发血
195
       selectAccountHandler(data, index){
195
       selectAccountHandler(data, index){
196
-        console.log(this.cancelBlood)
197
         if(this.cancelBlood != 1 || !this.signType4){
196
         if(this.cancelBlood != 1 || !this.signType4){
198
           return;
197
           return;
199
         }
198
         }

+ 29 - 10
components/selectAccount2/selectAccount2.vue

@@ -5,19 +5,19 @@
5
         提示
5
         提示
6
       </view>
6
       </view>
7
       <view class="changeHospital__article">
7
       <view class="changeHospital__article">
8
-        <view class="uni-list-cell content" v-show="content">
8
+        <view class="uni-list-cell content red size-30" v-show="content">
9
           {{content}}
9
           {{content}}
10
         </view>
10
         </view>
11
-        <view class="uni-list-cell content red" v-show="tips">
11
+        <view class="uni-list-cell content red size-32" v-show="tips">
12
           {{tips}}
12
           {{tips}}
13
         </view>
13
         </view>
14
         <view class="uni-list-cell">
14
         <view class="uni-list-cell">
15
           <view class="uni-list-cell-left">
15
           <view class="uni-list-cell-left">
16
             <text class="red">*</text>取消原因:
16
             <text class="red">*</text>取消原因:
17
           </view>
17
           </view>
18
-          <view class="uni-list-cell-db">
18
+          <view class="uni-list-cell-db" v-if="cancelReason.length">
19
             <picker @change="changeCancelReason" :value="cancelReasonIndex" :range="cancelReason" range-key="name">
19
             <picker @change="changeCancelReason" :value="cancelReasonIndex" :range="cancelReason" range-key="name">
20
-              <view class="uni-input">{{cancelReason[cancelReasonIndex].name}}</view>
20
+              <view class="uni-input">{{cancelReason[cancelReasonIndex] ? cancelReason[cancelReasonIndex].name : '请选择'}}</view>
21
             </picker>
21
             </picker>
22
           </view>
22
           </view>
23
         </view>
23
         </view>
@@ -102,8 +102,8 @@
102
         account: '', //交接人工号
102
         account: '', //交接人工号
103
         accountName: '', //交接人姓名
103
         accountName: '', //交接人姓名
104
         accountId: '' ,//交接人ID
104
         accountId: '' ,//交接人ID
105
-        cancelReasonIndex: 0,
106
-        cancelReason: [{id: 1, name: '输血科取消'}, {id: 2, name: '临时取消'}],
105
+        cancelReasonIndex: null,
106
+        cancelReason: [],
107
       };
107
       };
108
     },
108
     },
109
     watch: {
109
     watch: {
@@ -153,6 +153,15 @@
153
       },
153
       },
154
     },
154
     },
155
     methods: {
155
     methods: {
156
+			// 获取取消原因字典
157
+			getCancelDic(){
158
+				post('/common/common/getDictionary', {
159
+					"type": "list",
160
+					"key": "blood_trans_cancel_reason"
161
+				}).then(res => {
162
+					this.cancelReason = res;
163
+				})
164
+			},
156
       // 修改取消原因
165
       // 修改取消原因
157
       changeCancelReason(e){
166
       changeCancelReason(e){
158
         this.cancelReasonIndex = e.detail.value;
167
         this.cancelReasonIndex = e.detail.value;
@@ -200,7 +209,7 @@
200
           e.accountId = this.accountId;
209
           e.accountId = this.accountId;
201
         }
210
         }
202
         if (this.cancelReason[this.cancelReasonIndex]) {
211
         if (this.cancelReason[this.cancelReasonIndex]) {
203
-          e.cancelReason = this.cancelReason[this.cancelReasonIndex];
212
+          e.cancelReason = this.cancelReason[this.cancelReasonIndex].id;
204
         }
213
         }
205
         this.$emit("ok", e);
214
         this.$emit("ok", e);
206
       },
215
       },
@@ -210,6 +219,7 @@
210
       },
219
       },
211
     },
220
     },
212
     created() {
221
     created() {
222
+			this.getCancelDic()
213
       this.hosId = uni.getStorageSync('userData').user.currentHospital.id;
223
       this.hosId = uni.getStorageSync('userData').user.currentHospital.id;
214
     }
224
     }
215
   };
225
   };
@@ -236,11 +246,12 @@
236
       
246
       
237
       &.content{
247
       &.content{
238
         justify-content: center;
248
         justify-content: center;
239
-        color: #000;
249
+        color: red;
240
         margin-top: 0;
250
         margin-top: 0;
241
         font-weight: bold;
251
         font-weight: bold;
252
+				margin-bottom: 10rpx;
242
       }
253
       }
243
-
254
+			
244
       .uni-list-cell-left {
255
       .uni-list-cell-left {
245
         flex: 3;
256
         flex: 3;
246
         font-size: 32rpx;
257
         font-size: 32rpx;
@@ -291,7 +302,15 @@
291
         flex-direction: column;
302
         flex-direction: column;
292
         justify-content: center;
303
         justify-content: center;
293
         align-items: center;
304
         align-items: center;
294
-
305
+				
306
+				.size-30{
307
+					font-size: 30rpx;
308
+				}
309
+				
310
+				.size-32{
311
+					font-size: 32rpx;
312
+				}
313
+				
295
         &.p0 {
314
         &.p0 {
296
           padding: 0;
315
           padding: 0;
297
         }
316
         }