|
|
|
|
@ -247,7 +247,7 @@
|
|
|
|
|
type="daterange"
|
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
|
@change="productPick"></el-date-picker>
|
|
|
|
|
@change="computedDate"></el-date-picker>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -749,8 +749,11 @@ export default {
|
|
|
|
|
this.pickedProduct = e
|
|
|
|
|
this.form1.product_id = e.id
|
|
|
|
|
this.form1.product_type_id = e.product_type_id
|
|
|
|
|
console.log(e)
|
|
|
|
|
if(this.form1.product_id && this.form1.date.length>0){
|
|
|
|
|
|
|
|
|
|
this.computedDate()
|
|
|
|
|
},
|
|
|
|
|
computedDate(){
|
|
|
|
|
if(this.form1.product_id && this.form1.date){
|
|
|
|
|
let times;
|
|
|
|
|
let t1= moment(this.form1.date[0])
|
|
|
|
|
let t2 = moment(this.form1.date[1])
|
|
|
|
|
@ -848,7 +851,7 @@ export default {
|
|
|
|
|
address: val[2],
|
|
|
|
|
lng: val[0],
|
|
|
|
|
lat: val[1],
|
|
|
|
|
default: 0,
|
|
|
|
|
default: this.form.customer_address_list.length === 0 ? 1 : 0,
|
|
|
|
|
comment: ''
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|