Explorar el Código

变更令新增修改

duy hace 1 año
padre
commit
e9bbd74edf

+ 2 - 2
src/api/modules/alter/admin/order.js

@@ -45,8 +45,8 @@ export default {
     async getSelectForm(form, msg = false) {
         return HcApi({
             url: '/api/blade-meter/changeTokenForm/selectForm',
-            method: 'get',
-            params: form,
+            method: 'post',
+            data: form,
         }, msg)
     },
     //新增添加清单

+ 4 - 1
src/views/alter/admin/components/order/changeRequest.vue

@@ -1,5 +1,5 @@
 <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>
             <template #header>
                 <div class="w-60">
@@ -113,13 +113,16 @@ const tableCheckChange = (rows) => {
 }
 
 //保存
+const addSaveLoad = ref(false)
 const addModalSave = async () => {
     const ids = arrToKey(tableCheck.value, 'id')
+    addSaveLoad.value = true
     const { error, code, msg, data } = await mainApi.getSelectForm({
         ids: ids,
         nodeId: props.treeId,
         contractId: props.contractId,
     })
+    addSaveLoad.value = false
     if (!error && code === 200) {
         addModalClose()
         emit('finish', getArrValue(data))