소스 검색

Finish Hotfix-zh-307

howie 2 년 전
부모
커밋
88c9898ffa
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      src/views/supply/policy/components/retail_form.vue

+ 7 - 5
src/views/supply/policy/components/retail_form.vue

@@ -871,11 +871,6 @@ export default {
     this.getWarehouseList()
     this.getTypeList()
     this.getUserList()
-    if (this.websitNumber === 'GZ') {
-      this.mainForm.isPlanOrder = false
-    } else if (this.websitNumber === 'FS') {
-      this.mainForm.isPlanOrder = true
-    }
 
     if (this.listItem) {
       this.getDetail()
@@ -1001,6 +996,13 @@ export default {
         return k.code === e
       })[0]
       this.commercialType = policy.commercialType
+      if (this.commercialType) {
+        if (this.websitNumber === 'GZ') {
+          this.mainForm.isPlanOrder = false
+        } else if (this.websitNumber === 'FS') {
+          this.mainForm.isPlanOrder = true
+        }
+      }
       console.log(policy.type)
       if (policy.type == 'PROVISION') {
         // PROVISION 配提