Compare commits

..

2 Commits

View File

@ -395,9 +395,9 @@ const handleAdd = () => {
case "people":
model.title = "新增人员";
model.content = PersonAddDialog;
peopleForm.value = { ...INIT_FORM_people };
Object.assign(peopleForm, INIT_FORM_people);
model.props = {
form: peopleForm.value,
form: peopleForm,
};
model.onConfirm = handleAddPeopleConfirm;
model.onCancel = handleCancel;
@ -427,7 +427,7 @@ const handleAdd = () => {
model.title = "新增设备";
model.content = EquipmentAddDialog;
//
equipmentForm.value = { ...INIT_FORM_equipment };
Object.assign(equipmentForm, INIT_FORM_equipment);
model.props = {
form: equipmentForm,
basicData: props.basicData,
@ -485,6 +485,10 @@ const handleAddMaterialConfirm = async () => {
//
const handleAddEquipmentConfirm = async () => {
try {
const data = {
equipment: toRaw(equipmentForm),
};
console.log("data", data);
const res = await request({
url: "/snow-ops-platform/yjsb/add",
method: "post",