소스 검색

feature:调整预约,增加经费卡

liuzhenlin 1 개월 전
부모
커밋
e2d8abcf94
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      src/view/instr/appoint.vue

+ 6 - 6
src/view/instr/appoint.vue

@@ -62,7 +62,7 @@
             :rules="[{ required: true, message: '服务不能为空' }]"
           >
           </van-field>
-          <!-- <van-field
+          <van-field
             v-if="state.form.projectType == 'project'"
             label="经费卡"
             placeholder="经费卡"
@@ -70,7 +70,7 @@
             readonly
             @click="state.showExpenseCard = true"
             v-model="state.form.expenseCardName"
-          ></van-field> -->
+          ></van-field>
           <van-field
             label="预约人"
             placeholder="预约人"
@@ -226,10 +226,10 @@
     const [err, res]: ToResponse = await to(projApi.getFinanceAccountList({ projId: state.form.projectId }))
     if (err) return
     fundsList.value = res?.data.list ? [res?.data.list] : []
-    // if (fundsList.value && fundsList.value.length > 0 && fundsList.value[0].length > 0) {
-    //   state.form.expenseCardId = fundsList.value[0][0].id
-    //   state.form.expenseCardName = fundsList.value[0][0].finAccount
-    // }
+    if (fundsList.value && fundsList.value.length > 0 && fundsList.value[0].length > 0) {
+      state.form.expenseCardId = fundsList.value[0][0].id
+      state.form.expenseCardName = fundsList.value[0][0].finAccount
+    }
   }
   // 预约人选择
   const pickAppointUser = ({ selectedOptions }) => {