zengyf 2 سال پیش
والد
کامیت
1782567ffc

+ 258 - 247
src/views/TMS/components/importedIngredients/transportReserveFu.vue

@@ -1,61 +1,69 @@
 <template>
   <!-- 辅料运输预约 -->
-  <div class="homeworkPath">
+  <div class="transportReserveFu">
     <div class="top">
-      <el-input
-        class="input"
-        placeholder="请输入内容"
-        v-model="input"
-        clearable
-      >
-      </el-input>
-      <!-- 时间查询框 -->
-      <span class="text" v-if="activeName == 'second'">下发时间:</span>
-      <el-date-picker
-        v-if="activeName == 'second'"
-        v-model="startTime"
-        type="datetime"
-        placeholder="选择日期"
-      >
-      </el-date-picker>
-      <span class="text" v-if="activeName == 'second'">至</span>
-      <el-date-picker
-        v-if="activeName == 'second'"
-        v-model="endTime"
-        type="datetime"
-        placeholder="选择日期"
-      >
-      </el-date-picker>
-      <el-button type="primary" class="btn" @click="onclick">
-        <i class="el-icon-search"></i>查询
-      </el-button>
-      <el-button type="primary" class="btn" @click="insertClick">
-        <i class="el-icon-plus"></i>新增
-      </el-button>
-      <el-input
-        class="input"
-        placeholder="请从表格复制采购订单号"
-        v-model="inputPurOrder"
-        clearable
-        v-if="activeName == 'second'"
-      >
-      </el-input>
-      <el-button
-        type="primary"
-        class="btn"
-        @click="closePurOrder"
-        v-if="activeName == 'second'"
-      >
-        关闭一车多趟
-      </el-button>
-      <el-button
-        type="primary"
-        class="btn"
-        @click="issue"
-        v-if="activeName == 'first'"
-      >
-        <i class="el-icon-plus"></i>下发
-      </el-button>
+      <el-form>
+        <el-form-item
+          ><el-input
+            class="input"
+            placeholder="请输入内容"
+            v-model="input"
+            style="width:250px"
+            clearable
+          >
+          </el-input>
+          <!-- 时间查询框 -->
+          <span class="text" v-if="activeName == 'second'">下发时间:</span>
+          <el-date-picker
+            v-if="activeName == 'second'"
+            v-model="startTime"
+            type="datetime"
+            placeholder="选择日期"
+            style="width:200px"
+          >
+          </el-date-picker>
+          <span class="text" v-if="activeName == 'second'">至</span>
+          <el-date-picker
+            v-if="activeName == 'second'"
+            v-model="endTime"
+            type="datetime"
+            placeholder="选择日期"
+            style="width:200px"
+          >
+          </el-date-picker>
+          <el-button type="primary" class="btn" @click="onclick">
+            <i class="el-icon-search"></i>查询
+          </el-button>
+          <el-button type="primary" class="btn" @click="insertClick">
+            <i class="el-icon-plus"></i>新增
+          </el-button>
+          <el-input
+            class="input"
+            placeholder="请从表格复制采购订单号"
+            v-model="inputPurOrder"
+            style="width:200px"
+            clearable
+            v-if="activeName == 'second'"
+          >
+          </el-input>
+          <el-button
+            type="primary"
+            class="btn"
+            @click="closePurOrder"
+            v-if="activeName == 'second'"
+          >
+            关闭一车多趟
+          </el-button>
+          <el-button
+            type="primary"
+            class="btn"
+            @click="issue"
+            v-if="activeName == 'first'"
+          >
+            <i class="el-icon-plus"></i>下发
+          </el-button></el-form-item
+        >
+      </el-form>
     </div>
     <el-dialog title="提醒" :visible.sync="dialogVisible" width="30%">
       <div v-if="this.isMoreTrips != 1" style="color: red">
@@ -83,338 +91,341 @@
         >
       </span>
     </el-dialog>
-    <el-tabs v-model="activeName" tab-click="handleClick">
-      <!-- 未下发 -->
-      <el-tab-pane label="未下发" name="first">
-        <dilTable
-          v-bind.sync="option1"
-          ref="table"
-          @selection-change="selectionChange"
-        >
-          <el-table-column
-            fixed="right"
-            align="center"
-            label="操作"
-            width="120"
+    <div class="tab">
+      <el-tabs v-model="activeName" tab-click="handleClick">
+        <!-- 未下发 -->
+        <el-tab-pane label="未下发" name="first">
+          <dilTable
+            v-bind.sync="option1"
+            ref="table"
+            @selection-change="selectionChange"
           >
