Your Name před 3 roky
rodič
revize
2b4c656e40

+ 2 - 2
build/utils.js

@@ -15,8 +15,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 // ['index','appoint','configManager','homepage','inward','queue','RMS','sale','serviceManager','SporadicManage'
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
-let devModules = ['all'];
-// let devModules = ['index','appoint','sale','TMS','statisticalReport','RMS'];
+// let devModules = ['all'];
+let devModules = ['index','inward','WMS'];
 // let devModules = ['index','appoint','TMS'];
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;

+ 2 - 2
config/index.js

@@ -64,8 +64,8 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    target: "http://172.16.33.166:8080",
-    // target: "http://192.168.1.102:8019",
+    // target: "http://172.16.33.166:8080",
+    target: "http://192.168.1.113:8019",
     // target: "http://192.168.1.114:8019",
     ws: true,
     pathRewrite: {

+ 209 - 0
src/views/WMS/components/steel/addCheckWarehouse.vue

@@ -0,0 +1,209 @@
+<template>
+  <!-- 新增盘库作业页面 -->
+  <div class="addCheckWarehouse">
+    <page-title>盘库作业</page-title>
+    <div class="material from">
+      <span class="text">仓库:</span>
+      <el-input class="input" v-model="warehouseName" disabled> </el-input>
+      <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
+    </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="materialNumber from">
+      <span class="text">件数:</span>
+      <el-input class="input" v-model="materialNumber"> </el-input>
+    </div>
+    <!-- 模态窗口 -->
+    <el-drawer :visible.sync="drawer" :direction="direction" size="40%">
+      <div style="margin-bottom: 10px">
+        <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(a)">
+          <i class="el-icon-search"></i>查询
+        </el-button>
+      </div>
+      <div v-show="a == 1">
+        <dilTable
+          v-bind.sync="first"
+          @radio-change="currentRadioChange1"
+        ></dilTable>
+      </div>
+      <div v-show="a == 2">
+        <dilTable
+          v-bind.sync="second"
+          @radio-change="currentRadioChange2"
+        ></dilTable>
+      </div>          
+    </el-drawer>
+    <div class="button_box">
+      <el-button @click="onClickCancel">返回</el-button>
+      <el-button type="primary" @click="onClickConfirm" :disabled = "disabled">确认</el-button>
+    </div>
+  </div>
+</template>
+<script>
+import PageTitle from "@/components/Page/Title";
+import { sjTime, isNumber, isIntegerNumber } from "@/utils/sharedJsFile";
+import { getCookie } from "@/utils/util.js";
+export default {
+  components: { PageTitle },
+  data() {
+    return {
+      disabled:false,
+      //仓库名称
+      warehouseName:null,
+      //物资名称
+      materialName: null,
+      //物资编码
+      materialCode:null,
+      //盘点数量
+      materialNumber:null,
+      //物资id
+      materialId: null,
+      //是否需要打开模态窗口
+      drawer: false,
+      a: 1,
+      direction: "rtl",
+      input: "",
+      first: {
+        requestUrl: "",
+        selectionType: "radio",
+        mapList1: [],
+      },
+      second: {
+          requestUrl: "",
+          selectionType:"radio"
+      }
+    };
+  },
+  watch: {
+    drawer(val) {
+      if (!val) {
+        this.input = null;
+      }
+    },
+  },
+  created() {
+      
+  },
+  methods: {
+    onclick(a) {
+      if (a == 1) {
+        this.first.requestUrl =
+          "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+          this.input;
+      }
+    },
+    ondrawer(num) {
+      this.drawer = true;
+      this.a = num;
+      if(num==1){
+          this.first.requestUrl = "/api/v1/uc/queryMaterialByLike?apiId=244" + "&i=" + new Date()
+      }else{
+          this.second.requestUrl = "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=库" + "&i=" + new Date();
+      }
+    },
+    // 返回
+    onClickCancel() {
+      this.$router.push("/steel_checkWarehouse");
+    },
+    currentRadioChange1(selection) {
+      console.log(selection);
+      this.materialName = selection.materialName + selection.materialSpecification + '(' + selection.materialModel + ')' ;
+      this.materialId = selection.materialId;
+      this.materialCode = selection.materialCode
+    },
+    currentRadioChange2(selection) {
+      this.warehouseId = selection.warehouseId
+      this.warehouseName = selection.warehouseName
+    },
+    // 确认
+    onClickConfirm() {
+      console.log(this.warehouseId,this.materialCode,this.materialNumber);
+      this.disabled = true
+      this.axios.post("/api/v1/wms/insertStockTaking?warehouseId=" + this.warehouseId + "&materialCode=" + this.materialCode + "&quantity=" + this.materialNumber ).then((res) => {
+          if (res.data.code == "200") {
+            this.$message({
+              message: "添加成功!",
+              type: "success",
+            });
+            this.disabled = false
+            this.onClickCancel()
+          }
+        });
+    },
+  },
+};
+</script>
+<style lang="scss" scope>
+.addCheckWarehouse{
+.contractDetails {
+  width: 100%;
+}
+.from {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  margin-top: 5px;
+  margin-bottom: 20px;
+}
+.warehouse {
+  display: flex;
+  justify-content: center;
+  margin-top: 20px;
+  margin-right: 70px;
+  .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;
+  }
+}
+.materialNumber {
+    display: flex;
+    justify-content: center;
+    margin-top: 20px;
+    margin-right: 70px;
+    .text {
+        display:inline-block;
+        width: 170px;
+        text-align: right;
+    }
+    .input {
+        width: 250px;
+        margin-right: 20px;
+    }
+}
+.button_box {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  width: 100%;
+  height: 100px;
+}
+}
+</style>

