监护人维护幼儿信息
This commit is contained in:
@ -61,6 +61,15 @@ export function updateChild(data) {
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幼儿信息
|
||||
export function updateChild_jz(data) {
|
||||
return request({
|
||||
url: '/benyi/child/edit',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幼儿信息
|
||||
export function updateChild_tb(data, id) {
|
||||
return request({
|
||||
|
@ -44,6 +44,15 @@ export function updateContactpeople(data) {
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幼儿紧急情况联系人
|
||||
export function updateContactpeople_jz(data) {
|
||||
return request({
|
||||
url: '/benyi/contactpeople/edit',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除幼儿紧急情况联系人
|
||||
export function delContactpeople(id) {
|
||||
return request({
|
||||
|
@ -176,6 +176,7 @@ export default {
|
||||
},
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.tableData = [];
|
||||
if (this.queryParams.month == "") {
|
||||
this.queryParams.month = this.month;
|
||||
}
|
||||
@ -271,7 +272,7 @@ export default {
|
||||
}
|
||||
if (res.indexOf("%") != -1) {
|
||||
// console.log(res.split("%")[0]);
|
||||
sum = sum + parseInt(res.split("%")[0])/100;
|
||||
sum = sum + parseInt(res.split("%")[0]) / 100;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -308,14 +308,10 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getChild_query, updateChild } from "@/api/benyi/child";
|
||||
import { getChild_query, updateChild_jz } from "@/api/benyi/child";
|
||||
import {
|
||||
listContactpeople,
|
||||
getContactpeople,
|
||||
getContactpeopleByChildId,
|
||||
delContactpeople,
|
||||
addContactpeople,
|
||||
updateContactpeople,
|
||||
updateContactpeople_jz,
|
||||
} from "@/api/benyi/contactpeople";
|
||||
|
||||
import { listClass } from "@/api/system/class";
|
||||
@ -462,10 +458,10 @@ export default {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateChild(this.form).then(response => {
|
||||
updateChild_jz(this.form).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.form_jhr.childid = this.form.id;
|
||||
updateContactpeople(this.form_jhr).then(response => {
|
||||
updateContactpeople_jz(this.form_jhr).then(response => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
// this.hide = false;
|
||||
|
Reference in New Issue
Block a user