Your Name 3 năm trước cách đây
mục cha
commit
1ec66b9276
21 tập tin đã thay đổi với 480 bổ sung286 xóa
  1. 2 2
      build/utils.js
  2. 1 1
      config/index.js
  3. 12 0
      src/components/main.vue
  4. 56 9
      src/views/TMS/components/importedFuel/transportReserveRanAdd.vue
  5. 6 5
      src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/dischargeCargoOld.vue
  6. 4 39
      src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/enterFactoryOld.vue
  7. 16 5
      src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/exFactoryOld.vue
  8. 53 1
      src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/qualityTestingOld.vue
  9. 2 2
      src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/receivingOld.vue
  10. 46 1
      src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/skinCountingOld.vue
  11. 46 0
      src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/woolCountingOld.vue
  12. 1 1
      src/views/TMS/components/purchaseChemicalMaterials/transportationReservation.vue
  13. 55 8
      src/views/TMS/components/purchaseChemicalMaterials/transportationReservationAdd.vue
  14. 14 2
      src/views/TMS/router/index.js
  15. 10 14
      src/views/inward/components/truckAppoint/addPlan.vue
  16. 19 13
      src/views/inward/components/truckAppoint/addRequirement2.vue
  17. 4 2
      src/views/inward/components/truckAppoint/plan.vue
  18. 12 10
      src/views/inward/components/truckAppoint/requirement.vue
  19. 11 18
      src/views/inward/components/truckAppoint/updatePlan.vue
  20. 10 83
      src/views/inward/components/truckOrder/decomposePlan.vue
  21. 100 70
      src/views/inward/components/truckOrder/dispatchPlan.vue

+ 2 - 2
build/utils.js

@@ -16,8 +16,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 
- let devModules = ['all']
-//  let devModules = ['index','WMS']
+//  let devModules = ['all']
+ let devModules = ['index','inward','TMS']
 // let devModules = ['index','SporadicManage','TMS','statisticalReport','RMS'];
 // let devModules = ['index','appoint','WMS'];
 

+ 1 - 1
config/index.js

@@ -64,7 +64,7 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    target: "http://172.16.33.166:8080",
+    target: "http://172.16.33.161:8080",
     // target: "http://localhost:8019",
     // target: "http://localhost:8082",
     ws: true,

+ 12 - 0
src/components/main.vue

@@ -740,6 +740,10 @@ export default {
           label: "basic_theme",
           desc: "默认主题",
         },