-            <template slot-scope="scope">
-              <el-button
-                @click="sendClick(scope.row.orderId)"
-                type="text"
-                size="small"
-              >
-                下发
-              </el-button>
-              <el-button
-                @click="updateClick(scope.row.orderId)"
-                type="text"
-                size="small"
-              >
-                修改
-              </el-button>
-              <el-button
-                @click="
-                  deleteClick(scope.row.orderId, scope.row.capacityNumber)
-                "
-                type="text"
-                size="small"
-              >
-                删除
-              </el-button>
-            </template>
-          </el-table-column>
-        </dilTable>
-      </el-tab-pane>
-      <!-- 已下发 -->
-      <el-tab-pane label="已下发" name="second">
-        <dilTable v-bind.sync="option2" @func="func"> </dilTable>
-      </el-tab-pane>
-    </el-tabs>
+            <el-table-column
+              fixed="right"
+              align="center"
+              label="操作"
+              width="120"
+            >
+              <template slot-scope="scope">
+                <el-button
+                  @click="sendClick(scope.row.orderId)"
+                  type="text"
+                  size="small"
+                >
+                  下发
+                </el-button>
+                <el-button
+                  @click="updateClick(scope.row.orderId)"
+                  type="text"
+                  size="small"
+                >
+                  修改
+                </el-button>
+                <el-button
+                  @click="
+                    deleteClick(scope.row.orderId, scope.row.capacityNumber)
+                  "
+                  type="text"
+                  size="small"
+                >
+                  删除
+                </el-button>
+              </template>
+            </el-table-column>
+          </dilTable>
+        </el-tab-pane>
+        <!-- 已下发 -->
+        <el-tab-pane label="已下发" name="second">
+          <dilTable v-bind.sync="option2" @func="func"> </dilTable>
+        </el-tab-pane>
+      </el-tabs>
+    </div>
   </div>
 </template>
 
 <script>
