瀏覽代碼

合并冲突

huk 3 年之前
父節點
當前提交
4bb8259f2f
共有 62 個文件被更改,包括 2439 次插入413 次删除
  1. 2 2
      build/utils.js
  2. 8 1
      config/index.js
  3. 22 0
      src/components/exportExcel/exportExcel.js
  4. 43 0
      src/components/exportPdf/exportPdf.js
  5. 14 0
      src/js/QueueStartList.js
  6. 47 0
      src/js/sharedJsFile.js
  7. 49 0
      src/views/RMS/app.js
  8. 28 2
      src/views/RMS/components/addCapacity.vue
  9. 121 10
      src/views/RMS/components/addCarDriver.vue
  10. 190 55
      src/views/RMS/components/addCarrier.vue
  11. 27 8
      src/views/RMS/components/addGatepost.vue
  12. 40 9
      src/views/RMS/components/addMaterial.vue
  13. 9 1
      src/views/RMS/components/addNotice.vue
  14. 29 3
      src/views/RMS/components/addOilPrice.vue
  15. 31 3
      src/views/RMS/components/addPersonnel.vue
  16. 17 8
      src/views/RMS/components/addPier.vue
  17. 20 2
      src/views/RMS/components/addPort.vue
  18. 54 51
      src/views/RMS/components/addPortStorageYard.vue
  19. 35 4
      src/views/RMS/components/addRawWarehouse.vue
  20. 28 2
      src/views/RMS/components/addRmsShipper.vue
  21. 28 2
      src/views/RMS/components/addSupplier.vue
  22. 41 11
      src/views/RMS/components/addTruckCalculate.vue
  23. 8 8
      src/views/RMS/components/capacity.vue
  24. 8 8
      src/views/RMS/components/carDriver.vue
  25. 6 5
      src/views/RMS/components/carrier.vue
  26. 47 0
      src/views/RMS/components/consignee.vue
  27. 0 0
      src/views/RMS/components/detailsTruckCalculate.vue
  28. 18 3
      src/views/RMS/components/editCapacity.vue
  29. 20 3
      src/views/RMS/components/editCarDriver.vue
  30. 86 6
      src/views/RMS/components/editCarrier.vue
  31. 52 13
      src/views/RMS/components/editGatepost.vue
  32. 18 1
      src/views/RMS/components/editMaterial.vue
  33. 15 18
      src/views/RMS/components/editNotice.vue
  34. 15 3
      src/views/RMS/components/editOilPrice.vue
  35. 19 3
      src/views/RMS/components/editPersonnel.vue
  36. 14 3
      src/views/RMS/components/editRawWarehouse.vue
  37. 14 2
      src/views/RMS/components/editRmsShipper.vue
  38. 17 2
      src/views/RMS/components/editSupplier.vue
  39. 48 23
      src/views/RMS/components/editTruckCalculate.vue
  40. 6 6
      src/views/RMS/components/gatepost.vue
  41. 0 8
      src/views/RMS/components/getNoticeById.vue
  42. 6 5
      src/views/RMS/components/material.vue
  43. 8 7
      src/views/RMS/components/notice.vue
  44. 8 7
      src/views/RMS/components/oilPrice.vue
  45. 7 6
      src/views/RMS/components/personnel.vue
  46. 6 5
      src/views/RMS/components/rawMaterialManufacturer.vue
  47. 6 5
      src/views/RMS/components/rawWarehouse.vue
  48. 6 5
      src/views/RMS/components/rmsShipper.vue
  49. 6 5
      src/views/RMS/components/supplier.vue
  50. 13 1
      src/views/RMS/components/transitRoute.vue
  51. 8 7
      src/views/RMS/components/truckCalculate.vue
  52. 3 2
      src/views/RMS/router/index.js
  53. 4 0
      src/views/appoint/app.js
  54. 492 0
      src/views/appoint/components/saleContract/addSaleOrderArrange.vue
  55. 15 15
      src/views/appoint/components/saleContract/saleOrder.vue
  56. 118 0
      src/views/appoint/components/saleContract/saleOrderArrange.vue
  57. 41 0
      src/views/appoint/components/saleContract/saleOrderMaterial.vue
  58. 6 0
      src/views/appoint/router/index.js
  59. 121 41
      src/views/sale/components/transport_appointment/directionalDispatch.vue
  60. 15 13
      src/views/sale/components/transport_appointment/openDistribution.vue
  61. 254 0
      src/views/sale/components/transport_appointment/openDistributionSection.vue
  62. 2 0
      src/views/sale/router/index.js

+ 2 - 2
build/utils.js

@@ -18,8 +18,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 //  'logistics', 'process', '   ', 'reportform', 'basicconfig', 'system']
 // let devModules = ['index', 'qualityControl', 'standard', 'basicconfig'];
 // let devModules = ['index','devops','workFlow','systemConfig', 'microService'];
-// let devModules = ['all'];
-let devModules = ['index','inward','TMS','RMS']
+let devModules = ['all'];
+// let devModules = ['index','inward','TMS','RMS']
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
 }

+ 8 - 1
config/index.js

