lxf vor 1 Jahr
Ursprung
Commit
225bda6083

+ 1 - 0
src/components/process/PurchasePayment.vue

@@ -194,6 +194,7 @@ const formConfig = computed(() => {
       required: true,
       itemType: "text",
       disabled: true,
+      itemWidth: 50,
     },
     {
       label: "收款信息",

+ 11 - 6
src/views/finance/fundManage/depExpenses/index.vue

@@ -21,7 +21,7 @@
         </template>
       </byTable>
     </div>
-    <el-dialog title="拆分" v-model="dialogVisible" width="800" v-loading="loading">
+    <el-dialog title="拆分" v-if="dialogVisible" v-model="dialogVisible" width="800" v-loading="loading">
       <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit">
         <template #money>
           <div style="width: 100%">
@@ -102,7 +102,8 @@
         <el-button type="primary" @click="submitForm()" size="large" :loading="submitLoading"> 确 定 </el-button>
       </template>
     </el-dialog>
-    <el-dialog title="调整部门" v-model="depModal" width="600" v-loading="loading">
+
+    <el-dialog title="调整部门" v-if="depModal" v-model="depModal" width="600" v-loading="loading">
       <p>部门名称</p>
       <el-cascader
         v-model="departmentId"
@@ -428,10 +429,14 @@ const getDtl = (row) => {
   modalType.value = "edit";
   dialogVisible.value = true;
   proxy.post("/accountDeptRunningWaterDetail/detail", { id: row.id }).then((res) => {
-    res.accountDeptRunningWaterDetailList = res.deptRunningWaterDetailList.map((item) => {
-      item.deptId = [item.deptId];
-      return item;
-    });
+    if (res.deptRunningWaterDetailList && res.deptRunningWaterDetailList.length > 0) {
+      res.accountDeptRunningWaterDetailList = res.deptRunningWaterDetailList.map((item) => {
+        item.deptId = [item.deptId];
+        return item;
+      });
+    } else {
+      res.accountDeptRunningWaterDetailList = [];
+    }
     formData.data = res;
     dialogVisible.value = true;
   });