diff --git a/src/views/secondHandCar/sellingInfo.vue b/src/views/secondHandCar/sellingInfo.vue index f395fc55..f6b90cc0 100644 --- a/src/views/secondHandCar/sellingInfo.vue +++ b/src/views/secondHandCar/sellingInfo.vue @@ -169,11 +169,12 @@ export default { }, methods:{ onConfirm(data) { + console.log("data",data) this.time = timeFormat(new Date(data)) - if (this.form.salesChannel==1 || this.form.salesChannel==2){ - this.form.tradeTime = timeFormat(new Date(data)) - }else if(this.form.salesChannel==3){ + if (this.form.salesChannel==3){ this.form.scrapTime = timeFormat(new Date(data)) + }else{ + this.form.tradeTime = timeFormat(new Date(data)) } console.log("tradeTime",this.form.tradeTime) console.log("scrapTime",this.form.scrapTime)