|
|
|
@ -168,7 +168,7 @@ |
|
|
|
|
<el-input v-model="form.appointmentPeoplePhone" disabled="true" placeholder="请输入预约人手机号"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="isEdit" label="预约人数"> |
|
|
|
|
{{ form.newList ? form.newList.length : 0 }} |
|
|
|
|
{{ form.newList ? form.newList.length : 0 }}人 |
|
|
|
|
<!-- <el-input v-model="form.newList?form.newList.length:0" disabled="true" placeholder="请输入号" />--> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item v-if="isEdit" label="提交时间"> |
|
|
|
@ -233,8 +233,8 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="备注" prop="remark" width="330"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<el-form-item label-width="0" style="margin-bottom: 0 !important;"> |
|
|
|
|
<template slot-scope="scope" > |
|
|
|
|
<el-form-item label-width="0" style="margin-bottom: 0 !important;"> |
|
|
|
|
<el-input v-model="scope.row.remark"> |
|
|
|
|
</el-input> |
|
|
|
|
</el-form-item> |
|
|
|
@ -306,6 +306,7 @@ export default { |
|
|
|
|
detail: false, |
|
|
|
|
index: 0, |
|
|
|
|
appointmentteamdataLists: [], |
|
|
|
|
waitingDelete:[], |
|
|
|
|
baseUrl: process.env.VUE_APP_BASE_API, |
|
|
|
|
// 遮罩层 |
|
|
|
|
loading: true, |
|
|
|
@ -451,6 +452,7 @@ export default { |
|
|
|
|
organCode: null |
|
|
|
|
}; |
|
|
|
|
this.appointmentteamdataLists = [] |
|
|
|
|
this.waitingDelete = [] |
|
|
|
|
this.resetForm("form"); |
|
|
|
|
}, |
|
|
|
|
/** 搜索按钮操作 */ |
|
|
|
@ -575,11 +577,29 @@ export default { |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.delAppointmentteamdatas(ids) |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: '删除成功!' |
|
|
|
|
}); |
|
|
|
|
// this.delAppointmentteamdatas(ids) |
|
|
|
|
// this.$message({ |
|
|
|
|
// type: 'success', |
|
|
|
|
// message: '删除成功!' |
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
|
this_.appointmentteamdataLists.forEach(item=>{ |
|
|
|
|
|
|
|
|
|
if (item.id == ids){ |
|
|
|
|
let obj = { |
|
|
|
|
appointmentForm:item.appointmentForm, |
|
|
|
|
certificateType:item.certificateType, |
|
|
|
|
dataState:'d', |
|
|
|
|
documentsNumber:item.documentsNumber, |
|
|
|
|
id:item.id, |
|
|
|
|
name:item.name, |
|
|
|
|
phone:item.phone, |
|
|
|
|
remark:item.remark, |
|
|
|
|
} |
|
|
|
|
this_.waitingDelete.push(obj) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
console.log(this_.waitingDelete,'假山'); |
|
|
|
|
let list_ = this_.appointmentteamdataLists; |
|
|
|
|
let index_ = list_.findIndex(iten => iten.id == row.id); |
|
|
|
|
list_.splice(index_, 1); |
|
|
|
@ -645,9 +665,12 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 处理多人数据 |
|
|
|
|
handlePeople() { |
|
|
|
|
|
|
|
|
|
this.form.newList = this.appointmentteamdataLists |
|
|
|
|
this.form.appointmentPeopleCount = this.appointmentteamdataLists.length |
|
|
|
|
let this_ = this |
|
|
|
|
this_.form.newList = this_.appointmentteamdataLists |
|
|
|
|
if (this_.waitingDelete&&this_.waitingDelete.length>0){ |
|
|
|
|
this_.form.newList=[...this_.form.newList,...this_.waitingDelete] |
|
|
|
|
} |
|
|
|
|
this_.form.appointmentPeopleCount = this_.appointmentteamdataLists.length |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|