瀏覽代碼

时间格式化

qukaidi 4 年之前
父節點
當前提交
6fc23dccc1
共有 1 個文件被更改,包括 28 次插入25 次删除
  1. 28 25
      src/views/track/cabinet/index.vue

+ 28 - 25
src/views/track/cabinet/index.vue

@@ -419,7 +419,7 @@ export default {
       showSetting: false,
       drag: false,
       setRowList: [
-   {
+        {
           surface: "1",
           label: "mblno",
           name: "提单号",
@@ -468,7 +468,7 @@ export default {
           checked: 0,
           width: 110,
         },
-         {
+        {
           surface: "8",
           label: "mdLoadAddr",
           name: "装卸货地点",
@@ -498,7 +498,7 @@ export default {
         },
       ],
       getRowList: [
-   {
+        {
           surface: "1",
           label: "mblno",
           name: "提单号",
@@ -547,7 +547,7 @@ export default {
           checked: 0,
           width: 110,
         },
-         {
+        {
           surface: "8",
           label: "mdLoadAddr",
           name: "装卸货地点",
@@ -675,43 +675,46 @@ export default {
     getList() {
       this.loading = true;
       listFtmsorderbillscars(this.queryParams).then((response) => {
-         response.rows.map((e) => {
+        response.rows.map((e) => {
           if (e.orderStatus == 10) {
-            e.orderStatus="车队安排"
+            e.orderStatus = "车队安排";
           }
           if (e.orderStatus == 20) {
-            e.orderStatus="司机受理"
+            e.orderStatus = "司机受理";
           }
           if (e.orderStatus == 30) {
-            e.orderStatus="司机出车"
+            e.orderStatus = "司机出车";
           }
           if (e.orderStatus == 40) {
-            e.orderStatus="提箱"
+            e.orderStatus = "提箱";
           }
           if (e.orderStatus == 50) {
-            e.orderStatus="装卸货"
+            e.orderStatus = "装卸货";
           }
           if (e.orderStatus == 60) {
-            e.orderStatus="还卸柜"
+            e.orderStatus = "还卸柜";
           }
           if (e.orderStatus == 70) {
-            e.orderStatus="费用确认"
+            e.orderStatus = "费用确认";
           }
           if (e.orderStatus == 80) {
-            e.orderStatus="回单"
+            e.orderStatus = "回单";
+          }
+          if (e.loadDate) {
+            this.$set(e, "loadDate", e.loadDate.substring(0, 10));
+          }
+          if (e.acceptDate) {
+            this.$set(e, "acceptDate", e.acceptDate.substring(0, 10));
+          }
+          if (e.mdLoadDate) {
+            this.$set(e, "mdLoadDate", e.mdLoadDate.substring(0, 10));
+          }
+          if (e.unLoadDate) {
+            this.$set(e, "unLoadDate", e.unLoadDate.substring(0, 10));
+          }
+          if (e.waybillDate) {
+            e.waybillDate = e.waybillDate.substring(0, 10);
           }
-           if (e.loadDate) {
-             this.$set(e, 'loadDate', e.loadDate.substring(0, 10))
-           }
-           if (e.acceptDate) {
-             this.$set(e, 'acceptDate', e.acceptDate.substring(0, 10))
-           }
-           if (e.mdLoadDate) {
-             this.$set(e, 'mdLoadDate', e.mdLoadDate.substring(0, 10))
-           }
-           if (e.unLoadDate) {
-             this.$set(e, 'unLoadDate', e.unLoadDate.substring(0, 10))
-           }
         });
         this.ftmsorderbillscarsList = response.rows;
         this.total = response.total;