+ 65 - 0
src/views/WMS/components/steel/checkWarehouse.vue

@@ -0,0 +1,65 @@
+// 盘库作业
+<template>
+  <div class="steel_inbound">
+    <div class="top">
+      <!-- 框计算 -->
+      <el-input placeholder="请输入内容" class="input" v-model="inputText" clearable>
+      </el-input>
+      <el-button type="primary" class="btn" @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" class="btn1" @click="AddClick">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+    </div>
+    <div class="tab">
+      <dilTable v-bind.sync="option">
+      </dilTable>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  data() {
+    return {
+      // 框计算的输入框的值
+      inputText: null,
+      // 表格渲染的表头及数据
+      option: {
+        requestUrl: "/api/v1/wms/getStockTakingList?apiId=442",
+      },
+    };
+  },
+  methods: {
+    // 框计算查询按钮
+    onclick() {
+      console.log(this.inputText)
+    },
+    // 跳转新增运输路线页面
+    AddClick() {
+      this.$router.push({
+        path: "/steel_addCheckWarehouse",
+      });
+    },
+  },
+};
+</script>
+<style lang="scss">
+.steel_inbound{
+  .top{
+    width: 100%;
+    height: 100px;
+    display: flex;
+    align-items: center;
+    padding-left: 30px;
+    .input{
+      width: 250px;
+    }
+    .btn{
+      margin: 20px;
+    }
+  }
+}
+
+</style>

+ 4 - 0
src/views/WMS/router/index.js

@@ -35,6 +35,8 @@ import steel_restack from '../components/steel/steel_restack.vue'
 import steel_restackAdd from '../components/steel/steel_restackAdd.vue'
 import steel_sendreceive from '../components/steel/steel_sendreceive.vue'
 import steel_transfer from '../components/steel/steel_transfer.vue'
