|
|
|
|
@ -85,6 +85,10 @@ import {scheduleDelete, scheduleSave} from '@/api/schedule'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
flag:{
|
|
|
|
|
type:Boolean,
|
|
|
|
|
default:false
|
|
|
|
|
},//确认获取到数据才能提交
|
|
|
|
|
customerId: [Number, String],
|
|
|
|
|
orderId: [Number, String],
|
|
|
|
|
productId: [Number, String],
|
|
|
|
|
@ -244,6 +248,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
submit() {
|
|
|
|
|
if(this.flag){
|
|
|
|
|
this.form.customer_id = this.customerId
|
|
|
|
|
this.form.product_id = this.productId
|
|
|
|
|
this.form.order_id = this.orderId
|
|
|
|
|
@ -262,6 +267,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
destroySchedule(){
|
|
|
|
|
scheduleDelete({id:this.form.id}).then(res => {
|
|
|
|
|
|