浏览代码

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/icore-pass

胡半仙 3 年之前
父节点
当前提交
6f82a04f4e
共有 1 个文件被更改,包括 22 次插入17 次删除
  1. 22 17
      src/views/inward/components/truckAppoint/addRequirement2.vue

+ 22 - 17
src/views/inward/components/truckAppoint/addRequirement2.vue

@@ -324,8 +324,8 @@ export default {
   watch: {
     value() {
       if (this.value) {
-        console.log(this.value)
-        console.log(this.tableTop.length)
+        // console.log(this.value)
+        // console.log(this.tableTop.length)
         this.tableTop.splice(this.tableTop.length - 1, 1);
         this.tableTop.push({
           prop: "orderMaterialNumber",
@@ -360,7 +360,7 @@ export default {
         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");
+          // console.log(restaurantsCarrier,"restaurantsCarrier");
           var results = queryString ? restaurantsCarrier.filter(this.createFilterCarrier(queryString)) :restaurantsCarrier;
            // 调用 callback 返回建议列表的数据
           cb(results);
@@ -378,13 +378,13 @@ export default {
       this.selectionList1 = selection;
     },
     unloadPoint(index) {
-      console.log(index)
+      // console.log(index)
       this.index= index
       this.a = 3
       this.drawer = true;
     },
     loadPoint(index) {
-      console.log(index)
+      // console.log(index)
       this.index = index
       this.a = 4
       this.drawer = true;
@@ -404,14 +404,14 @@ export default {
     },
     //删除行
     deleteRow(index, rows) {
-      console.log(index)
-      console.log("这里")
+      // console.log(index)
+      // console.log("这里")
       rows.splice(index, 1);
     },
      // 返回主界面
     makeSure1() {
         this.selectionList1.forEach((e) => {
-          console.log(e.materialModel,e.materialSpecification)
+          // console.log(e.materialModel,e.materialSpecification)
         if(e.materialSpecification == null){
           e.materialSpecification = ''
         }
@@ -461,7 +461,7 @@ export default {
     },
     currentRadioChange1(selection) {
       this.mapList1 = selection;
-      console.log(selection)
+      // console.log(selection)
       if(selection.materialSpecification==null||selection.materialModel==null){
         this.materialName = this.mapList1.materialName
       }else{
@@ -474,12 +474,12 @@ export default {
         this.truckPoint = selection.wareHouseName;
         this.requiremntUnitId = selection.wareHouseId;
       } else if (this.a == 3) {
-        console.log(this.tableData[this.index])
+        // console.log(this.tableData[this.index])
         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])
+        // console.log(this.tableData[this.index])
         this.tableData[this.index].requirementPlatformId = selection.wareHouseId;
         this.tableData[this.index].requirementPlatformName = selection.wareHouseName;
         this.refreshTable()
@@ -487,8 +487,8 @@ export default {
     },
     // 新增
     makeSure() {
-      console.log(this.tableData)
-      console.log(typeof(this.form.requirementEstimatedDuration))
+      // console.log(this.tableData)
+      // console.log(typeof(this.form.requirementEstimatedDuration))
       if(this.shipperId == null){
         this.$message.error("请选择用车单位")
         return
@@ -518,8 +518,13 @@ export default {
          this.$message.error("请选择装卸点")
          return
       }
-      console.log(this.tableData)
-      debugger
+      // console.log(this.tableData)
+      var DueTime;
+      if(this.DueTime==null){
+        DueTime = null;
+      }else{
+        DueTime = sjTime(this.DueTime);
+      }
       let requiremnet = {
         requirementEstimatedDuration: this.form.requirementEstimatedDuration,
         requirementOverlimit: this.form.requirementOverlimit,
@@ -530,11 +535,11 @@ export default {
         requirementWorkType: this.form.requirementWorkType,
         requirementShipperId: this.shipperId,
         // 用车截日期
-        DueTime:sjTime(this.DueTime),
+        DueTime:DueTime,
         mapList:this.tableData,
         orgCode:getCookie("orgCode")
       };
-      console.log("requirement",requiremnet);
+      // console.log("requirement",requiremnet);
       this.axios
         .post("/api/v1/ams/addTruckRequirement", requiremnet)
         .then(res => {