Commit f9b4a97c authored by youjie's avatar youjie

no message

parent 07d127f8
......@@ -575,12 +575,14 @@
</div>
</div>
<div class="right-Submit">
<button v-if="!isCheck" class="hollowFixedBtn" type="primary">
<!-- <el-button v-if="!isCheck" class="hollowFixedBtn" type="primary">
提交订单
</button>
<button v-else class="normalBtn" type="primary" @click="submit">
</el-button> -->
<el-button :disabled="!isCheck"
:loading="loading"
class="normalBtn" type="primary" @click="submit">
提交订单
</button>
</el-button>
</div>
</div>
<!-- 选择地址 -->
......@@ -755,6 +757,7 @@
this.msg.Num = x.num
}
})
this.loading = true
this.apipost("CarSingle_post_SetSaleCarOrder", this.msg,
res => {
this.loading = false;
......@@ -832,7 +835,9 @@
}
if(i==3){
this.types.forEach(x=>{
if(x.Id!=e.Id){
x.checked = false
}
})
if (e.checked) {
e.num = 1
......@@ -841,8 +846,8 @@
let types = this.types.filter(x => x.checked)
if(types&&types[0]){
this.msg.CarId = types[0].Id
}
this.getQuotation()
}
this.isCheck = this.types.findIndex(x => x.checked) > -1
}
......@@ -861,7 +866,10 @@
},
res => {
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)
newData.length>0&&this.types.forEach((item,index) => {
if(this.msg.CarId==item.Id&&newData[0].Price){
......@@ -871,11 +879,7 @@
item.B2BPrice = 0.0
}
});
if(this.isCheck){
this.calcMoneyHandler()
}else{
this.msg.Money=0.0
}
}
})
......@@ -1007,4 +1011,3 @@
};
</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