+import steel_checkWarehouse from '../components/steel/checkWarehouse.vue'
+import steel_addCheckWarehouse from '../components/steel/addCheckWarehouse.vue'
 Vue.use(Router)
 const constantRouterMap = [
 	{
@@ -74,6 +76,8 @@ const constantRouterMap = [
 		{path: 'steel_restackAdd', name: 'steel_restackAdd', meta: {code: 'xtpzgl-yhgl'}, component: steel_restackAdd},
 		{path: 'steel_sendreceive', name: 'steel_sendreceive', meta: {code: 'xtpzgl-yhgl'}, component: steel_sendreceive},
 		{path: 'steel_transfer', name: 'steel_transfer', meta: {code: 'xtpzgl-yhgl'}, component: steel_transfer},
+		{path: 'steel_checkWarehouse', name: 'steel_checkWarehouse', meta: {code: 'xtpzgl-yhgl'}, component: steel_checkWarehouse},
+		{path: 'steel_addCheckWarehouse', name: 'steel_addCheckWarehouse', meta: {code: 'xtpzgl-yhgl'}, component: steel_addCheckWarehouse},
 	  ]
 	}
   ];

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

@@ -85,7 +85,7 @@ export default {
       },
       createFilter(queryString) {
         return (restaurants) => {
-          return (restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
+          return (restaurants.value.toLowerCase().indexOf(queryString.toLowerCase()) > -1);
         };
       },
     currentRadioChange(selection){

+ 222 - 68
src/views/inward/components/truckAppoint/addRequirement2.vue

@@ -1,13 +1,9 @@
 // 新增厂内内转需求
 <template>
-  <div id="endMaintenance">
+  <div class="inwardRequirement">
     <page-title>新增需求</page-title>
-    <div class="main">
-      
-      <span class="a"></span>
-    </div>
     <div>
-      <div class="form-box f2">
+      <div class="material form">
         <el-form :inline="true" class="demo-form-inline">
           <el-form-item label="物资">
             <el-input v-model="materialName" disabled> </el-input>
@@ -17,19 +13,46 @@
           </el-form-item>
         </el-form>
       </div>
-      <div class="form-box f5">
+      <div class="materialWeight form">
         <el-form :inline="true" class="demo-form-inline">
-          <el-form-item label="用车地点">
-            <el-input v-model="truckPoint" disabled> </el-input>
+          <el-form-item label="物资重量">
+            <el-input v-model="materialWeight"> </el-input>
           </el-form-item>
-          <el-form-item>
-            <el-button type="primary" @click="ondrawer(2)">浏览</el-button>
+        </el-form>
+      </div>
+      <div class="materialNum form">
+        <el-form :inline="true" class="demo-form-inline">
+          <el-form-item label="物资数量">
+            <el-input v-model="materialNum"></el-input>
           </el-form-item>
         </el-form>
       </div>
-      <div class="form-box f5">
+      <!-- 用车单位 -->
+      <div class="requireUnit form">
+       <el-form
+        :inline="true"
+        class="demo-form-inline"
+        label-width="80px"
+      >
+        <el-form-item label="用车单位">
+         <el-autocomplete
+          class="inline-input"
+          v-model="requireUnitName"
+          :fetch-suggestions="querySearchCarrier"
+          placeholder="请输入用车单位名称"
+          :trigger-on-focus="false"
+          @select="handleSelectCarrier"
+        >
+        <template slot-scope="{ item }">
+          <div class="name">{{ item.shipperName }}</div>
+        </template>
+        </el-autocomplete>
+        </el-form-item>
+    </el-form>
+    </div>
+      <div class="unloadPoint form">
         <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>
@@ -37,9 +60,9 @@
           </el-form-item>
         </el-form>
       </div>
-       <div class="form-box f5">
+      <div class="loadPoint form">
         <el-form :inline="true" class="demo-form-inline">
-          <el-form-item label="装货月台">
+          <el-form-item label="装车点">
             <el-input v-model="requirementPlatformName" disabled> </el-input>
           </el-form-item>
           <el-form-item>
@@ -47,7 +70,7 @@
           </el-form-item>
         </el-form>
       </div>
-      <div class="form-box" >
+      <div class="form-box">
         <dil-form :formId="300" v-model="form"></dil-form>
       </div>
       <el-drawer
@@ -59,7 +82,7 @@
         <el-input
           placeholder="请输入内容"
           v-model="input"
-          style="margin-top: 10px; margin-left: 20px"
+          style="margin-top: 10px; margin-left: 10px; width: 250px"
           clearable
         >
         </el-input>
@@ -73,11 +96,23 @@
         </el-button>
         <div v-show="a == 1">
           <dilTable
-            v-bind.sync="second"
+            v-bind.sync="materialTable"
             @radio-change="currentRadioChange1"
           ></dilTable>
         </div>
-        <div v-show="a !== 1">
+        <div v-show="a == 2">
+          <dilTable
+            v-bind.sync="second1"
+            @radio-change="currentRadioChange2"
+          ></dilTable>
+        </div>
+        <div v-show="a == 3">
+          <dilTable
+            v-bind.sync="second1"
+            @radio-change="currentRadioChange2"
+          ></dilTable>
+        </div>
+        <div v-show="a == 4">
           <dilTable
             v-bind.sync="second1"
             @radio-change="currentRadioChange2"
@@ -85,7 +120,7 @@
         </div>
       </el-drawer>
     </div>
-    <div class="button-box" >
+    <div class="button-box">
       <el-button type="primary" @click="makeSure">确认新增</el-button>
       <el-button type="primary" @click="cancel">返回</el-button>
     </div>
@@ -95,39 +130,68 @@
 <script>
 import PageTitle from "@/components/Page/Title";
 import { sjTime } from "@/utils/sharedJsFile";
+import { getCookie } from "@/utils/util.js";
 export default {
   components: { PageTitle },
   data() {
     return {
-      purchaseOrder: "",
-      foreignShipName: "",
-      materialName: "",
-      requirementPlatformName: "",
+      materialName: null,
+      requirementPlatformName: null,
+      materialNum:null,
+      materialWeight:null,
       a: 1,
       direction: "rtl",
-      input: "",
+      input:null,
       requiremntUnitId: null,
       requirementUnloadUnitId: null,
-      requirementPlatformId:  null,
+      requirementPlatformId: null,
       truckPoint: "",
       materialId: null,
-      truckPoint1:'',
+      requireUnitName:null,
+      shipperId:null,
+      truckPoint1: "",
       drawer: false,
       form: {},
-      second: {
-        requestUrl: "/api/v1/uc/queryMaterialByLike?apiId=244",
+      materialTable: {
+        requestUrl: "",
         selectionType: "radio",
-        mapList1: [],
+        mapList1: []
       },
       second1: {
         requestUrl: "/api/v1/ams/getWareHouse?apiId=251",
         selectionType: "radio",
-        mapList2: [],
-      },
+        mapList2: []
+      }
     };
   },
   methods: {
+     //用车单位弹出层
+    handleSelectCarrier(item){    
+      this.shipperId = item.shipperId
+      this.requireUnitName = item.shipperName 
+    },
+    //以下是用车单位边输边查搜索
+    querySearchCarrier(queryString, cb) {
+        this.axios.post('/api/v1/uc/getRequireUnitName?index='+queryString).then((res)=>{
+        if(res.data.code == "200"){
+          var restaurantsCarrier = res.data.data
+          console.log(restaurantsCarrier,"restaurantsCarrier");
+          var results = queryString ? restaurantsCarrier.filter(this.createFilterCarrier(queryString)) :restaurantsCarrier;
+           // 调用 callback 返回建议列表的数据
+          cb(results);
+        }
+        })     
+      },
+    createFilterCarrier(queryString) {
+        return (restaurantsCarrier)  =>  {
+          return (restaurantsCarrier.shipperName.toLowerCase().indexOf(queryString.toLowerCase()) > -1);
+        };
+      },
+    //以上是用车单位边输边查搜索
     ondrawer(num) {
+      if(num==1){
+        this.materialTable.requestUrl = "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date()
+      }
       this.drawer = true;
       this.a = num;
     },
@@ -135,31 +199,40 @@ export default {
       done();
     },
     onclick(a) {
-      if (a == 1) {
-        this.second.requestUrl =
+      if(this.input != null){
+        if (a == 1) {
+        this.materialTable.requestUrl =
           "/api/v1/uc/queryMaterialByLike?apiId=244&index=" + this.input;
-      } else {
-        console.log(a)
+          this.input = null
+        } else {
         this.second1.requestUrl =
           "/api/v1/ams/getWareHouse?apiId=251&con=" + this.input;
+          this.input = null
+      }
+      }else{
+        this.materialTable.requestUrl = "/api/v1/uc/queryMaterialByLike?apiId=244&i=" + new Date()
       }
     },
     currentRadioChange1(selection) {
-      this.mapList1 = selection
-      this.purchaseOrder = this.mapList1.purchaseOrderNo
-      this.foreignShipName = this.mapList1.resultForeignShipName
-      this.materialName = this.mapList1.materialName;
+      this.mapList1 = selection;
+      console.log(selection)
+      if(selection.materialSpecification==null||selection.materialModel==null){
+        this.materialName = this.mapList1.materialName
+      }else{
+        this.materialName = this.mapList1.materialName + selection.materialSpecification + '(' + selection.materialModel + ')';
+      }
+      
       this.materialId = selection.materialId;
     },
     currentRadioChange2(selection) {
-      this.mapList2 = selection
-      if(this.a == 2){
+      this.mapList2 = selection;
+      if (this.a == 2) {
         this.truckPoint = selection.wareHouseName;
         this.requiremntUnitId = selection.wareHouseId;
-      }else if(this.a == 3){
+      } else if (this.a == 3) {
         this.requirementUnloadUnitId = selection.wareHouseId;
         this.truckPoint1 = selection.wareHouseName;
-      }else if(this.a == 4){
+      } else if (this.a == 4) {
         this.requirementPlatformId = selection.wareHouseId;
         this.requirementPlatformName = selection.wareHouseName;
       }
@@ -168,29 +241,29 @@ export default {
     makeSure() {
       let requiremnet = {
         materialId: this.materialId,
-        requiremntUnitId: this.requiremntUnitId,
-        capacityTypeId: this.form.capacityTypeId,
-        materialWeight: this.form.materialWeight,
-        materialNumber: this.form.materialNumber,
+        materialWeight: Number(this.materialWeight),
+        materialNumber: Number(this.materialNum),
         requirementEstimatedDuration: this.form.requirementEstimatedDuration,
         requirementOverlimit: this.form.requirementOverlimit,
-        requirementShipperId: this.form.requirementShipperId,
         requirementTruckTime: sjTime(this.form.requirementTruckTime),
         requirementType: this.form.requirementType,
         requirementWorkContent: this.form.requirementWorkContent,
         requirementWorkEnvironment: this.form.requirementWorkEnvironment,
         requirementWorkType: this.form.requirementWorkType,
-        requirementUnloadUnitId:this.requirementUnloadUnitId,
-        requirementPlatformId: this.requirementPlatformId
+        requirementUnloadUnitId: this.requirementUnloadUnitId,
+        requirementPlatformId: this.requirementPlatformId,
+        requirementShipperId: this.shipperId,
+        orgCode:getCookie("orgCode")
       };
       console.log(requiremnet);
+      debugger
       this.axios
         .post("/api/v1/ams/addTruckRequirement", requiremnet)
-        .then((res) => {
+        .then(res => {
           if (res.data.code == 200) {
             this.$message({
               type: "success",
-              message: "新增成功!",
+              message: "新增成功!"
             });
             this.$router.go(-1);
           } else {
@@ -201,23 +274,104 @@ export default {
     // 返回
     cancel() {
       this.$router.go(-1);
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss">
-.el-form-item{
-  display: flex;
-}
-.form-box,
-.button-box
-{
-  display: flex;
-  text-align: center;
-  align-items: center;
-  justify-content: center;
-  margin-top: 0.3125rem;
-  margin-bottom: 1.25rem;
+.inwardRequirement {
+  .from {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-top: 5px;
+    margin-bottom: 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;
+      }
+    }
+    .materialWeight,
+    .materialNum {
+      display: flex;
+      justify-content: center;
+      margin-top: 20px;
+      margin-right: 100px;
+      .text {
+        display: inline-block;
+        width: 170px;
+        text-align: right;
+        .input {
+          width: 250px;
+          margin-right: 20px;
+        }
+      }
+    }
+    .requireUnit {
+      display: flex;
+      justify-content: center;
+      margin-top: 20px;
+      margin-right: 127px;
+      .text {
+        display: inline-block;
+        width: 170px;
+        text-align: right;
+        .input {
+          width: 250px;
+          margin-right: 90px;
+        }
+      }
+    }
+    .loadPoint,
+    .unloadPoint {
+      display: flex;
+      justify-content: center;
+      margin-top: 20px;
+      margin-right: 10px;
+      .text {
+        display: inline-block;
+        width: 170px;
+        text-align: right;
+        .input {
+          width: 250px;
+          margin-right: 90px;
+        }
+      }
+    }
+  .form-box {
+    display: flex;
+    text-align: center;
+    align-items: center;
+    justify-content: center;
+    margin-top: 20px;
+    margin-bottom: 20px;
+    margin-right: 212px;
+    .el-form-item {
+      display: flex;
+      .el-form-item__label {
+        width: 170px !important;
+      }
+      .el-input {
+        width: 210px !important;
+      }
+    }
+  }
+  .button-box {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-top: 20px;
+    margin-right: 90px;
+  }
 }
-
 </style>

+ 24 - 13
src/views/inward/components/truckAppoint/requirement.vue

@@ -7,20 +7,13 @@
       <el-button type="primary" class="btn">
         <i class="el-icon-search"></i>查询
       </el-button>
-      <el-button
-        type="primary"
-        class="btn"
-        @click="toInsert"
-        v-if="activeName == 'first'"
-      >
-        <i class="el-icon-plus"></i>新增</el-button>
       <el-button
         type="primary"
         class="btn"
         @click="toInsert2"
         v-if="activeName == 'first'"
       >
-        <i class="el-icon-plus"></i>新增厂内内转需求
+        <i class="el-icon-plus"></i>新增
       </el-button>
       <el-button
         type="primary"
@@ -65,6 +58,7 @@
   </div>
 </template>
 <script>
+import { getCookie } from "@/utils/util.js";
 export default {
   data() {
     return {
@@ -72,19 +66,37 @@ export default {
       first: {
         // first请求数据的地址
         requestUrl:
-          "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=0",
+          "",
         selectionType: "select",
         mapList: [],
       },
       second: {
         // second请求数据的地址
         requestUrl:
-          "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1",
+          "",
       },
       activeName: "first",
     };
   },
+  created(){
+    if(getCookie("orgCode") == "dagangadmin"||getCookie("orgCode") == "zidonghuabu"){
+      this.first.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=0"
+      this.second.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1"
+    }else{
+      this.first.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=0&orgCode=" + getCookie("orgCode")
+      this.second.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1&orgCode=" + getCookie("orgCode")
+    }
+  },
   methods: {
+    getRequestUrl(){
+      if(getCookie("orgCode") == "dagangadmin"||getCookie("orgCode") == "zidonghuabu"){
+      this.first.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=0&i=" + new Date()
+      this.second.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1&i=" + new Date()
+      }else{
+      this.first.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=0&orgCode=" + getCookie("orgCode") + "&i=" + new Date()
+      this.second.requestUrl = "/api/v1/ams/getTruckRequirementList?apiId=207&requirementStatus=1&orgCode=" + getCookie("orgCode") + "&i=" + new Date()
+      }
+    },
     selectionChange(selection) {
       this.first.mapList = selection;
     },
@@ -117,7 +129,7 @@ export default {
                   type: "success",
                   message: "删除成功!",
                 });
-                this.$router.go(0);
+                this.getRequestUrl()
               } else {
                 this.$message({
                   message: "删除失败",
@@ -150,8 +162,7 @@ export default {
                   type: "success",
                   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.getRequestUrl()
               this.activeName = 'second'
               } else {
                 this.$message({

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

@@ -149,7 +149,7 @@ export default {
   },
   created(){
     this.userCarrierId = getCookie("userId")
-    this.second.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246&carrierId=" + this.userCarrierId
+    this.second.requestUrl = "/api/v1/oms/getCapacityAndDriverList?apiId=246"
   },
   mounted(){
       this.information()

+ 2 - 7
src/views/inward/components/truckOrder/dispatchPlan.vue

@@ -55,8 +55,8 @@ export default {
   },
   created(){
       this.userCarrierId = getCookie('userId'),
-      this.first.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=3&carrierId=" + this.userCarrierId
-      this.second.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4&carrierId=" + this.userCarrierId
+      this.first.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=3"
+      this.second.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4"
   },
   methods: {
     selectionChange(selection) { 
@@ -82,10 +82,6 @@ export default {
                   type: "success",
                   message: "分派成功!",
                 });
-                this.first.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=3&carrierId=" + this.userCarrierId + "&test=1"
-                this.second.requestUrl = "/api/v1/oms/getInwardOrderList?apiId=260&orderStatus=4&carrierId=" + this.userCarrierId + "&test=1"
-                this.activeName = 'second'
-                this.first.mapList = []
               } else {
                 this.$message({
                   message: "分派失败",
@@ -119,7 +115,6 @@ export default {
                   type: "success",
                   message: "删除成功!",
                 });
-                this.$router.go(0);
               } else {
                 this.$message({
                   message: "删除失败",

+ 12 - 11
src/views/inward/components/truckOrder/plan.vue

@@ -59,7 +59,7 @@ export default {
   data() {
     return {
       inputText: "",
-      carrierId:null,
+      carrierId:40,
       first: {
         // first请求数据的地址
         requestUrl:
@@ -80,12 +80,17 @@ export default {
   },
   created(){
       this.carrierId = getCookie('userId')
-      this.first.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&carrierId=" + this.carrierId
-      this.second.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=" + this.carrierId
-      this.third.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=" + this.carrierId
+      this.first.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1"
+      this.second.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2"
+      this.third.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3"
       console.log(this.carrierId)
   },
   methods: {
+    getRequestUrl(){
+      this.first.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&i=" + new Date()
+      this.second.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&i="  + new Date()
+      this.third.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&i=" + new Date()
+    },
     receiver(scope) {
       this.$confirm("是否接收", "提示", {
         confirmButtonText: "确定",
@@ -102,9 +107,7 @@ export default {
                   type: "success",
                   message: "接收成功!",
                 });
-                this.first.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&carrierId=" + this.carrierId + "&test=1"
-                this.second.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=" + this.carrierId + "&test=1"
-                this.third.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=" + this.carrierId + "&test=1"
+                this.getRequestUrl()
               } else {
                 this.$message({
                   message: "接收失败",
@@ -144,9 +147,7 @@ export default {
                   type: "success",
                   message: "删除成功!",
                 });
-                 this.first.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=1&carrierId=" + this.carrierId + "&test=1"
-                this.second.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=2&carrierId=" + this.carrierId + "&test=1"
-                this.third.requestUrl = "/api/v1/ams/getTruckPlanList?apiId=258&planStatus=3&carrierId=" + this.carrierId + "&test=1"
+                this.getRequestUrl()
               } else {
                 this.$message({
                   message: "删除失败",
@@ -182,7 +183,7 @@ export default {
                   type: "success",
                   message: "下发成功!",
                 });
-                this.first.requestUrl = ""
+                this.getRequestUrl()
               } else {
                 this.$message({
                   message: "下发失败",