luobang 2 gadi atpakaļ
vecāks
revīzija
bf86cc03b3

+ 1 - 1
build/utils.js

@@ -17,8 +17,8 @@ const devPathSrc = path.resolve(__dirname, "../../../src"); // node_modules应
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 
 // let devModules = ["index", "queue"];
+// let devModules = ["index", "appoint", "statisticalReport"];
 let devModules = ["all"];
-
 // let devModules = ['index','appoint','sale','statisticalReport','RMS','TMS','WMS']
 // let devModules = ["index", "ADMINISTRATORS", "RMS"];
 // let devModules = ["index", "inward", "statisticalReport"];

+ 3 - 3
config/index.js

@@ -49,7 +49,7 @@ let proxyTable = {
   },
   // 表格表单请求的域名地址
   "/api/v1/cd": {
-    target: "http://172.16.33.161:8083",
+    target: "http://172.16.33.166:8083",
     ws: true,
     pathRewrite: {
       "^/api/v1/cd": "/api/v1/cd"
@@ -65,7 +65,7 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    //target: "http://172.16.33.162:80",
+    // target: "http://localhost:8080",
     target: "http://172.16.33.166:80",
     ws: true,
     pathRewrite: {
@@ -74,7 +74,7 @@ let proxyTable = {
   },
   "/views/api/v1": {
     target: "http://172.16.33.166:80",
-    // target: "http://192.168.1.109:8080",
+    // target: "http://192.168.1.106:8080",
     ws: true,
     pathRewrite: {
       "^/views/api/v1": "/api/v1"

+ 10 - 3
src/views/appoint/components/saleContract/addSaleOrder.vue

@@ -87,7 +87,7 @@
         <el-input
           v-model="remarks"
           placeholder="(非必填)"
-          style="width: 100px"
+          style="width: 150px"
         ></el-input>
       </el-form-item>
     </el-form>
@@ -639,7 +639,9 @@
       </el-table>
       <div class="button-box">
         <el-button @click="orderMakeSure = false">返回编辑</el-button>
-        <el-button type="primary" @click="sendRequest">提交订单</el-button>
+        <el-button type="primary" @click="sendRequest" :disabled="notDebounce"
+          >提交订单</el-button
+        >
       </div>
     </el-dialog>
 
@@ -657,6 +659,7 @@ export default {
   components: { PageTitle },
   data() {
     return {
+      notDebounce: false,
       consigneeDisable: false,
       isCellClick: 0,
       truckRemark: "",
@@ -1689,6 +1692,7 @@ export default {
     },
     //发送请求
     sendRequest() {
+      this.notDebounce = true;
       this.orderMakeSure = false;
       //是否还有件数未填写
       var orderPlanWeightAllFill = 0;
@@ -1719,7 +1723,9 @@ export default {
           //是否磅重销售
           isPoundSale: 0,
           //备注
-          truckRemark: ""
+          truckRemark: "",
+          //物资名称
+          materialName: ""
         };
         mapItem.truckNo = item.cxh;
         mapItem.shipperAddressId = item.saleShipperAddressId;
@@ -1727,6 +1733,7 @@ export default {
         mapItem.saleDateOfReceipt = sjTime(item.saleDateOfReceipt);
         mapItem.saleOrderConsigneeTel = item.saleOrderConsigneeTel;
         mapItem.materialId = item.materialId;
+        mapItem.materialName = item.materialName;
         mapItem.materialNumber = item.orderPlanWeight;
         mapItem.steelMeters = item.meterNumber;
         mapItem.isPoundSale = item.isPound;

+ 33 - 2
src/views/appoint/components/saleContract/saleOrderSteel.vue

@@ -43,6 +43,15 @@
         v-if="activeName == 'first'"
         ><i class="el-icon-download"></i>Excel</el-button
       >
+      <el-button disabled>物资总件数</el-button>
+      <el-input
+        placeholder=""
+        v-model="matSum"
+        clearable
+        style="width:100px"
+        disabled
+      >
+      </el-input>
     </div>
     <div class="table">
       <el-tabs v-model="activeName" @tab-click="handleClick">
@@ -53,6 +62,7 @@
             ref="excelDom"
             @selection-change="selectionChange"
             :pageSize="200"
+            @func="func"
           >
             <el-table-column
               fixed="right"
@@ -150,6 +160,7 @@ export default {
   name: "saleOrder",
   data() {
     return {
+      matSum: 0,
       startTime: null,
       endTime: null,
       batchReportList: [],
@@ -255,6 +266,12 @@ export default {
     }
   },
   methods: {
+    func(res) {
+      console.log(res.list);
+      this.matSum = res.list.reduce(function(prev, item) {
+        return prev + item.materialNumber;
+      }, 0);
+    },
     deleteSaleOrder(row) {
       this.$prompt("此操作将关闭订单且下面的待运输订单,是否继续?", "提示", {
         confirmButtonText: "确定",
@@ -349,15 +366,29 @@ export default {
         this.$message.error("请先选择需要批量上传的销售订单");
         return;
       }
+      const loading = this.$loading({
+        lock: true,
+        text: "Loading",
+        spinner: "el-icon-loading",
+        background: "rgba(0, 0, 0, 0.7)"
+      });
       this.axios
         .post("/api/v1/ams/uploadSaleOrderList", this.batchReportList)
         .then(res => {
           if (res.data.code == "200") {
             this.$message.success("上传成功");
+            loading.close();
             this.getRequestUrl();
           } else {
-            this.$message.error("上传失败");
+            this.$message.error("上传失败,请联系管理员");
+            loading.close();
+            this.getRequestUrl();
           }
+        })
+        .catch(e => {
+          this.$message.error("上传失败,请联系管理员");
+          loading.close();
+          this.getRequestUrl();
         });
     },
     selectionChange(selection) {
@@ -366,7 +397,7 @@ export default {
       this.batchReportList = selection;
     },
     refresh() {
-      this.$router.go(0);
+      this.getRequestUrl();
     },
     handleClick(tab, event) {
       console.log(tab, event);

+ 1 - 1
src/views/appoint/router/index.js

@@ -375,7 +375,7 @@ const constantRouterMap = [
       {
         path: "saleOrderCoproduct",
         name: "saleOrderCoproduct",
-        meta: { code: "xtpzgl-yhgl" },
+        meta: { code: "xtpzgl-yhgl", keepAlive: true },
         component: saleOrderCoproduct
       },
       {

+ 37 - 31
src/views/sale/components/transport_order/saleSteelOrder.vue

@@ -41,7 +41,7 @@
     <el-tabs v-model="activeName">
       <!-- 未接收 -->
       <el-tab-pane label="未接收" name="third">
-        <dilTable
+        <MergeRowTable
           v-bind.sync="option3"
           @selection-change="selectionChange"
           ref="table2"
@@ -93,11 +93,11 @@
               </el-form>
             </template>
           </el-table-column>
-        </dilTable>
+        </MergeRowTable>
       </el-tab-pane>
       <!-- 已接收 -->
       <el-tab-pane label="已接收" name="first">
-        <dilTable
+        <MergeRowTable
           v-bind.sync="option1"
           ref="table"
           :isHeigth="isHeigth"
@@ -141,11 +141,11 @@
               </el-form>
             </template>
           </el-table-column>
-        </dilTable>
+        </MergeRowTable>
       </el-tab-pane>
       <!-- 已拒绝 -->
       <el-tab-pane label="已拒绝" name="second">
-        <dilTable
+        <MergeRowTable
           v-bind.sync="option2"
           ref="table1"
           :isHeigth="isHeigth"
@@ -182,7 +182,7 @@
               </el-form>
             </template>
           </el-table-column>
-        </dilTable>
+        </MergeRowTable>
       </el-tab-pane>
     </el-tabs>
   </div>
@@ -203,12 +203,16 @@ export default {
         requestUrl:
           "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=5&shipperId=1&carrierSsoId=" +
           "",
+        comparison: "orderNumber",
+        columnIndexs: [0, 1, 2, 3, 11, 12, 13, 16, 21, 22, 23, 24]
       },
       option2: {
         // option2请求数据的地址,承运商暂时设置为默认(运输订单状态为)
         requestUrl:
           "/api/v1/oms/getDriverInfoForSale?apiId=226&orderType=1&orderStatus=6&shipperId=1&carrierSsoId=" +
           "",
+        comparison: "orderNumber",
+        columnIndexs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
       },
       option3: {
         // option3请求数据的地址
@@ -217,10 +221,12 @@ export default {
           "",
         selectionType: "select",
         mapList: [],
+        comparison: "orderNumber",
+        columnIndexs: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
       },
       truck: {
         requestUrl: "",
-        selectionType: "radio",
+        selectionType: "radio"
       },
       activeName: "third",
       //记录旧的row对象(已接收)
@@ -239,30 +245,30 @@ export default {
         {
           prop: "materialName",
           label: "物资名称",
-          width: 150,
+          width: 150
         },
         {
           prop: "specificationModel",
           label: "规格型号",
-          width: 150,
+          width: 150
         },
         {
           prop: "materialNumber",
           label: "物资件数",
-          width: 100,
+          width: 100
         },
         {
           prop: "materialWeight",
           label: "物资重量",
-          width: 100,
-        },
+          width: 100
+        }
       ],
       tableData: [],
       tableData1: [],
       tableData2: [],
       capacityId: null,
       dialogTableVisible: false,
-      orderId: null,
+      orderId: null
     };
   },
 
@@ -361,34 +367,34 @@ export default {
       if (this.option3.mapList.length == 0) {
         this.$message({
           type: "warning",
-          message: "请先选择要关闭的订单!",
+          message: "请先选择要关闭的订单!"
         });
       } else {
         this.$confirm("是否关闭这些订单", "提示", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning",
-          center: true,
+          center: true
         })
           .then(() => {
             //初始化maplist
             var mapList = [];
-            this.option3.mapList.forEach((item) => {
+            this.option3.mapList.forEach(item => {
               //初始化mapItem
               var mapItem = {
                 //销售订单物资中间表id
-                orderId: 0,
+                orderId: 0
               };
               mapItem.orderId = item.orderId;
               mapList.push(mapItem);
             });
             this.$message({
               type: "success",
-              message: "关闭成功!",
+              message: "关闭成功!"
             });
             this.axios
               .post("/api/v1/oms/batchCloseOrder", mapList)
-              .then((res) => {
+              .then(res => {
                 if (res.data.code == "200") {
                   this.getRequestUrl();
                 }
@@ -397,7 +403,7 @@ export default {
           .catch(() => {
             this.$message({
               type: "info",
-              message: "取消关闭!",
+              message: "取消关闭!"
             });
           });
       }
@@ -449,9 +455,9 @@ export default {
       this.axios
         .post("/api/v1/oms/updateCapacityId", {
           capacityId: this.capacityId,
-          orderId: this.orderId,
+          orderId: this.orderId
         })
-        .then((res) => {
+        .then(res => {
           if (res.data.code == "200") {
             this.$message.success("修改运力成功");
             this.getRequestUrl();
@@ -537,7 +543,7 @@ export default {
       // 根据销售订单id查询物资信息
       this.axios
         .post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
-        .then((res) => {
+        .then(res => {
           console.log("res.data.data", res.data.data);
           this.tableData = res.data.data;
         });
@@ -569,7 +575,7 @@ export default {
       // 根据销售订单物资中间表id查询物资信息
       this.axios
         .post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
-        .then((res) => {
+        .then(res => {
           console.log("res.data.data", res.data.data);
           this.tableData1 = res.data.data;
         });
@@ -601,7 +607,7 @@ export default {
       // 根据销售订单物资中间表id查询物资信息
       this.axios
         .post("/api/v1/oms/getOrderMaterialList?orderId=" + row.orderId)
-        .then((res) => {
+        .then(res => {
           this.tableData2 = res.data.data;
         });
     },
@@ -611,17 +617,17 @@ export default {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning",
-        center: true,
+        center: true
       })
         .then(() => {
           this.axios
             .post("/api/v1/oms/closeOrder?orderId=" + row.orderId)
-            .then((res) => {
+            .then(res => {
               if (res.data.code == "200") {
                 this.getRequestUrl();
                 this.$message({
                   type: "success",
-                  message: "关闭成功!",
+                  message: "关闭成功!"
                 });
               }
             });
@@ -629,11 +635,11 @@ export default {
         .catch(() => {
           this.$message({
             type: "info",
-            message: "取消关闭!",
+            message: "取消关闭!"
           });
         });
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scode>

+ 4 - 5
src/views/statisticalReport/components/salesLogisticsStatistics/saleChemicalCokeForm.vue

@@ -1,11 +1,11 @@
 //化产焦炭统计报表
 <template>
   <div class="purchasFuelNewMonitor">
-    <div class="frameCalculation">
+    <div class="items">
       <el-form :inline="true" style="margin-top :5px">
         <el-form-item>
           <label class="el-form-item__label" style="width: auto;"
-            >计毛时间</label
+            >计毛时间:</label
           >
           <el-date-picker
             v-model="startTime"
@@ -40,7 +40,6 @@
             <i class="el-icon-search"></i>
           </el-button>
         </el-form-item>
-
         <el-form-item>
           <el-button type="primary" @click="exportData()"
             ><i class="el-icon-download"></i>Excel</el-button
@@ -294,9 +293,9 @@ export default {
 };
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 .purchasFuelNewMonitor {
-  .frameCalculation {
+  .items {
     margin-left: 20px;
     margin-top: 20px;
   }

+ 1 - 1
src/views/statisticalReport/components/salesLogisticsStatistics/saleCoproductForm.vue

@@ -279,7 +279,7 @@ export default {
 };
 </script>
 
-<style lang="scss">
+<style lang="scss" scoped>
 .purchasFuelNewMonitor {
   .items {
     margin-left: 20px;