zhouzh преди 3 години
родител
ревизия
c723daebb8
променени са 58 файла, в които са добавени 1829 реда и са изтрити 251 реда
  1. 3 0
      build/utils.js
  2. 2 2
      config/index.js
  3. BIN
      dist.7z
  4. 2 0
      package.json
  5. 22 0
      src/components/exportExcel/exportExcel.js
  6. 43 0
      src/components/exportPdf/exportPdf.js
  7. 11 8
      src/components/main.vue
  8. 33 42
      src/views/RMS/components/addCarrier.vue
  9. 4 2
      src/views/RMS/components/addPersonnel.vue
  10. 1 1
      src/views/RMS/components/addPortStorageYard.vue
  11. 13 3
      src/views/RMS/components/addRmsShipper.vue
  12. 1 0
      src/views/RMS/components/addSupplier.vue
  13. 9 5
      src/views/RMS/components/editGatepost.vue
  14. 16 4
      src/views/RMS/components/editRmsShipper.vue
  15. 3 0
      src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/enFactory.vue
  16. 3 0
      src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/grossWeight.vue
  17. 3 0
      src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/outFactory.vue
  18. 3 0
      src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/tareWeight.vue
  19. 3 0
      src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/unload.vue
  20. 44 1
      src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/enFactory.vue
  21. 44 1
      src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/grossWeight.vue
  22. 44 1
      src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/load.vue
  23. 44 1
      src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/outFactory.vue
  24. 44 1
      src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/tareWeight.vue
  25. 70 44
      src/views/SporadicManage/components/sporadicMaterial/transportAppoint/addSporadicTransportAppoint.vue
  26. 4 0
      src/views/appoint/app.js
  27. 492 0
      src/views/appoint/components/saleContract/addSaleOrderArrange.vue
  28. 1 1
      src/views/appoint/components/saleContract/editSaleOrder.vue
  29. 1 1
      src/views/appoint/components/saleContract/editSaleOrderDetail.vue
  30. 1 1
      src/views/appoint/components/saleContract/editSalePalnDetail.vue
  31. 1 1
      src/views/appoint/components/saleContract/editSalePlan.vue
  32. 1 1
      src/views/appoint/components/saleContract/editTransportPrice.vue
  33. 1 1
      src/views/appoint/components/saleContract/editTruckNoDetail.vue
  34. 1 1
      src/views/appoint/components/saleContract/editaddress.vue
  35. 15 15
      src/views/appoint/components/saleContract/saleOrder.vue
  36. 118 0
      src/views/appoint/components/saleContract/saleOrderArrange.vue
  37. 41 0
      src/views/appoint/components/saleContract/saleOrderMaterial.vue
  38. 6 0
      src/views/appoint/router/index.js
  39. 13 11
      src/views/inward/components/inwardImport/oldAreaRailScale/addTruckLoad.vue
  40. 50 0
      src/views/inward/components/inwardImport/oldAreaRailScale/enFactory.vue
  41. 3 0
      src/views/inward/components/inwardImport/oldAreaRailScale/grossWeightResult.vue
  42. 50 0
      src/views/inward/components/inwardImport/oldAreaRailScale/outFactory.vue
  43. 4 0
      src/views/inward/components/inwardImport/oldAreaRailScale/receipt.vue
  44. 3 0
      src/views/inward/components/inwardImport/oldAreaRailScale/tareWeightResult.vue
  45. 3 6
      src/views/inward/components/inwardImport/oldAreaRailScale/truckLoad.vue
  46. 3 0
      src/views/inward/components/inwardImport/oldAreaRailScale/unload.vue
  47. 66 1
      src/views/inward/components/truckAppoint/addPlan.vue
  48. 61 32
      src/views/inward/components/truckAppoint/addRequirement.vue
  49. 8 2
      src/views/inward/components/truckAppoint/plan.vue
  50. 2 0
      src/views/inward/components/truckAppoint/requirement.vue
  51. 2 2
      src/views/inward/components/truckOrder/decomposePlan.vue
  52. 5 3
      src/views/inward/components/truckOrder/dispatchPlan.vue
  53. 3 3
      src/views/inward/components/truckOrder/plan.vue
  54. 6 0
      src/views/inward/router/index.js
  55. 124 40
      src/views/sale/components/transport_appointment/directionalDispatch.vue
  56. 15 13
      src/views/sale/components/transport_appointment/openDistribution.vue
  57. 258 0
      src/views/sale/components/transport_appointment/openDistributionSection.vue
  58. 2 0
      src/views/sale/router/index.js

+ 3 - 0
build/utils.js

@@ -18,12 +18,15 @@ 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','RMS']
 //let devModules = ['index','SporadicManage','TMS']
 // let devModules = ['index','SporadicManage'];
 // let devModules = ['index','systemConfig', 'formGenerator', 'preview', 'metaData', 'serviceManager', 'configManager', 'custom'];
 // let devModules = ['index', 'systemConfig','formGenerator', 'preview', 'metaData', 'serviceManager', 'configManager', 'btnControll'];
+// let devModules = ['index','inward','SporadicManage']
+
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
 }

+ 2 - 2
config/index.js

@@ -63,10 +63,10 @@ let proxyTable = {
     }
   },
   // "/views/api/v1": {
-  //   target: "http://172.16.33.166:8080",
+  //   target: "http://192.168.1.115:8080",
   //   ws: true,
   //   pathRewrite: {
-  //     "^/views/api/v1": "/api/v1"
+  //     "^/api/v1": "/api/v1"
   //   }
   // },
   "/views/api/v1": {

BIN
dist.7z


+ 2 - 0
package.json

@@ -54,7 +54,9 @@
     "vue-router": "^3.0.1",
     "vue-splitpane": "^1.0.2",
     "vuex": "^3.0.1",
+    "vxe-table": "^3.4.12",
     "x2js": "^3.3.0",
+    "xe-utils": "^3.5.1",
     "xlsx": "^0.11.19",
     "xterm": "3.12.0"
   },

+ 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')
+    })
+    }
+  }
+}

+ 11 - 8
src/components/main.vue

