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