+        {
+          label: "green_theme",
+          desc: "原谅主题",
+        },
         {
           label: "deepBlue_theme",
           desc: "深蓝色主题",
@@ -758,6 +762,7 @@ export default {
         deepBlue_theme: "#072ec5",
         dark_theme: "#000000",
         red_theme: "#F20808",
+        green_theme: "#F20808",
       },
       themeSetFlag: false,
       lockErrorMsg: false,
@@ -944,7 +949,14 @@ export default {
       let that = this;
       window.top.localStorage.setItem("current_theme", n);
       that.theme_color = that.theme_origin_color[n];
+      console.log(that.theme_color)
+      console.log('这是')
       for (let i = 0; i < document.getElementsByTagName("iframe").length; i++) {
+         console.log(document
+            .getElementsByTagName("iframe")
+            [i].contentDocument.getElementsByClassName(
+              "mainVueIndex"
+            )[0].className)
         try {
           document
             .getElementsByTagName("iframe")

+ 56 - 9
src/views/TMS/components/importedFuel/transportReserveRanAdd.vue

@@ -20,17 +20,33 @@
       </el-select>
       <span class="span"></span>
     </div>
+    <div class="supplieUnit">
+      <el-form
+        :inline="true"
+        class="demo-form-inline"
+        label-width="80px"
+        >
+        <el-form-item label="发货单位:">
+         <el-autocomplete
+          class="inline-input"
+          v-model="stateSupplier"
+          :fetch-suggestions="querySearchSupplier"
+          placeholder="请输入发货单位名称"
+          :trigger-on-focus="false"
+          @select="handleSelectSupplier"
+        >
+        <template slot-scope="{ item }">
+          <div class="name">{{ item.supplierName }}</div>
+        </template>
+        </el-autocomplete>
+        </el-form-item>
+     </el-form>
+    </div>
     <div class="material from">
       <span class="text">物资:</span>
       <el-input class="input" v-model="materialName" disabled> </el-input>
       <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
     </div>
-
-    <div class="forwardingUnit from">
-      <span class="text">发货单位:</span>
-      <el-input class="input" v-model="supplierName" disabled> </el-input>
-      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
-    </div>
     <div class="remark from">
       <span class="text">船名:</span>
       <el-input class="input" v-model="remark" @blur="onBlur"> </el-input>
@@ -205,6 +221,7 @@ export default {
   components: { PageTitle },
   data() {
     return {
+      stateSupplier:null,
       //限定first
       isHeigth:true,
       shiyHeigth:140,
@@ -351,6 +368,27 @@ export default {
     onBlur() {
       this.getPurchaseOrderNo();
     },
+    //发货单位弹出层
+    handleSelectSupplier(item){
+      this.supplierId = item.supplierId
+      this.supplierName = item.supplierName
+    },
+    //以下是发货单位边输边查搜索
+    querySearchSupplier(queryString, cb) {
+        this.axios.post('/api/v1/uc/getSupplierMesByLike?index='+this.stateSupplier).then((res)=>{
+        if(res.data.code == "200"){    
+          var restaurantsSupplier = res.data.data
+          var results = queryString ? restaurantsSupplier.filter(this.createFilterSupplier(queryString)) :restaurantsSupplier;
+          // 调用 callback 返回建议列表的数据
+          cb(results);
+        }
+      })  
+      },
+    createFilterSupplier(queryString) {
+        return (restaurantsSupplier) => {
+          return (restaurantsSupplier.value.toLowerCase().indexOf(queryString.toLowerCase()) > -1);
+        };
+      },
     getPurchaseOrderNo() {
       let map = {
         materialId: this.materialId,
@@ -395,7 +433,7 @@ export default {
         if (this.onDrawerNumber == 1) {
           this.frist.requestUrl =
             "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
-            this.input;
+            this.input + "&supplierId=" + this.supplierId;;
         } else if (this.onDrawerNumber == 2) {
           this.secend.requestUrl =
             "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
@@ -479,7 +517,7 @@ export default {
       if (num == 1) {
         this.frist.requestUrl =
           "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
-          this.input;
+          this.input + "&supplierId=" + this.supplierId;;
       } else if (num == 2) {
         this.secend.requestUrl =
           "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
@@ -504,7 +542,7 @@ export default {
           "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
       } else if (num == 5) {
         this.line.requestUrl =
-          "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date() + "&con=" + "燃料";
+          "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date() + "&con=" + "采购燃料";
       } else if (num == 6) {
         this.purchaseOrder.requestUrl =
           "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
@@ -696,6 +734,15 @@ export default {
     margin-right: 20px;
   }
 }
+.supplieUnit {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  margin-top: 20px;
+  .el-input {
+    width: 250px;
+  }
+}
 .lineId {
   display: flex;
   justify-content: center;

+ 6 - 5
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/dischargeCargoOld.vue

@@ -1,13 +1,14 @@
 //老区采购化工产品卸货作业
 <template>
   <div class="homeworkPath">
-   <div class="top">
+    <div class="top">
       <el-input placeholder="请输入内容" class="input" 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>
+    <dilTable v-bind.sync="option">
+    </dilTable>
   </div>
 </template>
 
@@ -20,14 +21,14 @@ export default {
       input: "",
       option: {
         // 表格请求数据的地址
-        requestUrl: "/api/v1/tms/getUnloadResult?apiId=145&orderType=6",
+        requestUrl: "/api/v1/tms/getUnloadResult?apiId=145&orderType=17",
       },
     };
   },
- 
+
   methods: {
     onclick() {
-          this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=145&orderType=6&con=" + this.input;
+     this.option.requestUrl = "/api/v1/tms/getUnloadResult?apiId=145&orderType=17&con=" + this.input;
     },
    }
 };

+ 4 - 39
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/enterFactoryOld.vue

@@ -22,51 +22,16 @@ export default {
       input: "",
       option: {
         // 表格请求数据的地址
-        requestUrl: "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=6",
+        requestUrl: "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=17",
       },
     };
   },
-
+ 
   methods: {
     onclick() {
-      this.option.requestUrl = "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=6&con=" + this.input;
-    },
-    updateClick(resultId) {
-      this.$router.push("/truckLoadResultEdit/" + resultId);
+      this.option.requestUrl = "/api/v1/tms/getAllEnFactoryResult?apiId=143&orderType=17&con=" + this.input;
     },
-    //新增
-    insertClick() {
-      this.$router.push("/truckLoadResultAdd/");
-    },
-    deleteClick(resultId) {
-      
-      this.$confirm("是否删除", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-        center: true,
-      })
-        .then(() => {
-          this.$message({
-            type: "success",
-            message: "删除成功!",
-          });
-          this.axios
-            .post(
-              "/api/v1/tms/deleteLoadResult/" + resultId
-            )
-            .then(() => {
-              this.$router.go(0);
-            });
-        })
-        .catch(() => {
-          this.$message({
-            type: "info",
-            message: "取消删除!",
-          });
-        });
-    },
-  },
+  }
 };
 </script>
 <style lang='scss'>

+ 16 - 5
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/exFactoryOld.vue

@@ -1,7 +1,7 @@
 //老区采购化工产品出厂作业
 <template>
   <div class="homeworkPath">
-   <div class="top"> 
+    <div class="top">
       <el-input placeholder="请输入内容" class="input" v-model="input" clearable> </el-input>
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
@@ -14,6 +14,7 @@
 </template>
 
 <script>
+import { getCookie } from "@/utils/util.js";
 export default {
   name: "homeworkPath",
   data() {
@@ -22,15 +23,25 @@ export default {
       input: "",
       option: {
         // 表格请求数据的地址
-        requestUrl: "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=6",
+        requestUrl: "",
       },
     };
   },
-
-  methods: {
+  created(){
     
+     if (getCookie("orgCode") == "chengyunshang") {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + getCookie("userId");
+      } else {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + null ;
+      }
+  },
+  methods: {
     onclick() {
-     this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=6&con=" + this.input;
+      if (getCookie("orgCode") == "chengyunshang") {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + getCookie("userId")+"&con=" + this.input;;
+      } else {
+        this.option.requestUrl = "/api/v1/tms/getLeaveFactoryResult?apiId=147&orderType=17&carrierSsoId=" + null +"&con=" + this.input;
+      }
     },
    }
 };

+ 53 - 1
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/qualityTestingOld.vue

@@ -1 +1,53 @@
-//老区采购化工产品质检作业
+//老区采购化工产品质检作业
+<template>
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" class="input" 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">
+      <el-table-column fixed="right" label="操作" width="50">
+        <template slot-scope="scope">
+          <el-button @click="updateClick(scope.row.resultId)" type="text" size="small">
+            修改
+          </el-button>
+        </template>
+      </el-table-column>
+    </dilTable>
+  </div>
+</template>
+
+
+<script>
+export default {
+  name: "wagonPlease",
+  data() {
+    return {
+      input: "",
+      option: {       
+        // 表格请求数据的地址
+        requestUrl: "/api/v1/tms/getQualityResult?apiId=150&orderType=17",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+      this.option.requestUrl = "/api/v1/tms/getQualityResult?apiId=150&orderType=17&con=" + this.input;
+    },
+  },
+};
+</script>
+<style lang='scss'>
+.homeworkPath {
+   .top {
+    padding: 40px;
+    .input{
+      width: 250px;
+      margin-right: 10px;
+    }
+  }
+}
+</style>

+ 2 - 2
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/receivingOld.vue

@@ -20,13 +20,13 @@ export default {
       input: "",
       option: {       
         // 表格请求数据的地址
-        requestUrl: "/api/v1/tms/getReceiveResult?apiId=150&orderType=17",
+        requestUrl: "/api/v1/tms/getReceiveResult?apiId=149&orderType=17",
       },
     };
   },
   methods: {
     onclick() {
-      this.option.requestUrl = "/api/v1/tms/getReceiveResult?apiId=150&orderType=17&con=" + this.input;
+      this.option.requestUrl = "/api/v1/tms/getReceiveResult?apiId=149&orderType=17&con=" + this.input;
     },
   },
 };

+ 46 - 1
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/skinCountingOld.vue

@@ -1 +1,46 @@
-//老区采购化工产品计皮作业
+//老区采购化工产品计皮作业
+<template>
+  <div class="homeworkPath">
+   <div class="top">
+      <el-input placeholder="请输入内容" class="input" 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/getAllJiPiResult?apiId=146&orderType=17",
+      },
+    };
+  },
+  methods: {
+    onclick() {
+     this.option.requestUrl = "/api/v1/tms/getAllJiPiResult?apiId=146&orderType=17&con=" + this.input;
+    },
+   }
+};
+</script>
+<style lang='scss'>
+.homeworkPath {
+   .top {
+    padding: 40px;
+    .input{
+      width: 250px;
+      margin-right: 10px;
+    }
+  }
+}
+</style>

+ 46 - 0
src/views/TMS/components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/woolCountingOld.vue

@@ -1 +1,47 @@
 //老区采购化工产品计毛作业
+<template>
+  <div class="homeworkPath">
+    <div class="top">
+      <el-input placeholder="请输入内容" class="input" 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/getAllJiMaoResult?apiId=102&orderType=17",
+      },
+    };
+  },
+
+  methods: {
+    onclick() {
+     this.option.requestUrl = "/api/v1/tms/getAllJiMaoResult?apiId=102&orderType=17&con=" + this.input;
+    },
+   }
+};
+</script>
+<style lang='scss'>
+.homeworkPath {
+   .top {
+    padding: 40px;
+    .input{
+      width: 250px;
+      margin-right: 10px;
+    }
+  }
+}
+</style>

+ 1 - 1
src/views/TMS/components/purchaseChemicalMaterials/transportationReservation.vue

@@ -21,7 +21,7 @@
         @click="issue"
         v-if="activeName == 'first'"
       >
-        <i class="el-icon-plus"></i>下发
+        <i class="el-icon-download"></i>下发
       </el-button>
     </div>
     <el-tabs v-model="activeName">

+ 55 - 8
src/views/TMS/components/purchaseChemicalMaterials/transportationReservationAdd.vue

@@ -19,17 +19,33 @@
       </el-select>
       <span class="span"></span>
     </div>
+    <div class="supplieUnit">
+      <el-form
+        :inline="true"
+        class="demo-form-inline"
+        label-width="80px"
+        >
+        <el-form-item label="发货单位:">
+         <el-autocomplete
+          class="inline-input"
+          v-model="stateSupplier"
+          :fetch-suggestions="querySearchSupplier"
+          placeholder="请输入发货单位名称"
+          :trigger-on-focus="false"
+          @select="handleSelectSupplier"
+        >
+        <template slot-scope="{ item }">
+          <div class="name">{{ item.supplierName }}</div>
+        </template>
+        </el-autocomplete>
+        </el-form-item>
+     </el-form>
+    </div>
     <div class="material from">
       <span class="text">物资:</span>
       <el-input class="input" v-model="materialName" disabled> </el-input>
       <el-button type="primary" @click="ondrawer(1)">浏览</el-button>
     </div>
-
-    <div class="forwardingUnit from">
-      <span class="text">发货单位:</span>
-      <el-input class="input" v-model="supplierName" disabled> </el-input>
-      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
-    </div>
     <div class="remark from">
       <span class="text">船名:</span>
       <el-input class="input" v-model="remark" @blur="onBlur"> </el-input>
@@ -242,6 +258,7 @@ export default {
           label: "新厂区",
         },
       ],