-import { getCookie } from "@/utils/util.js";
-import { sjTime } from "@/utils/sharedJsFile";
+import { getCookie } from '@/utils/util.js'
+import { sjTime } from '@/utils/sharedJsFile'
 export default {
-  name: "inplantTMS",
+  name: 'inplantTMS',
   data() {
     return {
-      input: "",
-      Time: "",
+      input: '',
+      Time: '',
       startTime: null,
       endTime: null,
-      activeName: "first",
+      activeName: 'first',
       dialogVisible: false,
       materialName: null,
       supplierName: null,
       inputPurOrder: null,
       option1: {
         // 表格请求数据的地址
-        requestUrl: "",
-        selectionType: "select",
-        mapList: [],
+        requestUrl: '',
+        selectionType: 'select',
+        mapList: []
       },
       isMoreTrips: null,
       option2: {
         // 表格请求数据的地址
-        requestUrl: "",
+        requestUrl: ''
       },
-      purOrderList: [],
-    };
+      purOrderList: []
+    }
   },
   created() {
     //判断是否是承运商
-    if (getCookie("orgCode") == "chengyunshang") {
+    if (getCookie('orgCode') == 'chengyunshang') {
       this.option1.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
-        getCookie("userId");
+        '/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=' +
+        getCookie('userId')
       this.option2.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
-        getCookie("userId");
+        '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
+        getCookie('userId')
     } else {
       this.option1.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
-        null;
+        '/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=' +
+        null
       this.option2.requestUrl =
-        "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
-        null;
+        '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
+        null
     }
   },
   methods: {
     handleClick() {
-      this.getRequestUrl();
+      this.getRequestUrl()
     },
     getRequestUrl() {
       //判断是否是承运商
-      if (getCookie("orgCode") == "chengyunshang") {
+      if (getCookie('orgCode') == 'chengyunshang') {
         this.option1.requestUrl =
-          "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
-          getCookie("userId") +
-          "&i=" +
-          new Date();
+          '/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=' +
+          getCookie('userId') +
+          '&i=' +
+          new Date()
         this.option2.requestUrl =
-          "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
-          getCookie("userId") +
-          "&i=" +
-          new Date();
+          '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
+          getCookie('userId') +
+          '&i=' +
+          new Date()
       } else {
         this.option1.requestUrl =
-          "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
+          '/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=' +
           null +
-          "&i=" +
-          new Date();
+          '&i=' +
+          new Date()
         this.option2.requestUrl =
-          "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
+          '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
           null +
-          "&i=" +
-          new Date();
+          '&i=' +
+          new Date()
       }
     },
     onclick() {
-      if (this.activeName == "first") {
+      if (this.activeName == 'first') {
         //判断是否是承运商
-        if (getCookie("orgCode") == "chengyunshang") {
+        if (getCookie('orgCode') == 'chengyunshang') {
           this.option1.requestUrl =
-            "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
-            getCookie("userId") +
-            "&con=" +
-            this.input;
+            '/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=' +
+            getCookie('userId') +
+            '&con=' +
+            this.input
         } else {
           this.option1.requestUrl =
-            "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=" +
+            '/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&carrierSSOId=' +
             null +
-            "&con=" +
-            this.input;
+            '&con=' +
+            this.input
         }
       } else {
-        let startTime = null;
-        let endTime = null;
+        let startTime = null
+        let endTime = null
         if (this.startTime) {
-          startTime = sjTime(this.startTime);
+          startTime = sjTime(this.startTime)
         }
         if (this.endTime) {
-          endTime = sjTime(this.endTime);
+          endTime = sjTime(this.endTime)
         }
         if (startTime && endTime) {
           if (startTime < endTime) {
             //判断是否是承运商
-            if (getCookie("orgCode") == "chengyunshang") {
+            if (getCookie('orgCode') == 'chengyunshang') {
               this.option2.requestUrl =
-                "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
-                getCookie("userId") +
-                "&con=" +
+                '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
+                getCookie('userId') +
+                '&con=' +
                 this.input +
-                "&startTime=" +
+                '&startTime=' +
                 startTime +
-                "&endTime=" +
+                '&endTime=' +
                 endTime +
-                "&i=" +
-                new Date();
+                '&i=' +
+                new Date()
             } else {
               this.option2.requestUrl =
-                "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
+                '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
                 null +
-                "&con=" +
+                '&con=' +
                 this.input +
-                "&startTime=" +
+                '&startTime=' +
                 startTime +
-                "&endTime=" +
+                '&endTime=' +
                 endTime +
-                "&i=" +
-                new Date();
+                '&i=' +
+                new Date()
             }
           }
         } else {
-          if (getCookie("orgCode") == "chengyunshang") {
+          if (getCookie('orgCode') == 'chengyunshang') {
             this.option2.requestUrl =
-              "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
-              getCookie("userId") +
-              "&con=" +
+              '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
+              getCookie('userId') +
+              '&con=' +
               this.input +
-              "&i=" +
-              new Date();
+              '&i=' +
+              new Date()
           } else {
             this.option2.requestUrl =
-              "/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=" +
+              '/api/v1/oms/getAllTruckOrder?apiId=243&orderStatus=111&orderType=5&carrierSSOId=' +
               null +
-              "&con=" +
+              '&con=' +
               this.input +
-              "&i=" +
-              new Date();
+              '&i=' +
+              new Date()
           }
         }
       }
     },
     selectionChange(selection) {
-      this.mapList = selection;
+      this.mapList = selection
     },
     closePurOrder() {
       if (this.inputPurOrder == null) {
-        this.$message.warning("请输入需要关闭一车多趟的采购订单号");
-        return;
+        this.$message.warning('请输入需要关闭一车多趟的采购订单号')
+        return
       }
-      this.purOrderList.forEach((e) => {
+      this.purOrderList.forEach(e => {
         if (e.purchaseOrderNo == this.inputPurOrder) {
-          this.materialName = e.materialName;
-          this.supplierName = e.supplierName;
-          this.isMoreTrips = e.isMoreTrips;
+          this.materialName = e.materialName
+          this.supplierName = e.supplierName
+          this.isMoreTrips = e.isMoreTrips
         }
-      });
-      this.dialogVisible = true;
+      })
+      this.dialogVisible = true
     },
     closePurOrder1() {
       this.axios
         .post(
-          "/api/v1/bp/closePurOrderMoreTrips?purchaseOrderNo=" +
+          '/api/v1/bp/closePurOrderMoreTrips?purchaseOrderNo=' +
             this.inputPurOrder
         )
-        .then((res) => {
-          console.log(res);
-          if (res.data.code == "200") {
-            this.$message.success("关闭成功");
+        .then(res => {
+          console.log(res)
+          if (res.data.code == '200') {
+            this.$message.success('关闭成功')
           } else {
-            this.$message.error(res.data.data);
+            this.$message.error(res.data.data)
           }
-        });
-      this.dialogVisible = false;
+        })
+      this.dialogVisible = false
     },
     func(res) {
-      this.purOrderList = res.list;
-      console.log(res.list);
+      this.purOrderList = res.list
+      console.log(res.list)
     },
     issue() {
       let mapvalue = {
-        mapList: this.mapList,
-      };
-      this.axios.post("/api/v1/oms/dispatchOrder", mapvalue).then(() => {
+        mapList: this.mapList
+      }
+      this.axios.post('/api/v1/oms/dispatchOrder', mapvalue).then(() => {
         this.$message({
-          type: "success",
-          message: "下发成功!",
-        });
+          type: 'success',
+          message: '下发成功!'
+        })
         this.option1.requestUrl =
-          "/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&i=" +
-          new Date();
-      });
+          '/api/v1/oms/getAllTruckOrder?apiId=141&orderStatus=3&orderType=5&i=' +
+          new Date()
+      })
     },
     // 下发
     sendClick(orderId) {
       let mapvalue = {
-        mapList: [{ orderId: orderId }],
-      };
-      this.$confirm("是否下发", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-        center: true,
+        mapList: [{ orderId: orderId }]
+      }
+      this.$confirm('是否下发', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+        center: true
       })
         .then(() => {
-          this.axios.post("/api/v1/oms/dispatchOrder", mapvalue).then(() => {
+          this.axios.post('/api/v1/oms/dispatchOrder', mapvalue).then(() => {
             this.$message({
-              type: "success",
-              message: "下发成功!",
-            });
-            this.getRequestUrl();
-          });
+              type: 'success',
+              message: '下发成功!'
+            })
+            this.getRequestUrl()
+          })
         })
         .catch(() => {
           this.$message({
-            type: "info",
-            message: "取消下发!",
-          });
-        });
+            type: 'info',
+            message: '取消下发!'
+          })
+        })
     },
     // 删除
     deleteClick(orderId, capacityNumber) {
-      this.$confirm("是否删除", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-        center: true,
+      this.$confirm('是否删除', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+        center: true
       })
         .then(() => {
           this.$message({
-            type: "success",
-            message: "删除成功!",
-          });
+            type: 'success',
+            message: '删除成功!'
+          })
           this.axios
-            .post("/api/v1/oms/deleteOrder", {
+            .post('/api/v1/oms/deleteOrder', {
               orderId: orderId,
-              capacityNumber: capacityNumber,
+              capacityNumber: capacityNumber
             })
             .then(() => {
-              this.getRequestUrl();
-            });
+              this.getRequestUrl()
+            })
         })
         .catch(() => {
           this.$message({
-            type: "info",
-            message: "取消删除!",
-          });
-        });
+            type: 'info',
+            message: '取消删除!'
+          })
+        })
     },
     //新增
     insertClick() {
-      this.$router.push("/transportReserveFuAddIngredients/");
+      this.$router.push('/transportReserveFuAddIngredients/')
     },
     //修改
     updateClick(orderId) {
-      this.$router.push("/transportReserveFuEdit/" + orderId);
-    },
-  },
-};
+      this.$router.push('/transportReserveFuEdit/' + orderId)
+    }
+  }
+}
 </script>
 <style lang="scss" scoped>