@@ -56,7 +56,7 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    target: "http://192.168.1.106:8080",
+    target: "http://172.16.33.166:8080",
     ws: true,
     pathRewrite: {
       "^/api/v1": "/api/v1"
@@ -69,6 +69,13 @@ let proxyTable = {
   //     "^/views/api/v1": "/api/v1"
   //   }
   // },
+  "/views/api/v1": {
+    target: "http://172.16.33.166:8080",
+    ws: true,
+    pathRewrite: {
+      "^/views/api/v1": "/api/v1"
+    }
+  },
   '/icore.icp.web/pass/logout': {
     target: 'http://172.16.33.161:9001/logout',
     changeOrigin: true,

+ 22 - 0
src/components/exportExcel/exportExcel.js

@@ -0,0 +1,22 @@
+// 导出表格为excel格式
+export default{
+  install (Vue, options) {
+    Vue.prototype.exportData = function () {
+      var title = this.tableTitle
+      let tHeader = [];
+        let filterVal = [];
+        this.$refs.excelDom.dataColumnData.filter( (item,i) =>{
+          tHeader.push(item.label);
+              filterVal.push(item.prop);
+          } )
+      //导出为excel
+      this.downloadLoading = true
+      require.ensure([], () => {
+      const { export_json_to_excel } = require("@/assets/excel/Export2Excel.js"); //这里必须使用绝对路径,使用@/+存放export2Excel的路径
+      let list = this.$refs.excelDom.dataTabel;
+      let data = list.map((v) => filterVal.map((j) => v[j]));//3.formatJson格式转换
+      export_json_to_excel(tHeader, data, title); // (title)导出的表格名称
+    });
+    }
+  },
+}

+ 43 - 0
src/components/exportPdf/exportPdf.js

@@ -0,0 +1,43 @@
+// 导出页面为PDF格式
+import html2Canvas from 'html2canvas'
+import JsPDF from 'jspdf'
+export default{
+  install (Vue, options) {
+    Vue.prototype.getPdf = function () {
+      var title = this.htmlTitle
+      html2Canvas(document.querySelector('#pdfDom'), {
+        allowTaint: true
+      }).then(function (canvas) {
+        var pdf = new JsPDF('p', 'mm', 'a4') // A4纸,纵向
+
+        var ctx = canvas.getContext('2d')
+
+        var a4w = 210;
+        var a4h = 297 // A4大小,210mm x 297mm,四边不保留边距,显示区域210x297 (四边各保留20mm的边距,显示区域170x257)(pass)
+
+        var imgHeight = Math.floor(a4h * canvas.width / a4w) // 按A4显示比例换算一页图像的像素高度
+
+        var renderedHeight = 0
+
+        while (renderedHeight < canvas.height) {
+            var page = document.createElement('canvas')
+
+            page.width = canvas.width
+
+            page.height = Math.min(imgHeight, canvas.height - renderedHeight) // 可能内容不足一页
+
+            // 用getImageData剪裁指定区域,并画到前面建立的canvas对象中
+            page.getContext('2d').putImageData(ctx.getImageData(0, renderedHeight, canvas.width, Math.min(imgHeight, canvas.height - renderedHeight)), 0, 0)
+            pdf.addImage(page.toDataURL('image/jpeg', 1.0), 'JPEG', 0, 0, a4w, Math.min(a4h, a4w * page.height / page.width)) // 添加图像到页面,保留10mm边距
+            renderedHeight += imgHeight
+
+            if (renderedHeight < canvas.height) {
+                pdf.addPage()
+            } // 若是后面还有内容,添加一个空页
+            // delete page;
+        }
+        pdf.save(title + '.pdf')
+    })
+    }
+  }
+}

+ 14 - 0
src/js/QueueStartList.js

@@ -0,0 +1,14 @@
+import axios from 'axios'
+//返回月台
+export function loadingPoint(URL){
+  let loadingpoint = []
+  axios.get(URL).then((res)=>{
+    res.data.data.forEach(e => {
+      let arr = {
+          value:e.GRID_NAME
+      };
+    loadingpoint.push(arr)
+    });
+  })
+  return loadingpoint;
+}

+ 47 - 0
src/js/sharedJsFile.js

@@ -0,0 +1,47 @@
+ //把时间戳改为正常可读的时间
+export function renderTime(date) {
+    if(date !== null){
+        let dateee = new Date(date).toJSON();
+        return new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, " ").replace(/\.[\d]{3}Z/, "");
+    }
+    return null;
+}
+//把毫秒数转换分
+export function getDuration(my_time) { 
+    if(my_time !== null){
+        return Math.floor(my_time / 1000 / 60);
+    }
+    return null;
+}
+export function sjTime(orderPlanInTime) {
+    var stringTime = renderTime(orderPlanInTime);
+    var timestamp1 = stringTime.replace(/-/g, "/");
+    return new Date(timestamp1).getTime();
+}
+//验证电话号码
+export function VerifyPhoneNumber(Phone) {
+    var myreg=/^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/;
+    if (!myreg.test(Phone)) {
+        return false;
+    } else {
+        return true;
+    }
+}
+export function isNumber(value) {
+    //验证是否为数字
+    var patrn = /^(-)?\d+(\.\d+)?$/;
+    if (patrn.exec(value) == null || value == "") {
+      return false;
+    } else {
+      return true;
+    }
+  }
+export function isIntegerNumber(value) {
+    //验证是否为整数
+    var patrn = /^\+?[1-9][0-9]*$/g;
+    if (patrn.exec(value) == null || value == "") {
+      return false;
+    } else {
+      return true;
+    }
+  }

+ 49 - 0
src/views/RMS/app.js

@@ -15,6 +15,7 @@ import VueApollo from 'vue-apollo'
 
 import apollo from '@/config/apolloConfig.js'
 
+
 // 关闭生产模式下给出的提示
 Vue.config.productionTip = false;
 
@@ -28,6 +29,54 @@ const apolloProvider = new VueApollo({
     defaultClient: apollo
 })
 
+ //把时间戳改为正常可读的时间
+ export function renderTime(date) {
+  if(date !== null){
+      let dateee = new Date(date).toJSON();
+      return new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, " ").replace(/\.[\d]{3}Z/, "");
+  }
+  return null;
+}
+//把毫秒数转换分
+export function getDuration(my_time) { 
+  if(my_time !== null){
+      return Math.floor(my_time / 1000 / 60);
+  }
+  return null;
+}
+export function sjTime(orderPlanInTime) {
+  var stringTime = renderTime(orderPlanInTime);
+  var timestamp1 = stringTime.replace(/-/g, "/");
+  return new Date(timestamp1).getTime();
+}
+//验证电话号码
+export function VerifyPhoneNumber(Phone) {
+  var myreg=/^(13[0-9]|14[5|7]|15[0|1|2|3|4|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/;
+  if (!myreg.test(Phone)) {
+      return false;
+  } else {
+      return true;
+  }
+}
+export function isNumber(value) {
+  //验证是否为数字
+  var patrn = /^(-)?\d+(\.\d+)?$/;
+  if (patrn.exec(value) == null || value == "") {
+    return false;
+  } else {
+    return true;
+  }
+}
+export function isIntegerNumber(value) {
+  //验证是否为整数
+  var patrn = /^\+?[1-9][0-9]*$/g;
+  if (patrn.exec(value) == null || value == "") {
+    return false;
+  } else {
+    return true;
+  }
+}
+
 /* eslint-disable no-new */
 new Vue({
   el: '#app',

+ 28 - 2
src/views/RMS/components/addCapacity.vue

@@ -72,6 +72,32 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 121 - 10
src/views/RMS/components/addCarDriver.vue

@@ -6,7 +6,19 @@
     <div class="form-box" style="margin-right: 10rem">
       <dil-form :formId="311" v-model="form1" ref="from1"></dil-form>
     </div>
-   <!-- <el-upload
+    <div class="inputBox">
+    <span class="text">所属承运商</span>
+      <el-autocomplete
+        v-model="state"
+        @input="onInput"
+        :fetch-suggestions="querySearch"
+        placeholder="请输入内容"
+        :trigger-on-focus="false"
+        @select="handleSelect"
+      ></el-autocomplete>
+      </div>
+    <div class="photoBox">
+   <el-upload
       class="upload-demo"
       action="https://jsonplaceholder.typicode.com/posts/"
       :on-preview="handlePreview"
@@ -17,16 +29,20 @@
       :on-exceed="handleExceed"
       :file-list="fileList"
     >
+      <div>驾驶证
       <el-button size="small" type="primary">点击上传</el-button>
       <div slot="tip" class="el-upload__tip">
-        只能上传jpg/png文件,且不超过500kb
       </div>
-    </el-upload> -->
+      </div>
+    </el-upload> 
+    </div>
     <div class="button-box">
       <el-button @click="cancel">取消</el-button>
       <el-button type="primary" @click="makeSure">确定</el-button>
     </div>
   </div>
+  
+    
 </template>
 
 <script>
@@ -36,13 +52,52 @@ export default {
   components: { PageTitle },
   data() {
     return {
+      restaurants: [],
       form1: {},
       value: undefined,
       fileList: [],
+      carrierIds:"",
+      state: "",
+      sex: "男",
     };
   },
-  mounted() {},
+  mounted() {
+     this.form1.driverSex = this.sex;	
+},
   methods: {
+    onInput() {
+      this.axios.post(
+        "/api/v1/rms/getCarrierName?state="+this.state,
+      )
+      .then((res) => {
+        if(res.data.code == "200"){
+          res.data.data.forEach(element => {
+            this.restaurants.push({
+              value:element.carrierName,
+              carrierIds:element.carrierId
+            })
+          });
+        }
+        
+      });
+    },
+    querySearch(queryString, cb) {
+        var restaurants = this.restaurants;
+        var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
+        // 调用 callback 返回建议列表的数据
+        cb(results);
+      },
+      createFilter(queryString) {
+        return (restaurant) => {
+          return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
+        };
+      },
+    handleSelect(item){
+      this.carrierIds=item.carrierIds;
+      console.log(item)
+    },
+   
+
     handleRemove(file, fileList) {
       console.log(file, fileList);
     },
@@ -61,6 +116,7 @@ export default {
     },
     makeSure() {
       console.log(this.form1);
+      let reg = new RegExp(/^[0-9]*$/);
       let RmsCarDriver = {
         driverName: this.form1.driverName,
         driverSex: this.form1.driverSex,
@@ -68,20 +124,30 @@ export default {
         driverIdentityCard: this.form1.driverIdentityCard,
         driverPhone: this.form1.driverPhone,
         transportTypeId: this.form1.transportTypeId,
-        carrierId: this.form1.carrierId,
+   //     carrierId: this.form1.carrierId,
         driverPermitNo: this.form1.driverPermitNo,
         driverLicence: this.form1.driverLicence,
         driverLicence: this.form1.driverLicence,
         driverLicence: this.form1.driverLicence,
+        state:this.state,
+        carrierName:this.state,
+        carrierIds: this.carrierIds,
+
       };
-    if(
+    if (
+        reg.test(RmsCarDriver.driverAge) == false ||
+        reg.test(RmsCarDriver.driverPhone) == false
+      )
+        this.$message.error("输入的格式不正确");
+      else  if(
         RmsCarDriver.driverName==null ||
         RmsCarDriver.driverSex==null ||
         RmsCarDriver.driverAge==null ||
         RmsCarDriver.driverIdentityCard==null ||
         RmsCarDriver.driverPhone==null ||
         RmsCarDriver.transportTypeId==null ||
-        RmsCarDriver.carrierId==null 
+        RmsCarDriver.carrierIds==null 
+     //   RmsCarDriver.carrierId==null 
     )this.$message.error("存在空值!");
      else
       this.axios
@@ -107,6 +173,51 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
-</style>
+<style lang='scss'>
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.inputBox{
+     display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.1000rem;
+  margin-bottom: 0.25rem;
+  margin-left: -12.5rem;
+}
+.photoBox{
+   display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.1000rem;
+  margin-bottom: 0.25rem;
+  margin-left: -18rem;
+}
+.form-box{
+  display:flex;
+  justify-content: center;
+  .el-form-item{
+    display:flex;
+    justify-content: center;
+    .el-form-item__label{
+      display:flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width:250px;
+        }
+      }
+    }
+  }
+  
+}
+</style>

+ 190 - 55
src/views/RMS/components/addCarrier.vue

@@ -6,6 +6,90 @@
      <div class="form-box" style="margin-right: 10rem">
         <dil-form :formId="330" v-model="form1"></dil-form>
       </div>
+    <!-- <el-upload
+      class="upload-demo"
+      action="https://jsonplaceholder.typicode.com/posts/"
+      :on-preview="handlePreview"
+      :on-remove="handleRemove"
+      :before-remove="beforeRemove"
+      multiple
+      :limit="1"
+      :on-exceed="handleExceed"
+      :file-list="fileList"
+    >
+      <el-button size="small" type="primary">点击上传</el-button>
+      <div slot="tip" class="el-upload__tip">
+        只能上传jpg/png文件,且不超过500kb
+      </div>
+    </el-upload>
+    <el-upload
+      class="upload-demo"
+      action="https://jsonplaceholder.typicode.com/posts/"
+      :on-preview="handlePreview"
+      :on-remove="handleRemove"
+      :before-remove="beforeRemove"
+      multiple
+      :limit="1"
+      :on-exceed="handleExceed"
+      :file-list="fileList"
+    >
+      <el-button size="small" type="primary">点击上传</el-button>
+      <div slot="tip" class="el-upload__tip">
+        只能上传jpg/png文件,且不超过500kb
+      </div>
+    </el-upload>
+    <el-upload
+      class="upload-demo"
+      action="https://jsonplaceholder.typicode.com/posts/"
+      :on-preview="handlePreview"
+      :on-remove="handleRemove"
+      :before-remove="beforeRemove"
+      multiple
+      :limit="1"
+      :on-exceed="handleExceed"
+      :file-list="fileList"
+    >
+      <el-button size="small" type="primary">点击上传</el-button>
+      <div slot="tip" class="el-upload__tip">
+        只能上传jpg/png文件,且不超过500kb
+      </div>
+    </el-upload> -->
+
+    <div class="form-box f1">
+      <el-form :inline="true" :model="formInline" class="demo-form-inline">
+    <el-form-item>
+    <el-button type="primary" @click="drawer = true">添加中标区域信息</el-button>
+  </el-form-item>
+    </el-form>
+    </div>
+    <el-drawer
+      :visible.sync="drawer"
+      :direction="direction"
+      :before-close="handleClose">
+        <el-input
+            placeholder="请输入内容"
+            v-model="inputText"
+            clearable>
+          </el-input>
+          <el-button type="primary" class="btn" @click="onclick">
+            <i class="el-icon-search"></i>查询
+          </el-button>
+          <div><dilTable v-bind.sync="options" @radio-change="currentRadioChange" ></dilTable></div>
+              
+</el-drawer>
+      <dilTable v-bind.sync="option1">
+      <el-table-column fixed="right" label="操作" align="center" width="200">
+        <template slot-scope="scope">
+          <el-button
+            type="text"
+            size="mini"
+            @click="deleteclick(scope)"
+            >删除</el-button
+          >
+        </template>
+      </el-table-column>
+    </dilTable>
+
     <div class="button-box">
       <el-button @click="cancel">取消</el-button>
       <el-button type="primary" @click="makeSure">确定</el-button>
@@ -15,21 +99,37 @@
 
 <script>
 import PageTitle from "@/components/Page/Title";
-
 export default {
   components: { PageTitle },
   data() {
     return {
       form1: {},
       value: undefined,
+      drawer: false,
       carrierType:{},
-      carrierTransportType:{}
+      carrierTransportType:{},
+      options:{
+        // first请求数据的地址
+        requestUrl: "/api/v1/rms/getCarrierBidAreaList?apiId=406",
+        selectionType: "radio",
+         mapList:[],
+         registerDate:"",
+         mapValue:""
+      },
     };
   },
   methods: {
-    onClick(){},
+    onclick(){
+      this.options.requestUrl="/api/v1/rms/getCarrierBidAreaList?apiId=406&con=" +this.inputText;
+    },
+    currentRadioChange(selection){
+      this.mapList=selection, 
+      console.log(this.mapList) 
+      this.bidArea=this.mapList.bidArea
+     
+    },
      makeSure() {
-      console.log(this.form1)
+      let reg=new RegExp(/^[0-9]*$/);
       let RmsCarrier={
         carrierName:this.form1.carrierName,
         carrierTransportCertificate:this.form1.carrierTransportCertificate,
@@ -38,7 +138,7 @@ export default {
         carrierAbbreviation:this.form1.carrierAbbreviation,
         carrierAddress:this.form1.carrierAddress,
         registerNo:this.form1.registerNo,
-        carrierBidAreaId:this.form1.carrierBidAreaId,
+        carrierBidAreaId:this.mapList.bidAreaId,
         carrierLegalRepresentative:this.form1.carrierLegalRepresentative,
         registerCapital:this.form1.registerCapital,
         businessScope:this.form1.businessScope,
@@ -46,7 +146,6 @@ export default {
         companyStatusDesc:this.form1.companyStatusDesc,
         companyTypeDesc:this.form1.companyTypeDesc,
         operationPeriod:this.form1.operationPeriod,
-        registerDate: sjTime(this.form1.registerDate),
         registerOrganization:this.form1.registerOrganization,
         registerAptitudes:this.form1.registerAptitudes,
         contactsName:this.form1.contactsName,
@@ -54,57 +153,93 @@ export default {
         carrierType:this.form1.carrierType,
         carrierTransportType:this.form1.carrierTransportType
       };
+      let registerDate={
+        registerDate: this.form1.registerDate,
+      };
+      let mapValue={
+        RmsCarrier:RmsCarrier,
+        registerDate:registerDate
+      };
       if(
-        RmsCarrier.carrierName ==null ||
-       // RmsCarrier.carrierTransportCertificate ==null ||
-       // RmsCarrier.carrierBusinessLicense ==null ||
-       // RmsCarrier.carrierBusinessAblelicense ==null ||
-        RmsCarrier.carrierAbbreviation ==null ||
-        RmsCarrier.carrierAddress ==null ||
-        RmsCarrier.registerNo ==null ||
-        RmsCarrier.carrierBidAreaId ==null || 
-        RmsCarrier.carrierLegalRepresentative ==null ||
-        RmsCarrier.registerCapital ==null ||
-        RmsCarrier.businessScope ==null ||
-        RmsCarrier.annualDate ==null ||
-        RmsCarrier.companyStatusDesc ==null ||
-        RmsCarrier.companyTypeDesc ==null ||
-        RmsCarrier.operationPeriod ==null ||
-        RmsCarrier.registerDate ==null ||
-        RmsCarrier.registerOrganization ==null ||
-        RmsCarrier.registerAptitudes ==null ||
-        RmsCarrier.contactsName ==null ||
-        RmsCarrier.carrierContactNumber ==null ||
-        RmsCarrier.carrierType ==null ||
-        RmsCarrier.carrierTransportType ==null 
-      )this.$message.error("存在空值!");
-      else
-      this.axios
-        .post(
-          "/api/v1/rms/insertCarrier",
-           RmsCarrier
-        )
-        .then((res) => {
-          if (res.data.code == 200) {
-            this.$message({
-              type: "success",
-              message: "新增成功!",
-            });
-            // this.$refs.table.refreshData();
-            this.$router.go(-1);
-          } else {
-            this.$message.error("新增失败,可能存在重复!");
-          }
-          this.$refs['table'].resetField();
-        });
+        reg.test(RmsCarrier.carrierContactNumber)==false
+      )this.$message.error("输入的格式不正确");
+       else if(
+          RmsCarrier.carrierName ==null ||
+        // RmsCarrier.carrierTransportCertificate ==null ||
+        // RmsCarrier.carrierBusinessLicense ==null ||
+        // RmsCarrier.carrierBusinessAblelicense ==null ||
+          RmsCarrier.carrierAbbreviation ==null ||
+          RmsCarrier.carrierAddress ==null ||
+          RmsCarrier.registerNo ==null ||
+          RmsCarrier.carrierBidAreaId ==null || 
+          RmsCarrier.carrierLegalRepresentative ==null ||
+          RmsCarrier.registerCapital ==null ||
+          RmsCarrier.businessScope ==null ||
+          RmsCarrier.annualDate ==null ||
+          RmsCarrier.companyStatusDesc ==null ||
+          RmsCarrier.companyTypeDesc ==null ||
+          RmsCarrier.operationPeriod ==null ||
+          registerDate.registerDate ==null ||
+          RmsCarrier.registerOrganization ==null ||
+          RmsCarrier.registerAptitudes ==null ||
+          RmsCarrier.contactsName ==null ||
+          RmsCarrier.carrierContactNumber ==null ||
+          RmsCarrier.carrierType ==null ||
+          RmsCarrier.carrierTransportType ==null 
+        )this.$message.error("存在空值!");
+        else
+         this.axios
+          .post(
+            "/api/v1/rms/insertCarrier",
+            mapValue
+          )
+          .then((res) => {
+            if (res.data.code == 200) {
+              this.$message({
+                type: "success",
+                message: "新增成功!",
+              });
+              // this.$refs.table.refreshData();
+              this.$router.go(-1);
+            } else {
+              this.$message.error("新增失败,可能存在重复!");
+            }
+            this.$refs['table'].resetField();
+          });
+      },
+      // // 取消
+      cancel() {
+        this.$router.go(-1);
+      },
     },
-    // // 取消
-    cancel() {
-      this.$router.go(-1);
-    },
-  },
 };
 </script>
-<style lang='scss' scoped>
-
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 27 - 8
src/views/RMS/components/addGatepost.vue

@@ -84,14 +84,14 @@ export default {
 <style lang='scss' scoped>
 
 </style>
-<style lang='scss' scoped>
-.form-box {
-  padding: 20px 30px;
-  margin-left: 330px;
-}
-.button-box {
-  padding: 20px 30px;
-  margin-left: 460px;
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
 }
 .btn-left {
   margin-left: 470px;
@@ -145,4 +145,23 @@ export default {
   margin-top: -2.5rem;
   margin-left: 10.5rem;
 }
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 40 - 9
src/views/RMS/components/addMaterial.vue

@@ -5,16 +5,19 @@
     <el-divider content-position="left">物资信息</el-divider>
      <div class="form-box" style="margin-right: 10rem">
         <dil-form :formId="326" v-model="form1" ref="from1"></dil-form>
+
       </div>
         <div class="form-box f1">
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
-  <el-form-item label="物资种类">
+  <div class="disableBox">
+  <el-form-item>
     <el-input v-model="materialTypeName" disabled>  
     </el-input>
   </el-form-item>
   <el-form-item>
-    <el-button type="primary" @click="drawer = true">浏览</el-button>
+    <el-button type="primary" @click="drawer = true">物资种类</el-button>
   </el-form-item>
+  </div>
     </el-form>
     </div>
     <el-drawer
@@ -119,14 +122,23 @@ export default {
       }
 };
 </script>
-<style lang='scss' scoped>
-.form-box {
-  padding: 20px 30px;
-  margin-left: 330px;
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
 }
-.button-box {
-  padding: 20px 30px;
-  margin-left: 460px;
+.disableBox{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 3rem;
+  margin-bottom: 1.25rem;
+  margin-left: -23rem;
 }
 .btn-left {
   margin-left: 470px;
@@ -179,4 +191,23 @@ export default {
   margin-top: -2.5rem;
   margin-left: 25rem;
 }
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 9 - 1
src/views/RMS/components/addNotice.vue

@@ -68,5 +68,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 29 - 3
src/views/RMS/components/addOilPrice.vue

@@ -65,6 +65,32 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
-</style>
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
+</style>

+ 31 - 3
src/views/RMS/components/addPersonnel.vue

@@ -35,6 +35,7 @@ export default {
         personnelPost: this.form1.personnelPost,
         personnelWorkshopid: this.form1.personnelWorkshopid,
         personnelShifts: this.form1.personnelShifts,
+        personnelTeam:this.form1.personnelTeam,
         departmentId: this.form1.shipperId
       };
       if(
@@ -43,7 +44,8 @@ export default {
         RmsPersonnel.personnelPost ==null ||
         RmsPersonnel.personnelWorkshopid==null ||
         RmsPersonnel.personnelShifts==null ||
-        RmsPersonnel.departmentId==null 
+        RmsPersonnel.departmentId==null ||
+        RmsPersonnel.personnelTeam==null
       )this.$message.error("存在空值!");
       else
       
@@ -73,6 +75,32 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 17 - 8
src/views/RMS/components/addPier.vue

@@ -62,15 +62,24 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-.form-box,
-.button-box{
+<style lang='scss' >
+.form-box{
   display: flex;
-  text-align: center;
-  align-items: center;
   justify-content: center;
-  margin-top: 0.3125rem;
-  margin-bottom: 1.25rem;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
 }
-
 </style>

+ 20 - 2
src/views/RMS/components/addPort.vue

@@ -64,8 +64,7 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-.form-box,
+<style lang='scss' >
 .button-box{
   display: flex;
   text-align: center;
@@ -74,4 +73,23 @@ export default {
   margin-top: 0.3125rem;
   margin-bottom: 1.25rem;
 }
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 54 - 51
src/views/RMS/components/addPortStorageYard.vue

@@ -15,61 +15,64 @@
 <script>
 import PageTitle from "@/components/Page/Title";
 export default {
-  components: { PageTitle },
-  data() {
-    return {
-      form1: {},
-      value: undefined,
-    };
-  },
-  mounted() {},
-  methods: {
-     makeSure() {
-        console.log(this.form1)
-    //   let RmsCapacity = {
-          
-    //   };
-       let RmsCapacity=this.form1;
-      console.log(RmsCapacity)
-      if (
-        RmsCapacity.warehouseName==null||
-        RmsCapacity.portId==null
-      ) this.$message.error("存在空值!");
-      else 
-      this.axios
-        .post(
-          "/api/v1/rms/insertPortYard",
-           RmsCapacity
-        )
-        .then((res) => {
-          if (res.data.code == 200) {
-            this.$message({
-              type: "success",
-              message: "新增成功!",
-            });
-            // this.$refs.table.refreshData();
-            this.$router.go(-1);
-          } else {
-            this.$message.error("新增失败,可能存在重复!");
-          }
-          this.$refs['table'].resetField();
-        });
-    },
-    // 取消
-    cancel() {
-      this.$router.go(-1);
-    },
-  },
+  components: { PageTitle },
+  data() {
+    return {
+      form1: {},
+      value: undefined,
+    };
+  },
+  mounted() {},
+  methods: {
+     makeSure() {
+        console.log(this.form1)
+    //   let RmsCapacity = {
+          
+    //   };
+       let RmsCapacity=this.form1;
+      console.log(RmsCapacity)
+      if (
+        RmsCapacity.warehouseName==null||
+        RmsCapacity.portId==null
+      ) this.$message.error("存在空值!");
+      else 
+      this.axios
+        .post(
+          "/api/v1/rms/insertPortYard",
+           RmsCapacity
+        )
+        .then((res) => {
+          if (res.data.code == 200) {
+            this.$message({
+              type: "success",
+              message: "新增成功!",
+            });
+            // this.$refs.table.refreshData();
+            this.$router.go(-1);
+          } else {
+            this.$message.error("新增失败,可能存在重复!");
+          }
+          this.$refs['table'].resetField();
+        });
+    },
+    // 取消
+    cancel() {
+      this.$router.go(-1);
+    },
+  },
 };
 </script>
 <style lang='scss' scoped>
+.el-input{
+    display: flex;
+}
 .form-box,
 .button-box{
-  display: flex;
-  text-align: center;
-  align-items: center;
-  justify-content: center;
-  margin-top: 0.3125rem;
-  margin-bottom: 1.25rem;
+    display: flex;
+    text-align: center;
+    align-items: center;
+    justify-content: center;
+    margin-top: 0.3125rem;
+    margin-bottom: 1.25rem;
 }
 </style>

+ 35 - 4
src/views/RMS/components/addRawWarehouse.vue

@@ -30,8 +30,13 @@ export default {
      makeSure() {
        console.log(this.from1)
        let RmsWarehouse = {
-         warehouseName:this.form1.warehouseName, 
-       }
+         warehouseName:this.form1.warehouseName,
+         shipperId:this.form1.shipperId 
+       };
+       if(
+         RmsWarehouse.warehouseName==null ||
+         RmsWarehouse.shipperId==null
+       )this.$message.error("存在空值!");
     //  console.log(this.RmsWarehouse)
       this.axios
         .post(
@@ -58,6 +63,32 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 28 - 2
src/views/RMS/components/addRmsShipper.vue

@@ -65,6 +65,32 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 28 - 2
src/views/RMS/components/addSupplier.vue

@@ -69,6 +69,32 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 41 - 11
src/views/RMS/components/addTruckCalculate.vue

@@ -11,14 +11,17 @@
     <el-form :inline="true" :model="formInline" class="demo-form-inline">     
     </el-form>
   </div>
-    <el-input
+  <div class="inputBox">
+  <el-input :inline="true"
         placeholder="请输入内容"
         v-model="inputText"
         clearable>
     </el-input>
-          <el-button type="primary" class="btn" @click="onclick">
-            <i class="el-icon-search"></i>物资列表查询
-          </el-button> 
+    <el-button type="primary" class="btn" @click="onclick" :inline="true">
+        <i class="el-icon-search"></i>物资列表查询
+    </el-button> 
+  </div>
+    
           <div> <dilTable v-bind.sync="options" @selection-change="selectionChange"></dilTable></div>
 
     <div class="button-box">
@@ -111,14 +114,22 @@ export default {
   },
 };
 </script>
-<style lang='scss' scoped>
-.form-box {
-  padding: 20px 30px;
-  margin-left: 330px;
+<style lang='scss' >
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
 }
-.button-box {
-  padding: 20px 30px;
-  margin-left: 460px;
+.inputBox{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+   margin-top: 2rem;
+  width: 400px;
 }
 .btn-left {
   margin-left: 470px;
@@ -171,4 +182,23 @@ export default {
   margin-top: -2.5rem;
   margin-left: 25rem;
 }
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
 </style>

+ 8 - 8
src/views/RMS/components/capacity.vue

@@ -1,6 +1,6 @@
 //资源管理运力
 <template>
-  <div class="capacity">
+  <div class="steel_inbound">
     <div class="sache">
       <el-input
         placeholder="请输入内容"
@@ -98,14 +98,14 @@ export default {
   }
 
 </script>
-
 <style lang="scss" scode>
-.capacity{
+.steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 8 - 8
src/views/RMS/components/carDriver.vue

@@ -1,6 +1,6 @@
 //资源管理司机
 <template>
-  <div class="carDriver">
+  <div class="steel_inbound">
     <div class="sache">
       <el-input
         placeholder="请输入内容"
@@ -101,14 +101,14 @@ export default {
 }
 
 </script>
-
 <style lang="scss" scode>
-.carDriver{
+.steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 6 - 5
src/views/RMS/components/carrier.vue

@@ -103,10 +103,11 @@ export default {
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 47 - 0
src/views/RMS/components/consignee.vue

@@ -0,0 +1,47 @@
+<template>
+  <!-- 客户收货信息页面 -->
+  <div class="steel_inbound">
+    <div class="sache">
+      <el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+    </div>
+    <dilTable v-bind.sync="option">
+    </dilTable>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "homeworkPath",
+  data() {
+    return {
+      restaurants: [],
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/rms/getConsigneeList?apiId=407",
+      },
+    };
+  },
+  mounted() {
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/rms/getConsigneeList?apiId=407&con=" + this.input;
+    },
+  },
+};
+</script>
+<style lang="scss" scode>
+.steel_inbound{
+  .sache{
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+  }
+</style>

+ 0 - 0
src/views/RMS/components/detailsTruckCalculate.vue


+ 18 - 3
src/views/RMS/components/editCapacity.vue

@@ -72,7 +72,14 @@ console.log(this.$route.params)
          capacityVip:this.form1.capacityVip,
          capacityBlacklist:this.form1.capacityBlacklist,
          carrierId:this.form1.carrierId,
-       }  
+       };if(
+         RmsCapacity.capacityNumber==null ||
+         RmsCapacity.capacityCorlor==null ||
+         RmsCapacity.capacityOwneris==null ||
+         RmsCapacity.capacityVip==null ||
+         RmsCapacity.capacityBlacklist==null ||
+         RmsCapacity.carrierId==null
+       )this.$message.error("存在空值!");  
         console.log( this.$route.params.capacityId);
         this.axios
           .post(
@@ -89,6 +96,14 @@ console.log(this.$route.params)
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 20 - 3
src/views/RMS/components/editCarDriver.vue

@@ -72,7 +72,16 @@ export default {
        driverLicence:this.form1.driverLicence,
        driverLicence:this.form1.driverLicence,
        driverLicence:this.form1.driverLicence,
-      }
+      };
+      if(
+        RmsCarDriver.driverName==null ||
+        RmsCarDriver.driverSex==null ||
+        RmsCarDriver.driverAge==null ||
+        RmsCarDriver.driverIdentityCard==null ||
+        RmsCarDriver.driverPhone==null ||
+        RmsCarDriver.transportTypeId==null ||
+        RmsCarDriver.carrierId==null 
+    )this.$message.error("存在空值!");
         this.axios
           .post(
             "/api/v1/rms/updateCarDriver",
@@ -87,6 +96,14 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 86 - 6
src/views/RMS/components/editCarrier.vue

@@ -13,6 +13,28 @@
       </div>
     </div>
 
+    <div class="form-box f1">
+      <el-form :inline="true" :model="formInline" class="demo-form-inline">
+    <el-form-item>
+    <el-button type="primary" @click="drawer = true">添加中标区域信息</el-button>
+  </el-form-item>
+    </el-form>
+    </div>
+    <el-drawer
+      :visible.sync="drawer"
+      :direction="direction"
+      :before-close="handleClose">
+        <el-input
+            placeholder="请输入内容"
+            v-model="inputText"
+            clearable>
+          </el-input>
+          <el-button type="primary" class="btn" @click="onclick">
+            <i class="el-icon-search"></i>查询
+          </el-button>
+          <div><dilTable v-bind.sync="options" @radio-change="currentRadioChange" ></dilTable></div>   
+    </el-drawer>
+
     <div class="button-box">
       <el-button type="primary" @click="onClickConfirm">确认</el-button>
       <el-button @click="onClickCancel">返回</el-button>
@@ -28,6 +50,17 @@ export default {
   data() {
     return {
       form1: {},
+      registerDate:"",
+      mapValue:"",
+      drawer: false,
+      options:{
+        // first请求数据的地址
+        requestUrl: "/api/v1/rms/getCarrierBidAreaList?apiId=406",
+        selectionType: "radio",
+         mapList:[],
+         registerDate:"",
+         mapValue:""
+      },
     };
   },
  
@@ -36,6 +69,15 @@ export default {
     this.information();
   },
   methods: {
+    onclick(){
+      this.options.requestUrl="/api/v1/rms/getCarrierBidAreaList?apiId=406&con=" +this.inputText;
+    },
+    currentRadioChange(selection){
+      this.mapList=selection, 
+      console.log(this.mapList) 
+      this.bidArea=this.mapList.bidArea
+     
+    },
     information() {
       //编辑
       this.axios
@@ -60,7 +102,7 @@ export default {
     // 确认
     onClickConfirm() {  
        let RmsCarrier={
-        carrierId:this.from1.carrierId,
+        carrierId:this.$route.params.carrierId,
         carrierName:this.form1.carrierName,
         carrierTransportCertificate:this.form1.carrierTransportCertificate,
         carrierBusinessLicense:this.form1.carrierBusinessLicense,
@@ -68,7 +110,7 @@ export default {
         carrierAbbreviation:this.form1.carrierAbbreviation,
         carrierAddress:this.form1.carrierAddress,
         registerNo:this.form1.registerNo,
-        carrierBidAreaId:this.form1.carrierBidArea,
+        carrierBidAreaId:this.mapList.bidAreaId,
         carrierLegalRepresentative:this.form1.carrierLegalRepresentative,
         registerCapital:this.form1.registerCapital,
         businessScope:this.form1.businessScope,
@@ -76,7 +118,6 @@ export default {
         companyStatusDesc:this.form1.companyStatusDesc,
         companyTypeDesc:this.form1.companyTypeDesc,
         operationPeriod:this.form1.operationPeriod,
-        registerDate: sjTime(this.form1.registerDate),
         registerOrganization:this.form1.registerOrganization,
         registerAptitudes:this.form1.registerAptitudes,
         contactsName:this.form1.contactsName,
@@ -84,10 +125,41 @@ export default {
         carrierType:this.form1.carrierType,
         carrierTransportType:this.form1.carrierTransportType
       };
+       let registerDate={
+        registerDate: this.form1.registerDate,
+      };
+      let mapValue={
+        RmsCarrier:RmsCarrier,
+        registerDate:registerDate
+      };
+       if(
+        RmsCarrier.carrierName ==null ||
+       // RmsCarrier.carrierTransportCertificate ==null ||
+       // RmsCarrier.carrierBusinessLicense ==null ||
+       // RmsCarrier.carrierBusinessAblelicense ==null ||
+        RmsCarrier.carrierAbbreviation ==null ||
+        RmsCarrier.carrierAddress ==null ||
+        RmsCarrier.registerNo ==null ||
+        RmsCarrier.carrierBidAreaId ==null || 
+        RmsCarrier.carrierLegalRepresentative ==null ||
+        RmsCarrier.registerCapital ==null ||
+        RmsCarrier.businessScope ==null ||
+        RmsCarrier.annualDate ==null ||
+        RmsCarrier.companyStatusDesc ==null ||
+        RmsCarrier.companyTypeDesc ==null ||
+        RmsCarrier.operationPeriod ==null ||
+        registerDate.registerDate ==null ||
+        RmsCarrier.registerOrganization ==null ||
+        RmsCarrier.registerAptitudes ==null ||
+        RmsCarrier.contactsName ==null ||
+        RmsCarrier.carrierContactNumber ==null ||
+        RmsCarrier.carrierType ==null ||
+        RmsCarrier.carrierTransportType ==null 
+      )this.$message.error("存在空值!");
         this.axios
           .post(
             "/api/v1/rms/updateCarrier",
-            RmsCarrier
+            mapValue
           )
           .then((res) => {
             if (res.data.code == "200") {
@@ -98,6 +170,14 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 52 - 13
src/views/RMS/components/editGatepost.vue

@@ -2,23 +2,26 @@
   <!-- 门岗规则信息页面 -->
   <div class="homeworkPath">
     <page-title>门岗规则信息</page-title>
-    <div class="form box">
+    <div>
       <el-form>
     <el-form-item>
-    <label class="el-form-item__label" style="width: auto;">门岗名称</label>
+    <div class="form1">
+    <label class="el-form-item__label" style="width: 100px">门岗名称</label>
+
          <el-input
         placeholder=""
         v-model="gatepostName"
         :disabled="true">
       </el-input>
+      </div>
       </el-form-item>
       </el-form>
     </div>
-    <div class="form">
+    <div class="form-box">
       <dil-form :formId="358" v-model="form"></dil-form>
     </div>
     <!-- 时间点 -->
-    <div class="form-box f1" >
+    <div class="timeBox" >
         门岗开门时间
         <el-time-select
           v-model="rulesGatepostStartTime"
@@ -31,7 +34,7 @@
           >
         </el-time-select>
     </div>
-    <div class="form-box f1">
+    <div class="timeBox">
       门岗关门时间
       <el-time-select
       v-model="rulesGatepostEndTime"
@@ -44,7 +47,7 @@
     </el-time-select>
     </div>
     <!-- 原料模态窗口显示 -->
-    <div class="form-box f1">
+    <div class="drawerBox">
       <el-form :inline="true"  class="demo-form-inline">
         
         <el-form-item>
@@ -234,19 +237,55 @@ export default {
       color: #606266;
     }
   }
+  .form1{
+    display: flex;
+    text-align: center;
+    align-items: center;
+    justify-content: center;
+    margin-left: 34rem;
+    width: 300px;
+  }
   .form {
-    margin-top: 1.25rem;
+   display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+   margin-top: 4rem;
+  margin-left: 35rem;
+  width: 300px;
+  }
+}
+.form-box{
+  display: flex;
+  justify-content: center;
+   margin-top: 1rem;
+  margin-left: -4rem;
+  .el-form-item{
     display: flex;
     justify-content: center;
-    align-items: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
   }
 }
-.form-box {
-  padding: 20px 30px;
-  margin-left: 330px;
+.timeBox{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 1rem;
+  margin-left: -4rem;
 }
-.f1{
-  margin-top: -2.5rem;
+.drawerBox{
+  margin-top: 2.5rem;
   margin-left: 40rem;
 }
 .btn2{

+ 18 - 1
src/views/RMS/components/editMaterial.vue

@@ -70,6 +70,15 @@ export default {
         unitOfMeasureId:this.form1.unitOfMeasureId,
         materialTheoreticalWeight:this.form1.materialTheoreticalWeight,
       };
+         if(
+        RmsMaterial.materialCode==null ||
+        RmsMaterial.materialName==null ||
+        RmsMaterial.materialSpecification==null ||
+        RmsMaterial.materialModel==null ||
+        RmsMaterial.materialTypeId==null ||
+        RmsMaterial.unitOfMeasureId==null ||
+        RmsMaterial.materialTheoreticalWeight==null 
+      )this.$message.error("存在空值!");
         this.axios
           .post(
             "/api/v1/rms/updateMaterial",
@@ -89,5 +98,13 @@ export default {
 };
 </script>
 <style lang='scss' scoped>
-
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 15 - 18
src/views/RMS/components/editNotice.vue

@@ -20,13 +20,8 @@
   </div>
 </template>
 
-
-
-
 <script>
 
-
-
 import PageTitle from "@/components/Page/Title";
 
 export default {
@@ -71,8 +66,12 @@ export default {
         insertTime:this.form1.insertTime,
         insertUsername:this.form1.insertUsername,
         noticeContent:this.form1.noticeContent,
-
       };
+       if(
+        DilNotice.noticeTitle ==null ||
+        DilNotice.insertUsername ==null ||
+        DilNotice.noticeContent ==null
+      )this.$message.error("存在空值!");
       this.axios
         .post(
           "/api/v1/rms/updateNotice",
@@ -87,21 +86,19 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
-
-</style>
-
-<style>
-
-.el-textarea__inner{
-/*  width: 300px !important;*/
-  min-height:250px !important;
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
 }
-
-
 </style>
 
 
 
 
+

+ 15 - 3
src/views/RMS/components/editOilPrice.vue

@@ -65,8 +65,12 @@ export default {
         priceDate:this.form1.priceDate,
         priceValue:this.form1.priceValue,
         priceOilName:this.form1.priceOilName,
-
       };
+      if(
+        RmsOilPrice.priceOilName ==null ||
+        RmsOilPrice.priceDate ==null ||
+         RmsOilPrice.priceValue ==null
+      )this.$message.error("存在空值!");
       this.axios
         .post(
           "/api/v1/rms/updateOilPrice",
@@ -81,6 +85,14 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 19 - 3
src/views/RMS/components/editPersonnel.vue

@@ -66,7 +66,15 @@ export default {
          personnelShifts: this.form1.personnelShifts,
          shipperId: this.form1.shipperId,
          personnelTeam: this.form1.personnelTeam,
-       }  
+       }; 
+         if(
+        RmsPersonnel.personnelJobNumber ==null ||
+        RmsPersonnel.personnelName ==null ||
+        RmsPersonnel.personnelPost ==null ||
+        RmsPersonnel.personnelWorkshopid==null ||
+        RmsPersonnel.personnelShifts==null ||
+        RmsPersonnel.departmentId==null 
+      )this.$message.error("存在空值!"); 
         this.axios
           .post(
             "/api/v1/rms/updatePersonnel",
@@ -82,6 +90,14 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 14 - 3
src/views/RMS/components/editRawWarehouse.vue

@@ -59,7 +59,10 @@ export default {
        let RmsWarehouse={
       warehouseId:this.$route.params.warehouseId,
       warehouseName:this.form1.warehouseName
-    }
+    };
+    if(
+         warehouseName==null
+       )this.$message.error("存在空值!");
    console.log(RmsWarehouse)
         this.axios
           .post(
@@ -75,6 +78,14 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 14 - 2
src/views/RMS/components/editRmsShipper.vue

@@ -65,6 +65,10 @@ export default {
         shipperName: this.form1.shipperName,
         shipperAbbreviation: this.form1.shipperAbbreviation
       };
+      if(
+        RmsShipper.shipperName==null ||
+        RmsShipper.shipperAbbreviation ==null 
+      )this.$message.error("存在空值!");
         this.axios
           .post(
             "/api/v1/rms/updateShipper",
@@ -79,6 +83,14 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 17 - 2
src/views/RMS/components/editSupplier.vue

@@ -69,6 +69,13 @@ export default {
         supplierContactsName: this.form1.supplierContactsName,
         supplierContactNumber: this.form1.supplierContactNumber
       };
+       if(
+        RmsSupplier.supplierName==null ||
+        RmsSupplier.supplierAddress==null ||
+        RmsSupplier.supplierRegisterDate==null ||
+        RmsSupplier.supplierContactsName==null ||
+        RmsSupplier.supplierContactNumber==null 
+      )this.$message.error("存在空值!");
         this.axios
           .post(
             "/api/v1/rms/updateSupplier",
@@ -83,6 +90,14 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-
+<style lang='scss' scoped>
+.form-box,
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 48 - 23
src/views/RMS/components/editTruckCalculate.vue

@@ -11,10 +11,8 @@
           <dil-form :formId="354" v-model="form1"></dil-form>
         </div>
       </div>
-        <div class="form-box f1">
+        <div class="materialBox">
           <el-form :inline="true" :model="formInline" class="demo-form-inline">
-    </el-input>
-  </el-form-item>
   <el-form-item>
     <el-button type="primary" @click="drawer = true">增加物资</el-button>
   </el-form-item>
@@ -24,6 +22,7 @@
       :visible.sync="drawer"
       :direction="direction"
       :before-close="handleClose">
+      <div class="inputBox">
         <el-input
             placeholder="请输入内容"
             v-model="inputText"
@@ -32,6 +31,7 @@
           <el-button type="primary" class="btn" @click="onclick">
             <i class="el-icon-search"></i>查询
           </el-button>
+        </div>
             <div><dilTable v-bind.sync="option2" @radio-change="currentRadioChange" ></dilTable></div>
               <div class="button-box">
       <el-button type="primary" @click="makeSure">确定</el-button>
@@ -131,7 +131,11 @@ export default {
          truckCalculateLongitude:this.form1.truckCalculateLongitude,
          truckCalculateLatitude:this.form1.truckCalculateLatitude,
          calculateType:this.form1.calculateType,
-       }
+       };
+         if(
+        rmsTruckCalculate.truckCalculateNumber == null ||
+        rmsTruckCalculate.calculateType ==null
+         )this.$message.error("存在空值!");
     
         this.axios
           .post(
@@ -206,10 +210,39 @@ makeSure() {
   },
 };
 </script>
-<style lang='scss' scoped>
-.form-box {
-  padding: 20px 30px;
-  margin-left: 330px;
+<style lang='scss'>
+.form-box{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-form-item__content{
+      .el-input{
+        .el-input__inner{
+          width: 250px;
+        }
+      }
+    }
+  }
+}
+.inputBox{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  width: 400px;
+}
+.inputBox{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  width: 400px;
 }
 .button-box {
   padding: 20px 30px;
@@ -250,20 +283,12 @@ makeSure() {
   cursor: default;
   color: #2c3e50;
 }
-.f1{
-  margin-top: -2.5rem;
-  margin-left: 22.3rem;
-}
-.f11{
-  margin-top: -3rem;
-  // margin-left: 29rem;
-}
-.f2{
-  margin-top: -2.5rem;
-  margin-left: 20.7rem;
-}
-.f3{
-  margin-top: -2.5rem;
-  margin-left: 25rem;
+.materialBox{
+   display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
 }
 </style>

+ 6 - 6
src/views/RMS/components/gatepost.vue

@@ -99,14 +99,14 @@ export default {
 }
 
 </script>
-
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 0 - 8
src/views/RMS/components/getNoticeById.vue

@@ -76,11 +76,3 @@ export default {
 </style>
 
 
-<!--<el-input id="FormGroup_1639361270400"
-          type="textarea"
-          placeholder="请输入内容"
-          v-model="textarea"
-
->
-</el-input>-->
-

+ 6 - 5
src/views/RMS/components/material.vue

@@ -103,10 +103,11 @@ export default {
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 8 - 7
src/views/RMS/components/notice.vue

@@ -1,6 +1,6 @@
 //公告管理
 <template>
-  <div class="notice">
+  <div class="steel_inbound">
     <div class="sache">
       <el-input
         placeholder="请输入内容"
@@ -127,12 +127,13 @@ export default {
 </script>
 
 <style lang="scss" scode>
-.notice{
+.steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 8 - 7
src/views/RMS/components/oilPrice.vue

@@ -1,6 +1,6 @@
 //资源管理油价管理
 <template>
-  <div class="oilPrice">
+  <div class="steel_inbound">
     <div class="sache">
       <el-input
         placeholder="请输入内容"
@@ -104,12 +104,13 @@ export default {
 </script>
 
 <style lang="scss" scode>
-.oilPrice{
+.steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 7 - 6
src/views/RMS/components/personnel.vue

@@ -104,10 +104,11 @@ export default {
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
-</style>
+</style>

+ 6 - 5
src/views/RMS/components/rawMaterialManufacturer.vue

@@ -99,10 +99,11 @@ export default {
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 6 - 5
src/views/RMS/components/rawWarehouse.vue

@@ -102,10 +102,11 @@ export default {
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 6 - 5
src/views/RMS/components/rmsShipper.vue

@@ -103,10 +103,11 @@ export default {
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 6 - 5
src/views/RMS/components/supplier.vue

@@ -103,10 +103,11 @@ export default {
 <style lang="scss" scode>
 .steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 13 - 1
src/views/RMS/components/transitRoute.vue

@@ -1,6 +1,6 @@
 // 运输路线
 <template>
-  <div class="transitRoute">
+  <div class="steel_inbound">
     <div class="top">
       <!-- 框计算 -->
       <el-input placeholder="请输入内容" v-model="inputText" clearable>
@@ -128,4 +128,16 @@ export default {
     padding-left: 60px;
   }
 }
+</style>
+
+<style lang="scss" scode>
+.steel_inbound{
+  .sache{
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+  }
 </style>

+ 8 - 7
src/views/RMS/components/truckCalculate.vue

@@ -1,6 +1,6 @@
 //资源管理汽车衡
 <template>
-  <div class="truckCalculate">
+  <div class="steel_inbound">
     <div class="sache">
       <el-input
         placeholder="请输入内容"
@@ -98,12 +98,13 @@ export default {
 </script>
 
 <style lang="scss" scode>
-.truckCalculate{
+.steel_inbound{
   .sache{
-    height: 80px;
-    display: flex;
-    align-items: center;
-    padding-left: 30px;
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
   }
-}
 </style>

+ 3 - 2
src/views/RMS/router/index.js

@@ -23,7 +23,7 @@ import addTruckCalculate from '../components/addTruckCalculate.vue'
 import capacity from '../components/capacity.vue'
 import carDriver from '../components/carDriver.vue'
 import carrier from '../components/carrier.vue'
-import addPidetailsTruckCalculateer from '../components/detailsTruckCalculate.vue'
+
 import editCapacity from '../components/editCapacity.vue'
 import editCarDriver from '../components/editCarDriver.vue'
 import editCarrier from '../components/editCarrier.vue'
@@ -52,6 +52,7 @@ import supplier from '../components/supplier.vue'
 import transitRoute from '../components/transitRoute.vue'
 import transitRouteAdd from '../components/transitRouteAdd.vue'
 import truckCalculate from '../components/truckCalculate.vue'
+import consignee from '../components/consignee.vue'
 Vue.use(Router)
 const constantRouterMap = [
 	{
@@ -79,7 +80,6 @@ const constantRouterMap = [
 		{path: 'capacity', name: 'capacity', meta: {code: 'xtpzgl-yhgl'}, component: capacity},
 		{path: 'carDriver', name: 'carDriver', meta: {code: 'xtpzgl-yhgl'}, component: carDriver},
 		{path: 'carrier', name: 'carrier', meta: {code: 'xtpzgl-yhgl'}, component: carrier},
-		{path: 'addPidetailsTruckCalculateer', name: 'addPidetailsTruckCalculateer', meta: {code: 'xtpzgl-yhgl'}, component: addPidetailsTruckCalculateer},
 		{path: 'editCapacity/:capacityId', name: 'editCapacity', meta: {code: 'xtpzgl-yhgl'}, component: editCapacity},
 		{path: 'editCarDriver/:driverId', name: 'editCarDriver', meta: {code: 'xtpzgl-yhgl'}, component: editCarDriver},
 		{path: 'editCarrier/:carrierId', name: 'editCarrier', meta: {code: 'xtpzgl-yhgl'}, component: editCarrier},
@@ -108,6 +108,7 @@ const constantRouterMap = [
 		{path: 'transitRoute', name: 'transitRoute', meta: {code: 'xtpzgl-yhgl'}, component: transitRoute},
 		{path: 'transitRouteAdd/:addup', name: 'transitRouteAdd', meta: {code: 'xtpzgl-yhgl'}, component: transitRouteAdd},
 		{path: 'truckCalculate', name: 'truckCalculate', meta: {code: 'xtpzgl-yhgl'}, component: truckCalculate},
+		{path: 'consignee', name: 'consignee', meta: {code: 'xtpzgl-yhgl'}, component: consignee}
 	  ]
 	}
   ];

+ 4 - 0
src/views/appoint/app.js

@@ -24,6 +24,10 @@ Vue.use(VueApollo)
 import DilCommonUI from "@/components/DilCommonUI";
 Vue.use(DilCommonUI);
 
+// 导出Excel全局组件
+import tableToExcel from '@/components/exportExcel/exportExcel'
+Vue.use(tableToExcel)
+
 const apolloProvider = new VueApollo({
     defaultClient: apollo
 })

+ 492 - 0
src/views/appoint/components/saleContract/addSaleOrderArrange.vue

@@ -0,0 +1,492 @@
+<template>
+  <!-- 添加销售订单 -->
+  <div class="addSalePlan">
+    <page-title>新增销售订单排车</page-title>
+
+    <div class="table_form from">
+      <div class="materialId">
+        <span class="text"> 物资: </span>
+        <el-button type="primary" class="btn" @click="table = true">浏览</el-button>
+      </div>
+    </div>
+    <!-- 车序号表格 -->
+    <div class="switch" v-if="selectionList.length > 0">
+      <el-tooltip placement="top">
+        <div slot="content">下面表格已有数据,不能进行更改!!!</div>
+        <el-switch
+          v-model="value"
+          active-text="重量"
+          inactive-text="件数"
+          disabled
+        >
+        </el-switch>
+      </el-tooltip>
+    </div>
+    <div class="switch" v-else>
+      <el-tooltip placement="top">
+        <div slot="content">当下面表格有数据之后,将不能进行更改!!!</div>
+        <el-switch v-model="value" active-text="重量" inactive-text="件数">
+        </el-switch>
+      </el-tooltip>
+    </div>
+
+    <div class="selectionTable from">
+      <el-table
+        :data="selectionList"
+        border
+        style="width: 100%"
+        highlight-current-row
+      >
+        <el-table-column
+          v-for="(item, i) in tableTop"
+          :key="i"
+          :prop="item.prop"
+          :label="item.label"
+          :width="item.width"
+          align="center"
+          show-overflow-tooltip
+        >
+          <template slot="scope" v-if="item.label !== '件数'">
+            <span>{{ item.label }}</span>
+          </template>
+          <template slot="scope" v-if="item.label !== '车序号'">
+            <span>{{ item.label }}</span>
+          </template>
+          <template slot="scope" v-if="item.label !== '收货地址'">
+            <span>{{ item.label }}</span>
+          </template>
+          <template slot="scope" v-if="item.label !== '收货日期'">
+            <span>{{ item.label }}</span>
+          </template>
+          <template slot="scope" v-if="item.label !== '收货姓名'">
+            <span>{{ item.label }}</span>
+          </template>
+          <template slot="scope" v-if="item.label !== '收货方电话'">
+            <span>{{ item.label }}</span>
+          </template>
+          <!-- 插入输入框 -->
+          <template slot-scope="scope">
+            <template v-if="item.slot">
+              <!-- 物资件数 -->
+              <template v-if="item.prop == 'orderPlanWeight'">
+                <el-input
+                  class="textinput"
+                  v-model.number="scope.row.orderPlanWeight"
+                ></el-input>
+              </template>
+              <!-- 车序号 -->
+              <template v-if="item.prop == 'cxh'">
+                <el-input
+                  class="textinput1"
+                  v-model.number="scope.row.cxh"
+                ></el-input>
+              </template>
+              <!-- 收货地址id -->
+              <template style="width: 400px" v-if="item.prop == 'saleShipperAddressName'">
+                <el-input style="width: 200px" v-model="scope.row.saleShipperAddressName" disabled>
+                </el-input>
+                <el-button type="primary" @click="ondrawer(scope.row,scope.$index)"
+                  >浏览</el-button
+                >
+              </template>
+              <!-- 收货日期 -->
+              <template v-if="item.prop == 'saleDateOfReceipt'">
+                <el-date-picker
+                  class="textinput3"
+                  type="date"
+                  v-model.number="scope.row.saleDateOfReceipt"
+                ></el-date-picker>
+              </template>
+              <!-- 收货客户 -->
+              <template v-if="item.prop == 'saleOrderConsignee'">
+                <el-input
+                  class="textinput4"
+                  v-model.number="scope.row.saleOrderConsignee"
+                ></el-input>
+              </template>
+              <!-- 收货客户电话号码 -->
+              <template v-if="item.prop == 'saleOrderConsigneeTel'">
+                <el-input
+                  class="textinput5"
+                  v-model.number="scope.row.saleOrderConsigneeTel"
+                ></el-input>
+              </template>
+            </template>
+            <template v-else>
+              <span>{{ scope.row[item.prop] }}</span>
+            </template>
+          </template>
+        </el-table-column>
+        <!-- 操作列 -->
+        <el-table-column fixed="right" label="操作" width="100">
+          <template slot-scope="scope">
+            <el-button
+              @click.native.prevent="deleteRow(scope.$index, selectionList)"
+              type="text"
+              icon="el-icon-close"
+              size="big"
+            ></el-button>
+          </template>
+        </el-table-column>
+      </el-table>
+    </div>
+
+    <el-drawer
+      :visible.sync="drawer"
+      :direction="direction"
+      :close-on-press-escape="true"
+      :show-close="true"
+      :wrapperClosable="true"
+      modal
+      size="30%"
+    >
+      <el-input
+        placeholder="请输入内容"
+        v-model="textInput"
+        style="margin-top: 10px; margin-left: 20px;width: 200px"
+        clearable
+      >
+      </el-input>
+      <el-button
+        type="primary"
+        class="btn"
+        @click="onclick1()"
+        style="margin-bottom: 15px"
+      >
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <dilTable
+        v-bind.sync="frist"
+        @radio-change="currentRadioChange1"
+      ></dilTable>
+    </el-drawer>
+    <el-drawer
+      title="选择物资信息"
+      :visible.sync="table"
+      direction="rtl"
+      size="50%"
+      :show-close="false"
+    >
+      <el-input placeholder="请输入内容" v-model="input"  
+      style="margin-top: 10px; margin-left: 20px;width:160px" clearable> </el-input
+      ><el-button type="primary" class="btn" @click="onclick" style="margin-left: 4px;">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button @click="open">取消</el-button>
+      <el-button type="primary" @click="makeSure1">确定</el-button>
+      <div class="tablecls">
+        <!-- 查询所有的物资 -->
+        <dilTable v-bind.sync="option" @selection-change="selectionChange">
+        </dilTable>
+      </div>
+    </el-drawer>
+
+    <div class="button-box">
+      <el-button @click="cancel">取消</el-button>
+      <el-button type="primary" @click="makeSure">确定</el-button>
+    </div>
+  </div>
+</template>
+<script>
+import PageTitle from "@/components/Page/Title";
+
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      textInput: "",
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "api/v1/ams/getSaleOrderAndMaterialById?apiId=410&saleOrderId=" + this.$route.params.saleOrderId,
+        // 控制显示多选列
+        selectionType: "select",
+      },
+      table: false,
+      selectionList: [],
+      selectionList1: [],
+      drawer: false,
+      direction: "rtl",
+      form1: {},
+      value: false,
+      frist: {
+        requestUrl: "/api/v1/ams/getAddressDeliveryAddress?apiId=255",
+        selectionType: "radio",
+        mapList: [],
+      },
+      options: [
+        {
+          values: "yes",
+          label: "是",
+        },
+        {
+          values: "no",
+          label: "否",
+        },
+      ],
+      values: "yes",
+      tableTop: [
+        {
+          prop: "materialCode",
+          label: "物资编码",
+          width: "120",
+        },
+        {
+          prop: "cxh",
+          label: "车序号",
+          slot: true,
+        },
+        {
+          prop: "materialName",
+          label: "物资名称",
+          width: "140",
+        },
+        {
+          prop: "Specification",
+          label: "规格型号",
+          width: "140",
+        },
+        {
+          prop: "orderPlanWeight",
+          label: "件数",
+          slot: true,
+        },
+        {
+          prop: "saleShipperAddressName",
+          label: "收货地址",
+          width: "300",
+          slot: true,
+        },
+        {
+          prop: "saleDateOfReceipt",
+          label: "收货日期",
+          width: "110",
+          slot: true,
+        },
+        {
+          prop: "saleOrderConsignee",
+          label: "收货客户",
+          slot: true,
+        },
+        {
+          prop: "saleOrderConsigneeTel",
+          label: "收货客户电话号码",
+          slot: true,
+        },
+      ],
+      row: {},
+    };
+  },
+  // mounted() {
+  //   this.dianji();
+  // },
+  watch: {
+    value() {
+      if (this.value) {
+        this.tableTop[4]={
+          prop: "orderPlanWeight",
+          label: "重量",
+          slot: true,
+        };
+      } else {
+        this.tableTop[4]={
+          prop: "orderPlanWeight",
+          label: "件数",
+          slot: true,
+        };
+      }
+    },
+  },
+  methods: {
+    deleteRow(index, rows) {
+      rows.splice(index, 1);
+    },
+    //点击浏览事件
+    ondrawer(row,index) {
+      this.row = row;
+      this.row.index = index;
+      this.drawer = true;
+    },
+    //监听模态框点击事件
+    currentRadioChange1(radioList) {
+      this.selectionList[this.row.index].saleShipperAddressId = radioList.addressId;
+      this.selectionList[this.row.index].saleShipperAddressName = radioList.address;
+    },
+    //收货地址模态框查询
+    onclick1() {
+      this.option.requestUrl =
+        "/api/v1/ams/getAddressDeliveryAddress?apiId=255&con=" + this.textInput;
+    },
+    // dianji() {
+    //   this.axios.get("/api/v1/ams/getAddressDeliveryAddress").then((res) => {
+    //     if (res.data.code == "200") {
+    //       console.log(res);
+    //       this.options1 = res.data.data;
+    //     }
+    //   });
+    // },
+    //物资模态框查询
+    // 框计算
+    onclick() {
+      this.option.requestUrl =
+      "api/v1/ams/getSaleOrderAndMaterialById?apiId=410&saleOrderId=" + this.$route.params.saleOrderId;
+        //"/api/v1/uc/queryMaterialByLike?apiId=244&index=" + this.input;
+    },
+    open() {
+      if (this.selectionList1.length != 0) {
+        this.$confirm("取消会将已选择的数据清空, 是否继续?", "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        })
+          .then(() => {
+            this.selectionList1 = [];
+            this.table = false;
+          })
+          .catch(() => {});
+      } else {
+        this.table = false;
+      }
+    },
+    // 返回主界面
+    makeSure1() {
+      this.selectionList1.forEach((e) => {
+        var addmap = {
+          materialCode: e.materialCode,
+          cxh: null,
+          materialName: e.materialName,
+          Specification: e.specificationModel,
+          orderPlanWeight: null,
+          saleShipperAddressId: null,
+          saleShipperAddressName:null,
+          saleDateOfReceipt: null,
+          saleOrderConsignee: null,
+          saleOrderConsigneeTel: null,
+          saleMaterialId: e.saleMaterialId,
+          materialTheoreticalWeight: e.materialTheoreticalWeight,
+        };
+        this.selectionList.push(addmap);
+      });
+      this.selectionList1 = [];
+      this.table = false;
+    },
+    // 返回选中的物资信息
+    selectionChange(selection) {
+      this.selectionList1 = [];
+      this.selectionList1 = selection;
+      console.log("this.selectionList1 ",this.selectionList1)
+    },
+    // 确定
+    makeSure() {
+        //初始化maplist
+      var mapList = [];
+      console.log("this.selectionList",this.selectionList)
+      this.selectionList.forEach((item,i) => {
+        //初始化mapItem
+        var mapItem={
+                //销售订单id
+                saleOrderId : 0,
+                //车序号    
+                truckNo : "",
+                //收货地址id
+                shippingAddressId : 0,
+                //收货日期
+                dateOfReceipt :null,
+                //收货方姓名   
+                orderConsignee :"",
+                //收货方电话 
+                orderConsigneeTel :"",
+                //车序号物资ID
+                saleMaterialId : 0,
+                //物资数量
+                materialNumber : 0,
+            };
+        mapItem.saleOrderId=this.$route.params.saleOrderId;
+        mapItem.truckNo=item.cxh;
+        mapItem.shippingAddressId=item.saleShipperAddressId;
+        mapItem.dateOfReceipt=item.saleDateOfReceipt;
+        mapItem.orderConsignee=item.saleOrderConsignee;
+        mapItem.orderConsigneeTel=item.saleOrderConsigneeTel;
+        mapItem.saleMaterialId=item.saleMaterialId;
+        mapItem.materialNumber=item.orderPlanWeight;
+        mapList.push(mapItem);
+      });
+      console.log("mapList",mapList);
+        this.axios.post("api/v1/ams/addTruckNo", mapList).then((res) => {
+          if (res.data.code == "200") {
+            this.$router.go(-1);
+          }
+        });
+        
+    },
+    // 取消
+    cancel() {
+      this.$router.go(-1);
+    },
+    //关闭事件
+    handleClose(done) {
+      this.$confirm("确认关闭?")
+        .then((_) => {
+          done();
+        })
+        .catch((_) => {});
+    },
+
+    CloseClick() {},
+  },
+};
+</script>
+<style lang='scss' scoped>
+.addSalePlan{
+  width: 100%;
+}
+.switch{
+  margin-left: 60rem;
+}
+.form-box,
+.from {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  margin-top: 5px;
+  margin-bottom: 20px;
+}
+.button-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
+.select {
+  margin-left: -10rem;
+}
+.demo-form-inline {
+  margin-left: 2rem;
+}
+.table_form {
+  margin-left: -16rem;
+}
+.textinput {
+  width: 50px;
+}
+.textinput1 {
+  width: 50px;
+  text-align: center;
+  size: small;
+}
+.textinput2 {
+  width: 50px;
+  margin-right: 30px;
+}
+.textinput3 {
+  width: 270px;
+}
+.textinput4 {
+  width: 60px;
+}
+.textinput5 {
+  width: 120px;
+}
+</style>

+ 15 - 15
src/views/appoint/components/saleContract/saleOrder.vue

@@ -65,19 +65,19 @@
       <!-- 销售公司已审批 -->
        <el-tab-pane label="销售公司已审批" name="four">
         <dilTable v-bind.sync="option4">
-          <el-table-column fixed="right" label="操作" width="200">
+          <el-table-column fixed="right" label="操作" width="130">
             <template slot-scope="scope">
               <el-button
-                @click="lookclick(scope.row.saleOrderId)"
+                @click="addClick(scope.row.saleOrderId)"
                 type="text"
                 size="small"
-                >查看修改地址</el-button
+                >新增车序号</el-button
               >
               <el-button
-                @click="passclick(scope.row.saleOrderId)"
+                @click="detailedClick(scope.row.saleOrderId)"
                 type="text"
                 size="small"
-                >修改日志</el-button
+                >物资详情</el-button
               >
             </template>
           </el-table-column>
@@ -96,22 +96,22 @@ export default {
       option: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/ams/getSaleOrderInfo?apiId=98",
+          "/api/v1/ams/getSaleOrderInfoes?apiId=408",
       },
       option2: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/ams/getSaleOrderReported?apiId=98",
+          "/api/v1/ams/getSaleOrderReportedes?apiId=408",
       },
       option3: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/ams/getAmsSaleOrderApproved?apiId=105",
+          "/api/v1/ams/getAmsSaleOrderApprovedes?apiId=409",
       },
       option4: {
         // 表格请求数据的地址
         requestUrl:
-          "/api/v1/ams/getSaleOrderListBySaleCompany?apiId=105",
+          "/api/v1/ams/getSaleOrderListBySaleCompanyes?apiId=409",
       },
       
     };
@@ -127,18 +127,18 @@ export default {
     seeclick(saleOrderId) {
       this.$router.push("/saleOrderDetail/" + saleOrderId);
     },
-    lookclick(saleOrderId) {
-      this.$router.push("/saleOrderDetailApproved/" + saleOrderId);
-    },
-    passclick(saleOrderId) {
-      this.$router.push("/saleOrderUpdateLog/" + saleOrderId);
-    },
     btnclick() {
       this.$router.push("/addSaleOrder");
     },
     click(saleOrderId) {
       this.$router.push("/editSaleOrder/" + saleOrderId);
     },
+    addClick(saleOrderId){
+      this.$router.push("/addSaleOrderArrange/" + saleOrderId);
+    },
+    detailedClick(saleOrderId){
+      this.$router.push("saleOrderMaterial/" + saleOrderId);
+    },
     // 上传
     uploadclick(saleOrderId) {
       this.$confirm("是否上传", "提示", {

+ 118 - 0
src/views/appoint/components/saleContract/saleOrderArrange.vue

@@ -0,0 +1,118 @@
+//  销售订单排车
+<template>
+  <div class="steel_inbound">
+    <div class="sache">
+      <el-input placeholder="请输入内容" v-model="inputText" clearable>
+      </el-input>
+      <el-button type="primary" class="btn">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" class="btn" @click="Issue()">
+        <i class="el-icon-download"></i>下发
+      </el-button>
+    </div>
+    <template>
+      <div>
+        <dilTable v-bind.sync="first" @selection-change="selectionChange">
+            <el-table-column fixed="right" label="操作" width="150">
+                <template slot-scope="scope">
+                <el-button
+                @click="lookclick(scope.row.saleOrderId)"
+                type="text"
+                size="small"
+                >查看修改地址</el-button
+              >
+              <el-button
+                @click="passclick(scope.row.saleOrderId)"
+                type="text"
+                size="small"
+                >修改日志</el-button
+              >
+                </template>
+            </el-table-column>
+        </dilTable>
+      </div>
+    </template>
+  </div>
+</template>
+<script>
+export default {
+  data() {
+    return {
+      inputText: "",
+      first: {
+        // first请求数据的地址
+        requestUrl: "/api/v1/ams/getTruckNoList?apiId=411&issueStatus=0",
+        selectionType: "select",
+        mapList: [],
+      },
+      activeName: "first",
+    };
+  },
+  methods: {
+    Issue(){
+    if(this.first.mapList.length==0){
+      this.$message({
+            type: "warning",
+            message: "请先选择订单!",
+          });
+    }else{
+    this.$confirm("是否下发", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+      .then(() => {
+      //初始化maplist
+      var mapList = [];
+      this.first.mapList.forEach((item,i) => {
+        //初始化mapItem
+        var mapItem={
+                //销售订单物资中间表id
+                saleOrderMaterialId : 0,
+            };
+        mapItem.saleOrderMaterialId=item.saleOrderMaterialId;
+        mapList.push(mapItem);
+      });
+          this.$message({
+            type: "success",
+            message: "下发成功!",
+          });
+         this.axios.post("api/v1/ams/issueTruckNo", mapList).then((res) => {
+          if (res.data.code == "200") {
+            this.$router.go(0);
+          }
+        });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "取消上传!",
+          });
+        });
+    }
+    },
+    lookclick(saleOrderId) {
+      this.$router.push("/saleOrderDetailApproved/" + saleOrderId);
+    },
+    passclick(saleOrderId) {
+      this.$router.push("/saleOrderUpdateLog/" + saleOrderId);
+    },
+    selectionChange(selection) {
+      this.first.mapList = selection;
+    },
+  },
+};
+</script>
+<style lang="scss" scode>
+.steel_inbound {
+  .sache {
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+}
+</style>

+ 41 - 0
src/views/appoint/components/saleContract/saleOrderMaterial.vue

@@ -0,0 +1,41 @@
+//  销售订单物资详情
+<template>
+  <div class="steel_inbound">
+      <page-title>销售订单物资详情</page-title>
+    <template>
+      <div>
+        <dilTable v-bind.sync="first">
+        </dilTable>
+      </div>
+    </template>
+  </div>
+</template>
+<script>
+import PageTitle from "@/components/Page/Title";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      inputText: "",
+      first: {
+        // first请求数据的地址
+        requestUrl: "api/v1/ams/getSaleOrderAndMaterialById?apiId=410&saleOrderId=" + this.$route.params.saleOrderId,
+      },
+      activeName: "first",
+    };
+  },
+  methods: {
+  },
+};
+</script>
+<style lang="scss" scode>
+.steel_inbound {
+  .sache {
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+}
+</style>

+ 6 - 0
src/views/appoint/router/index.js

@@ -32,6 +32,7 @@ import updateShipPrice from '../components/purchase/updateShipPrice.vue'
 import updateTrainPrice from '../components/purchase/updateTrainPrice.vue'
 import updateTruckPrice from '../components/purchase/updateTruckPrice.vue'
 import addSaleOrder from '../components/saleContract/addSaleOrder.vue'
+import addSaleOrderArrange from '../components/saleContract/addSaleOrderArrange.vue'
 import addSalePlan from '../components/saleContract/addSalePlan.vue'
 import addSalePlanDetail from '../components/saleContract/addSalePlanDetail.vue'
 import addTransportPrice from '../components/saleContract/addTransportPrice.vue'
@@ -44,8 +45,10 @@ import editSalePlan from '../components/saleContract/editSalePlan.vue'
 import editTransportPrice from '../components/saleContract/editTransportPrice.vue'
 import editTruckNoDetail from '../components/saleContract/editTruckNoDetail.vue'
 import saleOrder from '../components/saleContract/saleOrder.vue'
+import saleOrderArrange from '../components/saleContract/saleOrderArrange.vue'
 import saleOrderDetail from '../components/saleContract/saleOrderDetail.vue'
 import saleOrderDetailApproved from '../components/saleContract/saleOrderDetailApproved.vue'
+import saleOrderMaterial from '../components/saleContract/saleOrderMaterial.vue'
 import saleOrderUpdateLog from '../components/saleContract/saleOrderUpdateLog.vue'
 import salePlan from '../components/saleContract/salePlan.vue'
 import transportPrice from '../components/saleContract/transportPrice.vue'
@@ -85,8 +88,10 @@ const constantRouterMap = [
       {path: 'updateTrainPrice/:priceId', name: 'updateTrainPrice', meta: {code: 'xtpzgl-yhgl'}, component: updateTrainPrice},
       {path: 'updateTruckPrice/:priceId', name: 'updateTruckPrice', meta: {code: 'xtpzgl-yhgl'}, component: updateTruckPrice},
       {path: 'addSaleOrder', name: 'addSaleOrder', meta: {code: 'xtpzgl-jggl'}, component: addSaleOrder},
+      {path: 'addSaleOrderArrange/:saleOrderId', name: 'addSaleOrderArrange', meta: {code: 'xtpzgl-jggl'}, component: addSaleOrderArrange},
       {path: 'addSalePlan', name: 'addSalePlan', meta: {code: 'xtpzgl-yhgl'}, component: addSalePlan},
       {path: 'addSalePlanDetail/:planId', name: 'addSalePlanDetail', meta: {code: 'xtpzgl-yhgl'}, component: addSalePlanDetail},
+      {path: 'saleOrderMaterial/:saleOrderId', name: 'saleOrderMaterial', meta: {code: 'xtpzgl-yhgl'}, component: saleOrderMaterial},
       {path: 'addTransportPrice', name: 'addTransportPrice', meta: {code: 'xtpzgl-yhgl'}, component: addTransportPrice},
       {path: 'addTruckNoDetail/:saleOrderMaterialId', name: 'addTruckNoDetail', meta: {code: 'xtpzgl-yhgl'}, component: addTruckNoDetail},
       {path: 'editaddress/:saleOrderMaterialId', name: 'editaddress', meta: {code: 'xtpzgl-yhgl'}, component: editaddress},
@@ -97,6 +102,7 @@ const constantRouterMap = [
       {path: 'editTransportPrice/:priceId', name: 'editTransportPrice', meta: {code: 'xtpzgl-yhgl'}, component: editTransportPrice},
       {path: 'editTruckNoDetail/:trucknoMaterialId', name: 'editTruckNoDetail', meta: {code: 'xtpzgl-yhgl'}, component: editTruckNoDetail},
       {path: 'saleOrder', name: 'saleOrder', meta: {code: 'xtpzgl-yhgl'}, component: saleOrder},
+      {path: 'saleOrderArrange', name: 'saleOrderArrange', meta: {code: 'xtpzgl-yhgl'}, component: saleOrderArrange},
       {path: 'saleOrderDetail/:saleOrderId', name: 'saleOrderDetail', meta: {code: 'xtpzgl-yhgl'}, component: saleOrderDetail},
       {path: 'saleOrderDetailApproved/:saleOrderId', name: 'saleOrderDetailApproved', meta: {code: 'xtpzgl-yhgl'}, component: saleOrderDetailApproved},
       {path: 'saleOrderUpdateLog/:saleOrderId', name: 'saleOrderUpdateLog', meta: {code: 'xtpzgl-yhgl'}, component: saleOrderUpdateLog},

+ 121 - 41
src/views/sale/components/transport_appointment/directionalDispatch.vue

@@ -10,7 +10,7 @@
       <el-button
         type="primary"
         class="btn"
-        @click="Issue"
+        @click="table = true"
         v-if="activeName == 'first'"
       >
         <i class="el-icon-download"></i>下发
@@ -40,6 +40,28 @@
         </el-tabs>
       </div>
     </template>
+
+    <!-- 承运商模态框 -->
+    <el-drawer
+      title="选择承运商"
+      :visible.sync="table"
+      direction="rtl"
+      size="35%"
+      :show-close="false"
+    >
+      <el-input placeholder="请输入内容" v-model="index"  
+      style="margin-top: 10px; margin-left: 20px;width:160px" clearable> </el-input
+      ><el-button type="primary" class="btn" @click="onclick" style="margin-left: 4px;">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <!-- <el-button @click="open">取消</el-button> -->
+      <el-button type="primary" @click="makeSure1">确定</el-button>
+      <div class="tablecls">
+        <!-- 查询所有的承运商 -->
+        <dilTable v-bind.sync="option" @radio-change="currentRadioChange1">
+        </dilTable>
+      </div>
+    </el-drawer>
   </div>
 </template>
 <script>
@@ -47,9 +69,12 @@ export default {
   data() {
     return {
       inputText: "",
+      index: "",
+      carrierId: 0,
+      table:false,
       first: {
         // first请求数据的地址
-        requestUrl: "/api/v1/ams/getSaleOrderList?apiId=181&status=1",
+        requestUrl: "/api/v1/ams/getTruckNoList?apiId=411&issueStatus=1",
         selectionType: "select",
         mapList: [],
       },
@@ -58,6 +83,12 @@ export default {
         requestUrl: "/api/v1/ams/getSaleOrderList?apiId=245&status=0",
       },
       activeName: "first",
+      option: {
+        requestUrl: "/api/v1/uc/getCarrierListByLike?apiId=412",
+        selectionType: "radio",
+        mapList: [],
+      },
+
     };
   },
   methods: {
@@ -99,49 +130,98 @@ export default {
     selectionChange(selection) {
       this.first.mapList = selection;
     },
-    Issue() {
-      console.log();
-      if (this.first.mapList.length !== 0) {
-        this.$confirm("是否下发", "提示", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
-          center: true,
-        })
-          .then(() => {
-            this.axios
-              .post(
-                "/api/v1/ams/addFixedAmsDispatchSaleOrder",
-                this.first.mapList
-              )
-              .then((res) => {
-                if (res.data.code == "200") {
-                  this.$message({
-                    type: "success",
-                    message: "下发成功!",
-                  });
-				  this.$router.go(0)
-                } else {
-                  this.$message({
-                    message: "下发失败",
-                    type: "warning",
-                  });
-                }
-              });
-          })
-          .catch(() => {
-            this.$message({
-              type: "info",
-              message: "取消下发!",
-            });
-          });
-      } else {
+    //点击下发事件
+    ondrawer() {
+      // this.row = row;
+      // this.row.index = index;
+      this.drawer = true;
+    },
+    //监听模态框点击事件
+    currentRadioChange1(row) {
+      this.carrierId = row.carrierId;
+    },
+    //模糊查询承运商
+    onclick(){
+      this.option.requestUrl =
+      "/api/v1/uc/getCarrierListByLike?apiId=412&index=" + this.index;
+    },
+    // 返回主界面并下发
+    makeSure1() {
+      if(this.first.mapList.length==0){
         this.$message({
-          type: "warning",
-          message: "请选择订单后再下发!",
+            type: "warning",
+            message: "请先选择订单!",
+          });
+      }else{
+      //初始化maplist
+      var mapList = [];
+      this.first.mapList.forEach((item,i) => {
+        //初始化mapItem
+        var mapItem={
+                //销售订单物资中间表id
+                saleOrderMaterialId : 0,
+            };
+        mapItem.saleOrderMaterialId=item.saleOrderMaterialId;
+        mapList.push(mapItem);
+      });
+      //初始化
+      let map = {
+        //承运商ID
+        carrierId : this.carrierId,
+        //销售订单物资中间表id的mapList
+        mapList : mapList
+      }
+      this.axios.post("api/v1/ams/addDispatchSaleOrder", map).then((res) => {
+          if (res.data.code == "200") {
+            this.$router.go(0);
+          }
         });
       }
+      
     },
+    // Issue() {
+    //   console.log();
+    //   if (this.first.mapList.length !== 0) {
+    //     this.$confirm("是否下发", "提示", {
+    //       confirmButtonText: "确定",
+    //       cancelButtonText: "取消",
+    //       type: "warning",
+    //       center: true,
+    //     })
+    //       .then(() => {
+    //         this.axios
+    //           .post(
+    //             "/api/v1/ams/addFixedAmsDispatchSaleOrder",
+    //             this.first.mapList
+    //           )
+    //           .then((res) => {
+    //             if (res.data.code == "200") {
+    //               this.$message({
+    //                 type: "success",
+    //                 message: "下发成功!",
+    //               });
+		// 		  this.$router.go(0)
+    //             } else {
+    //               this.$message({
+    //                 message: "下发失败",
+    //                 type: "warning",
+    //               });
+    //             }
+    //           });
+    //       })
+    //       .catch(() => {
+    //         this.$message({
+    //           type: "info",
+    //           message: "取消下发!",
+    //         });
+    //       });
+    //   } else {
+    //     this.$message({
+    //       type: "warning",
+    //       message: "请选择订单后再下发!",
+    //     });
+    //   }
+    // },
   },
 };
 </script>

+ 15 - 13
src/views/sale/components/transport_appointment/openDistribution.vue

@@ -29,23 +29,24 @@
 				<dilTable v-bind.sync="second">
           <el-table-column fixed="right" label="操作" width="50">
             <template slot-scope="scope">
-          <el-button @click="dispatch(scope) ,handleBtnClick1() " type="text" size="small">
+          <el-button @click="dispatch(scope)  " type="text" size="small">
+            <!-- ,handleBtnClick1() -->
             派单
           </el-button>
             </template>
       </el-table-column>
       </dilTable>
-      <el-drawer title="司机排班信息表" :visible.sync="drawer" :direction="direction" :before-close="handleClose"
+      <!-- <el-drawer title="司机排班信息表" :visible.sync="drawer" :direction="direction" :before-close="handleClose"
 				:modal="false" size="30%" style="margin-top: 5.625rem;">
-        <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-left:20px" clearable> </el-input>
+        <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-left:20px;width:160px" clearable> </el-input>
       <el-button type="primary" class="btn" @click="onclick()"  style="margin-bottom:15px">
         <i class="el-icon-search"></i>查询
       </el-button>
 				<dilTable v-bind.sync="third" @radio-change="currentRadioChange"></dilTable>
-				<div style=" margin-left: 25rem;">
+				<div>
 					<el-button type="primary" @click="makeSure">派发</el-button>
 				</div>
-			</el-drawer>
+			</el-drawer> -->
 		</el-tab-pane>
     </el-tabs>
     
@@ -68,7 +69,7 @@ export default {
         requestUrl: "/api/v1/ams/getPCDispatchSaleOrderList?apiId=242&dispatchType=0",
       },
       second:{
-        requestUrl:"/api/v1/ams/selectDispatchSaleOrderList?apiId=233&carrierId=6",
+        requestUrl:"/api/v1/ams/selectDispatchSaleOrderList?apiId=233&carrierId=73",
       },
       third:{
         requestUrl:"/api/v1/oms/getCapacityAndDriverList?apiId=246",
@@ -91,11 +92,12 @@ export default {
     },
     dispatch(scope){
       this.dispatchId = scope.row.dispatchId
+      this.$router.push("/openDistributionSection/" + scope.row.dispatchId);
     },
-    handleBtnClick1(){
+    // handleBtnClick1(){
 
-				this.drawer=true
-			},
+		// 		this.drawer=true
+		// 	},
       currentRadioChange(selection) {
 				this.mapList = selection
         console.log(this.mapList)
@@ -113,7 +115,7 @@ export default {
         })
         .then(() => {
         this.axios.post("/api/v1/oms/addAppTruckOrder?orderType=" + 1 + 
-        "&carrierId="+ 5 +"&dispatchId=" + this.dispatchId 
+        "&carrierId="+ 73 +"&dispatchId=" + this.dispatchId 
         + "&capacityNumber=" + this.mapList.capacityNumber)
         .then((res) => {
           if(res.data.code == 200){
@@ -139,7 +141,7 @@ export default {
       },
   	Grab(scope){
       console.log(scope)
-      this.$confirm("是否抢单", "提示", {
+      this.$confirm("是否接收", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
@@ -147,12 +149,12 @@ export default {
       })
         .then(() => {
           this.axios
-            .post("/api/v1/ams/lockDispatchSaleOrder?dispatchId="+ scope.row.dispatchId+"&carrierId=" + 6)
+            .post("/api/v1/ams/lockDispatchSaleOrder?dispatchId="+ scope.row.dispatchId+"&carrierId=" + 73)
             .then((res) => {
               if (res.data.code == 200) {
                 this.$message({
                   type: "success",
-                  message: "单成功!",
+                  message: "单成功!",
                 });     
                 this.$router.go(0);
               } else {

+ 254 - 0
src/views/sale/components/transport_appointment/openDistributionSection.vue

@@ -0,0 +1,254 @@
+<template>
+  <!-- 定向派单接单选择路段顺序号 -->
+  <div id="contractDetails">
+    <page-title>选择路段顺序号和车</page-title>
+
+    <div class="lineId from">
+      <div class="materialId">
+        <span class="text">选择路线:</span>
+        <el-input class="input" v-model="lineName" disabled> </el-input>
+        <el-button type="primary" class="btn" @click="table = true">浏览</el-button>
+      </div>
+    </div>
+    
+    <div class="lineId from">
+      <div class="materialId">
+        <span class="text">选择车辆:</span>
+        <el-input class="input" v-model="capacityNumber" disabled> </el-input>
+        <el-button type="primary" @click="drawer = true" class="truckBtn"
+          >浏览</el-button
+        >
+      </div>
+    </div>
+    
+    <!-- 模态窗口 -->
+    <el-drawer
+      title="选择路线"
+      :visible.sync="table"
+      direction="rtl"
+      size="50%"
+      :show-close="false"
+    >
+      <el-input placeholder="请输入内容" v-model="input"  
+      style="margin-top: 10px; margin-left: 20px;width:160px" clearable> </el-input
+      ><el-button type="primary" class="btn" @click="onclick1" style="margin-left: 4px;">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <div class="tablecls">
+        <!-- 查询所有的路线 -->
+        <dilTable
+          v-bind.sync="line" @radio-change="currentRadioChange5"
+        ></dilTable>
+      </div>
+    </el-drawer>
+
+    <el-drawer title="选择车" :visible.sync="drawer" :direction="direction" :before-close="handleClose"
+				:modal="false" size="30%" style="margin-top: 5.625rem;">
+        <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-left:20px;width:160px" clearable> </el-input>
+      <el-button type="primary" class="btn" @click="onclick2()"  style="margin-bottom:15px">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <!-- 查询所有的车 -->
+            <dilTable v-bind.sync="third" @radio-change="currentRadioChange"></dilTable>
+            <!-- <div>
+                <el-button type="primary" @click="makeSure">派发</el-button>
+            </div> -->
+	</el-drawer>
+
+    <div class="button_box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
+    </div>
+  </div>
+</template>
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime,isNumber,isIntegerNumber } from '@/utils/sharedJsFile'
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      table: false,
+      drawer: false,
+      // 线路名称
+      lineName: "",
+      //线路id
+      lineId: null,
+      // 车牌号
+      capacityNumber: "",
+      direction: "rtl",
+      input: "",
+      third: {
+        requestUrl: "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248",
+        selectionType: "radio",
+        mapList3: [],
+      },
+      line: {
+        requestUrl: "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3",
+        selectionType: "radio",
+      },
+    };
+  },
+  methods: {
+    onClick(index) {
+      this.selectionList.splice(index, 1);
+    },
+    onclick1() {
+        
+        this.option.requestUrl =
+          "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
+
+    },
+    onclick2(){
+        this.third.requestUrl =
+          "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&index=" +
+          this.input;
+    },
+    
+    // 返回
+    onClickCancel() {
+      this.$router.push("/openDistribution");
+    },
+    currentRadioChange(selection) {
+      this.capacityNumber = selection.capacityNumber;
+    },
+    currentRadioChange5(selection) {
+      this.lineName = selection.lineName;
+      this.lineId = selection.lineId;
+    },
+    // 确认
+    onClickConfirm() {
+      let map = {
+          orderType : 1,
+          lineId: this.lineId,
+          dispatchId: this.$route.params.dispatchId,
+          capacityNumber: this.capacityNumber,
+      }
+    //   console.log("map",map);
+      this.axios.post("api/v1/oms/addSaleTruckOrder", map).then((res) => {
+          if (res.data.code == "200") {
+            this.$router.go(-1);
+          }
+        });
+    },
+  },
+};
+</script>
+
+<style lang="scss" >
+.contractDetails {
+  width: 100%;
+}
+.from {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  margin-top: 5px;
+  margin-bottom: 20px;
+}
+.remark {
+  display: flex;
+  justify-content: center;
+  .text {
+    display: inline-block;
+    width: 100px;
+    text-align: right;
+  }
+  .input{
+    width: 250px;
+    margin-right: 20px;
+  }
+}
+.lineId {
+  display: flex;
+  justify-content: center;
+  .text {
+    display: inline-block;
+    width: 170px;
+    text-align: right;
+  }
+  .input{
+    width: 250px;
+    margin-right: 20px;
+  }
+}
+.material {
+  display: flex;
+  justify-content: center;
+  margin-top: 20px;
+  .text {
+    display: inline-block;
+    width: 170px;
+    text-align: right;
+  }
+  .input{
+    width: 250px;
+    margin-right: 20px;
+  }
+}
+.orderType{
+  display: flex;
+  justify-content: center;
+  .text {
+    display: inline-block;
+    width: 110px;
+    text-align: right;
+  }
+  .select{
+    width: 250px;
+  }
+  .span{
+    display: inline-block;
+    width: 30px;height: 10px;
+  }
+}
+.contractTitle{
+  display: flex;
+  justify-content: center;
+  .el-form-item{
+    display: flex;
+    justify-content: center;
+    .el-form-item__label{
+      display: flex;
+      align-items: center;
+    }
+    .el-input{
+      width: 250px;
+    }
+  }
+}
+.forwardingUnit {
+  display: flex;
+  justify-content: center;
+  .text {
+    display: inline-block;
+    width: 170px;
+    text-align: right;
+  }
+  .input{
+    width: 250px;
+    margin-right: 20px;
+  }
+}
+.truckList1 {
+  width: 100%;
+  .truckList {
+    width: 96%;
+    .text {
+      display: inline-block;
+      width: 120px;
+      text-align: right;
+    }
+    .truckBtn {
+      width: 250px;
+    }
+  }
+}
+.button_box {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  width: 100%;
+  height: 100px;
+}
+</style>

+ 2 - 0
src/views/sale/router/index.js

@@ -41,6 +41,7 @@ import updateSteelRailPlan from '../components/transport_appointment/railPlan/up
 import addOpenDistribution from '../components/transport_appointment/addOpenDistribution.vue'
 import directionalDispatch from '../components/transport_appointment/directionalDispatch.vue'
 import openDistribution from '../components/transport_appointment/openDistribution.vue'
+import openDistributionSection from '../components/transport_appointment/openDistributionSection.vue'
 import orderGrabbing from '../components/transport_appointment/orderGrabbing.vue'
 import add_sale_dilNotice from '../components/transport_excute/dilNotice/add_sale_dilNotice.vue'
 import Carrier_dilNotice from '../components/transport_excute/dilNotice/Carrier_dilNotice.vue'
@@ -133,6 +134,7 @@ const constantRouterMap = [
 		{path: 'addOpenDistribution', name: 'addOpenDistribution', meta: {code: 'xtpzgl-yhgl'}, component: addOpenDistribution},
 		{path: 'directionalDispatch', name: 'directionalDispatch', meta: {code: 'xtpzgl-yhgl'}, component: directionalDispatch},
 		{path: 'openDistribution', name: 'openDistribution', meta: {code: 'xtpzgl-yhgl'}, component: openDistribution},
+		{path: 'openDistributionSection/:dispatchId', name: 'openDistributionSection', meta: {code: 'xtpzgl-yhgl'}, component: openDistributionSection},
 		{path: 'orderGrabbing', name: 'orderGrabbing', meta: {code: 'xtpzgl-yhgl'}, component: orderGrabbing},
 		{path: 'add_sale_dilNotice', name: 'add_sale_dilNotice', meta: {code: 'xtpzgl-yhgl'}, component: add_sale_dilNotice},
 		{path: 'Carrier_dilNotice', name: 'Carrier_dilNotice', meta: {code: 'xtpzgl-yhgl'}, component: Carrier_dilNotice},