+      stateSupplier:null,
       // 线路名称
       lineName: "",
       //线路id
@@ -382,11 +399,32 @@ export default {
         });
       }
     },
+        //发货单位弹出层
+    handleSelectSupplier(item){
+      this.supplierId = item.supplierId
+      this.supplierName = item.supplierName
+    },
+    //以下是发货单位边输边查搜索
+    querySearchSupplier(queryString, cb) {
+        this.axios.post('/api/v1/uc/getSupplierMesByLike?index='+this.stateSupplier).then((res)=>{
+        if(res.data.code == "200"){    
+          var restaurantsSupplier = res.data.data
+          var results = queryString ? restaurantsSupplier.filter(this.createFilterSupplier(queryString)) :restaurantsSupplier;
+          // 调用 callback 返回建议列表的数据
+          cb(results);
+        }
+      })  
+      },
+    createFilterSupplier(queryString) {
+        return (restaurantsSupplier) => {
+          return (restaurantsSupplier.value.toLowerCase().indexOf(queryString.toLowerCase()) > -1);
+        };
+      },
     onclick() {
       if(this.input){
         this.isKuang = true;
         if (this.onDrawerNumber == 1) {
-          this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
+          this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input + "&supplierId=" + this.supplierId;;
         } else if (this.onDrawerNumber == 2) {
           this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId + "&index=" + this.input;
         } else if (this.onDrawerNumber == 3) {
@@ -428,7 +466,7 @@ export default {
       this.drawer = true;
       this.onDrawerNumber = num;
       if(num == 1){
-        this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input;
+        this.frist.requestUrl = "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" + this.input + "&supplierId=" + this.supplierId;;
       }else if (num == 2) {
         this.secend.requestUrl = "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" + this.materialId;
       } else if (num == 3) {
@@ -723,6 +761,15 @@ export default {
     }
   }
 }
+.supplieUnit {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  margin-top: 20px;
+  .el-input {
+    width: 250px;
+  }
+}
 .drawer_top{
   margin-top: -50px;
   width: 100%;height: 60px;

+ 14 - 2
src/views/TMS/router/index.js

@@ -1,8 +1,6 @@
 import Vue from 'vue'
 import Router from 'vue-router'
-
 import routerBefore from '@/config/routerBefore.js'
-
 // 主要
 import main from '@/components/main.vue'
 // 系统配置管理
@@ -192,6 +190,13 @@ import receivingNew from '../components/purchaseChemicalMaterials/purchaseChemic
 import skinCountingNew from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsNEW/skinCountingNew.vue'
 import woolCountingNew from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsNEW/woolCountingNew.vue'
 
+import dischargeCargoOld from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/dischargeCargoOld.vue'
+import enterFactoryOld from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/enterFactoryOld.vue'
+import exFactoryOld from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/exFactoryOld.vue'
+import qualityTestingOld from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/qualityTestingOld.vue'
+import receivingOld from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/receivingOld.vue'
+import skinCountingOld from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/skinCountingOld.vue'
+import woolCountingOld from '../components/purchaseChemicalMaterials/purchaseChemicalMaterialsOLD/woolCountingOld.vue'
 
 
 Vue.use(Router)
@@ -376,6 +381,13 @@ const constantRouterMap = [
       {path: 'transportationReservationAdd', name: 'transportationReservationAdd', meta: {code: 'xtpzgl-yhgl'}, component: transportationReservationAdd},
       {path: 'transportationReservationEDIT/:orderId', name: 'transportationReservationEDIT', meta: {code: 'xtpzgl-yhgl'}, component: transportationReservationEDIT},
      
+      {path: 'dischargeCargoOld', name: 'dischargeCargoOld', meta: {code: 'xtpzgl-jggl'}, component: dischargeCargoOld},
+      {path: 'enterFactoryOld', name: 'enterFactoryOld', meta: {code: 'xtpzgl-jggl'}, component: enterFactoryOld},
+      {path: 'exFactoryOld', name: 'exFactoryOld', meta: {code: 'xtpzgl-jggl'}, component: exFactoryOld},
+      {path: 'qualityTestingOld', name: 'qualityTestingOld', meta: {code: 'xtpzgl-jggl'}, component: qualityTestingOld},
+      {path: 'receivingOld', name: 'receivingOld', meta: {code: 'xtpzgl-jggl'}, component: receivingOld},
+      {path: 'skinCountingOld', name: 'skinCountingOld', meta: {code: 'xtpzgl-jggl'}, component: skinCountingOld},
+      {path: 'woolCountingOld', name: 'woolCountingOld', meta: {code: 'xtpzgl-jggl'}, component: woolCountingOld},
     ]
   }
 ];

+ 10 - 14
src/views/inward/components/truckAppoint/addPlan.vue

@@ -12,7 +12,6 @@
       placeholder="请输入承运商名称"
       :trigger-on-focus="false"
       @select="handleSelect"
-      @input="oninput"
     >
   <template slot-scope="{ item }">
     <div class="name">{{ item.value }}</div>
@@ -165,24 +164,21 @@ export default {
     },
     handleSelect(item){
       this.carrierId = item.carrierId
-      item.carrierName = this.state2
+      this.state2 = item.carrierName 
     },
-    oninput(){
-      this.axios.post('/api/v1/uc/getCarrierMesByLike?index='+this.state2).then((res)=>{
+        //搜索
+    querySearch(queryString, cb) {
+        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
+          var restaurants = res.data.data
+           var results = queryString ? restaurants.filter(this.createFilter(queryString)) :restaurants;
+          // 调用 callback 返回建议列表的数据
+          console.log(results,"results");
+          cb(results);
         }
       })
-    },
-        //搜索
-    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) => {

+ 19 - 13
src/views/inward/components/truckAppoint/addRequirement2.vue

@@ -65,9 +65,8 @@
         </el-form-item>
         </el-form>
       </div>
-      
       <!-- 物资和装卸点以及装卸货次序 -->
-          <div class="swtichTop">
+    <div class="swtichTop">
     <span class="titile">点击浏览选择物资之前请选择物资单位!</span>
     <div class="switch" v-if="tableData.length > 0">
       <el-tooltip placement="top">
@@ -204,7 +203,7 @@
         <el-input
           placeholder="请输入内容"
           v-model="input"
-          style="margin-top: 10px; margin-left: 10px; width: 250px"
+          style="margin-top: 5px; margin-left: 10px; width: 250px"
           clearable
         >
         </el-input>
@@ -315,7 +314,7 @@ export default {
         mapList1: []
       },
       second1: {
-        requestUrl: "/api/v1/ams/getWareHouse?apiId=251",
+        requestUrl: "/api/v1/uc/getUnloadingMesByLike?apiId=374",
         selectionType: "radio",
         mapList2: []
       }
@@ -402,6 +401,14 @@ export default {
     handleClose(done) {
       done();
     },
+    onclickMaterial(){
+      if(this.inputMaterial == null){
+        this.materialTable.requestUrl = "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date()
+      }else{
+        this.materialTable.requestUrl = "/api/v1/uc/queryMaterialByLike?apiId=244&index=" + this.inputMaterial
+        this.inputMaterial = null
+      }
+    },
     //删除行
     deleteRow(index, rows) {
       // console.log(index)
@@ -452,7 +459,7 @@ export default {
           this.input = null
         } else {
         this.second1.requestUrl =
-          "/api/v1/ams/getWareHouse?apiId=251&con=" + this.input;
+          "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
           this.input = null
       }
       }else{
@@ -470,25 +477,24 @@ export default {
       this.materialId = selection.materialId;
     },
     currentRadioChange2(selection) {
+      console.log(selection);
       if (this.a == 2) {
-        this.truckPoint = selection.wareHouseName;
-        this.requiremntUnitId = selection.wareHouseId;
+        this.truckPoint = selection.warehouseName;
+        this.requiremntUnitId = selection.warehouseId;
       } else if (this.a == 3) {
         // console.log(this.tableData[this.index])
-        this.tableData[this.index].requirementUnloadUnitId = selection.wareHouseId;
-        this.tableData[this.index].truckPoint1 = selection.wareHouseName
+        this.tableData[this.index].requirementUnloadUnitId = selection.warehouseId;
+        this.tableData[this.index].truckPoint1 = selection.warehouseName
         this.refreshTable()
       } else if (this.a == 4) {
         // console.log(this.tableData[this.index])
-        this.tableData[this.index].requirementPlatformId = selection.wareHouseId;
-        this.tableData[this.index].requirementPlatformName = selection.wareHouseName;
+        this.tableData[this.index].requirementPlatformId = selection.warehouseId;
+        this.tableData[this.index].requirementPlatformName = selection.warehouseName;
         this.refreshTable()
       }
     },
     // 新增
     makeSure() {
-      // console.log(this.tableData)
-      // console.log(typeof(this.form.requirementEstimatedDuration))
       if(this.shipperId == null){
         this.$message.error("请选择用车单位")
         return

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

@@ -1,6 +1,6 @@
 // 制定计划
 <template>
-  <div class="steel_inbound">
+  <div class="inwardPlan">
     <div class="sache">
       <el-input placeholder="请输入内容" v-model="inputText" clearable>
       </el-input>
@@ -449,7 +449,9 @@ export default {
 };
 </script>
 <style lang="scss">
-.steel_inbound{
+.inwardPlan{
+  margin-top: 20px;
+  margin-left: 20px;
   .sache{
     padding: 1.25rem 0.375rem;
     .el-input {

+ 12 - 10
src/views/inward/components/truckAppoint/requirement.vue

@@ -1,6 +1,6 @@
 // 提出需求
 <template>
-  <div class="steel_inbound">
+  <div class="inwardRequirement">
     <div class="sache">
       <el-input placeholder="请输入内容" v-model="inputText" clearable>
       </el-input>
@@ -335,14 +335,16 @@ export default {
   },
 };
 </script>
-<style lang="scss">
-.steel_inbound{
-  .sache{
-    padding: 1.25rem 0.375rem;
-    .el-input {
-      width: 20%;
-      margin-right: 1.25rem;
-    }
-  }
+<style lang="scss" scoped>
+  .inwardRequirement{
+      margin-top: 20px;
+      margin-left: 20px;
+      .sache{
+          margin-top: 30px;
+          padding-bottom: 10px;
+          .el-input {
+            width: 20%;
+            }
+          }
   }
 </style>

+ 11 - 18
src/views/inward/components/truckAppoint/updatePlan.vue

@@ -2,7 +2,6 @@
 <template>
   <div id="endMaintenance">
     <page-title>修改计划</page-title>
-
     <div class="form-box">
 <el-form  class="demo-form-inline"  label-width="80px" label-position="left">
   <el-form-item label="承运商">
@@ -13,7 +12,6 @@
       placeholder="请输入承运商名称"
       :trigger-on-focus="false"
       @select="handleSelect"
-      @input="oninput"
     >
   <template slot-scope="{ item }">
     <div class="name">{{ item.value }}</div>
@@ -66,28 +64,23 @@ 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
-        }
-      })
+      this.state2 = item.carrierName
     },
     //搜索
     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);
+        this.axios.post('/api/v1/uc/getCarrierMesByLike?index='+this.state2).then((res)=>{
+        if(res.data.code == "200"){
+          var restaurants =  res.data.data
+          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);
+          return (restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) > -1);
         };
       },
     // 修改

+ 10 - 83
src/views/inward/components/truckOrder/decomposePlan.vue

@@ -30,50 +30,9 @@
           </template>
           </el-table-column> 
 		    </dilTable>
-    <div class="form-box">
-        <el-form :inline="true" class="demo-form-inline" :label-position="left"  label-width="80px">
-          <el-form-item label="选择路线">
-            <el-input v-model="lineName" placeholder="必填" disabled > </el-input>
-          </el-form-item>
-          <el-form-item>
-            <el-button type="primary" @click="drawerLine()">浏览</el-button>
-          </el-form-item>
-        </el-form>
-    </div>
-     <div class="box-form">
-        <dil-form :formId="318" v-model="form"></dil-form>
-    </div>
     <div class="capacityButton">
       <el-button type="primary" class="truckBtn" @click="drawerCapacity()">浏览车牌号</el-button>
     </div>
-     <el-drawer
-      :visible.sync="linedrawer"
-      :direction="direction"
-      :before-close="handleClose"
-      size="40%"
-    >
-      <el-input placeholder="请输入内容" v-model="input"  style="margin-top: 10px;margin-right: 10px;width:250px;" 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="zero" @radio-change="currentRadioChange1" ></dilTable>    
-    </el-drawer>
-    <!-- <el-drawer
-      :visible.sync="drawer"
-      :direction="direction"
-      :before-close="handleClose"
-      size="30%"
-    >
-      <el-input placeholder="请输入内容" v-model="input"  style="margin-top:10px;margin-right: 10px;width:150px;" clearable> </el-input>
-      <el-button type="primary" class="btn" @click="onclick()"  style="margin-bottom:15px">
-        <i class="el-icon-search"></i>查询
-      </el-button>
-      <el-button type="primary" class="btn" @click="onConfirm()"  style="margin-bottom:15px">
-        <i class="el-icon-plus"></i>确认
-      </el-button>
-   <dilTable v-bind.sync="second" @selection-change="currentRadioChange" ></dilTable>    
-    </el-drawer> -->
-
     <el-drawer 
       :visible.sync="drawer" 
       :with-header="false"
@@ -134,27 +93,6 @@
       <vxe-input v-model="row.requirementNo" type="text" disabled></vxe-input>
       </template>
 			</vxe-table-column>
-			<!-- <vxe-table-column field="materialName" title="物资名称"
-			
-			>
-      <template #edit="{ row }">
-      <vxe-input v-model="row.materialName" type="text" disabled></vxe-input>
-      </template>
-			</vxe-table-column>
-			<vxe-table-column field="materialWeight" title="物资重量" width="100"
-				:edit-render="{}"
-				>
-       <template #edit="{ row }">
-      <vxe-input v-model="row.materialWeight" type="text"></vxe-input>
-      </template>  
-			</vxe-table-column>
-      <vxe-table-column field="materialNumber" title="物资数量" width="100"
-				:edit-render="{}"
-				>
-       <template #edit="{ row }">
-      <vxe-input v-model="row.materialNumber" type="text" ></vxe-input>
-      </template>       
-			</vxe-table-column> -->
        <vxe-table-column field="capacityNumber" title="车牌号"
 				:edit-render="{}"
 				>
@@ -184,6 +122,7 @@ export default {
   },
   data() {
     return {
+      truckText:null,
       shiyHeigth:140,
       isHeigth:true,
       isKuang:false,
@@ -195,7 +134,7 @@ export default {
       linedrawer:false,
       tableData:[],
       direction: "rtl",
-      input:'',
+      input:null,
       selectRow:null, 
       drawer:false,
       planNo:"",
@@ -210,11 +149,6 @@ export default {
         selectionType: "select",
         mapList1:[]
       },
-      zero:{
-        requestUrl:"/api/v1/rms/getAllLineDesk?apiId=249",
-        selectionType: "radio",
-        mapList0:[]
-      },
       oldRow: "",
       //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态(未下发)
       oldRowCount: 1,
@@ -310,10 +244,11 @@ export default {
       this.linedrawer = true
     },
     onclick(){
-      if(this.input != ''){
-        this.second.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId="+this.input +"&carrierId=" + getCookie('userId');
+      console.log(this.truckText,"truckText")
+      if(this.truckText != null){
+        this.second.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId="+this.input +"&carrierId=" + getCookie('userId') + "&index=" + this.truckText;
       }else{
-        this.second.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + this.userCarrierId
+        this.second.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + this.userCarrierId + "&i=" + new Date()
       }     
     },
     currentRadioChange(selection){
@@ -374,10 +309,6 @@ export default {
             },
     // 修改
     makeSure() {
-      if(typeof(this.form.orderType) == 'undefined'){
-        this.$alert('没有选择订单类型,请选择')
-        return
-      }
       for(var i=0;i<this.$refs.xTable.getInsertRecords().length;i++){
         if(this.$refs.xTable.getInsertRecords()[i].capacityNumber == null){
           this.$alert('未选择车牌,请选择车牌')
@@ -385,14 +316,11 @@ export default {
         }     
       }
       let BmsTrainFreight = {
-          planId:this.$route.params.planId,
-          lineId:this.lineId,
-          orderType:this.form.orderType,
+          planId:Number(this.$route.params.planId),
+          orderType:11,
           carrierId:this.carrierId,
           mapList:this.$refs.xTable.getInsertRecords()
       };
-      console.log(BmsTrainFreight)
-      debugger
       this.axios
         .post("/api/v1/oms/addInwardOrder", BmsTrainFreight)
         .then((res) => {
@@ -410,7 +338,7 @@ export default {
     },
     // 返回
     cancel() {
-      console.log(this.sumNum(this.$refs.xTable.getInsertRecords(), 'materialWeight'))
+      this.$router.go(-1);
     },
   },
 };
@@ -438,11 +366,10 @@ export default {
   }
 }
 .capacityButton {
-  // width: 800px;
   display: flex;
   justify-content: center;
   align-items: center;
-  margin-left: 150px;
+  margin-top: 20px;
   .truckBtn {
     width: 300px;
   }

+ 100 - 70
src/views/inward/components/truckOrder/dispatchPlan.vue

@@ -1,6 +1,6 @@
 // 分派计划
 <template>
-  <div class="steel_inbound">
+  <div class="inwardOrder">
     <div class="sache">
       <el-input placeholder="请输入内容" v-model="inputText" clearable>
       </el-input>
@@ -8,6 +8,25 @@
         <i class="el-icon-search"></i>查询
       </el-button>
     </div>
+     <!-- 车辆信息 -->
+    <el-dialog
+        title="车辆信息"
+        :visible.sync="dialogTableVisible"
+        :before-close="handleClose"
+    >
+      <el-input v-model="truckInput" style="width:250px"></el-input>
+      <el-button type="primary" @click="clickTruck">查询</el-button>
+      <dilTable
+        v-bind.sync="truck"
+        @radio-change="currentRadioChange1"
+        >
+      </dilTable>
+      <span slot="footer" class="dialog-footer">
+      <el-button @click="cancelUpdate()">取 消</el-button>
+      <el-button type="primary" @click="updateTruckCapacity()"
+      >确 定</el-button>
+      </span>
+    </el-dialog>
     <template>
       <div>
         <el-tabs v-model="activeName" @tab-click="handleClick">
@@ -22,28 +41,14 @@
                   >
                     物资详情
                   </el-button>
-                  <!-- <el-button type="text" size="mini" @click="updatePlan(scope)">
+                  <el-button type="text" size="mini" @click="updatePlan(scope)">
                     修改
-                  </el-button> -->
+                  </el-button>
+                  <el-button type="text" size="mini" @click="deleteClick(scope)">
+                    删除
+                  </el-button>
                 </template>
               </el-table-column>
-              <!-- 车辆信息 -->
-              <el-dialog
-                title="车辆信息"
-                :visible.sync="dialogTableVisible"
-                :before-close="handleClose"
-              >
-                <dilTable
-                  v-bind.sync="truck"
-                  @radio-change="currentRadioChange1"
-                ></dilTable>
-                <span slot="footer" class="dialog-footer">
-                  <el-button @click="cancelUpdate()">取 消</el-button>
-                  <el-button type="primary" @click="updateTruckCapacity()"
-                    >确 定</el-button
-                  >
-                </span>
-              </el-dialog>
               <!-- 物资详情抽屉 -->
               <el-table-column type="expand" width="1">
                 <template slot-scope="props">
@@ -83,6 +88,7 @@ export default {
   data() {
     return {
       inputText: "",
+      truckInput:null,
       userCarrierId: "",
       //是否弹出对话框
       dialogTableVisible: false,
@@ -164,48 +170,73 @@ export default {
       if (getCookie("orgCode") == "chengyunshang") {
         this.first.requestUrl =
           "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4&carrierId=" +
-          getCookie("userId") +
+          getCookie("userId") + "&i=" +
           new Date();
         this.second.requestUrl =
           "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=5&carrierId=" +
-          getCookie("userId") +
+          getCookie("userId") + "&i=" +
           new Date();
       } else {
         this.first.requestUrl =
-          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4";
+          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4" + "&i=" +
+          new Date();
         this.second.requestUrl =
-          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=5";
+          "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=5" + "&i=" +
+          new Date();
       }
     },
-
-    // //修改运力
-    // updatePlan() {
-    //   if (this.capacityId == null) {
-    //     this.$message.error("未选中运力");
-    //     return;
-    //   }
-    //   this.axios
-    //     .post("/api/v1/oms/updateCapacityId", {
-    //       capacityId: this.capacityId,
-    //       orderId: this.orderId,
-    //     })
-    //     .then((res) => {
-    //       if (res.data.code == "200") {
-    //         this.$message.success("修改运力成功");
-    //         this.getRequestUrl();
-    //         this.dialogTableVisible = false;
-    //       } else {
-    //         this.$message.error("修改运力失败");
-    //       }
-    //     });
-    // },
-
-    // cancelUpdate() {
-    //   this.dialogTableVisible = false;
-    //   this.$message.info("取消修改运力");
-    // },
     handleClick() {
       this.getRequirementMaterial();
+      this.getRequest()
+    },
+    handleClose(done){
+      done()
+      this.$message.info("取消修改运力")
+    },
+    currentRadioChange1(row){
+      console.log(row)
+      this.capacityId = row.capacityId
+    },
+    getTruckRequestUrl(){
+      if (getCookie("orgCode") == "chengyunshang") {
+      this.truck.requestUrl =
+        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
+        getCookie("userId") + "&test=" + new Date();
+      } else {
+      this.truck.requestUrl =
+        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null +  "&test=" + new Date();
+      }
+    },
+    //修改运输订单
+    updatePlan(scope){
+      this.getTruckRequestUrl()
+      this.orderId = scope.row.orderId
+      this.dialogTableVisible = true
+      console.log(scope.row.orderId)
+    },
+    updateTruckCapacity(){
+        if(this.capacityId == null){
+            this.$message.error("未选中运力")
+            return
+        }
+        this.axios.post("/api/v1/oms/updateCapacityId",{
+          capacityId:this.capacityId,
+          orderId :this.orderId
+        }).then((res) =>{
+          if(res.data.code == "200"){
+            this.$message.success("修改运力成功")
+            this.dialogTableVisible = false
+            this.getRequest()
+            
+          }else{
+            this.$message.error("修改运力失败")
+            this.dialogTableVisible = false
+            this.getRequest()
+          }
+        })
+    },
+    clickTruck(){
+      this.truck.requestUrl = "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null + "&index=" + this.truckInput
     },
     getRequirementMaterial(row) {
       // 记录重复点击次数
@@ -240,24 +271,22 @@ export default {
           console.log(res.data.data);
         });
     },
-    deletePlan(scope) {
-      this.$confirm("是否删除", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-        center: true,
-      })
-        .then(() => {
-          this.axios
-            .post(
-              "/api/v1/bms/deleteTrainSettlement/" + scope.row.requirementId
-            )
+      //删除运输订单
+    deleteClick(scope){
+      this.$confirm('是否删除?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning',
+        }).then(() => {
+            this.axios
+            .post("/api/v1/oms/closeOmstruckOrder?orderId=" + scope.row.orderId)
             .then((res) => {
               if (res.data.code == 200) {
                 this.$message({
                   type: "success",
                   message: "删除成功!",
-                });
+                });     
+                this.getRequest()
               } else {
                 this.$message({
                   message: "删除失败",
@@ -265,19 +294,20 @@ export default {
                 });
               }
             });
-        })
-        .catch(() => {
+        }).catch(() => {
           this.$message({
-            type: "info",
-            message: "删除操作已取消!",
-          });
+            type: 'info',
+            message: '已取消删除'
+          });          
         });
     },
   },
 };
 </script>
 <style lang="scss">
-.steel_inbound {
+.inwardOrder {
+  margin-top: 20px;
+  margin-left: 20px;
   .sache {
     padding: 1.25rem 0.375rem;
     .el-input {