-.homeworkPath {
+.transportReserveFu {
   .top {
-    padding: 40px;
-    .input {
-      width: 250px;
-      margin-right: 20px;
-    }
+    margin-left: 20px;
+    margin-top: 20px;
     .btn {
       margin-right: 10px;
     }
   }
+  .tab {
+    margin-left: 20px;
+    margin-top: 20px;
+  }
 }
 </style>

+ 356 - 358
src/views/TMS/components/importedIngredients/transportReserveFuAddIngredients.vue

@@ -1,6 +1,6 @@
 <template>
   <!-- 新增运输作业页面 -->
-  <div id="contractDetails">
+  <div class="AddTransportReserveFu">
     <page-title>运输预约</page-title>
     <div
       style="
@@ -233,9 +233,9 @@
   </div>
 </template>
 <script>
-import PageTitle from "@/components/Page/Title";
-import { sjTime, isNumber, isIntegerNumber } from "@/utils/sharedJsFile";
-import { getCookie } from "@/utils/util.js";
+import PageTitle from '@/components/Page/Title'
+import { sjTime, isNumber, isIntegerNumber } from '@/utils/sharedJsFile'
+import { getCookie } from '@/utils/util.js'
 export default {
   components: { PageTitle },
   data() {
@@ -260,10 +260,10 @@ export default {
       shiyHeigth5: 140,
       isKuang: false,
       //采购订单号
-      purchaseOrderNo: "",
+      purchaseOrderNo: '',
       isMoreTrips: false,
       // 线路名称
-      lineName: "",
+      lineName: '',
       //线路id
       lineId: null,
       // 件数与重量的开关
@@ -273,23 +273,23 @@ export default {
       // 车辆表格表头
       tableTop: [
         {
-          prop: "capacityNumber",
-          label: "车牌号",
-          width: "140"
+          prop: 'capacityNumber',
+          label: '车牌号',
+          width: '140'
         },
         {
-          prop: "carrierName",
-          label: "承运商",
-          width: "140"
+          prop: 'carrierName',
+          label: '承运商',
+          width: '140'
         },
         {
-          prop: "orderMaterialWeight",
-          label: "重量",
+          prop: 'orderMaterialWeight',
+          label: '重量',
           slot: true
         }
       ],
       //发货单位名称
-      supplierName: "",
+      supplierName: '',
       stateSupplier: null,
       restaurantsSupplier: null,
       //车辆表格数据
@@ -297,11 +297,11 @@ export default {
       // 表单
       form1: {},
       //采购订单id
-      purchaseOrderId: "",
+      purchaseOrderId: '',
       //物资名称
-      materialName: "",
+      materialName: '',
       //发货单位名称
-      supplierName: "",
+      supplierName: '',
       //发货单位id
       supplierId: null,
       //物资id
@@ -309,106 +309,106 @@ export default {
       //是否需要打开模态窗口
       drawer: false,
       //卸货点id
-      unloadPointId: "",
+      unloadPointId: '',
       //卸货点名称
-      unloadPointName: "",
+      unloadPointName: '',
       //订单类别
       orderType: 5,
       onDrawerNumber: 1,
-      direction: "rtl",
-      input: "",
+      direction: 'rtl',
+      input: '',
       frist: {
-        requestUrl: "",
-        selectionType: "radio",
+        requestUrl: '',
+        selectionType: 'radio',
         mapList1: []
       },
       secend: {
-        requestUrl: "",
-        selectionType: "radio",
+        requestUrl: '',
+        selectionType: 'radio',
         mapList2: []
       },
       third: {
-        requestUrl: "",
-        selectionType: "select",
+        requestUrl: '',
+        selectionType: 'select',
         mapList3: []
       },
       unloadPoint: {
-        requestUrl: "",
-        selectionType: "radio"
+        requestUrl: '',
+        selectionType: 'radio'
       },
       line: {
-        requestUrl: "",
-        selectionType: "radio"
+        requestUrl: '',
+        selectionType: 'radio'
       },
       purchaseOrder: {
-        requestUrl: "",
-        selectionType: "radio"
+        requestUrl: '',
+        selectionType: 'radio'
       },
       truckList: []
-    };
+    }
   },
   watch: {
     drawer(val) {
       if (val) {
-        this.input = null;
+        this.input = null
       }
     },
     value() {
       if (this.value) {
-        this.tableTop.splice(this.tableTop.length - 1, 1);
+        this.tableTop.splice(this.tableTop.length - 1, 1)
         this.tableTop.push({
-          prop: "orderMaterialNumber",
-          label: "件数",
+          prop: 'orderMaterialNumber',
+          label: '件数',
           slot: true
-        });
+        })
       } else {
-        this.tableTop.splice(this.tableTop.length - 1, 1);
+        this.tableTop.splice(this.tableTop.length - 1, 1)
         this.tableTop.push({
-          prop: "orderMaterialWeight",
-          label: "重量",
+          prop: 'orderMaterialWeight',
+          label: '重量',
           slot: true
-        });
+        })
       }
     }
   },
   created() {
-    if (getCookie("orgCode") == "chengyunshang") {
+    if (getCookie('orgCode') == 'chengyunshang') {
       this.third.requestUrl =
-        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
-        getCookie("userId");
+        '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' +
+        getCookie('userId')
     } else {
       this.third.requestUrl =
-        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" + null;
+        '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' + null
     }
   },
   methods: {
     onClick(index) {
-      this.selectionList.splice(index, 1);
+      this.selectionList.splice(index, 1)
     },
     onBlur() {
-      this.getPurchaseOrderNo();
+      this.getPurchaseOrderNo()
     },
     //发货单位弹出层
     handleSelectSupplier(item) {
-      this.supplierId = item.supplierId;
-      this.supplierName = item.supplierName;
+      this.supplierId = item.supplierId
+      this.supplierName = item.supplierName
     },
     //以下是发货单位边输边查搜索
     querySearchSupplier(queryString, cb) {
       this.axios
-        .post("/api/v1/uc/getSupplierMesByLike?index=" + this.stateSupplier)
+        .post('/api/v1/uc/getSupplierMesByLike?index=' + this.stateSupplier)
         .then(res => {
-          if (res.data.code == "200") {
-            var restaurantsSupplier = res.data.data;
+          if (res.data.code == '200') {
+            var restaurantsSupplier = res.data.data
             var results = queryString
               ? restaurantsSupplier.filter(
                   this.createFilterSupplier(queryString)
                 )
-              : restaurantsSupplier;
+              : restaurantsSupplier
             // 调用 callback 返回建议列表的数据
-            cb(results);
+            cb(results)
           }
-        });
+        })
     },
     createFilterSupplier(queryString) {
       return restaurantsSupplier => {
@@ -416,224 +416,224 @@ export default {
           restaurantsSupplier.value
             .toLowerCase()
             .indexOf(queryString.toLowerCase()) > -1
-        );
-      };
+        )
+      }
     },
     getPurchaseOrderNo() {
       let map = {
         materialId: this.materialId,
         supplierId: this.supplierId,
         purchaseOrgId: 1
-      };
+      }
       if (this.remark) {
-        map.remark = this.remark;
+        map.remark = this.remark
       }
