|
@@ -14,7 +14,7 @@
|
|
|
<view class="label">客户地址:</view>
|
|
|
<view class="value">{{ detail.address }}</view>
|
|
|
</view>
|
|
|
- <view class="row">
|
|
|
+ <view class="row" v-if="isShow && !!workerList.length">
|
|
|
<view class="label">选择小工:</view>
|
|
|
<view class="value price">
|
|
|
<checkbox-group @change="changeXz" style="width: 100%">
|
|
@@ -28,10 +28,19 @@
|
|
|
</checkbox-group>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="row" v-if="isShow && !workerList.length">
|
|
|
+ <view v-if="detail.needSlave">您当前没有组队小工,此单必须要选小工</view>
|
|
|
+ <view v-else>您当前没有组队小工</view>
|
|
|
+ </view>
|
|
|
<view class="kakakakak">
|
|
|
<u-button text="取消"></u-button>
|
|
|
<view style="min-width: 30rpx" @click="quxiao"></view>
|
|
|
- <u-button type="primary" text="确认接收" @click="querenss"></u-button>
|
|
|
+ <u-button
|
|
|
+ v-if="detail.needSlave ? !!workerList.length : true"
|
|
|
+ type="primary"
|
|
|
+ text="确认接收"
|
|
|
+ @click="querenss"
|
|
|
+ ></u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -55,6 +64,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ isShow: false,
|
|
|
workerList: [],
|
|
|
checkboxValues: []
|
|
|
}
|
|
@@ -70,6 +80,7 @@ export default {
|
|
|
orderBaseId: this?.detail?.id
|
|
|
})
|
|
|
.then(res => {
|
|
|
+ this.isShow = true
|
|
|
this.workerList = res.data
|
|
|
})
|
|
|
}
|