diff --git a/src/views/oa_arrival/edit.vue b/src/views/oa_arrival/edit.vue index 10d0ebd..93a6e22 100644 --- a/src/views/oa_arrival/edit.vue +++ b/src/views/oa_arrival/edit.vue @@ -91,11 +91,25 @@
- 取消 - 确定 + 保存到账记录 + 重置 + 全部到账 +
+ + + + + + + + 确定 + 取消 + + @@ -107,6 +121,8 @@ import { apiInvliceLists, apiInvlicevAdd } from '@/api/oa_financial' import { defineEmits } from "vue" const popupRef = shallowRef>(); const emit = defineEmits(["success", "close"]); +const times = ref('') +const showDialog = ref(false) // 表单数据 @@ -164,6 +180,24 @@ const submit = async () => { const close = () => { emit("success"); } +const reset = () => { + detail.value = [{ + "amount": '', + "enter_time": "", + "remarks": "" + }] +} + +const allSubmits = async () => { + await apiInvlicevAdd( + { + invoice_id: formData.id, detail: [{ amount: formData.amount, enter_time: times.value, remarks: '' }] + } + ) + emit("success"); + + +} // 显示