-      console.log(this.map);
+      console.log(this.map)
       if (this.materialId && this.supplierId) {
-        this.axios.post("/api/v1/oms/selectNewOrderId", map).then(res => {
-          console.log(res);
-          if (res.data.code == "200") {
+        this.axios.post('/api/v1/oms/selectNewOrderId', map).then(res => {
+          console.log(res)
+          if (res.data.code == '200') {
             if (res.data.data == null) {
               this.$message({
-                message: "没有匹配的采购订单号!",
-                type: "warning"
-              });
-              this.form1 = [];
-              this.purchaseOrderId = null;
-              this.purchaseOrderNo = null;
-              this.remark = null;
+                message: '没有匹配的采购订单号!',
+                type: 'warning'
+              })
+              this.form1 = []
+              this.purchaseOrderId = null
+              this.purchaseOrderNo = null
+              this.remark = null
             } else {
-              console.log();
-              this.remark = res.data.data.remark;
-              this.purchaseOrderId = res.data.data.purchaseOrderId;
-              this.purchaseOrderNo = res.data.data.purchaseOrderNo;
+              console.log()
+              this.remark = res.data.data.remark
+              this.purchaseOrderId = res.data.data.purchaseOrderId
+              this.purchaseOrderNo = res.data.data.purchaseOrderNo
             }
           } else {
-            this.$message.error("请求失败");
+            this.$message.error('请求失败')
           }
-        });
+        })
       }
     },
     onclick() {
       if (this.input) {
-        this.isKuang = true;
+        this.isKuang = true
         if (this.onDrawerNumber == 1) {
           this.frist.requestUrl =
-            "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+            '/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=' +
             this.input +
-            "&supplierId=" +
-            this.supplierId;
+            '&supplierId=' +
+            this.supplierId
         } else if (this.onDrawerNumber == 2) {
           this.secend.requestUrl =
-            "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+            '/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=' +
             this.materialId +
-            "&index=" +
-            this.input;
+            '&index=' +
+            this.input
         } else if (this.onDrawerNumber == 3) {
           //判断是否是承运商查询车辆
-          if (getCookie("orgCode") == "chengyunshang") {
+          if (getCookie('orgCode') == 'chengyunshang') {
             this.third.requestUrl =
-              "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
-              getCookie("userId") +
-              "&index=" +
-              this.input;
+              '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' +
+              getCookie('userId') +
+              '&index=' +
+              this.input
           } else {
             this.third.requestUrl =
-              "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
+              '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' +
               null +
-              "&index=" +
-              this.input;
+              '&index=' +
+              this.input
           }
         } else if (this.onDrawerNumber == 4) {
           this.unloadPoint.requestUrl =
-            "/api/v1/uc/getUnloadingMesByLike?apiId=374&index=" + this.input;
+            '/api/v1/uc/getUnloadingMesByLike?apiId=374&index=' + this.input
         } else if (this.onDrawerNumber == 5) {
           this.line.requestUrl =
-            "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=" + this.input;
+            '/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=' + this.input
         } else if (this.onDrawerNumber == 6) {
           this.purchaseOrder.requestUrl =
-            "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
+            '/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=' +
             this.supplierId +
-            "&con=" +
+            '&con=' +
             this.input +
-            "&purchaseOrgId=1" +
-            "&i=" +
-            new Date();
+            '&purchaseOrgId=1' +
+            '&i=' +
+            new Date()
         }
       } else {
         if (this.onDrawerNumber == 1) {
           this.frist.requestUrl =
-            "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&i=" +
+            '/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&i=' +
             new Date() +
-            "&supplierId=" +
-            this.supplierId;
+            '&supplierId=' +
+            this.supplierId
         } else if (this.onDrawerNumber == 2) {
           this.secend.requestUrl =
-            "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
+            '/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=' +
             this.materialId +
-            "&i=" +
-            new Date();
+            '&i=' +
+            new Date()
         } else if (this.onDrawerNumber == 3) {
           //判断是否是承运商查询车辆
-          if (getCookie("orgCode") == "chengyunshang") {
+          if (getCookie('orgCode') == 'chengyunshang') {
             this.third.requestUrl =
-              "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
-              getCookie("userId") +
-              "&i=" +
-              new Date();
+              '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' +
+              getCookie('userId') +
+              '&i=' +
+              new Date()
           } else {
             this.third.requestUrl =
-              "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
+              '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' +
               null +
-              "&i=" +
-              new Date();
+              '&i=' +
+              new Date()
           }
         } else if (this.onDrawerNumber == 4) {
           this.unloadPoint.requestUrl =
-            "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
+            '/api/v1/uc/getUnloadingMesByLike?apiId=374&i=' + new Date()
         } else if (this.onDrawerNumber == 5) {
           this.line.requestUrl =
-            "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=" + new Date();
+            '/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&i=' + new Date()
         } else if (this.onDrawerNumber == 6) {
           this.purchaseOrder.requestUrl =
-            "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
+            '/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=' +
             this.supplierId +
-            "&purchaseOrgId=1" +
-            "&i=" +
-            new Date();
+            '&purchaseOrgId=1' +
+            '&i=' +
+            new Date()
         }
       }
     },
     func(res) {
-      console.log(res);
-      this.isKuang = false;
+      console.log(res)
+      this.isKuang = false
     },
     ondrawer(num) {
       if (this.supplierId == null) {
-        this.$message.warning("请先选择发货单位");
-        return;
+        this.$message.warning('请先选择发货单位')
+        return
       }
       if (num != 1 && this.materialId == null) {
-        this.$message.warning("请先选择物资");
-        return;
+        this.$message.warning('请先选择物资')
+        return
       }
-      this.drawer = true;
-      this.onDrawerNumber = num;
+      this.drawer = true
+      this.onDrawerNumber = num
       if (num == 1) {
         this.frist.requestUrl =
-          "/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=" +
+          '/api/v1/uc/queryAPOMaterialByLike?apiId=244&startNum=050&index=' +
           this.input +
-          "&supplierId=" +
-          this.supplierId;
+          '&supplierId=' +
+          this.supplierId
       } else if (num == 2) {
         this.secend.requestUrl =
-          "/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=" +
-          this.materialId;
+          '/api/v1/uc/getSupplierMesByMaterialId?apiId=247&materialId=' +
+          this.materialId
       } else if (num == 3) {
         //判断是否是承运商查询车辆
-        if (getCookie("orgCode") == "chengyunshang") {
+        if (getCookie('orgCode') == 'chengyunshang') {
           this.third.requestUrl =
-            "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
-            getCookie("userId") +
-            "&i=" +
-            new Date();
+            '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' +
+            getCookie('userId') +
+            '&i=' +
+            new Date()
         } else {
           this.third.requestUrl =
-            "/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=" +
+            '/api/v1/uc/getAllCapacityByCarrierLike?apiId=248&carrierSsoId=' +
             null +
-            "&i=" +
-            new Date();
+            '&i=' +
+            new Date()
         }
       } else if (num == 4) {
         this.unloadPoint.requestUrl =
-          "/api/v1/uc/getUnloadingMesByLike?apiId=374&i=" + new Date();
+          '/api/v1/uc/getUnloadingMesByLike?apiId=374&i=' + new Date()
       } else if (num == 5) {
         this.line.requestUrl =
-          "/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=辅料&i=" +
-          new Date();
+          '/api/v1/rms/getAllLineDesk?apiId=249&lineType=3&con=辅料&i=' +
+          new Date()
       } else if (num == 6) {
         this.purchaseOrder.requestUrl =
-          "/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=" +
+          '/api/v1/ams/getPurchaseOrderList?apiId=81&sendCompId=' +
           this.supplierId +
-          "&purchaseOrgId=1" +
-          "&i=" +
-          new Date();
+          '&purchaseOrgId=1' +
+          '&i=' +
+          new Date()
       }
     },
     // 返回
     onClickCancel() {
-      this.$router.push("/transportReserveRan");
+      this.$router.push('/transportReserveRan')
     },
     currentRadioChange1(selection) {
-      this.remark = null;
-      this.materialName = selection.materialName;
-      this.materialId = selection.materialId;
-      this.getPurchaseOrderNo();
+      this.remark = null
+      this.materialName = selection.materialName
+      this.materialId = selection.materialId
+      this.getPurchaseOrderNo()
     },
     currentRadioChange4(selection) {
-      this.unloadPointId = selection.warehouseId;
-      this.unloadPointName = selection.warehouseName;
+      this.unloadPointId = selection.warehouseId
+      this.unloadPointName = selection.warehouseName
     },
     currentRadioChange5(selection) {
-      this.lineName = selection.lineName;
-      this.lineId = selection.lineId;
+      this.lineName = selection.lineName
+      this.lineId = selection.lineId
     },
     currentRadioChange6(selection) {
-      console.log(selection.orgId);
-      this.materialName = selection.materialName;
-      this.materialId = selection.materialId;
-      this.supplierId = selection.supplierId;
-      this.supplierName = selection.supplierName;
-      this.purchaseOrderNo = selection.purchaseOrderNo;
-      this.purchaseOrderId = selection.purchaseOrderId;
+      console.log(selection.orgId)
+      this.materialName = selection.materialName
+      this.materialId = selection.materialId
+      this.supplierId = selection.supplierId
+      this.supplierName = selection.supplierName
+      this.purchaseOrderNo = selection.purchaseOrderNo
+      this.purchaseOrderId = selection.purchaseOrderId
     },
     currentRadioChange3(selection) {
-      this.selectionList = [];
-      this.selectionList = selection;
+      this.selectionList = []
+      this.selectionList = selection
     },
     // 确认
     onClickConfirm() {
-      var state = 0;
+      var state = 0
       if (
         this.materialId &&
         this.supplierId &&
@@ -642,74 +642,74 @@ export default {
         sjTime(this.form1.orderEntryTime) &&
         this.lineId
       ) {
-        state = 1;
+        state = 1
       } else {
         if (!this.materialId) {
           this.$message({
-            message: "请选择物资!",
-            type: "warning"
-          });
-          return;
+            message: '请选择物资!',
+            type: 'warning'
+          })
+          return
         } else if (!this.supplierId) {
           this.$message({
-            message: "请选择发货单位!",
-            type: "warning"
-          });
-          return;
+            message: '请选择发货单位!',
+            type: 'warning'
+          })
+          return
         } else if (!this.purchaseOrderId) {
           this.$message({
-            message: "没有匹配的采购订单号!",
-            type: "warning"
-          });
-          return;
+            message: '没有匹配的采购订单号!',
+            type: 'warning'
+          })
+          return
         } else if (!this.unloadPointId) {
           this.$message({
-            message: "请选择卸货地点!",
-            type: "warning"
-          });
-          return;
+            message: '请选择卸货地点!',
+            type: 'warning'
+          })
+          return
         } else if (!this.lineId) {
           this.$message({
-            message: "请选择运输路线!",
-            type: "warning"
-          });
-          return;
+            message: '请选择运输路线!',
+            type: 'warning'
+          })
+          return
         } else if (!sjTime(this.form1.orderEntryTime)) {
           this.$message({
-            message: "请选择预估进厂时间!",
-            type: "warning"
-          });
-          return;
+            message: '请选择预估进厂时间!',
+            type: 'warning'
+          })
+          return
         }
       }
       if (this.selectionList.length == 0) {
         this.$message({
-          message: "请选择车辆!",
-          type: "warning"
-        });
-        return;
+          message: '请选择车辆!',
+          type: 'warning'
+        })
+        return
       } else {
         this.selectionList.forEach(e => {
           if (e.orderMaterialWeight) {
             if (isNumber(e.orderMaterialWeight)) {
               if (isIntegerNumber(e.orderMaterialWeight)) {
-                state = 1;
+                state = 1
               } else {
                 this.$message({
-                  message: "重量只能是整数!",
-                  type: "warning"
-                });
-                return;
+                  message: '重量只能是整数!',
+                  type: 'warning'
+                })
+                return
               }
             } else {
               this.$message({
-                message: "重量只能是数字!",
-                type: "warning"
-              });
-              return;
+                message: '重量只能是数字!',
+                type: 'warning'
+              })
+              return
             }
           }
