|
@@ -49,9 +49,9 @@
|
49
|
49
|
<view class="foot_btn_spe" v-if="config.id">
|
50
|
50
|
<view class="column">
|
51
|
51
|
<!-- 需要核对 -->
|
52
|
|
- <template v-if="config.drugsStartCheck === 1">
|
|
52
|
+ <template v-if="(queryObj.type === 'build' || queryObj.type === 'receive') && (config.drugsCreateSign === 1 || config.drugsReceiveSign === 1) && config.drugsStartCheck === 1">
|
53
|
53
|
<!-- 两个按钮-样式 设计如此,别BB -->
|
54
|
|
- <template v-if="(queryObj.type === 'build' || queryObj.type === 'receive') && (config.drugsCreateSign === 1 || config.drugsReceiveSign === 1) && !config.drugsStartManual">
|
|
54
|
+ <template v-if="!config.drugsStartManual">
|
55
|
55
|
<view class="btn" @click="goIndex()">返回</view>
|
56
|
56
|
<view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
|
57
|
57
|
<view class="btn" @click="createOrBuildOrder(undefined, 'hand')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1 && config.drugsStartManual">建单签到{{config.drugsStartManual.name}}</view>
|
|
@@ -60,7 +60,7 @@
|
60
|
60
|
</template>
|
61
|
61
|
|
62
|
62
|
<!-- 三个按钮-样式 设计如此,别BB -->
|
63
|
|
- <template v-else-if="(queryObj.type === 'build' || queryObj.type === 'receive') && (config.drugsCreateSign === 1 || config.drugsReceiveSign === 1) && config.drugsStartManual">
|
|
63
|
+ <template v-else>
|
64
|
64
|
<view class="btn" @click="createOrBuildOrder(undefined, 'scan')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单签到扫一扫</view>
|
65
|
65
|
<view class="btn" @click="createOrBuildOrder(undefined, 'hand')" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1 && config.drugsStartManual">建单签到{{config.drugsStartManual.name}}</view>
|
66
|
66
|
<view class="btn" @click="createOrBuildOrder(orderId, 'scan')" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单签到扫一扫</view>
|
|
@@ -69,8 +69,8 @@
|
69
|
69
|
</template>
|
70
|
70
|
</template>
|
71
|
71
|
<!-- 不需要核对 -->
|
72
|
|
- <template v-if="config.drugsStartCheck !== 1">
|
73
|
|
- <view class="btn" @click="goIndex()">返回</view>
|
|
72
|
+ <template v-if="(queryObj.type === 'build' || queryObj.type === 'receive') && config.drugsStartCheck !== 1">
|
|
73
|
+ <view :class="((queryObj.type === 'build' && config.drugsCreateSign === 1) || (queryObj.type === 'receive' && config.drugsReceiveSign === 1)) ? 'btn' : 'btnW100'" @click="goIndex()">返回</view>
|
74
|
74
|
<view class="btn" @click="createOrBuildOrder()" v-if="queryObj.type === 'build' && config.drugsCreateSign === 1">建单并签到</view>
|
75
|
75
|
<view class="btn" @click="createOrBuildOrder(orderId)" v-if="queryObj.type === 'receive' && config.drugsReceiveSign === 1">接单并签到</view>
|
76
|
76
|
</template>
|
|
@@ -481,10 +481,24 @@
|
481
|
481
|
uni.hideLoading();
|
482
|
482
|
if (ress.state == 200) {
|
483
|
483
|
if(ress.data.msg){
|
484
|
|
- uni.showToast({
|
485
|
|
- icon: "none",
|
486
|
|
- title: ress.data.msg || "接口获取数据失败!",
|
487
|
|
- });
|
|
484
|
+ if(ress.data.state == 502){
|
|
485
|
+ // 工单已建单,返回列表
|
|
486
|
+ uni.showToast({
|
|
487
|
+ icon: "none",
|
|
488
|
+ mask: true,
|
|
489
|
+ title: ress.data.msg,
|
|
490
|
+ });
|
|
491
|
+ setTimeout(() => {
|
|
492
|
+ uni.redirectTo({
|
|
493
|
+ url: `/pages/receiptpage/receiptpage`,
|
|
494
|
+ });
|
|
495
|
+ },300)
|
|
496
|
+ }else{
|
|
497
|
+ uni.showToast({
|
|
498
|
+ icon: "none",
|
|
499
|
+ title: ress.data.msg || "接口获取数据失败!",
|
|
500
|
+ });
|
|
501
|
+ }
|
488
|
502
|
}else{
|
489
|
503
|
this.workOrder = {
|
490
|
504
|
id: ress.data.orderId,
|
|
@@ -523,7 +537,7 @@
|
523
|
537
|
this.orderId = this.queryObj.orderId;
|
524
|
538
|
this.config = res.data.taskTypeConfig || {};
|
525
|
539
|
let tube = res.data.tube || [];
|
526
|
|
- this.tube = chunk(tube, 3);
|
|
540
|
+ this.tube = chunk(tube, 2);
|
527
|
541
|
}
|
528
|
542
|
}else{
|
529
|
543
|
uni.showToast({
|