소스 검색

fix: 客户管理支付方式默认值

lyc 3 주 전
부모
커밋
fa1db50484
1개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  1. 9 3
      src/views/customer/edit.vue

+ 9 - 3
src/views/customer/edit.vue

@@ -658,6 +658,15 @@ export default {
           var today = this.addDays(new Date(), 0)
           this.dto.CooperationTime = this.DateFormat(today, 'yyyy-MM-dd')
         }
+        _getPayTypeList().then((res) => {
+          this.PayTypeList = res
+          if (res && res.length > 0) {
+            const checkPayIdList = res.map(item => item.Value)
+            this.checkPayIdList = checkPayIdList
+            const PayIdList = checkPayIdList.join(',') || null
+            this.$set(this.dto, 'PayIdList', PayIdList)
+          }
+        })
       })
     _getDockingPlatform().then((response) => {
       this.Dockingplatform = response
@@ -706,9 +715,6 @@ export default {
       this.BillDownloadUrlList = res
     })
 
-    _getPayTypeList().then((res) => {
-      this.PayTypeList = res
-    })
   },
   methods: {
     companyPossesChanged(e) {},