瀏覽代碼

提交费用信息

caojunjie 4 年之前
父節點
當前提交
70dc78a6d8

+ 17 - 0
src/views/track/cabinet/AddOrUpdate.vue

@@ -773,6 +773,15 @@
                   v-hasPermi="['fleet:vehicleStatus:edit']"
                   >导入费用</el-button
                 >
+                <el-button
+                    type="primary"
+                    icon="el-icon-plus"
+                    size="small"
+                    @click="feeChange"
+                    :disabled="form.orderStatus !== 80"
+                    v-hasPermi="['fleet:vehicleStatus:edit']"
+                >费用变更</el-button
+                >
               </div>
             </div>
           </div>
@@ -1402,6 +1411,14 @@ export default {
     this.username = Cookies.get("userName");
   },
   methods: {
+    //费用变更
+    feeChange(){
+      this.showDialog = false
+      this.$router.push({
+        path: "/track/costModification",
+        query: { id: this.form.id},
+      });
+    },
     // 新增附件上传
     addRelevt4() {
       this.chiFeesList.push({

文件差異過大導致無法顯示
+ 211 - 809
src/views/track/costModification/AddOrUpdate.vue


+ 18 - 2
src/views/track/costModification/index.vue

@@ -910,7 +910,23 @@ export default {
         }
         this.title = "查看详情页";
         this.form = response.data.cars;
-        this.relevantAttachments = response.data.attachs;
+        // this.relevantAttachments = response.data.attachs;
+        console.log(this.addOrUpdateVisible)
+        if (this.addOrUpdateVisible !== false) this.addOrUpdateVisible = !this.addOrUpdateVisible
+        this.feesList = [];
+      });
+    }
+  },
+  activated() {
+    if (this.$route.query.id) {
+      this.reset();
+      const data = { id: this.$route.query.id, billStatus: 1060 };
+      selectDriverFtmsorderbillscars(data).then((response) => {
+        if (response.data.cars.billType) {
+          response.data.cars.billType = response.data.cars.billType.toString();
+        }
+        this.title = "查看详情页";
+        this.form = response.data.cars;
         this.addOrUpdateVisible = !this.addOrUpdateVisible;
         this.feesList = [];
       });
@@ -1133,7 +1149,7 @@ export default {
         });
         this.title = "查看详情页";
         this.form = response.data.cars;
-        this.relevantAttachments = response.data.attachs;
+        // this.relevantAttachments = response.data.attachs;
         this.feesList = response.data.feesList;
         this.addOrUpdateVisible = !this.addOrUpdateVisible;
         this.carsTable = response.data.carsTable;

部分文件因文件數量過多而無法顯示