sc
This commit is contained in:
@@ -92,13 +92,13 @@ defineExpose({
|
||||
const form = ref({})
|
||||
function resetForm(id) {
|
||||
form.value = {
|
||||
signId: id,
|
||||
signOrderId: id,
|
||||
extraPay: []
|
||||
}
|
||||
}
|
||||
|
||||
function getFormList() {
|
||||
getSignExtraPayList({ id: form.value.signId }).then((data) => {
|
||||
getSignExtraPayList({ id: form.value.signOrderId }).then((data) => {
|
||||
form.value.extraPay = data.map((it) => ({
|
||||
...it,
|
||||
editabled: false
|
||||
@@ -122,7 +122,7 @@ async function onSubmit() {
|
||||
formLoading.value = true
|
||||
try {
|
||||
const params = {
|
||||
signId: form.value.signId,
|
||||
signOrderId: form.value.signOrderId,
|
||||
extraPay: form.value.extraPay.filter((it) => it.editabled)
|
||||
}
|
||||
await signAddPay(params)
|
||||
|
||||
@@ -284,7 +284,7 @@ async function cancelDeal(row) {
|
||||
|
||||
const extraFeeDialog = ref()
|
||||
function handleAddFee(row) {
|
||||
extraFeeDialog.value.open(row.signId)
|
||||
extraFeeDialog.value.open(row.signOrderId)
|
||||
}
|
||||
|
||||
async function getOptions() {
|
||||
|
||||
Reference in New Issue
Block a user