瀏覽代碼

修改陆运

caojunjie 3 年之前
父節點
當前提交
f9d0a88ed0

+ 1 - 1
src/api/landTransportation/index.js

@@ -197,7 +197,7 @@ export function getCorp() {
 //查询业务员
 export function getSalesman(data) {
     return request({
-        url: '/api/blade-client/corpsattn/all-list',
+        url: '/api/blade-user/userList',
         method: 'get',
         params:data
     })

+ 227 - 150
src/views/landTransportation/dispatchingCars/detailPage.vue

@@ -11,75 +11,7 @@
         </el-button>
       </div>
     </div>
-    <containerTitle
-        title="起止地信息"
-        style="margin-top: 50px"></containerTitle>
-    <basic-container>
-      <el-table
-          ref="singleTable"
-          :data="tableData"
-          size="mini"
-          :header-cell-style="{color:'#000',background:'#fafafa'}"
-          style="width: 100%">
-        <el-table-column
-            property="date"
-            align="center"
-            width="40">
-          <template slot-scope="scope">
-            <span v-if="scope.$index == 0">
-              <el-button type="primary" size="mini" circle>起</el-button>
-            </span>
-            <span v-else-if="scope.$index === tableData.length-1">
-              <el-button type="success" size="mini" circle>止</el-button>
-            </span>
-            <span v-else>
-              <el-button v-if="goodsForm.status === 1" type="warning" size="mini" circle>途</el-button>
-              <el-tooltip v-else class="item" effect="dark" content="删除" placement="right">
-                  <el-button type="danger" icon="el-icon-delete" size="mini" circle
-                             @click="deleteAddress(scope)"></el-button>
-              </el-tooltip>
-            </span>
-          </template>
-        </el-table-column>
-        <el-table-column
-            type="index"
-            label="序号"
-            align="center"
-            width="60">
-        </el-table-column>
-        <el-table-column
-            property="corpName"
-            label="发货工厂"
-            align="center"
-            show-overflow-tooltip
-            width="280">
-        </el-table-column>
-        <el-table-column
-            property="province"
-            label="省市区"
-            align="center"
-            width="280">
-          <template slot-scope="scope">
-            <el-cascader
-                size="small"
-                style="width: 100%;"
-                v-model="scope.row.region"
-                disabled
-                :props="treeOption"></el-cascader>
-          </template>
-        </el-table-column>
-        <el-table-column
-            property="address"
-            align="center"
-            show-overflow-tooltip
-            label="详细地址">
-          <!--          <template slot-scope="scope">-->
-          <!--            <el-input v-model="scope.row.address" size="small" placeholder="请输入内容"></el-input>-->
-          <!--          </template>-->
-        </el-table-column>
-      </el-table>
-    </basic-container>
-    <containerTitle title="委托信息"></containerTitle>
+    <containerTitle title="委托信息" style="margin-top: 50px"></containerTitle>
     <basic-container>
       <avue-form :option="goodsOptionForm" v-model="goodsForm">
         <template slot-scope="scope" slot="corpId">
@@ -149,6 +81,90 @@
         </template>
       </avue-form>
     </basic-container>
+    <containerTitle
+        title="起止地信息"></containerTitle>
+    <basic-container>
+      <el-table
+          ref="singleTable"
+          :data="tableData"
+          size="mini"
+          :header-cell-style="{color:'#000',background:'#fafafa'}"
+          style="width: 100%">
+        <el-table-column
+            property="date"
+            align="center"
+            width="40">
+          <template slot-scope="scope">
+            <span v-if="scope.$index == 0">
+              <el-button type="primary" size="mini" circle>起</el-button>
+            </span>
+            <span v-else-if="scope.$index === tableData.length-1">
+              <el-button type="success" size="mini" circle>止</el-button>
+            </span>
+            <span v-else>
+              <el-button v-if="goodsForm.status === 2" type="warning" size="mini" circle>途</el-button>
+              <el-tooltip v-else class="item" effect="dark" content="删除" placement="right">
+                  <el-button type="danger" icon="el-icon-delete" size="mini" circle
+                             @click="deleteAddress(scope)"></el-button>
+              </el-tooltip>
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column
+            type="index"
+            label="序号"
+            align="center"
+            width="60">
+        </el-table-column>
+        <el-table-column
+            property="corpName"
+            label="发货工厂"
+            align="center"
+            show-overflow-tooltip
+            width="200">
+        </el-table-column>
+        <!--        <el-table-column-->
+        <!--            property="province"-->
+        <!--            label="省市区"-->
+        <!--            align="center"-->
+        <!--            width="280">-->
+        <!--          <template slot-scope="scope">-->
+        <!--            <el-cascader-->
+        <!--                size="small"-->
+        <!--                style="width: 100%;"-->
+        <!--                v-model="scope.row.region"-->
+        <!--                disabled-->
+        <!--                :props="treeOption"></el-cascader>-->
+        <!--          </template>-->
+        <!--        </el-table-column>-->
+        <el-table-column
+            property="contacts"
+            align="center"
+            width="150"
+            show-overflow-tooltip
+            label="联系人">
+        </el-table-column>
+        <el-table-column
+            property="tel"
+            align="center"
+            width="180"
+            show-overflow-tooltip
+            label="电话">
+        </el-table-column>
+        <el-table-column
+            property="address"
+            align="center"
+            show-overflow-tooltip
+            label="详细地址">
+        </el-table-column>
+        <el-table-column
+            property="remarks"
+            align="center"
+            show-overflow-tooltip
+            label="备注">
+        </el-table-column>
+      </el-table>
+    </basic-container>
     <containerTitle title="车辆信息"></containerTitle>
     <basic-container>
       <avue-crud
@@ -621,7 +637,7 @@ export default {
             width: 200,
             prop: 'fleetId'
           }, {
-            label: '到厂时间',
+            label: '货运日期',
             type: "datetime",
             cell: true,
             format: 'yyyy-MM-dd HH:mm:ss',
@@ -641,19 +657,21 @@ export default {
             prop: 'quantity',
             type: 'number',
             precision:0
-          }, {
-            label: '包装',
-            width: 100,
-            overHidden: true,
-            cell: true,
-            prop: 'packing',
-            type: 'select',
-            dicUrl: "/api/blade-system/dict-biz/dictionary?code=packaging",
-            props: {
-              label: "dictValue",
-              value: "dictValue"
-            },
-          }, {
+          }
+          // , {
+          //   label: '包装',
+          //   width: 100,
+          //   overHidden: true,
+          //   cell: true,
+          //   prop: 'packing',
+          //   type: 'select',
+          //   dicUrl: "/api/blade-system/dict-biz/dictionary?code=packaging",
+          //   props: {
+          //     label: "dictValue",
+          //     value: "dictValue"
+          //   },
+          // }
+          , {
             label: '尺码',
             width: 100,
             overHidden: true,
@@ -790,82 +808,135 @@ export default {
         disabled: true,
         span: 8,
         column: [{
-          label: '客户名称',
+          label: '公司名称',
           formslot: true,
-          prop: 'corpId'
+          prop: 'corpId',
+          rules: [{
+            required: true,
+            message: " ",
+            trigger: "change"
+          }],
         }, {
-          label: '提单号',
-          prop: 'billNo'
+          label: '业务员',
+          prop: 'salesman',
+          rules: [{
+            required: true,
+            message: " ",
+            trigger: "blur"
+          }]
         }, {
-          label: '到厂时间',
+          label: '业务员部门',
+          prop: 'salesmanDept',
+          type: "tree",
+          filter: false,
+          dicData: [],
+          props: {
+            label: "title"
+          }
+        }, {
+          label: '委托日期',
+          prop: 'bsDate',
           type: "datetime",
           format: 'yyyy-MM-dd HH:mm:ss',
           valueFormat: 'yyyy-MM-dd HH:mm:ss',
-          prop: 'arrivalTime'
         }, {
-          label: '订单号',
-          prop: 'orderNo',
-          disabled: true
+          label: '联系电话',
+          prop: 'tel'
         }, {
-          label: '场站',
-          prop: 'station'
+          label: '票据号',
+          prop: 'receiptNo'
         }, {
-          label: '业务员',
-          prop: 'salesman',
-          type: 'select',
-          dicUrl: "/api/blade-client/corpsattn/all-list",
-          props: {
-            label: "cname",
-            value: "id"
-          },
-        }]
-      },
-      goodsOptionFormTwo: {
-        menuBtn: false,
-        disabled: true,
-        span: 8,
-        column: [{
-          label: '所属公司',
-          formslot: true,
-          prop: 'belongCompany',
+          label: '提单号',
+          prop: 'billNo',
           rules: [{
-            required: false,
+            required: true,
             message: " ",
             trigger: "blur"
           }],
         }, {
-          label: '船名航次',
-          prop: 'factory'
-        }, {
-          label: '货物名称',
-          prop: 'goods'
-        }, {
-          label: '订舱代理',
-          prop: 'agentId'
-        }, {
-          label: '起运港',
-          prop: 'polId'
-        }, {
-          label: '目的港',
-          prop: 'podId'
-        }, {
-          label: '开船日期',
-          prop: 'etd',
-          type: 'date'
-        }, {
-          label: '截关日期',
-          prop: 'etc',
-          type: 'date'
+          label: '入货场站',
+          prop: 'station',
+          rules: [{
+            required: true,
+            message: " ",
+            trigger: "blur"
+          }],
         }, {
-          label: '截单日期',
-          prop: 'siCutoffDate',
-          type: 'date'
+          label: '货运日期',
+          type: "datetime",
+          format: 'yyyy-MM-dd HH:mm:ss',
+          valueFormat: 'yyyy-MM-dd HH:mm:ss',
+          prop: 'arrivalTime',
+          rules: [{
+            required: true,
+            message: " ",
+            trigger: "blur"
+          }],
         }, {
           label: '备注',
           span: 24,
           prop: 'remarks'
-        }
-        ]
+        }]
+      },
+      goodsOptionFormTwo: {
+        menuBtn: false,
+        disabled: true,
+        span: 8,
+        column: [
+          // {
+          //   label: '所属公司',
+          //   formslot: true,
+          //   prop: 'belongCompany',
+          //   rules: [{
+          //     required: false,
+          //     message: " ",
+          //     trigger: "blur"
+          //   }],
+          // },
+          {
+            label: '船名航次',
+            prop: 'factory',
+            rules: [{
+              required: false,
+              message: " ",
+              trigger: "blur"
+            }],
+          }
+          // , {
+          //   label: '货物名称',
+          //   prop: 'goods',
+          //   rules: [{
+          //     required: false,
+          //     message: " ",
+          //     trigger: "blur"
+          //   }],
+          // }
+          , {
+            label: '开船日期',
+            prop: 'etd',
+            type: 'date'
+          }, {
+            label: '截港日期',
+            prop: 'etc',
+            type: 'date'
+          }, {
+            label: '起运港',
+            prop: 'polId'
+          }, {
+            label: '目的港',
+            prop: 'podId'
+          }, {
+            label: '预配箱量',
+            prop: 'expectCtnQty',
+            type: 'date'
+          }, {
+            label: '截单日期',
+            prop: 'siCutoffDate',
+            type: 'date'
+          }, {
+            label: '订舱代理',
+            prop: 'agentId'
+          }]
       },
       entrustOptionTwo: {
         align: 'center',
@@ -1106,9 +1177,9 @@ export default {
         delete this.goodsForm.orderAddressList
         delete this.goodsForm.orderItemList
         delete this.goodsForm.orderFeeList
-        this.tableData.forEach(item => {
-          if (item.region) item.region = item.region.split(',')
-        })
+        // this.tableData.forEach(item => {
+        //   if (item.region) item.region = item.region.split(',')
+        // })
       })
     }
     this.$refs.other.show = false
@@ -1214,9 +1285,9 @@ export default {
         delete this.goodsForm.orderAddressList
         delete this.goodsForm.orderItemList
         delete this.goodsForm.orderFeeList
-        this.tableData.forEach(item => {
-          if (item.region) item.region = item.region.split(',')
-        })
+        // this.tableData.forEach(item => {
+        //   if (item.region) item.region = item.region.split(',')
+        // })
       })
     },
     //切换收付费
