|
|
|
|
@ -67,6 +67,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:footer>
|
|
|
|
|
<template v-if="form.id">
|
|
|
|
|
<Poptip
|
|
|
|
|
:transfer="true"
|
|
|
|
|
confirm
|
|
|
|
|
@ -74,6 +75,7 @@
|
|
|
|
|
@on-ok="destroySchedule">
|
|
|
|
|
<Button type="primary" ghost>删除</Button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
</template>
|
|
|
|
|
<Button @click="$emit('update:isShow',false)" style="margin-left: 8px">取消</Button>
|
|
|
|
|
<Button type="primary" @click="submit">确认</Button>
|
|
|
|
|
</template>
|
|
|
|
|
@ -176,6 +178,20 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
initForm(){
|
|
|
|
|
this.form = {
|
|
|
|
|
id:'',
|
|
|
|
|
customer_id: '',
|
|
|
|
|
product_id: '',
|
|
|
|
|
order_id: '',
|
|
|
|
|
nurse_id: '',
|
|
|
|
|
address_id:'',
|
|
|
|
|
start_time: '',
|
|
|
|
|
end_time: '',
|
|
|
|
|
schedule_list_skus: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
nurseLoad(){
|
|
|
|
|
this.nurseSelect.page ++
|
|
|
|
|
this.getNurses()
|
|
|
|
|
@ -202,11 +218,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
startTimePick(e){
|
|
|
|
|
this.form.start_time = `${this.date} ${e}`
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
},
|
|
|
|
|
endTimePick(e){
|
|
|
|
|
this.form.end_time = `${this.date} ${e}`
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// handleCheckAllChange(val){
|
|
|
|
|
@ -246,8 +260,8 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
this.form.schedule_list_skus = temp
|
|
|
|
|
this.$refs['elForm'].validate().then(valid => {
|
|
|
|
|
console.log(valid)
|
|
|
|
|
if (valid) {
|
|
|
|
|
console.log(1111,this.form)
|
|
|
|
|
scheduleSave(this.form).then(res => {
|
|
|
|
|
this.$successMessage('add', '排班')
|
|
|
|
|
this.$emit('update:isShow', false)
|
|
|
|
|
@ -283,9 +297,8 @@ export default {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.$emit('update:date','')
|
|
|
|
|
this.$refs['elForm'].resetFields()
|
|
|
|
|
this.$refs['table'].clearSelection()
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
this.initForm()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|