@@ -259,9 +259,9 @@
       <header class="sl-header">
         <div v-if="showIframe" class="sl-header-ul">
           <!-- <div class="sl-header-li-name">工业互联网平台 ICP-iCore 2.0</div> -->
-          <div class="hnstLogo">
+          <!-- <div class="hnstLogo">
             <img src="../assets/img/logo_1.png" alt="" />
-          </div>
+          </div> -->
           <!-- 下拉选择公司 -->
           <div
             class="company-select"
@@ -269,19 +269,22 @@
           >
             <span
               class="ifCompany el-dropdown-link"
-              v-if="companys.length === 1"
-              >{{ companyName }}</span
+              v-if="companys.length === 1">
+              {{ companyName }}
+              </span
             >
             <el-dropdown trigger="click" @command="selectComPany" v-else>
               <span class="el-dropdown-link">
-                {{ companyName
-                }}<i class="el-icon-arrow-down el-icon--right"></i>
+                {{ companyName}}
+                <i class="el-icon-arrow-down el-icon--right"></i>
               </span>
               <el-dropdown-menu slot="dropdown">
                 <div v-for="item in companys" :key="item.id">
-                  <el-dropdown-item :command="item">{{
+                  <el-dropdown-item :command="item">
+                    {{
                     item.companyName
-                  }}</el-dropdown-item>
+                  }}
+                  </el-dropdown-item>
                 </div>
               </el-dropdown-menu>
             </el-dropdown>

+ 33 - 42
src/views/RMS/components/addCarrier.vue

@@ -6,54 +6,17 @@
      <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/"
+      action="http://localhost:8060/api/v1/rms/rmscarrier/uploadCarrier"
       :on-preview="handlePreview"
       :on-remove="handleRemove"
-      :before-remove="beforeRemove"
-      multiple
-      :limit="1"
-      :on-exceed="handleExceed"
+      :on-success="handleAvatarSuccess"
       :file-list="fileList"
-    >
-      <el-button size="small" type="primary">点击上传</el-button>
-      <div slot="tip" class="el-upload__tip">
-        只能上传jpg/png文件,且不超过500kb
-      </div>
+      list-type="picture">
+      <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">
@@ -116,9 +79,20 @@ export default {
          registerDate:"",
          mapValue:""
       },
+      imageUrl:""
     };
   },
   methods: {
+    handleAvatarSuccess(res,file){
+      this.imageUrl=URL.createObjectURL(file.raw);
+    },
+    handleRemove(file,fileList){
+      console.log(file,fileList)
+    },
+    handlePreview(file) {
+      console.log("*********"+file);
+    },
+    
     onclick(){
       this.options.requestUrl="/api/v1/rms/getCarrierBidAreaList?apiId=406&con=" +this.inputText;
     },
@@ -228,7 +202,9 @@ export default {
   justify-content: center;
   .el-form-item{
     display: flex;
+    width: 350px;
     justify-content: center;
+    
     .el-form-item__label{
       display: flex;
       align-items: center;
@@ -242,4 +218,19 @@ export default {
     }
   }
 }
+.upload-demo{
+  display: flex;
+  justify-content: center;
+  padding-bottom: 1.0rem;
+  .el-upload__tip{
+  display: flex;
+  justify-content: center;
+  }
+  .el-button el-button--primary el-button--small{
+  display: flex;
+  justify-content: center;
+  word-wrap:break-word;
+  }
+}
+
 </style>

+ 4 - 2
src/views/RMS/components/addPersonnel.vue

@@ -36,7 +36,8 @@ export default {
         personnelWorkshopid: this.form1.personnelWorkshopid,
         personnelShifts: this.form1.personnelShifts,
         personnelTeam:this.form1.personnelTeam,
-        departmentId: this.form1.shipperId
+        departmentId: this.form1.shipperId,
+        username:this.form1.username
       };
       if(
         RmsPersonnel.personnelJobNumber ==null ||
@@ -45,7 +46,8 @@ export default {
         RmsPersonnel.personnelWorkshopid==null ||
         RmsPersonnel.personnelShifts==null ||
         RmsPersonnel.departmentId==null ||
-        RmsPersonnel.personnelTeam==null
+        RmsPersonnel.personnelTeam==null||
+        RmsPersonnel.username==null
       )this.$message.error("存在空值!");
       else
       

+ 1 - 1
src/views/RMS/components/addPortStorageYard.vue

@@ -64,7 +64,7 @@ export default {
 </script>
 <style lang='scss' scoped>
 .el-input{
-    display: flex;
+  display: flex;
 }
 .form-box,
 .button-box{

+ 13 - 3
src/views/RMS/components/addRmsShipper.vue

@@ -4,6 +4,7 @@
     <PageTitle>返回</PageTitle>
     <el-divider content-position="left">托运人信息</el-divider>
      <div class="form-box" style="margin-right: 10rem">
+       <!-- 323 -->
         <dil-form :formId="323" v-model="form1" ref="from1"></dil-form>
       </div>
     <div class="button-box">
@@ -22,20 +23,29 @@ export default {
     return {
       form1: {},
       value: undefined,
+      shipperName:"四川达钢",
+      shipperAbbreviation:"四川达钢"
     };
   },
-  mounted() {},
+  mounted() {
+    this.form1.shipperName = this.shipperName;
+    this.form1.shipperAbbreviation = this.shipperAbbreviation;
+  },
   methods: {
      makeSure() {
        console.log(this.form1)
        let RmsShipper={
         shipperName: this.form1.shipperName,
         shipperAbbreviation: this.form1.shipperAbbreviation,
-        shipperId:this.form1.shipperId
+        shipperId:this.form1.shipperId,
+        shipperCompanyBranch:this.form1.shipperCompanyBranch,
+        shipperBranchFactory:this.form1.shipperBranchFactory
       };
       if(
         RmsShipper.shipperName==null ||
-        RmsShipper.shipperAbbreviation ==null 
+        RmsShipper.shipperAbbreviation ==null ||
+        RmsShipper.shipperCompanyBranch ==null ||
+        RmsShipper.shipperBranchFactory ==null
       )this.$message.error("存在空值!");
       else
       this.axios

+ 1 - 0
src/views/RMS/components/addSupplier.vue

@@ -94,6 +94,7 @@ export default {
           width: 250px;
         }
       }
+
     }
   }
 }

+ 9 - 5
src/views/RMS/components/editGatepost.vue

@@ -242,7 +242,7 @@ export default {
     text-align: center;
     align-items: center;
     justify-content: center;
-    margin-left: 34rem;
+    margin-left: 28.4rem;
     width: 300px;
   }
   .form {
@@ -273,6 +273,9 @@ export default {
           width: 250px;
         }
       }
+      .el-checkbox-group{
+        margin-right: 5rem;
+      }
     }
   }
 }