-        });
+        })
       }
       let map = {
         materialId: this.materialId,
@@ -721,186 +721,184 @@ export default {
         orderType: this.orderType,
         lineId: this.lineId,
         isMoreTrips: this.isMoreTrips,
-        userId: getCookie("userId"),
-        orgCode: getCookie("orgCode")
-      };
+        userId: getCookie('userId'),
+        orgCode: getCookie('orgCode')
+      }
 
-      this.axios.post("/api/v1/oms/addPurOrder", map).then(res => {
-        if (res.data.code == "200") {
+      this.axios.post('/api/v1/oms/addPurOrder', map).then(res => {
+        if (res.data.code == '200') {
           this.$message({
-            message: "添加成功!",
-            type: "success"
-          });
-          this.$router.push("/transportReserveFu");
+            message: '添加成功!',
+            type: 'success'
+          })
+          this.$router.push('/transportReserveFu')
         } else {
           this.$message({
             message: res.data.data,
-            type: "warning"
-          });
+            type: 'warning'
+          })
         }
-      });
+      })
     }
   }
-};
-</script>
-<style lang="scss">
-.contractDetails {
-  width: 100%;
-}
-
-.el-drawer__container ::-webkit-scrollbar {
-  display: none;
-}
-.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;
-  }
-  .span {
-    display: inline-block;
-    width: 70px;
-    height: 1px;
-  }
-}
-.swtichTop {
-  display: flex;
-  height: 40px;
-  align-content: center;
-  justify-content: center;
-  padding-right: 20px;
-  .titile {
-    color: red;
-    font-size: 14px;
-  }
-  .switch {
-    margin-right: -30px;
-  }
-}
-.supplieUnit {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  margin-top: 20px;
-  .el-input {
-    width: 250px;
+</script>
+<style lang="scss" scoped>
+.AddTransportReserveFu {
+  .el-drawer__container ::-webkit-scrollbar {
+    display: none;
   }
-}
-.material {
-  display: flex;
-  justify-content: center;
-  margin-top: 20px;
-  .text {
-    display: inline-block;
-    width: 170px;
-    text-align: right;
+  .from {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    margin-top: 5px;
+    margin-bottom: 20px;
   }
-  .input {
-    width: 250px;
-    margin-right: 20px;
+  .remark {
+    display: flex;
+    justify-content: center;
+    .text {
+      display: inline-block;
+      width: 100px;
+      text-align: right;
+    }
+    .input {
+      width: 250px;
+      margin-right: 20px;
+    }
   }
-}
-.orderType {
-  display: flex;
-  justify-content: center;
-  .text {
-    display: inline-block;
-    width: 110px;
-    text-align: right;
+  .lineId {
+    display: flex;
+    justify-content: center;
+    .text {
+      display: inline-block;
+      width: 170px;
+      text-align: right;
+    }
+    .input {
+      width: 250px;
+      margin-right: 20px;
+    }
+    .span {
+      display: inline-block;
+      width: 70px;
+      height: 1px;
+    }
   }
-  .select {
-    width: 250px;
+  .swtichTop {
+    display: flex;
+    height: 40px;
+    align-content: center;
+    justify-content: center;
+    padding-right: 20px;
+    .titile {
+      color: red;
+      font-size: 14px;
+    }
+    .switch {
+      margin-right: -30px;
+    }
   }
-  .span {
-    display: inline-block;
-    width: 30px;
-    height: 10px;
+  .supplieUnit {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    margin-top: 20px;
+    .el-input {
+      width: 250px;
+    }
   }
-}
-.contractTitle {
-  display: flex;
-  justify-content: center;
-  .el-form-item {
+  .material {
     display: flex;
     justify-content: center;
-    .el-form-item__label {
-      display: flex;
-      align-items: center;
+    margin-top: 20px;
+    .text {
+      display: inline-block;
+      width: 170px;
+      text-align: right;
     }
-    .el-input {
+    .input {
       width: 250px;
+      margin-right: 20px;
     }
   }
-}
-.forwardingUnit {
-  display: flex;
-  justify-content: center;
-  .text {
-    display: inline-block;
-    width: 170px;
-    text-align: right;
+  .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;
+    }
   }
-  .input {
-    width: 250px;
-    margin-right: 20px;
+  .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;
+      }
+    }
   }
-}
-.truckList1 {
-  width: 100%;
-  .truckList {
-    width: 96%;
+  .forwardingUnit {
+    display: flex;
+    justify-content: center;
     .text {
       display: inline-block;
-      width: 120px;
+      width: 170px;
       text-align: right;
     }
-    .truckBtn {
+    .input {
       width: 250px;
+      margin-right: 20px;
     }
   }
-}
-.drawer_top {
-  margin-top: -50px;
-  width: 100%;
-  height: 60px;
-  display: flex;
-  align-items: center;
-}
-.drawer_table1 {
-  width: 100%;
-  height: 500px;
-}
-.button_box {
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  width: 100%;
-  height: 100px;
+  .truckList1 {
+    width: 100%;
+    .truckList {
+      width: 96%;
+      .text {
+        display: inline-block;
+        width: 120px;
+        text-align: right;
+      }
+      .truckBtn {
+        width: 250px;
+      }
+    }
+  }
+  .drawer_top {
+    margin-top: -50px;
+    width: 100%;
+    height: 60px;
+    display: flex;
+    align-items: center;
+  }
+  .drawer_table1 {
+    width: 100%;
+    height: 500px;
+  }
+  .button_box {
+    display: flex;
+    justify-content: center;
+    align-items: center;
+    width: 100%;
+    height: 100px;
+  }
 }
 </style>