Przeglądaj źródła

修改查改按钮报错

lichao 3 lat temu
rodzic
commit
f728f20145
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      src/views/warehouseBusiness/agreement/index.vue

+ 4 - 1
src/views/warehouseBusiness/agreement/index.vue

@@ -1022,7 +1022,10 @@ export default {
       this.register()
       getAgreement(row.fId).then(response => {
         // this.$set(this,'fMblnoOptions',response.data.corps)
-        this.deptName = response.data.dept.deptName
+        if (response.data.dept) {
+          this.deptName = response.data.dept.deptName
+        }
+
         this.form = response.data.tWarehouseAgreement
         if (response.data.attachList) {
           this.relevantAttachments = response.data.attachList