@@ -1333,9 +1404,9 @@ export default {
     //保存
     editCustomer() {
       let data = JSON.parse(JSON.stringify(this.tableData))
-      data.forEach(item => {
-        if (item.region.length !== 0) item.region = item.region.join(',')
-      })
+      // data.forEach(item => {
+      //   if (item.region.length !== 0) item.region = item.region.join(',')
+      // })
       saveDelegationList({
         ...this.goodsForm,
         kind: '2',
@@ -1416,6 +1487,12 @@ export default {
   }
 }
 </script>
-<style scoped>
+<style scoped lang="scss">
+::v-deep .el-form-item {
+  margin-bottom: 8px;
+}
 
+::v-deep .el-form-item__content{
+  line-height: 32px;
+}
 </style>

+ 77 - 59
src/views/landTransportation/dispatchingCars/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <basic-container v-if="show">
+    <basic-container v-show="show">
       <div class="home-container">
         <div style="display: flex;justify-content: center;">
           <div class="content">
@@ -49,7 +49,7 @@
         </div>
       </div>
     </basic-container>
-    <basic-container v-if="show">
+    <basic-container v-show="show">
       <avue-crud
           :table-loading="loading"
           :data="dataList"
@@ -95,7 +95,7 @@
         </template>
       </avue-crud>
     </basic-container>
-    <detail-page v-else @backToList="backToList" :id="id"></detail-page>
+    <detail-page v-if="!show" @backToList="backToList" :id="id"></detail-page>
   </div>
 </template>
 
@@ -135,99 +135,117 @@ export default {
         height: "auto",
         searchSpan: 8,
         searchIcon: true,
-        column: [
+        column:[
           {
-            label: '状态',
-            prop: 'itemStatusDetail',
-            index: 1,
+            label: '货运日期',
+            prop: 'arrivalTime',
             overHidden: true,
-            width: 140
+            type: "date",
+            searchRange: true,
+            defaultTime:['00:00:00', '23:59:59'],
+            format: "yyyy-MM-dd HH:mm:ss",
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
+            index: 1,
+            width: 150,
+            search: true,
           }, {
-            label: '订单号',
-            prop: 'orderNo',
+            label: '业务员',
             index: 2,
-            overHidden: true,
-            width: 160,
+            width: 150,
+            prop: 'salesman',
             search: true,
-          }, {
-            label: '客户名称',
-            prop: 'corpName',
             overHidden: true,
-            index: 3,
-            width: 140,
-            search: true,
+            type: "select",
+            dicUrl: "/api/blade-user/userList",
+            props: {
+              label: "realName",
+              value: "id"
+            }
           }, {
-            label: '所属公司',
-            prop: 'belongCompany',
-            overHidden: true,
-            index: 4,
+            label: '货运地点',
+            prop: 'addressDetail',
+            index: 3,
             width: 140,
             search: true,
           }, {
             label: '提单号',
             prop: 'billNo',
-            index: 5,
+            index: 4,
             overHidden: true,
             width: 140,
             search: true,
           }, {
-            label: '货物名称',
-            prop: 'goods',
+            label: '入货场站',
+            prop: 'station',
             overHidden: true,
-            index: 6,
-            width: 140,
-            search: true,
-          }, {
-            label: '路线',
-            prop: 'addressDetail',
-            index: 7,
+            index: 5,
             width: 140,
             search: true,
-          }, {
+          },{
             label: '计划箱量',
             prop: 'ctnDetail',
             overHidden: true,
-            index: 8,
-            width: 140,
-            search: true,
-          }, {
+            index: 6,
+            width: 140
+          },{
             label: '已派箱量',
             prop: 'dispatchCtnDetail',
             overHidden: true,
-            index: 9,
-            width: 140,
-            search: true,
-          }, {
+            index: 7,
+            width: 140
+          },{
             label: '受理箱量',
             prop: 'sendCtnDetail',
             overHidden: true,
-            index: 10,
+            index: 8,
+            width: 140
+          },{
+            label: '运费',
+            index: 9,
             width: 140,
+            prop: 'freight'
+          },{
+            label: '订单号',
+            prop: 'orderNo',
+            index: 10,
+            overHidden: true,
+            width: 160,
             search: true,
           }, {
-            label: '场站',
-            prop: 'station',
-            overHidden: true,
+            label: '状态',
+            prop: 'itemStatusDetail',
             index: 11,
-            width: 140,
-            search: true,
+            overHidden: true,
+            width: 140
           }, {
-            label: '到厂时间',
-            prop: 'arrivalTime',
+            label: '公司名称',
+            prop: 'corpName',
             overHidden: true,
-            type: "date",
-            searchRange: true,
-            defaultTime: ['00:00:00', '23:59:59'],
-            format: "yyyy-MM-dd HH:mm:ss",
-            valueFormat: "yyyy-MM-dd HH:mm:ss",
             index: 12,
             width: 140,
             search: true,
-          }, {
+          }
+          // , {
+          //   label: '所属公司',
+          //   prop: 'belongCompany',
+          //   overHidden: true,
+          //   index: 4,
+          //   width: 140,
+          //   search: true,
+          // }
+          // , {
+          //   label: '货物名称',
+          //   prop: 'goods',
+          //   overHidden: true,
+          //   index: 13,
+          //   width: 140,
+          //   search: true,
+          // }
+          ,{
             label: '船名航次',
             prop: 'factory',
             overHidden: true,
-            index: 13,
+            index: 14,
             width: 140,
             search: true,
           }, {
@@ -236,10 +254,10 @@ export default {
             prop: 'createTime',
             type: "date",
             searchRange: true,
-            defaultTime: ['00:00:00', '23:59:59'],
+            defaultTime:['00:00:00', '23:59:59'],
             format: "yyyy-MM-dd HH:mm:ss",
             valueFormat: "yyyy-MM-dd HH:mm:ss",
-            index: 14,
+            index: 15,
             width: 140,
             search: true,
           }]
@@ -370,7 +388,7 @@ export default {
       this.onLoad(this.page)
     },
     ToBreak (val) {
-      if (val)return val.replace('\n', '<br/>')
+      if (val)return val.replace(/\n/g, '<br/>')
     }
   }
 }

+ 96 - 78
src/views/landTransportation/driver/index.vue

@@ -238,24 +238,85 @@ export default {
             decimals: 2
           }],
         column: [{
-          label: '状态',
+          label: '货运日期',
+          prop: 'arrivalTime',
+          overHidden: true,
+          type: "date",
+          searchRange: true,
+          defaultTime: ['00:00:00', '23:59:59'],
+          format: "yyyy-MM-dd HH:mm:ss",
+          valueFormat: "yyyy-MM-dd HH:mm:ss",
+          index: 1,
+          width: 140,
+          search: true,
+        },{
+          label: '实际到厂时间',
+          prop: 'realArrivalTime',
+          overHidden: true,
+          type: "date",
+          searchRange: true,
+          defaultTime: ['00:00:00', '23:59:59'],
+          format: "yyyy-MM-dd HH:mm:ss",
+          valueFormat: "yyyy-MM-dd HH:mm:ss",
+          index: 2,
+          width: 140,
+          search: true,
+        },{
+          label: '完工日期',
+          prop: 'finishedTime',
+          overHidden: true,
+          type: "date",
+          searchRange: true,
+          defaultTime: ['00:00:00', '23:59:59'],
+          format: "yyyy-MM-dd HH:mm:ss",
+          valueFormat: "yyyy-MM-dd HH:mm:ss",
+          index:3,
+          width: 140,
+          search: true,
+        },{
+          label: '货运地点',
+          index: 4,
+          width: 160,
+          search: true,
+          prop: 'addressDetail'
+        },{
+          label: '提单号',
           width: 100,
-          type: 'select',
-          index:1,
+          index:5,
+          search: true,
           overHidden: true,
-          dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
+          prop: 'billNo'
+        }, {
+          label: '入货场站',
+          prop: 'station',
+          overHidden: true,
+          index: 6,
+          width: 140,
+          search: true,
+        }, {
+          label: '箱型',
+          width: 100,
+          search: true,
+          index: 7,
+          overHidden: true,
+          prop: 'ctnType',
+          type: 'select',
+          dicUrl: "/api/blade-system/dict-biz/dictionary?code=boxType",
           props: {
             label: "dictValue",
-            value: "dictKey"
+            value: "dictValue"
           },
-          dataType: "string",
-          prop: 'status'
         }, {
+          label: '箱量',
+          width: 50,
+          index: 8,
+          prop: 'ctnQuantity'
+        },{
           label: '车号',
           width: 150,
           prop: 'vehicleId',
           overHidden: true,
-          index:4,
+          index:9,
           type: 'select',
           search: true,
           dicUrl: "/api/blade-client/land-vehicle/vehicle-list?fleetId={{key}}",
@@ -263,24 +324,17 @@ export default {
             label: "plateNo",
             value: "id"
           }
-        },{
-          label: '提单号',
-          width: 100,
-          index:2,
-          search: true,
-          overHidden: true,
-          prop: 'billNo'
         }, {
           label: '车队',
           width: 200,
           search: true,
-          index:3,
+          index:10,
           overHidden: true,
           prop: 'fleetId'
         }, {
           label: '司机',
           width: 115,
-          index:5,
+          index:11,
           search: true,
           overHidden: true,
           prop: 'driverId',
@@ -293,62 +347,25 @@ export default {
         }, {
           label: '电话',
           width: 160,
-          index:6,
+          index:12,
           overHidden: true,
           search: true,
           prop: 'tel'
         },{
-          label: '路线',
-          index: 7,
-          width: 160,
-          search: true,
-          prop: 'addressDetail'
-        },{
-          label: '到厂时间',
-          prop: 'arrivalTime',
-          overHidden: true,
-          type: "date",
-          searchRange: true,
-          defaultTime: ['00:00:00', '23:59:59'],
-          format: "yyyy-MM-dd HH:mm:ss",
-          valueFormat: "yyyy-MM-dd HH:mm:ss",
-          index: 8,
-          width: 140,
-          search: true,
-        },{
-          label: '实际到厂时间',
-          prop: 'realArrivalTime',
-          overHidden: true,
-          type: "date",
-          searchRange: true,
-          defaultTime: ['00:00:00', '23:59:59'],
-          format: "yyyy-MM-dd HH:mm:ss",
-          valueFormat: "yyyy-MM-dd HH:mm:ss",
-          index: 9,
-          width: 140,
-          search: true,
-        },{
           label: '货物名称',
           overHidden: true,
           width: 160,
           search: true,
-          index: 10,
+          index: 13,
           prop: 'goods'
         }, {
           label: '箱号',
           cell: true,
           width: 245,
-          index: 11,
+          index: 14,
           overHidden: true,
           search: true,
           prop: 'ctnNo'
-        }, {
-          label: '场站',
-          prop: 'station',
-          overHidden: true,
-          index: 12,
-          width: 140,
-          search: true,
         },{
           label: '制单日期',
           overHidden: true,
@@ -358,35 +375,17 @@ export default {
           defaultTime: ['00:00:00', '23:59:59'],
           format: "yyyy-MM-dd HH:mm:ss",
           valueFormat: "yyyy-MM-dd HH:mm:ss",
-          index: 13,
+          index: 15,
           width: 140,
           search: true,
         },{
           label: '船名航次',
           prop: 'factory',
           overHidden: true,
-          index: 14,
+          index: 16,
           width: 140,
           search: true,
         }, {
-          label: '尺寸箱型',
-          width: 100,
-          search: true,
-          index: 15,
-          overHidden: true,
-          prop: 'ctnType',
-          type: 'select',
-          dicUrl: "/api/blade-system/dict-biz/dictionary?code=boxType",
-          props: {
-            label: "dictValue",
-            value: "dictValue"
-          },
-        }, {
-          label: '箱量',
-          width: 50,
-          index: 16,
-          prop: 'ctnQuantity'
-        }, {
           label: '重量(吨)',
           width: 160,
           prop: 'landWeight',
@@ -424,6 +423,7 @@ export default {
           width: 100,
           precision: 2,
           cell: true,
+          index: 22,
           controls: false,
           type: 'number',
           prop: 'oneFeeC'
@@ -432,6 +432,7 @@ export default {
           width: 100,
           precision: 2,
           cell: true,
+          index: 23,
           controls: false,
           type: 'number',
           prop: 'twoFeeC'
@@ -440,12 +441,14 @@ export default {
           width: 100,
           precision: 2,
           cell: true,
+          index: 24,
           controls: false,
           type: 'number',
           prop: 'threeFeeC'
         }, {
           label: '待时费',
           width: 100,
+          index: 25,
           precision: 2,
           cell: true,
           controls: false,
@@ -455,6 +458,7 @@ export default {
           label: '其他',
           width: 100,
           precision: 2,
+          index: 26,
           cell: true,
           type: 'number',
           controls: false,
@@ -462,8 +466,22 @@ export default {
         }, {
           label: '费用备注',
           width: 245,
+          index: 27,
           cell: true,
           prop: 'feeRemarksC'
+        },{
+          label: '状态',
+          width: 100,
+          type: 'select',
+          index:28,
+          overHidden: true,
+          dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
+          props: {
+            label: "dictValue",
+            value: "dictKey"
+          },
+          dataType: "string",
+          prop: 'status'
         }
         ],
       },
@@ -659,7 +677,7 @@ export default {
       })
     },
     ToBreak (val) {
-      if (val)return val.replace('\n', '<br/>')
+      if (val)return val.replace(/\n/g, '<br/>')
     }
   }
 }

+ 100 - 92
src/views/landTransportation/motorcadeDriver/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div class="adds">
     <basic-container>
       <div class="home-container">
         <div style="display: flex;justify-content: center;">
@@ -351,25 +351,63 @@ export default {
             type: 'sum',
             decimals: 2
           }],
-        column: [{
-          label: '状态',
+        column: [ {
+          label: '货运日期',
+          prop: 'arrivalTime',
           overHidden: true,
+          type: "date",
+          searchRange: true,
+          defaultTime: ['00:00:00', '23:59:59'],
+          format: "yyyy-MM-dd HH:mm:ss",
+          valueFormat: "yyyy-MM-dd HH:mm:ss",
+          index: 1,
+          width: 145,
+          search: true,
+        }, {
+          label: '货运地点',
+          index: 2,
+          width: 160,
+          search: true,
+          prop: 'addressDetail'
+        }, {
+          label: '提单号',
           width: 100,
+          index: 3,
+          search: true,
+          overHidden: true,
+          prop: 'billNo'
+        }, {
+          label: '入货场站',
+          prop: 'station',
+          overHidden: true,
+          index: 4,
+          width: 140,
+          search: true,
+        }, {
+          label: '箱型',
+          width: 100,
+          index: 5,
+          search: true,
+          overHidden: true,
+          prop: 'ctnType',
           type: 'select',
-          index: 1,
-          dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
+          dicUrl: "/api/blade-system/dict-biz/dictionary?code=boxType",
           props: {
             label: "dictValue",
-            value: "dictKey"
-          },
-          dataType: "string",
-          prop: 'status'
+            value: "dictValue"
+          }
+        }, {
+          label: '箱量',
+          width: 50,
+          index: 6,
+          overHidden: true,
+          prop: 'ctnQuantity'
         }, {
           label: '车号',
           width: 150,
           cell: true,
           search: true,
-          index: 4,
+          index: 7,
           allowCreate: true,
           prop: 'vehicleId',
           overHidden: true,
@@ -381,19 +419,12 @@ export default {
             label: "plateNo",
             value: "id"
           },
-        }, {
-          label: '提单号',
-          width: 100,
-          index: 2,
-          search: true,
-          overHidden: true,
-          prop: 'billNo'
         },
           {
             label: '车队',
             width: 200,
             search: true,
-            index: 3,
+            index: 8,
             // hide:true,
             showColumn: false,
             filterable: true,
@@ -417,7 +448,7 @@ export default {
             overHidden: true,
             cell: true,
             filterable: true,
-            index: 5,
+            index: 9,
             prop: 'driverId',
             type: 'select',
             dicUrl: "/api/blade-client/land-driver/driver-list?vehicleId={{key}}",
@@ -431,81 +462,58 @@ export default {
             width: 160,
             search: true,
             cell: true,
-            index: 6,
+            index: 10,
             prop: 'tel'
           }, {
             label: '件数',
             width: 100,
             search: true,
-            index: 6,
+            index: 11,
             overHidden: true,
             controls: false,
             cell: true,
             prop: 'quantity',
             type: 'number',
             precision:0
-          }, {
-            label: '包装',
-            width: 100,
-            search: true,
-            index: 6,
-            overHidden: true,
-            cell: true,
-            prop: 'packing',
-            type: 'select',
-            dicUrl: "/api/blade-system/dict-biz/dictionary?code=packaging",
-            props: {
-              label: "dictValue",
-              value: "dictValue"
-            },
-          }, {
+          },
+          // {
+          //   label: '包装',
+          //   width: 100,
+          //   search: true,
+          //   index: 6,
+          //   overHidden: true,
+          //   cell: true,
+          //   prop: 'packing',
+          //   type: 'select',
+          //   dicUrl: "/api/blade-system/dict-biz/dictionary?code=packaging",
+          //   props: {
+          //     label: "dictValue",
+          //     value: "dictValue"
+          //   },
+          // },
+          {
             label: '尺码',
             width: 100,
             search: true,
-            index:6,
+            index:12,
             overHidden: true,
             cell: true,
             prop: 'size',
-          }, {
-            label: '路线',
-            index: 7,
-            width: 160,
-            search: true,
-            prop: 'addressDetail'
-          }, {
-            label: '到厂时间',
-            prop: 'arrivalTime',
-            overHidden: true,
-            type: "date",
-            searchRange: true,
-            defaultTime: ['00:00:00', '23:59:59'],
-            format: "yyyy-MM-dd HH:mm:ss",
-            valueFormat: "yyyy-MM-dd HH:mm:ss",
-            index: 8,
-            width: 145,
-            search: true,
-          }, {
+          },{
             label: '货物名称',
             overHidden: true,
             width: 160,
             search: true,
-            index: 9,
+            index: 13,
             prop: 'goods'
           }, {
             label: '箱号',
             overHidden: true,
             width: 245,
-            index: 10,
+            index: 14,
             search: true,
             prop: 'ctnNo'
           }, {
-            label: '场站',
-            prop: 'station',
-            overHidden: true,
-            index: 11,
-            width: 140,
-            search: true,
-          }, {
             label: '制单日期',
             overHidden: true,
             prop: 'createTime',
@@ -514,42 +522,23 @@ export default {
             defaultTime: ['00:00:00', '23:59:59'],
             format: "yyyy-MM-dd HH:mm:ss",
             valueFormat: "yyyy-MM-dd HH:mm:ss",
-            index: 12,
+            index: 15,
             width: 145,
             search: true,
           }, {
             label: '船名航次',
             prop: 'factory',
             overHidden: true,
-            index: 13,
+            index: 16,
             width: 140,
             search: true,
           }, {
-            label: '尺寸箱型',
-            width: 100,
-            index: 14,
-            search: true,
-            overHidden: true,
-            prop: 'ctnType',
-            type: 'select',
-            dicUrl: "/api/blade-system/dict-biz/dictionary?code=boxType",
-            props: {
-              label: "dictValue",
-              value: "dictValue"
-            }
-          }, {
-            label: '箱量',
-            width: 50,
-            index: 15,
-            overHidden: true,
-            prop: 'ctnQuantity'
-          }, {
             label: '重量(吨)',
             width: 160,
             prop: 'landWeight',
             controls: false,
             overHidden: true,
-            index: 16,
+            index: 17,
             precision: 2,
             type: 'number'
           },
@@ -561,20 +550,20 @@ export default {
           {
             label: '应付陆运费',
             overHidden: true,
-            index: 17,
+            index: 18,
             width: 100,
             cell: true,
             prop: 'landAmountC'
           }, {
             label: '委托备注',
             overHidden: true,
-            index: 18,
+            index: 19,
             width: 245,
             prop: 'remarks'
           }, {
             label: '车队备注',
             cell: true,
-            index: 19,
+            index: 20,
             width: 245,
             overHidden: true,
             prop: 'fleetRemarks'
@@ -582,13 +571,14 @@ export default {
             label: '司机备注',
             overHidden: true,
             width: 245,
-            index: 20,
+            index: 21,
             prop: 'driverRemarks'
           }, {
             label: '场站费',
             width: 100,
             precision: 2,
             cell: true,
+            index: 22,
             controls: false,
             type: 'number',
             prop: 'oneFeeC'
@@ -597,6 +587,7 @@ export default {
             width: 100,
             precision: 2,
             cell: true,
+            index: 23,
             controls: false,
             type: 'number',
             prop: 'twoFeeC'
@@ -604,6 +595,7 @@ export default {
             label: '扣款',
             width: 100,
             precision: 2,
+            index: 24,
             cell: true,
             controls: false,
             type: 'number',
@@ -612,6 +604,7 @@ export default {
             label: '待时费',
             width: 100,
             precision: 2,
+            index: 25,
             cell: true,
             controls: false,
             type: 'number',
@@ -620,6 +613,7 @@ export default {
             label: '其他',
             width: 100,
             precision: 2,
+            index: 26,
             cell: true,
             type: 'number',
             controls: false,
@@ -627,8 +621,22 @@ export default {
           }, {
             label: '费用备注',
             width: 245,
+            index: 27,
             cell: true,
             prop: 'feeRemarksC'
+          }, {
+            label: '状态',
+            overHidden: true,
+            width: 100,
+            type: 'select',
+            index: 28,
+            dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
+            props: {
+              label: "dictValue",
+              value: "dictKey"
+            },
+            dataType: "string",
+            prop: 'status'
           }
         ]
       },
@@ -835,7 +843,7 @@ export default {
       })
     },
     ToBreak(val) {
-      if (val) return val.replace('\n', '<br/>')
+      if (val)return val.replace(/\n/g, '<br/>')
     }
   }
 }

+ 78 - 57
src/views/landTransportation/placeAnOrder/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <basic-container v-if="show">
+    <basic-container v-show="show">
       <div class="home-container">
         <div style="display: flex;justify-content: center;">
           <div class="content">
@@ -105,8 +105,9 @@
         </div>
       </div>
     </basic-container>
-    <basic-container v-if="show">
+    <basic-container v-show="show">
       <avue-crud
+          v-if="key>0"
           :table-loading="loading"
           :page.sync="page"
           :data="dataList"
@@ -131,7 +132,7 @@
         <template slot="addressDetail" slot-scope="{ row,index}">
           <el-tooltip class="item" effect="dark" placement="top">
             <div v-html="ToBreak(row.addressDetail)" slot="content"></div>
-            <div style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{row.addressDetail}}</div>
+/*            <div style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">{{row.addressDetail}}</div>*/
           </el-tooltip>
         </template>
         <template slot-scope="{row,index}" slot="menu">
@@ -155,7 +156,7 @@
         </template>
       </avue-crud>
     </basic-container>
-    <detail-page v-else @backToList="backToList" :id="id"></detail-page>
+    <detail-page v-if="!show" @backToList="backToList" :id="id"></detail-page>
   </div>
 </template>
 
@@ -182,6 +183,7 @@ export default {
         total: 0,
         pageSizes: [10, 50, 100, 200, 300]
       },
+      key:0,
       totalData:{},
       option: {},
       optionList: {
@@ -198,97 +200,115 @@ export default {
         searchIndex: 2,
         column:[
           {
-            label: '状态',
-            prop: 'itemStatusDetail',
-            index: 1,
-            overHidden: true,
-            width: 140
-          },{
-            label: '订单号',
-            prop: 'orderNo',
-            index: 2,
+            label: '货运日期',
+            prop: 'arrivalTime',
             overHidden: true,
-            width: 160,
+            type: "date",
+            searchRange: true,
+            defaultTime:['00:00:00', '23:59:59'],
+            format: "yyyy-MM-dd HH:mm:ss",
+            valueFormat: "yyyy-MM-dd HH:mm:ss",
+            index: 1,
+            width: 150,
             search: true,
           }, {
-            label: '客户名称',
-            prop: 'corpName',
-            overHidden: true,
-            index: 3,
-            width: 140,
+            label: '业务员',
+            index: 2,
+            width: 150,
+            prop: 'salesman',
             search: true,
-          }, {
-            label: '所属公司',
-            prop: 'belongCompany',
             overHidden: true,
-            index: 4,
+            type: "select",
+            dicUrl: "/api/blade-user/userList",
+            props: {
+              label: "realName",
+              value: "id"
+            }
+          }, {
+            label: '货运地点',
+            prop: 'addressDetail',
+            index: 3,
             width: 140,
             search: true,
           }, {
             label: '提单号',
             prop: 'billNo',
-            index: 5,
+            index: 4,
             overHidden: true,
             width: 140,
             search: true,
           }, {
-            label: '货物名称',
-            prop: 'goods',
+            label: '入货场站',
+            prop: 'station',
             overHidden: true,
-            index: 6,
-            width: 140,
-            search: true,
-          }, {
-            label: '路线',
-            prop: 'addressDetail',
-            index: 7,
+            index: 5,
             width: 140,
             search: true,
           },{
             label: '计划箱量',
             prop: 'ctnDetail',
             overHidden: true,
-            index: 8,
-            width: 140,
-            search: true,
+            index: 6,
+            width: 140
           },{
             label: '已派箱量',
             prop: 'dispatchCtnDetail',
             overHidden: true,
-            index: 9,
-            width: 140,
-            search: true,
+            index: 7,
+            width: 140
           },{
             label: '受理箱量',
             prop: 'sendCtnDetail',
             overHidden: true,
-            index: 10,
+            index: 8,
+            width: 140
+          },{
+            label: '运费',
+            index: 9,
             width: 140,
+            prop: 'freight'
+          },{
+            label: '订单号',
+            prop: 'orderNo',
+            index: 10,
+            overHidden: true,
+            width: 160,
             search: true,
           }, {
-            label: '场站',
-            prop: 'station',
-            overHidden: true,
+            label: '状态',
+            prop: 'itemStatusDetail',
             index: 11,
-            width: 140,
-            search: true,
+            overHidden: true,
+            width: 140
           }, {
-            label: '到厂时间',
-            prop: 'arrivalTime',
+            label: '公司名称',
+            prop: 'corpName',
             overHidden: true,
-            type: "date",
-            searchRange: true,
-            defaultTime:['00:00:00', '23:59:59'],
-            format: "yyyy-MM-dd HH:mm:ss",
-            valueFormat: "yyyy-MM-dd HH:mm:ss",
             index: 12,
-            width: 150,
+            width: 140,
             search: true,
-          }, {
+          }
+          // , {
+          //   label: '所属公司',
+          //   prop: 'belongCompany',
+          //   overHidden: true,
+          //   index: 4,
+          //   width: 140,
+          //   search: true,
+          // }
+          // , {
+          //   label: '货物名称',
+          //   prop: 'goods',
+          //   overHidden: true,
+          //   index: 13,
+          //   width: 140,
+          //   search: true,
+          // }
+            ,{
             label: '船名航次',
             prop: 'factory',
             overHidden: true,
-            index: 13,
+            index: 14,
             width: 140,
             search: true,
           }, {
@@ -300,7 +320,7 @@ export default {
             defaultTime:['00:00:00', '23:59:59'],
             format: "yyyy-MM-dd HH:mm:ss",
             valueFormat: "yyyy-MM-dd HH:mm:ss",
-            index: 14,
+            index: 15,
             width: 140,
             search: true,
           }]
@@ -314,6 +334,7 @@ export default {
   },
   async created() {
     this.option = await this.getColumnData(this.getColumnName(85), this.optionList);
+    this.key++
     let i = 0;
     this.option.column.forEach(item => {
       if (item.search) i++
@@ -430,7 +451,7 @@ export default {
       this.show = true
     },
     ToBreak (val) {
-      if (val)return val.replace('\n', '<br/>')
+      if (val)return val.replace(/\n/g, '<br/>')
     }
   }
 }

+ 3 - 2
vue.config.js

@@ -27,10 +27,11 @@ module.exports = {
       '/api': {
         //本地服务接口地址
         // target: 'http://192.168.1.12:1080',
-        // target: 'http://192.168.1.117:1080',
+        target: 'http://192.168.1.114:1080',
+        // target: 'http://124.222.119.174:1080',
         // 打包地址.
         // target: 'http://121.37.83.47:10004',//服务器ip
-        target: 'http://trade.tubaosoft.com:10004',//服务器域名
+        // target: 'http://trade.tubaosoft.com:10004',//服务器域名
         ws: true,
         pathRewrite: {
           '^/api': '/'