Browse Source

陆运修改

caojunjie 3 years ago
parent
commit
973bb364c2

+ 2 - 3
src/views/basicData/customerInformation/detailsPageEdit.vue

@@ -1207,10 +1207,9 @@ export default {
                 );
               }
               this.form = res.data.data;
+              this.contactsData = res.data.data.corpsAttnList
               if (this.form.belongtoarea) {
-                this.form.belongtoarea = this.form.belongtoarea
-                  .split(",")
-                  .map(item => item.split("/"));
+                this.form.belongtoarea = this.form.belongtoarea.split(",").map(item => item.split("/"));
               }
               this.disabled = false;
             }

+ 36 - 16
src/views/landTransportation/dispatchingCars/detailPage.vue

@@ -393,6 +393,8 @@ import {
   dispatchCollection,
   cancelDispatchCollection, dispatchBatch, fleetDriverSave, recordingDetails, changeFleet
 } from "@/api/landTransportation";
+import website from "@/config/website";
+import {getDeptTree} from "@/api/system/dept";
 
 export default {
   props: {
@@ -874,14 +876,6 @@ export default {
             trigger: "change"
           }],
         }, {
-          label: '业务员',
-          prop: 'salesman',
-          rules: [{
-            required: true,
-            message: " ",
-            trigger: "blur"
-          }]
-        }, {
           label: '业务员部门',
           prop: 'salesmanDept',
           type: "tree",
@@ -891,18 +885,32 @@ export default {
             label: "title"
           }
         }, {
+          label: '业务员',
+          prop: 'salesman',
+          type: "select",
+          dicUrl: "/api/blade-user/userList",
+          props: {
+            label: "realName",
+            value: "id"
+          },
+          rules: [{
+            required: true,
+            message: " ",
+            trigger: "blur"
+          }]
+        }, {
           label: '委托日期',
           prop: 'bsDate',
           type: "datetime",
           format: 'yyyy-MM-dd HH:mm:ss',
           valueFormat: 'yyyy-MM-dd HH:mm:ss',
         }, {
-          label: '联系电话',
-          prop: 'tel'
-        }, {
           label: '票据号',
           prop: 'receiptNo'
         }, {
+          label: '联系电话',
+          prop: 'tel'
+        }, {
           label: '提单号',
           prop: 'billNo',
           rules: [{
@@ -977,8 +985,8 @@ export default {
             prop: 'etd',
             type: 'date'
           }, {
-            label: '截港日期',
-            prop: 'etc',
+            label: '预配箱量',
+            prop: 'expectCtnQty',
             type: 'date'
           }, {
             label: '起运港',
@@ -987,8 +995,8 @@ export default {
             label: '目的港',
             prop: 'podId'
           }, {
-            label: '预配箱量',
-            prop: 'expectCtnQty',
+            label: '截港日期',
+            prop: 'etc',
             type: 'date'
           }, {
             label: '截单日期',
@@ -1244,6 +1252,12 @@ export default {
       })
     }
     this.$refs.other.show = false
+    // 非租户模式默认加载管理组数据
+    if (!website.tenantMode) {
+      this.initData(website.tenantId);
+    } else {
+      this.initData();
+    }
   },
   methods: {
     //自定义列保存
@@ -1273,7 +1287,6 @@ export default {
       this.formData.fleetName = val.cname
     },
     confirmChange(){
-      console.log(this.form.id)
       changeFleet({
         ...this.formData,
         id: this.formDataList.id,
@@ -1286,6 +1299,13 @@ export default {
         this.$message.success("变更成功");
       })
     },
+    //查询业务部门
+    initData(tenantId) {
+      getDeptTree(tenantId).then(res => {
+        const column = this.findObject(this.goodsOptionForm.column, "salesmanDept");
+        column.dicData = res.data.data;
+      });
+    },
     //多选触发
     selectionChange(list) {
       this.selectionList = list

+ 3 - 0
src/views/landTransportation/dispatchingCars/index.vue

@@ -51,6 +51,7 @@
     </basic-container>
     <basic-container v-show="show">
       <avue-crud
+          :key="key"
           :table-loading="loading"
           :data="dataList"
           :page.sync="page"
@@ -116,6 +117,7 @@ export default {
       id: '',
       show: true,
       loading: false,
+      key:0,
       dataList: [],
       totalData: {},
       page: {
@@ -277,6 +279,7 @@ export default {
   },
   async created() {
     this.option = await this.getColumnData(this.getColumnName(86), this.optionList);
+    this.key++
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++

+ 11 - 11
src/views/landTransportation/placeAnOrder/detailPage.vue

@@ -898,14 +898,6 @@ export default {
             trigger: "change"
           }],
         }, {
-          label: '业务员',
-          prop: 'salesman',
-          rules: [{
-            required: true,
-            message: " ",
-            trigger: "blur"
-          }]
-        }, {
           label: '业务员部门',
           prop: 'salesmanDept',
           type: "tree",
@@ -915,18 +907,26 @@ export default {
             label: "title"
           }
         }, {
+          label: '业务员',
+          prop: 'salesman',
+          rules: [{
+            required: true,
+            message: " ",
+            trigger: "blur"
+          }]
+        }, {
           label: '委托日期',
           prop: 'bsDate',
           type: "datetime",
           format: 'yyyy-MM-dd HH:mm:ss',
           valueFormat: 'yyyy-MM-dd HH:mm:ss',
         }, {
-          label: '联系电话',
-          prop: 'tel'
-        }, {
           label: '票据号',
           prop: 'receiptNo'
         }, {
+          label: '联系电话',
+          prop: 'tel'
+        }, {
           label: '提单号',
           prop: 'billNo',
           rules: [{

+ 7 - 5
src/views/landTransportation/placeAnOrder/index.vue

@@ -334,11 +334,13 @@ export default {
       }
     }
   },
-  // activated() {
-  //   if (this.$route.query.params){
-  //     this.rowCell({id:this.$route.query.params},0)
-  //   }
-  // },
+  activated() {
+    if (this.$route.query.id){
+      this.rowCell({id:this.$route.query.id},0)
+      this.$router.$avueRouter.closeTag(window.location.hash.slice(1))
+      this.$router.push({ query: {} });
+    }
+  },
   async created() {
     this.option = await this.getColumnData(this.getColumnName(85), this.optionList);
     this.key++

+ 1 - 1
src/views/wel/home/landTransportation/components/quick-launch.vue

@@ -25,7 +25,7 @@
         </div>
         <div class="content-icon" @click="inPage('lytz')">
           <i class="tradingIcon icon-sales" style="color:#143056"></i>
-          <span>陆运台账</span>
+          <span>台账</span>
         </div>
       </div>
     </el-card>

+ 4 - 4
src/views/wel/home/landTransportation/components/sales-reached.vue

@@ -14,13 +14,13 @@
         </span>
       </div>
       <div class="content" v-loading="loading">
-        <div style="width: 100%;height: 560px;display: flex;justify-content: space-around;flex-wrap: wrap">
+        <div style="width: 100%;height: 350px;display: flex;justify-content: space-around;flex-wrap: wrap">
           <div id="totalContainer" style="width: 26%;height: 210px;"></div>
           <div id="totalBulkCargo" style="width: 26%;height: 210px;"></div>
           <div id="specialTotal" style="width: 26%;height: 210px;"></div>
-          <div id="totalContainerTwo" style="width: 26%;height: 210px;"></div>
-          <div id="totalBulkCargoTwo" style="width: 26%;height: 210px;"></div>
-          <div id="specialTotalTwo" style="width: 26%;height: 210px;"></div>
+<!--          <div id="totalContainerTwo" style="width: 26%;height: 210px;"></div>-->
+<!--          <div id="totalBulkCargoTwo" style="width: 26%;height: 210px;"></div>-->
+<!--          <div id="specialTotalTwo" style="width: 26%;height: 210px;"></div>-->
         </div>
       </div>
     </el-card>

+ 20 - 13
src/views/wel/home/landTransportation/components/sales-trend.vue

@@ -4,7 +4,7 @@
       <div>
         <div class="title">
           <span>
-            运行车辆
+            今日业务详情(集装箱)
           </span>
           <span>
             <i
@@ -53,7 +53,7 @@
               prop="billNo">
               <template slot-scope="{row}">
                 <span class="el-button--text" style="cursor: pointer"
-                      @click="openTrack(row)">{{ row.billNo }}</span>
+                      @click="openTrack(row,0)">{{ row.billNo }}</span>
               </template>
             </el-table-column>
             <el-table-column
@@ -63,7 +63,7 @@
               prop="billNo">
               <template slot-scope="{row}">
                 <span class="el-button--text" style="cursor: pointer"
-                      @click="openTrack(row)">{{ row.plateNo }}</span>
+                      @click="openTrack(row,1)">{{ row.plateNo }}</span>
               </template>
             </el-table-column>
             <el-table-column
@@ -192,16 +192,23 @@ export default {
     this.map && this.map.destroy();
   },
   methods: {
-    openTrack(row){
-      this.dialogVisible = true
-      gaude({itemId: row.id,plateNo:row.plateNo}).then(res => {
-        this.lineArr = res.data.data
-        this.initMap();
-      })
-      location({itemId: row.id,plateNo:'陕YH0008'}).then(res => {
-        // console.log(res.data.data)
-        // console.log(this.lineArr[this.lineArr.length - 1])
-      })
+    openTrack(row,index){
+      if (index == 0){
+        this.$router.push({
+          path: '/landTransportation/placeAnOrder/index',
+          query: {id:row.orderId},
+        });
+      }else {
+        gaude({itemId: row.id,plateNo:row.plateNo}).then(res => {
+          this.lineArr = res.data.data
+          this.dialogVisible = true
+          this.initMap();
+        })
+        location({itemId: row.id,plateNo:'陕YH0008'}).then(res => {
+          // console.log(res.data.data)
+          // console.log(this.lineArr[this.lineArr.length - 1])
+        })
+      }
     },
     initMap() {
       this.map = new AMap.Map("container", {

+ 1 - 1
src/views/wel/home/landTransportation/landTransportation.vue

@@ -58,7 +58,7 @@ export default {
   width: 100%;
   height: 95.5vh;
   grid-template-columns: repeat(auto-fill, 10%);
-  grid-template-rows: 140px 600px 480px;
+  grid-template-rows: 140px 300px 480px;
   grid-template-areas:
     "a a a a a a a a a a"
     "b b b b b b b b b b"