@@ -285,11 +288,12 @@ export default {
   margin-left: -4rem;
 }
 .drawerBox{
-  margin-top: 2.5rem;
-  margin-left: 40rem;
+  margin-top: 1.0rem;
+  margin-left: 35rem;
 }
 .btn2{
-  margin-top: 2.5rem;
-  margin-left: 40rem;
+  margin-left: 35rem;
+  margin-bottom: 0.25rem;
 }
+
 </style>

+ 16 - 4
src/views/RMS/components/editRmsShipper.vue

@@ -14,8 +14,8 @@
     </div>
 
     <div class="button-box">
-      <el-button type="primary" @click="onClickConfirm">确认</el-button>
       <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm">确认</el-button>
     </div>
   </div>
 </template>
@@ -28,11 +28,14 @@ export default {
   data() {
     return {
       form1: {},
+      shipperName:"四川达钢",
+      shipperAbbreviation:"四川达钢"
     };
   },
  
   mounted() {
-      console.log(this.$route)
+    this.form1.shipperName = this.shipperName;
+    this.form1.shipperAbbreviation = this.shipperAbbreviation;
     this.information();
   },
   methods: {
@@ -63,11 +66,15 @@ export default {
        let RmsShipper={
         shipperId:this.form1.shipperId,
         shipperName: this.form1.shipperName,
-        shipperAbbreviation: this.form1.shipperAbbreviation
+        shipperAbbreviation: this.form1.shipperAbbreviation,
+        shipperCompanyBranch:this.form1.shipperCompanyBranch,
+        shipperBranchFactory:this.form1.shipperBranchFactory
       };
       if(
         RmsShipper.shipperName==null ||
-        RmsShipper.shipperAbbreviation ==null 
+        RmsShipper.shipperAbbreviation ==null ||
+        RmsShipper.shipperCompanyBranch ==null ||
+        RmsShipper.shipperBranchFactory ==null
       )this.$message.error("存在空值!");
         this.axios
           .post(
@@ -93,4 +100,9 @@ export default {
   margin-top: 0.3125rem;
   margin-bottom: 1.25rem;
 }
+.button-box{
+  display: flex;
+  justify-items: center;
+  margin-left: 0rem;
+}
 </style>

+ 3 - 0
src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/enFactory.vue

@@ -36,6 +36,9 @@ export default {
 .homeworkPath {
   .top {
     padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
   }
 }
 </style>

+ 3 - 0
src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/grossWeight.vue

@@ -36,6 +36,9 @@ export default {
 .homeworkPath {
   .top {
     padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
   }
 }
 </style>

+ 3 - 0
src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/outFactory.vue

@@ -36,6 +36,9 @@ export default {
 .homeworkPath {
   .top {
     padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
   }
 }
 </style>

+ 3 - 0
src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/tareWeight.vue

@@ -36,6 +36,9 @@ export default {
 .homeworkPath {
   .top {
     padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
   }
 }
 </style>

+ 3 - 0
src/views/SporadicManage/components/sporadicMaterial/sporadicEnfactory/unload.vue

@@ -36,6 +36,9 @@ export default {
 .homeworkPath {
   .top {
     padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
   }
 }
 </style>

+ 44 - 1
src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/enFactory.vue

@@ -1 +1,44 @@
-//进厂
+//进厂
+<template>
+  <!-- 零星物资进厂作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <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 {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllEnFactoryResult?apiId=394&orderType=13",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=5&con=" + this.input;
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
+  }
+}
+</style>

+ 44 - 1
src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/grossWeight.vue

@@ -1 +1,44 @@
-//毛重
+//计毛
+<template>
+  <!-- 零星物资计毛作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <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 {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllJiMaoResult?apiId=398&orderType=12",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getAllJiMaoResult?apiId=398&orderType=12&con=" + this.input;
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
+  }
+}
+</style>

+ 44 - 1
src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/load.vue

@@ -1 +1,44 @@
-//装货
+//卸货
+<template>
+  <!-- 零星物资卸货卸货实绩页面 -->
+  <div class="homeworkPath">
+   <div class="top">
+      <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/tms/getUnloadResult?apiId=389&orderType=12",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+          this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=389&orderType=12&con=" + this.input;
+    },
+   }
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
+  }
+}
+</style>

+ 44 - 1
src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/outFactory.vue

@@ -1 +1,44 @@
-//出厂
+//出厂
+<template>
+  <!-- 零星物资出厂作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <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 {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getLeaveFactoryResult?apiId=388&orderType=12",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=388&orderType=12&con=" + this.input;
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
+  }
+}
+</style>

+ 44 - 1
src/views/SporadicManage/components/sporadicMaterial/sporadicOutfactory/tareWeight.vue

@@ -1 +1,44 @@
-//计皮
+//计皮
+<template>
+  <!-- 零星物资计皮作业页面 -->
+  <div class="homeworkPath">
+    <div class="top">
+      <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 {
+      input: "",
+      option: {
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getAllJiPiResult?apiId=392&orderType=12",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getAllJiPiResult?apiId=392&orderType=12&con=" + this.input;
+    },
+  },
+};
+</script>
+<style lang='scss' scoped>
+.homeworkPath {
+  .top {
+    padding: 1.25rem 1.875rem;
+    .el-input{
+      width: 20%;
+    }
+  }
+}
+</style>

+ 70 - 44
src/views/SporadicManage/components/sporadicMaterial/transportAppoint/addSporadicTransportAppoint.vue

@@ -13,11 +13,6 @@
       <el-input v-model="receiveName" disabled> </el-input>
       <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
     </div>
-    <div class="forwardingUnit from">
-      <span class="text">卸货点:</span>
-      <el-input v-model="unloadPointName" disabled> </el-input>
-      <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
-    </div>
     <div class="orderType from">
       <span class="text">流向:</span>
       <el-select v-model="orderType" placeholder="请选择">
@@ -103,6 +98,13 @@
           <!-- 插入输入框 -->
           <template slot-scope="scope">
             <template v-if="item.slot">
+                <!-- 装卸货优先级 -->
+               <template v-if="item.prop == 'materialPriority'">
+                <el-input
+                  class="textinput"
+                  v-model.number="scope.row.materialPriority"
+                ></el-input>
+              </template
               <!-- 物资件数 -->
               <template v-if="item.prop == 'orderMaterialNumber'">
                 <el-input
@@ -116,13 +118,7 @@
                   v-model.number="scope.row.orderMaterialWeight"
                 ></el-input>
               </template>
-              <!-- 装卸货优先级 -->
-               <template v-if="item.prop == 'materialPriority'">
-                <el-input
-                  class="textinput"
-                  v-model.number="scope.row.materialPriority"
-                ></el-input>
-              </template>
+            
             </template>
             <template v-else>
               <span>{{ scope.row[item.prop] }}</span>
@@ -470,7 +466,8 @@ export default {
       this.unloadPointName = selection.warehouseName;
     },
     currentRadioChange5(selection) {
-      this.lineName = selection.lineName;
+      console.log(selection)
+      this.lineName = selection.lineName+selection.lineDesk 
       this.lineId = selection.lineId;
     },
     currentRadioChange3(selection) {
@@ -509,58 +506,91 @@ export default {
   display: flex;
   align-items: center;
   justify-content: center;
-  margin-top: 0.3125rem;
-  margin-bottom: 1.25rem;
+  margin-top: 5px;
+  margin-bottom: 20px;
 }
 .remark {
+  display: flex;
+  justify-content: center;
   .text {
     display: inline-block;
-    width: 5.625rem;
+    width: 100px;
     text-align: right;
   }
+  .input{
+    width: 250px;
+    margin-right: 20px;
+  }
 }
 .lineId {
+  display: flex;
+  justify-content: center;
   .text {
-    display: flex;
-    width: 10rem;
+    display: inline-block;
+    width: 170px;
     text-align: right;
   }
-  .el-input{
-    width: 20%;
+  .input{
+    width: 250px;
+    margin-right: 20px;
   }
 }
 .material {
+  display: flex;
+  justify-content: center;
+  margin-top: 20px;
   .text {
     display: inline-block;
-    width: 10rem;
+    width: 170px;
     text-align: right;
   }
+  .input{
+    width: 250px;
+    margin-right: 20px;
+  }
 }
 .orderType{
-  .text{
-    display: flex;
-    width: 5.625rem;
+  display: flex;
+  justify-content: center;
+  .text {
+    display: inline-block;
+    width: 110px;
     text-align: right;
   }
-  .el-select{
-  width: 100%;
-}
+  .select{
+    width: 250px;
+  }
+  .span{
+    display: inline-block;
+    width: 30px;height: 10px;
+  }
 }
-.switch {
-  width: 100%;
-  height: 2.5rem;
+.contractTitle{
   display: flex;
-  align-items: center;
-  justify-content: flex-end;
-  padding-right: 6.875rem;
+  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;
-    text-align: center;
-    align-items: center;
-    justify-content: center;
-    width: 20%;
+    width: 170px;
+    text-align: right;
+  }
+  .input{
+    width: 250px;
+    margin-right: 20px;
   }
 }
 .truckList1 {
@@ -569,23 +599,19 @@ export default {
     width: 96%;
     .text {
       display: inline-block;
-      width: 9.375rem;
+      width: 120px;
       text-align: right;
     }
     .truckBtn {
-      width: 17.5rem;
+      width: 250px;
     }
   }
 }
-.el-input{
-  width: 20%;
-}
-
 .button_box {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
-  height: 6.25rem;
+  height: 100px;
 }
 </style>

+ 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>

+ 1 - 1
src/views/appoint/components/saleContract/editSaleOrder.vue

@@ -262,7 +262,7 @@ export default {
       //编辑
       this.axios
         .post(
-          "api/v1/ams/getAmsSaleOrderBySaleOrderId?saleOrderId=" +
+          "/api/v1/ams/getAmsSaleOrderBySaleOrderId?saleOrderId=" +
             this.$route.params.saleOrderId
         )
         .then((res) => {

+ 1 - 1
src/views/appoint/components/saleContract/editSaleOrderDetail.vue

@@ -39,7 +39,7 @@ export default {
       //编辑
       this.axios
         .post(
-          "api/v1/ams/getAmsSaleOrderMaterialBySaleOrderMaterialId?saleOrderMaterialId=" +
+          "/api/v1/ams/getAmsSaleOrderMaterialBySaleOrderMaterialId?saleOrderMaterialId=" +
             this.$route.params.saleOrderMaterialId
         )
         .then((res) => {

+ 1 - 1
src/views/appoint/components/saleContract/editSalePalnDetail.vue

@@ -39,7 +39,7 @@ export default {
       //编辑
       this.axios
         .post(
-          "api/v1/ams/getAmsSalePlanMaterialByPlanMaterialId?planMaterialId=" +
+          "/api/v1/ams/getAmsSalePlanMaterialByPlanMaterialId?planMaterialId=" +
             this.$route.params.planMaterialId
         )
         .then((res) => {

+ 1 - 1
src/views/appoint/components/saleContract/editSalePlan.vue

@@ -38,7 +38,7 @@ export default {
       //编辑
       this.axios
         .post(
-          "api/v1/ams/getAmsSalePlanByPlanId?planId=" +
+          "/api/v1/ams/getAmsSalePlanByPlanId?planId=" +
             this.$route.params.planId
         )
         .then((res) => {

+ 1 - 1
src/views/appoint/components/saleContract/editTransportPrice.vue

@@ -37,7 +37,7 @@ export default {
       //编辑
       this.axios
         .post(
-          "api/v1/ams/getAmsContractTransportPriceByPriceId1?priceId=" +
+          "/api/v1/ams/getAmsContractTransportPriceByPriceId1?priceId=" +
             this.$route.params.priceId
         )
         .then((res) => {

+ 1 - 1
src/views/appoint/components/saleContract/editTruckNoDetail.vue

@@ -39,7 +39,7 @@ export default {
       //编辑
       this.axios
         .post(
-          "api/v1/ams/getAmsSaleTrucknoMaterial?trucknoMaterialId=" +
+          "/api/v1/ams/getAmsSaleTrucknoMaterial?trucknoMaterialId=" +
             this.$route.params.trucknoMaterialId
         )
         .then((res) => {

+ 1 - 1
src/views/appoint/components/saleContract/editaddress.vue

@@ -38,7 +38,7 @@ export default {
       //编辑
       this.axios
         .post(
-           "api/v1/ams/getAddress?saleOrderMaterialId=" +
+           "/api/v1/ams/getAddress?saleOrderMaterialId=" +
             this.$route.params.saleOrderMaterialId
         )
         .then((res) => {

+ 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},

+ 13 - 11
src/views/inward/components/inwardImport/oldAreaRailScale/addTruckLoad.vue

@@ -2,25 +2,18 @@
 <template>
   <div id="endMaintenance">
     <page-title>新增汽车装货</page-title>
-    <div class="main">
-      <span class="text">选择运输订单</span>
-      <span class="a"></span>
-    </div>
-
     <div class="tab">
       <dilTable
         v-bind.sync="option"
         @selection-change="selectionChange"
       ></dilTable>
     </div>
-
     <div>
-      <div class="form-box" style="margin-left: 5rem">
+      <div class="form-box">
         <dil-form :formId="343" v-model="form"></dil-form>
       </div>
     </div>
-
-    <div class="" style="margin-left: 40rem">
+    <div class="button-box">
       <el-button type="primary" @click="makeSure">确认新增</el-button>
       <el-button type="primary" @click="cancel">返回</el-button>
     </div>
@@ -36,7 +29,7 @@ export default {
     return {
       option: {
         // 表格请求数据的地址
-        requestUrl: "/api/v1/oms/getReceiveRefuseOrder/1?apiId=117&orderType=10",
+        requestUrl: "/api/v1/tms/cgNzLoadingResult?apiId=117&orderType=10&orderStatus=5",
         // 控制显示多选列
         selectionType: "select",
       },
@@ -66,7 +59,7 @@ export default {
         loadingId: 10002,
       };
       console.log(obj);
-      this.$axios
+      this.axios
         .post("/api/v1/tms/addDaZhouToDaGangLoadResult", obj)
         .then((res) => {
           console.log(res);
@@ -90,4 +83,13 @@ export default {
 </script>
 
 <style lang="scss">
+.button-box,
+.form-box{
+  display: flex;
+  text-align: center;
+  align-items: center;
+  justify-content: center;
+  margin-top: 0.3125rem;
+  margin-bottom: 1.25rem;
+}
 </style>

+ 50 - 0
src/views/inward/components/inwardImport/oldAreaRailScale/enFactory.vue

@@ -0,0 +1,50 @@
+// 进厂作业
+<template>
+    <div class="sale">
+        <div class="top">
+            <!-- 框计算 -->
+            <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>
+        <div class="tab">
+            <dilTable v-bind.sync="option"></dilTable>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    data(){
+        return{
+            inputText:'',
+            option: {       
+                // 表格请求数据的地址
+                requestUrl: "/api/v1/tms/getAllEnFactoryResult?apiId=99&orderType=10",
+            },
+        }
+    },
+    methods:{
+        onclick(){
+            this.option.requestUrl = "/api/v1/tms/getAllEnFactoryResult?apiId=99&orderType=10&con=" + this.inputText;
+        }
+    }
+}
+</script>
+<style lang="scss">
+    .sale{
+        .top{
+            width: 100%;height: 5rem;
+            display: flex;
+            align-items: center;
+            padding-left: 2.5rem;
+        .el-input{
+            width: 20%;
+        }
+        }
+    }
+</style>

+ 3 - 0
src/views/inward/components/inwardImport/oldAreaRailScale/grossWeightResult.vue

@@ -42,6 +42,9 @@ export default {
             display: flex;
             align-items: center;
             padding-left: 2.5rem;
+        .el-input{
+            width: 20%;
+        }
         }
     }
 </style>

+ 50 - 0
src/views/inward/components/inwardImport/oldAreaRailScale/outFactory.vue

@@ -0,0 +1,50 @@
+// 出厂作业
+<template>
+    <div class="sale">
+        <div class="top">
+            <!-- 框计算 -->
+            <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>
+        <div class="tab">
+            <dilTable v-bind.sync="option"></dilTable>
+        </div>
+    </div>
+</template>
+<script>
+export default {
+    data(){
+        return{
+            inputText:'',
+            option: {       
+                // 表格请求数据的地址
+                requestUrl: "/api/v1/tms/getLeaveFactoryResult?apiId=110&orderType=10",
+            },
+        }
+    },
+    methods:{
+        onclick(){
+            this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=110&orderType=10&con="+this.inputText;
+        }
+    }
+}
+</script>
+<style lang="scss">
+    .sale{
+        .top{
+            width: 100%;height: 5rem;
+            display: flex;
+            align-items: center;
+            padding-left: 2.5rem;
+            .el-input{
+                width: 20%;
+            }
+        }
+    }
+</style>

+ 4 - 0
src/views/inward/components/inwardImport/oldAreaRailScale/receipt.vue

@@ -42,6 +42,10 @@ export default {
             display: flex;
             align-items: center;
             padding-left: 2.5rem;
+        .el-input{
+            width: 20%;
         }
+        }
+
     }
 </style>

+ 3 - 0
src/views/inward/components/inwardImport/oldAreaRailScale/tareWeightResult.vue

@@ -42,6 +42,9 @@ export default {
             display: flex;
             align-items: center;
             padding-left: 2.5rem;
+            .el-input{
+                width: 20%;
+            }
         }
     }
 </style>

+ 3 - 6
src/views/inward/components/inwardImport/oldAreaRailScale/truckLoad.vue

@@ -8,9 +8,6 @@
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </el-button>
-      <el-button type="primary" class="btn" @click="toInsert">
-        <i class="el-icon-plus"></i>新增
-      </el-button>
     </div>
     <div class="tab">
       <dilTable v-bind.sync="option"></dilTable>
@@ -34,9 +31,6 @@ export default {
         "/api/v1/tms/getAllLoadResult?apiId=353&orderType=10&con=" +
         this.inputText;
     },
-    toInsert() {
-      this.$router.push("/oldAreaRailScaleAddTruckLoad");
-    },
   },
 };
 </script>
@@ -48,6 +42,9 @@ export default {
     display: flex;
     align-items: center;
     padding-left: 2.5rem;
+    .el-input{
+      width:20%;
+    }
   }
 }
 </style>

+ 3 - 0
src/views/inward/components/inwardImport/oldAreaRailScale/unload.vue

@@ -42,6 +42,9 @@ export default {
             display: flex;
             align-items: center;
             padding-left: 2.5rem;
+        .el-input{
+            width: 20%;
+        }
         }
     }
 </style>

+ 66 - 1
src/views/inward/components/truckAppoint/addPlan.vue

@@ -3,6 +3,24 @@
   <div id="endMaintenance">
     <page-title>新增计划</page-title>
     <div>
+      <div class="truckList1">
+      <div class="truckList from">
+        <span class="text">选择承运商:</span>
+       <el-autocomplete
+      class="inline-input"
+      v-model="state2"
+      :fetch-suggestions="querySearch"
+      placeholder="请输入承运商名称"
+      :trigger-on-focus="false"
+      @select="handleSelect"
+      @input="oninput"
+    >
+  <template slot-scope="{ item }">
+    <div class="name">{{ item.value }}</div>
+  </template>
+    </el-autocomplete>
+      </div>
+    </div>
       <div class="form-box">
         <dil-form :formId="305" v-model="form"></dil-form>       
       </div>
@@ -26,6 +44,9 @@ export default {
   components: { PageTitle },
   data() {
     return {
+      restaurants: [],
+      state2:null,
+      carrierId:null,
       form: {},
       first:{
         requestUrl:"/api/v1/ams/getTruckRequirementList?apiId=250&requirementStatus=2",
@@ -35,6 +56,32 @@ export default {
     };
   },
   methods: {
+    handleSelect(item){
+      this.carrierId = item.carrierId
+      item.carrierName = this.state2
+    },
+    oninput(){
+      this.axios.post('/api/v1/uc/getCarrierMesByLike?index='+this.state2).then((res)=>{
+        if(res.data.code == "200"){
+          console.log(res)
+          this.restaurants = res.data.data
+        }
+      })
+    },
+        //搜索
+    querySearch(queryString, cb) {
+        var restaurants = this.restaurants;
+        console.log(this.restaurants,"this.restaurants");
+        var results = queryString ? restaurants.filter(this.createFilter(queryString)) :restaurants;
+        // 调用 callback 返回建议列表的数据
+        console.log(results,"results");
+        cb(results);
+      },
+      createFilter(queryString) {
+        return (restaurants) => {
+          return (restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
+        };
+      },
     currentRadioChange(selection){
         this.mapList = selection
     },
@@ -44,7 +91,7 @@ export default {
       let plan = {
         requirementId : this.mapList.requirementId,
         planTruckNumber: this.form.planTruckNumber,
-        carrierId: this.form.carrierId
+        carrierId: this.carrierId
       };
           
       this.axios
@@ -74,6 +121,9 @@ export default {
 </script>
 
 <style lang="scss">
+.el-form-item{
+  display: flex;
+}
 .form-box,
 .button-box
 {
@@ -84,4 +134,19 @@ export default {
   margin-top: 0.3125rem;
   margin-bottom: 1.25rem;
 }
+.truckList1 {
+  margin-left: 35%;
+  width: 100%;
+  .truckList {
+    width: 96%;
+    .text {
+      display: inline-block;
+      width: 120px;
+      text-align: right;
+    }
+    .truckBtn {
+      width: 250px;
+    }
+  }
+}
 </style>

+ 61 - 32
src/views/inward/components/truckAppoint/addRequirement.vue

@@ -2,10 +2,6 @@
 <template>
   <div id="endMaintenance">
     <page-title>新增需求</page-title>
-    <div class="main">
-      <span class="text">新增</span>
-      <span class="a"></span>
-    </div>
     <div>
       <div class="form-box f2">
         <el-form :inline="true" class="demo-form-inline">
@@ -20,7 +16,30 @@
       <div class="form-box f3">
         <el-form :inline="true" class="demo-form-inline">
           <el-form-item label="外轮船名">
-            <el-input v-model="foreignShipName" disabled> </el-input>
+            <el-input v-model="foreignShipName" disabled>浏览</el-input>
+          </el-form-item>
+           <el-form-item>
+            <el-button type="primary" disabled>船名</el-button>
+          </el-form-item>
+        </el-form>
+      </div>
+      <div class="form-box f2">
+        <el-form :inline="true" class="demo-form-inline">
+          <el-form-item label="发货单位">
+            <el-input v-model="supplierName" disabled> </el-input>
+          </el-form-item>
+          <el-form-item>
+            <el-button type="primary" disabled>发货单位</el-button>
+          </el-form-item>
+        </el-form>
+      </div>
+      <div class="form-box f2">
+        <el-form :inline="true" class="demo-form-inline">
+          <el-form-item label="收货单位">
+            <el-input v-model="shipperName" disabled> </el-input>
+          </el-form-item>
+          <el-form-item>
+            <el-button type="primary" disabled>收货单位</el-button>
           </el-form-item>
         </el-form>
       </div>
@@ -29,11 +48,14 @@
           <el-form-item label="物资名称">
             <el-input v-model="materialName" disabled> </el-input>
           </el-form-item>
+           <el-form-item>
+            <el-button type="primary" disabled>物资</el-button>
+          </el-form-item>
         </el-form>
       </div>
       <div class="form-box f5">
         <el-form :inline="true" class="demo-form-inline">
-          <el-form-item label="用车地点">
+          <el-form-item label="装车点">
             <el-input v-model="truckPoint" disabled> </el-input>
           </el-form-item>
           <el-form-item>
@@ -43,7 +65,7 @@
       </div>
       <div class="form-box f5">
         <el-form :inline="true" class="demo-form-inline">
-          <el-form-item label="卸货地点">
+          <el-form-item label="卸点">
             <el-input v-model="truckPoint1" disabled> </el-input>
           </el-form-item>
           <el-form-item>
@@ -51,16 +73,6 @@
           </el-form-item>
         </el-form>
       </div>
-      <div class="form-box f5">
-        <el-form :inline="true" class="demo-form-inline">
-          <el-form-item label="装货月台">
-            <el-input v-model="requirementPlatformName" disabled> </el-input>
-          </el-form-item>
-          <el-form-item>
-            <el-button type="primary" @click="ondrawer(4)">浏览</el-button>
-          </el-form-item>
-        </el-form>
-      </div>
       <div class="form-box">
         <dil-form :formId="300" v-model="form"></dil-form>
       </div>
@@ -73,7 +85,7 @@
         <el-input
           placeholder="请输入内容"
           v-model="input"
-          style="margin-top: 10px; margin-left: 20px"
+          style="margin-top: 10px ;width:50%"
           clearable
         >
         </el-input>
@@ -125,15 +137,16 @@ export default {
   components: { PageTitle },
   data() {
     return {
-      purchaseOrder: "",
-      foreignShipName: "",
-      materialName: "",
+      purchaseOrder: null,
+      foreignShipName: null,
+      materialName:null,
+      shipperName:null,
+      supplierName:null,
       a: 1,
       direction: "rtl",
       input: "",
-      truckPoint: "",
-      truckPoint1:'',
-      requirementPlatformName: "",
+      truckPoint: null,
+      truckPoint1:null,
       drawer: false,
       form: {},
       second: {
@@ -162,12 +175,14 @@ export default {
     ondrawer(num) {
       this.drawer = true;
       this.a = num;
+      console.log(this.a)
     },
     handleClose(done) {
       done();
     },
     onclick(a) {
       if (a == 1) {
+        console.log(a);
         this.second.requestUrl =
           "/api/v1/ams/getPurchaseIdByBatch?apiId=252&con=" + this.input;
       } else {
@@ -179,22 +194,37 @@ export default {
       this.mapList1 = selection
       this.purchaseOrder = this.mapList1.purchaseOrderNo
       this.foreignShipName = this.mapList1.resultForeignShipName
+      this.supplierName = this.mapList1.supplierName
+      this.shipperName = this.mapList1.shipperName
       this.materialName = this.mapList1.materialName;
     },
     currentRadioChange2(selection) {
       this.mapList2 = selection
-      this.truckPoint = this.mapList2.wareHouseName;
+      console.log(this.mapList2)
+      var s1 = "";
+      this.truckPoint= s1.concat(this.mapList2.companyBranchName,this.mapList2.companyBranchName,this.mapList2.wareHouseName)
+       this.mapList2.companyBranchName+' '+this.mapList2.companyBranchName+this.mapList2.wareHouseName
     },
     currentRadioChange3(selection) {
       this.mapList3 = selection
-      this.truckPoint1 = this.mapList3.wareHouseName;
+      this.truckPoint1 = this.mapList3.companyBranchName+this.mapList3.companyBranchName+this.mapList3.wareHouseName
     },
-    currentRadioChange4(selection) {
-      this.mapList4 = selection
-      this.requirementPlatformName = this.mapList4.wareHouseName;
     },
     // 新增
     makeSure() {
+      console.log(this.form.materialNumber)
+      console.log(this.form.materialWeight);
+      console.log(typeof(this.form.materialNumber));
+      if(this.purchaseOrder == null){
+          this.$alert('没有选择采购订单,请点击浏览选择采购订单')         
+      }else if(this.truckPoint == null){
+          this.$alert('没有选择用车地点,请点击浏览选择用车地点')
+      }else if(this.truckPoint1 == null){
+          this.$alert('没有选择卸货点,请点击浏览选择卸货点')
+      }
+      // }else if(typeof(this.form.materialNumber) =="undefined"&typeof(this.form.materialWeight) =="undefined"){
+      //     this.$alert('请输入物资数量或者物资重量')
+      // }
       let requiremnet = {
         purchaseOrderId: this.mapList1.purchaseOrderId,
         requiremntUnitId: this.mapList2.wareHouseId,
@@ -209,8 +239,7 @@ export default {
         requirementWorkContent: this.form.requirementWorkContent,
         requirementWorkEnvironment: this.form.requirementWorkEnvironment,
         requirementWorkType: this.form.requirementWorkType,
-        requirementUnloadUnitId:this.mapList3.wareHouseId,
-        requirementPlatformId: this.mapList4.wareHouseId
+        requirementUnloadUnitId:this.mapList3.wareHouseId
       };
       console.log(requiremnet);
       this.axios
@@ -231,7 +260,7 @@ export default {
     cancel() {
       this.$router.go(-1);
     },
-  },
+  
 };
 </script>
 

+ 8 - 2
src/views/inward/components/truckAppoint/plan.vue

@@ -118,13 +118,15 @@ export default {
           this.axios
             .post("/api/v1/ams/receiveRequirement/" + scope.row.requirementId)
             .then((res) => {
-              this.$router.go(0);
               if (res.data.code == 200) {
                 this.$message({
                   type: "success",
                   message: "接收成功!",
                 });
                 this.first.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1&test=1"
+                this.second.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=257&planStatus=0&test=1"
+                this.third.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&test=1"
+                this.fourth.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&test=1"
               } else {
                 this.$message({
                   message: "接收失败",
@@ -231,7 +233,11 @@ export default {
                   type: "success",
                   message: "下发成功!",
                 });
-                this.$router.go(0);
+                this.first.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1&test=1"
+                this.second.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=257&planStatus=0&test=1"
+                this.third.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&test=1"
+                this.fourth.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=4&test=1"
+                this.activeName = 'third'
               } else {
                 this.$message({
                   message: "下发失败",

+ 2 - 0
src/views/inward/components/truckAppoint/requirement.vue

@@ -152,6 +152,8 @@ export default {
                   message: "下发成功!",
                 });
               this.first.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=0&test=1"
+              this.second.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1&test=1"
+              this.activeName = 'second'
               } else {
                 this.$message({
                   message: "下发失败",

+ 2 - 2
src/views/inward/components/truckOrder/decomposePlan.vue

@@ -126,7 +126,7 @@ export default {
       carrierId:null,
       form: {},
       first:{
-       requestUrl: "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=1&planId="+this.$route.params.planId,
+       requestUrl: "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=40&planId="+this.$route.params.planId,
       },
       second:{
         requestUrl:"/api/v1/oms/getCapacityAndDriverList?apiId=246",
@@ -179,7 +179,7 @@ export default {
       //查看需求详情
       this.axios
         .post(
-          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=1&planId=" + this.$route.params.planId
+          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=40&planId=" + this.$route.params.planId
         )
         .then((res) => {
             console.log(res)

+ 5 - 3
src/views/inward/components/truckOrder/dispatchPlan.vue

@@ -39,14 +39,14 @@ export default {
       first: {
         // first请求数据的地址
         requestUrl:
-          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=3&carrierId=1",
+          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=3&carrierId=40",
         selectionType: "select",
         mapList: [],
       },
       second: {
         // second请求数据的地址
         requestUrl:
-          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4&carrierId=1",
+          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4&carrierId=40",
       },
       activeName: "first",
     };
@@ -75,7 +75,9 @@ export default {
                   type: "success",
                   message: "分派成功!",
                 });
-                this.$router.go(0);
+                this.first.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=3&carrierId=40&test=1"
+                this.second.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=40&carrierId=1&test=1"
+                this.activeName = 'second'
               } else {
                 this.$message({
                   message: "分派失败",

+ 3 - 3
src/views/inward/components/truckOrder/plan.vue

@@ -61,17 +61,17 @@ export default {
       first: {
         // first请求数据的地址
         requestUrl:
-          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&carrierId=1",
+          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&carrierId=40",
       },
       second: {
         // second请求数据的地址
         requestUrl:
-          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=1",
+          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=40",
       },
       third: {
         // second请求数据的地址
         requestUrl:
-          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=1",
+          "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=40",
       },
       activeName: "first",
     };

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

@@ -62,6 +62,10 @@ import daZhouOutFactory from '@/views/inward/components/inwardImport/daZhou/outF
 import trainLineUnload from '@/views/inward/components/inwardImport/oldAreaRailScale/trainLineUnload.vue'
 //内转进口矿/国产矿/燃料--老区轨道衡-厂内料场--质检作业
 import oldAreaRailScaleQualityResult from '@/views/inward/components/inwardImport/oldAreaRailScale/qualityResult.vue'
+//内转进口矿-轨道衡厂内料场-质检作业
+import oldAreaEnfactoryResult from '@/views/inward/components/inwardImport/oldAreaRailScale/enFactory.vue'
+//内转老区轨道衡进厂
+import oldAreaOutfactoryResult from '@/views/inward/components/inwardImport/oldAreaRailScale/outFactory.vue'
 //内转进口矿/国产矿/燃料--老区轨道衡-厂内料场--汽车装货
 import oldAreaRailScaleTruckLoad from '@/views/inward/components/inwardImport/oldAreaRailScale/truckLoad.vue'
 //内转进口矿/国产矿/燃料--老区轨道衡-厂内料场--计毛作业
@@ -179,6 +183,8 @@ const constantRouterMap = [{
     {path: 'daZhouOutFactory',name: 'daZhouOutFactory',meta: {code: 'xtpzgl-yhgl'},component: daZhouOutFactory}, 
     {path: 'trainLineUnload',name: 'trainLineUnload',meta: {code: 'xtpzgl-yhgl'},component: trainLineUnload}, 
     {path: 'oldAreaRailScaleQualityResult',name: 'oldAreaRailScaleQualityResult',meta: {code: 'xtpzgl-yhgl'},component: oldAreaRailScaleQualityResult}, 
+    {path: 'oldAreaOutfactoryResult',name: 'oldAreaOutfactoryResult',meta: {code: 'xtpzgl-yhgl'},component: oldAreaOutfactoryResult},
+    {path: 'oldAreaEnfactoryResult',name: 'oldAreaEnfactoryResult',meta: {code: 'xtpzgl-yhgl'},component: oldAreaEnfactoryResult},
     {path: 'oldAreaRailScaleTruckLoad',name: 'oldAreaRailScaleTruckLoad',meta: {code: 'xtpzgl-yhgl'},component: oldAreaRailScaleTruckLoad}, 
     {path: 'oldAreaRailScaleGrossWeightResult',name: 'oldAreaRailScaleGrossWeightResult',meta: {code: 'xtpzgl-yhgl'},component: oldAreaRailScaleGrossWeightResult}, 
     {path: 'oldAreaRailScaleUnload',name: 'oldAreaRailScaleUnload',meta: {code: 'xtpzgl-yhgl'},component: oldAreaRailScaleUnload}, 

+ 124 - 40
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,102 @@ 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(() => {
+    //点击下发事件
+    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: "请先选择订单!",
+          });
+      }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);
             this.$message({
-              type: "info",
-              message: "取消下发!",
-            });
+            type: "success",
+            message: "下发成功!",
           });
-      } else {
-        this.$message({
-          type: "warning",
-          message: "请选择订单后再下发!",
+          }
         });
       }
+      
     },
+    // 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 {

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

@@ -0,0 +1,258 @@
+<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);
+            this.$message({
+            type: "success",
+            message: "派单成功!",
+          });
+          }
+        });
+    },
+  },
+};
+</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},