|
@@ -199,7 +199,7 @@
|
|
|
<view class="cancelButton" @click="closeSelectServiceObjectPopup">
|
|
<view class="cancelButton" @click="closeSelectServiceObjectPopup">
|
|
|
<text>取消</text>
|
|
<text>取消</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="confirmButton" @click="confirm(serviceObjectList[selectServiceObjectIndex].id)">
|
|
|
|
|
|
|
+ <view class="confirmButton" @click="confirm(serviceObjectList[selectServiceObjectIndex])">
|
|
|
<text>确定</text>
|
|
<text>确定</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -416,7 +416,15 @@ export default {
|
|
|
// console.log(e)
|
|
// console.log(e)
|
|
|
// this.serviceObjectId = e.value[0].id
|
|
// this.serviceObjectId = e.value[0].id
|
|
|
console.log(e)
|
|
console.log(e)
|
|
|
- this.serviceObjectId = e
|
|
|
|
|
|
|
+ if(!e){
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ duration: 2000,
|
|
|
|
|
+ title: '请选择一个服务对象',
|
|
|
|
|
+ icon: 'none'
|
|
|
|
|
+ });
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.serviceObjectId = e.id
|
|
|
// this.show = false
|
|
// this.show = false
|
|
|
this.$refs.popup.close()
|
|
this.$refs.popup.close()
|
|
|
this.commitOrder()
|
|
this.commitOrder()
|