|
@@ -193,8 +193,13 @@ export default {
|
|
|
this.equitys=[]
|
|
this.equitys=[]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this.id === ''){
|
|
|
|
|
|
|
+ if (!this.serviceProjectId){
|
|
|
uni.$u.toast("请选择服务项目")
|
|
uni.$u.toast("请选择服务项目")
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ let userEquityCardId
|
|
|
|
|
+ if (this.equitys.length>0){
|
|
|
|
|
+ userEquityCardId = this.equitys[0].id
|
|
|
}
|
|
}
|
|
|
this.$api.addChildProject({
|
|
this.$api.addChildProject({
|
|
|
orderId:this.orderId,
|
|
orderId:this.orderId,
|
|
@@ -202,7 +207,7 @@ export default {
|
|
|
servicePersonId:this.projects.personId,
|
|
servicePersonId:this.projects.personId,
|
|
|
serviceStationId:this.serviceStationId,
|
|
serviceStationId:this.serviceStationId,
|
|
|
couponIds:this.couponIds,
|
|
couponIds:this.couponIds,
|
|
|
- userEquityCardId:this.equitys[0].id
|
|
|
|
|
|
|
+ userEquityCardId:userEquityCardId
|
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url:'/orderPages/orderDetail/index?id='+ this.orderId
|
|
url:'/orderPages/orderDetail/index?id='+ this.orderId
|