|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <hc-new-dialog is-table widths="90%" :show="isShow" title="变更清单添加" @save="addModalSave" @close="addModalClose">
|
|
|
|
|
|
+ <hc-new-dialog is-table widths="90%" :show="isShow" title="变更清单添加" :loading="addSaveLoad" @save="addModalSave" @close="addModalClose">
|
|
<hc-card-item>
|
|
<hc-card-item>
|
|
<template #header>
|
|
<template #header>
|
|
<div class="w-60">
|
|
<div class="w-60">
|
|
@@ -113,13 +113,16 @@ const tableCheckChange = (rows) => {
|
|
}
|
|
}
|
|
|
|
|
|
//保存
|
|
//保存
|
|
|
|
+const addSaveLoad = ref(false)
|
|
const addModalSave = async () => {
|
|
const addModalSave = async () => {
|
|
const ids = arrToKey(tableCheck.value, 'id')
|
|
const ids = arrToKey(tableCheck.value, 'id')
|
|
|
|
+ addSaveLoad.value = true
|
|
const { error, code, msg, data } = await mainApi.getSelectForm({
|
|
const { error, code, msg, data } = await mainApi.getSelectForm({
|
|
ids: ids,
|
|
ids: ids,
|
|
nodeId: props.treeId,
|
|
nodeId: props.treeId,
|
|
contractId: props.contractId,
|
|
contractId: props.contractId,
|
|
})
|
|
})
|
|
|
|
+ addSaveLoad.value = false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
addModalClose()
|
|
addModalClose()
|
|
emit('finish', getArrValue(data))
|
|
emit('finish', getArrValue(data))
|