caojunjie před 3 roky
rodič
revize
09cb89210f

+ 8 - 0
src/api/landTransportation/index.js

@@ -323,4 +323,12 @@ export function validChange(data) {
         params:data
     })
 }
+//删除途径地
+export function tRemove(data) {
+    return request({
+        url: '/api/blade-land/order-address/remove',
+        method: 'post',
+        params:data
+    })
+}
 

+ 4 - 0
src/views/basicData/customerInformation/detailsPageEdit.vue

@@ -749,6 +749,10 @@ export default {
             ]
           },
           {
+            label: "简称",
+            prop: "shortName"
+          },
+          {
             label: "类别",
             prop: "corpsTypeId",
             rules: [

+ 5 - 1
src/views/basicData/factoryInformation/factoryInformation/detailsPageEdit.vue

@@ -616,6 +616,10 @@ export default {
             ]
           },
           {
+            label: "简称",
+            prop: "shortName"
+          },
+          {
             label: "类别",
             prop: "corpsTypeId",
             rules: [
@@ -667,7 +671,7 @@ export default {
           {
             label: "代理区域",
             prop: "belongtoarea",
-            span: 16,
+            span: 8,
             mock: {
               type: "county"
             }

+ 4 - 0
src/views/basicData/fleetInformation/detailsPageEdit.vue

@@ -641,6 +641,10 @@ export default {
             ]
           },
           {
+            label: "简称",
+            prop: "shortName"
+          },
+          {
             label: "类别",
             prop: "corpsTypeId",
             rules: [

+ 3 - 1
src/views/landTransportation/dispatchingCars/detailPage.vue

@@ -781,7 +781,7 @@ export default {
           label: '货运日期',
           type: "datetime",
           cell: true,
-          format: 'yyyy-MM-dd HH:mm:ss',
+          format: 'yyyy-MM-dd HH:mm',
           valueFormat: 'yyyy-MM-dd HH:mm:ss',
           width: 200,
           index: 1,
@@ -1783,6 +1783,7 @@ export default {
       this.$refs.collection.rowCellAdd({
         currency: '1',
         type: '1',
+        corpId:'1526835847238901762',
         orderId:this.id,
         $cellEdit: true
       });
@@ -1792,6 +1793,7 @@ export default {
       this.$refs.payment.rowCellAdd({
         currency: '1',
         type: '2',
+        corpId:'1526835847238901762',
         orderId:this.id,
         $cellEdit: true
       });

+ 1 - 0
src/views/landTransportation/driver/index.vue

@@ -202,6 +202,7 @@ export default {
         addBtn: false,
         delBtn: false,
         cellBtn: false,
+        menuWidth:150,
         cancelBtn: false,
         editBtn: false,
         addRowBtn: false,

+ 1 - 0
src/views/landTransportation/motorcadeDriver/index.vue

@@ -307,6 +307,7 @@ export default {
         index: true,
         addBtn: false,
         delBtn: false,
+        menuWidth:150,
         cellBtn: false,
         cancelBtn: false,
         editBtn: false,

+ 9 - 3
src/views/landTransportation/placeAnOrder/detailPage.vue

@@ -509,7 +509,7 @@ import {
   detailDelegationList,
   removeCollection,
   saveSaveList,
-  addressList, cancelSubmission, getCorp, getSalesman, getFee, changeSubmission, validChange
+  addressList, cancelSubmission, getCorp, getSalesman, getFee, changeSubmission, validChange, tRemove
 } from "@/api/landTransportation";
 import {getDeptTree} from "@/api/system/dept";
 import website from "@/config/website";
@@ -1130,7 +1130,7 @@ export default {
         column: [{
           label: '货运日期',
           type: "datetime",
-          format: 'yyyy-MM-dd HH:mm:ss',
+          format: 'yyyy-MM-dd HH:mm',
           valueFormat: 'yyyy-MM-dd HH:mm:ss',
           cell: true,
           width: 200,
@@ -1673,7 +1673,13 @@ export default {
     },
     //删除途径地址
     deleteAddress(scope) {
-      this.tableData.splice(scope.$index, 1);
+      if (scope.row.id){
+        tRemove({ids:scope.row.id}).then(res=>{
+          this.tableData.splice(scope.$index, 1);
+        })
+      }else {
+        this.tableData.splice(scope.$index, 1);
+      }
     },
     //箱信息保存
     rowSave(row, index, done, loading) {

+ 1 - 1
src/views/landTransportation/placeAnOrder/index.vue

@@ -197,7 +197,7 @@ export default {
         align: 'center',
         stripe:true,
         index: true,
-        menuWidth:100,
+        menuWidth:80,
         addBtn: false,
         editBtn: false,
         delBtn: false,