Bläddra i källkod

11/25 16:51

111
mo 4 år sedan
förälder
incheckning
e83f0a0a4c

+ 6 - 3
src/views/businessManager/orderManager/orderAudit/orderAuditDetail.vue

@@ -228,7 +228,8 @@ export default {
         memo: ''
       },
       auditStatus: '',
-      orderServerList: orderServerList
+      orderServerList: orderServerList,
+      clearSchool: false
     }
   },
   mounted () {
@@ -255,8 +256,8 @@ export default {
           }
           this.auditStatus = orderInfo.auditStatus
           this.$set(this.form, 'goodsList', this.getShopList(orderInfo.goodsJson))
-          console.log(this.form)
           this.changeOrgin(orderInfo.routeOrganId)
+          this.clearSchool = true;
         }
       })
     }
@@ -264,8 +265,10 @@ export default {
   },
   methods: {
     changeOrgin (val) {
-      // this.$set(this.form, 'schoolId', null)
       if (val) {
+        if (this.clearSchool) {
+          this.$set(this.form, 'schoolId', null)
+        }
         getCooperation({ rows: 9999, organId: val }).then(res => {
           if (res.code === 200) {
             this.cooperationList = res.data.rows