Przeglądaj źródła

修改调度费用上传失败问题

caojunjie 3 lat temu
rodzic
commit
c90fab4133

+ 9 - 5
src/views/landTransportation/dispatchingCars/detailPage.vue

@@ -1710,11 +1710,15 @@ export default {
     },
     //打开附件
     annexOpen(row, index) {
-      this.enclosure = true
-      this.formAnnex = row
-      getFee({id: row.id}).then(res => {
-        this.orderList = res.data.data
-      })
+      if(row.id){
+        this.enclosure = true
+        this.formAnnex = row
+        getFee({id: row.id}).then(res => {
+          this.orderList = res.data.data
+        })
+      }else {
+        this.$message.error('请保存后再上传附件');
+      }
     },
     //保存
     saveAnnex() {