Commit f9b4a97c authored by youjie's avatar youjie

no message

parent 07d127f8
...@@ -575,12 +575,14 @@ ...@@ -575,12 +575,14 @@
</div> </div>
</div> </div>
<div class="right-Submit"> <div class="right-Submit">
<button v-if="!isCheck" class="hollowFixedBtn" type="primary"> <!-- <el-button v-if="!isCheck" class="hollowFixedBtn" type="primary">
提交订单 提交订单
</button> </el-button> -->
<button v-else class="normalBtn" type="primary" @click="submit"> <el-button :disabled="!isCheck"
:loading="loading"
class="normalBtn" type="primary" @click="submit">
提交订单 提交订单
</button> </el-button>
</div> </div>
</div> </div>
<!-- 选择地址 --> <!-- 选择地址 -->
...@@ -755,6 +757,7 @@ ...@@ -755,6 +757,7 @@
this.msg.Num = x.num this.msg.Num = x.num
} }
}) })
this.loading = true
this.apipost("CarSingle_post_SetSaleCarOrder", this.msg, this.apipost("CarSingle_post_SetSaleCarOrder", this.msg,
res => { res => {
this.loading = false; this.loading = false;
...@@ -832,7 +835,9 @@ ...@@ -832,7 +835,9 @@
} }
if(i==3){ if(i==3){
this.types.forEach(x=>{ this.types.forEach(x=>{
if(x.Id!=e.Id){
x.checked = false x.checked = false
}
}) })
if (e.checked) { if (e.checked) {
e.num = 1 e.num = 1
...@@ -841,8 +846,8 @@ ...@@ -841,8 +846,8 @@
let types = this.types.filter(x => x.checked) let types = this.types.filter(x => x.checked)
if(types&&types[0]){ if(types&&types[0]){
this.msg.CarId = types[0].Id this.msg.CarId = types[0].Id
}
this.getQuotation() this.getQuotation()
}
this.isCheck = this.types.findIndex(x => x.checked) > -1 this.isCheck = this.types.findIndex(x => x.checked) > -1
} }
...@@ -861,7 +866,10 @@ ...@@ -861,7 +866,10 @@
}, },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let newData = res.data.data.filter(x=>x.Date==this.SetOutTime) let SetOutTime = this.SetOutTime.length>9?this.SetOutTime.slice(0,10):this.SetOutTime
// console.log(SetOutTime,'=====')
let newData = res.data.data.filter(x=>x.Date==SetOutTime)
console.log(newData,'=======0000')
let types = this.types.filter(x => x.checked) let types = this.types.filter(x => x.checked)
newData.length>0&&this.types.forEach((item,index) => { newData.length>0&&this.types.forEach((item,index) => {
if(this.msg.CarId==item.Id&&newData[0].Price){ if(this.msg.CarId==item.Id&&newData[0].Price){
...@@ -871,11 +879,7 @@ ...@@ -871,11 +879,7 @@
item.B2BPrice = 0.0 item.B2BPrice = 0.0
} }
}); });
if(this.isCheck){
this.calcMoneyHandler() this.calcMoneyHandler()
}else{
this.msg.Money=0.0
}
} }
}) })
...@@ -1007,4 +1011,3 @@ ...@@ -1007,4 +1011,3 @@
}; };
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment