gongchunyi
10 天以前 4c5d743a929942f784a8b1899b8a65f55722f8c1
src/views/equipmentManagement/ledger/Modal.vue
@@ -37,10 +37,12 @@
const sendForm = () => {
   proxy.$refs.formRef.$refs.formRef.validate(async valid => {
      if (valid) {
         const {code} = id.value
         const res = id.value
            ? await editLedger({id: id.value, ...formRef.value.form})
            : await addLedger(formRef.value.form);
         if (code == 200) {
         if (res.code == 200) {
            const ledgerId = id.value || res.data;
            await proxy.$refs.formRef.submitFiles(ledgerId);
            emits("success");
            ElMessage({message: "操作成功", type: "success"});
            close();