luobang пре 2 година
родитељ
комит
999548c71a

+ 1 - 1
build/utils.js

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


+ 1 - 1
src/components/main.vue

@@ -338,7 +338,7 @@
               :hidden="badgeshow"
             >
               <el-button type="text" size="small" @click="goMyTaskPage"
-                >待办任务</el-button
+                >通知信息</el-button
               >
             </el-badge>
             <div class="Web_Notice" v-show="socketshow" style="z-index: 1 ; overflow-y: scroll">

+ 15 - 6
src/views/WMS/components/intrainst/intrainst_real.vue

@@ -1,11 +1,11 @@
 <template>
-  <!-- 在途实时库存 -->
-  <div class="homeworkPath">
-    <div class="sache">
+  <!-- 在途实时库存 class="homeworkPath"-->
+  <div>
+    <div class="homeworkPath1">
       <el-input
         placeholder="请输入内容"
         v-model="inputText"
-        clearable>
+        clearable style="width: 200px;margin-right: 20px">
       </el-input>
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
@@ -30,16 +30,25 @@ export default {
     };
   },
   mounted() {
-    
+
   },
   methods: {
   },
 };
 </script>
 <style lang='scss' scoped>
-.homeworkPath {
+/*.homeworkPath {
   .top {
     padding: 1.25rem 1.875rem;
   }
+}*/
+.homeworkPath1{
+  height: 60px;
+  display: flex;
+  flex-direction: row;
+  margin-bottom: 10px;
+  margin-top: 10px;
+  flex-wrap: wrap;
+  align-items: center;
 }
 </style>

+ 4 - 4
src/views/WMS/components/steel/steel_real.vue

@@ -11,12 +11,12 @@
           <el-option label="高线库" value="3"></el-option>
           <el-option label="配送库" value="4"></el-option>
         </el-select>
-        <el-select v-model="time" placeholder="一个月" style="width: auto;">
+<!--        <el-select v-model="time" placeholder="一个月" style="width: auto;">
           <el-option label="不选择月份" value="0"></el-option>
           <el-option label="一个月" value="1"></el-option>
           <el-option label="半个月" value="2"></el-option>
-        <!-- <el-option label="" value="3"></el-option> -->
-        </el-select>
+        &lt;!&ndash; <el-option label="" value="3"></el-option> &ndash;&gt;
+        </el-select>-->
         <el-button type="primary" class="btn" @click="onClick">
           <i class="el-icon-search"></i>查询
         </el-button>
@@ -41,7 +41,7 @@ export default {
       mapList:[],
       inputText:"",
       option: {
-        requestUrl: "/api/v1/wms/selectGridMaterialList?apiId=167&warehouseId="+"0"+"&time="+"0",
+        requestUrl: "/api/v1/wms/selectGridMaterialList?apiId=167&warehouseId="+"1"+"&time="+"0",
       },
       rowId:''
     };

+ 11 - 1
src/views/queue/components/qmsEnFacotory/queueFStart.vue

@@ -114,7 +114,7 @@
             :row-key="getRowKey"
             style="width: 100%; margin-top: 20px"
             @selection-change="handleSelectionChange"
-            max-height="600px"
+            max-height="500px"
           >
             <!-- 是否可以勾选:selectable="selectInit" -->
             <el-table-column
@@ -191,6 +191,7 @@
             max-height="500px"
           >
             <el-table-column type="selection" width="55"></el-table-column>
+            <el-table-column width="80" align="center" prop="Nosort" label="序号"></el-table-column>
             <el-table-column prop="capacityNumber" label="车牌号" fit>
             </el-table-column>
             <el-table-column prop="resultStartTime" label="排队开始时间">
@@ -488,6 +489,15 @@ export default {
           }
         }
       }
+
+      // 表格序号
+      let Nosort = 0
+      for(let n in this.spanArr){
+        if(this.spanArr[n]>0){
+          Nosort += 1
+          this.$set(data[n],'Nosort',Nosort)
+        }
+      }
     },
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
       if (

+ 105 - 1
src/views/sale/components/transportFreight/saleTruckSettlement/bmsTruckSteelDetails.vue

@@ -22,7 +22,7 @@
       <el-button type="primary" class="btn" @click="onclick">
         <i class="el-icon-search"></i>查询
       </el-button>
-      <el-button type="primary" @click="exportData()"
+      <el-button type="primary" @click="exportAllExcel"
         ><i class="el-icon-download"></i>导出Excel</el-button
       >
     </div>
@@ -155,10 +155,13 @@
         >
         <div class="tablecls">
           <!-- 查询所有的运输单价 -->
+          <vue-scorll :ops="ops" style="width: 100%;height: 100%">
           <dilTable
             v-bind.sync="Address"
             @radio-change="currentRadioChange2"
+            :drawer="aaadrawer"
           ></dilTable>
+          </vue-scorll>
         </div>
 <!--        <el-form-item label="新详单地址" :label-width="formLabelWidth">
           <el-input
@@ -212,6 +215,21 @@ import { sjTime } from "../../../../ADMINISTRATORS/app";
 export default {
   data() {
     return {
+      aaadrawer:false,
+      ops: {
+        vuescroll: {},
+        scrollPanel: {},
+        rail: {
+          keepShow: true
+        },
+        bar: {
+          hoverStyle: true,
+          onlyShowBarOnScroll: false, //是否只有滚动的时候才显示滚动条
+          background: "#5f9ea0", //滚动条颜色
+          opacity: 0.8, //滚动条透明度
+          "overflow-x": "hidden"
+        }
+      },
       tableTitle: "销售钢材汽运结算详单",
       endTime: null,
       startTime: null,
@@ -223,6 +241,7 @@ export default {
       addressId: null,
       //省市县(区)查询值
       addresText: null,
+      noSettleDetailsColumn:[],
       //达钢的干基
       DaDryBasis: null,
       //九江收货的干基
@@ -278,6 +297,91 @@ export default {
     this.options2GetRequestUrl();
   },
   methods: {
+    //excel方法
+    exportAllExcel() {
+      let startTime = null;
+      let endTime = null;
+      let carrierSsoId = null;
+      if (getCookie("orgCode") == "chengyunshang") {
+        carrierSsoId = getCookie("userId");
+      }
+      if (this.startTime && this.endTime) {
+        startTime = sjTime(this.startTime);
+        endTime = sjTime(this.endTime);
+      }
+      if (this.activeName == 'first') {
+        console.log("进入了first")
+        this.tableTitle = '销售钢材汽运结算详单(未结算)'
+        this.axios
+          .post(
+            '/api/v1/bms/getSteelTruckDetailsOrder?apiId=507&orderType=1&con=' +
+            this.input +
+            "&startTime=" +
+            startTime +
+            "&endTime=" +
+            endTime +
+            "&status=0" +
+            "&i=" +
+            new Date()
+          )
+          .then(res => {
+            console.log(res.data.data)
+            console.log("测试打印功能")
+            console.log()
+            this.exportAllList = res.data.data.list
+            this.noSettleDetailsColumn=res.data.data.columnData
+            this.exportAllReportToExcel(
+              this.tableTitle,
+              this.exportAllList,
+              this.noSettleDetailsColumn
+            )
+          })
+      } else if (this.activeName == 'second') {
+        console.log("进入了second")
+        this.tableTitle = '销售钢材汽运结算详单(已结算)'
+        this.axios
+          .post(
+            '/api/v1/bms/getSteelTruckDetailsOrder?apiId=507&orderType=1&carrierSsoId=' +
+            this.ssoId
+          )
+          .then(res => {
+            this.exportAllList = res.data.data
+            console.log("测试2")
+            console.log(res)
+            this.exportAllReportToExcel(
+              this.tableTitle,
+              this.exportAllList,
+              this.settleDetailsColumn
+            )
+          })
+      }
+    },
+    //导出excel
+    exportAllReportToExcel(tableTitle, dataArr, columnData) {
+      var title = tableTitle
+      let tHeader = []
+      let filterVal = []
+      console.log("进入了导出")
+      console.log(columnData)
+      columnData.forEach(e1 => {
+        if (tHeader.indexOf(e1.label) === -1) {
+          tHeader.push(e1.label)
+        }
+        if (filterVal.indexOf(e1.prop) === -1) {
+          filterVal.push(e1.prop)
+        }
+      })
+      //导出为excel
+      this.downloadLoading = true
+      require.ensure([], () => {
+        const {
+          export_json_to_excel
+        } = require('@/assets/excel/Export2Excel.js') //这里必须使用绝对路径,使用@/+存放export2Excel的路径
+        // let list = this.$refs.excelDom.dataTabel;
+        let data = dataArr.map(v => filterVal.map(j => v[j])) //3.formatJson格式转换
+        export_json_to_excel(tHeader, data, title) // (title)导出的表格名称
+      })
+    },
     //未结算数据
     options1GetRequestUrl() {
       if (getCookie("orgCode") == "chengyunshang") {

+ 135 - 19
src/views/statisticalReport/components/salesLogisticsStatistics/saleSteelReports.vue

@@ -132,9 +132,28 @@
           show-overflow-tooltip
         >
         </el-table-column>
+        <el-table-column
+          prop="saleOrderStatus"
+          label="销售订单状态"
+          width="100px"
+          show-overflow-tooltip
+        >
+        </el-table-column>
         <el-table-column
           prop="consigneeName"
-          label="下单客户"
+          label="客户"
+          width="160px"
+          align="center"
+          column-key="consigneeName"
+          :filters="filterConsigneeList"
+          :filter-method="filterConsignee"
+          sortable
+          show-overflow-tooltip
+        >
+        </el-table-column>
+        <el-table-column
+          prop="areaName"
+          label="销售片区"
           width="160px"
           align="center"
           show-overflow-tooltip
@@ -144,8 +163,11 @@
           prop="carrierName"
           label="承运商"
           align="center"
-          width="60px"
+          width="80px"
+          sortable
           show-overflow-tooltip
+          :filters="filterCarrierList"
+          :filter-method="filterCarrier"
         >
         </el-table-column>
         <el-table-column
@@ -156,6 +178,8 @@
           width="90px"
           sortable
           show-overflow-tooltip
+          :filters="filterCapacityList"
+          :filter-method="filterCapacity"
         >
         </el-table-column>
         <el-table-column
@@ -163,7 +187,10 @@
           label="物资名称"
           align="center"
           width="150px"
+          sortable
           show-overflow-tooltip
+          :filters="filtermaterialNameList"
+          :filter-method="filtermaterialName"
         >
         </el-table-column>
         <el-table-column
@@ -186,6 +213,7 @@
           prop="addressPlace"
           label="收货地址"
           width="250px"
+          sortable
           show-overflow-tooltip
         >
         </el-table-column>
@@ -260,6 +288,13 @@
           show-overflow-tooltip
         >
         </el-table-column>
+        <el-table-column
+          prop="receiptTime"
+          label="抵达时间"
+          width="280px"
+          show-overflow-tooltip
+        >
+        </el-table-column>
         <el-table-column
           prop="receiptAddress"
           label="签收地址"
@@ -267,6 +302,13 @@
           show-overflow-tooltip
         >
         </el-table-column>
+        <el-table-column
+          prop="arrivalTime"
+          label="签收时间"
+          width="280px"
+          show-overflow-tooltip
+        >
+        </el-table-column>
         <el-table-column
           prop="orderNo"
           label="运输订单号"
@@ -316,13 +358,6 @@
           show-overflow-tooltip
         >
         </el-table-column>
-        <el-table-column
-          prop="saleOrderStatus"
-          label="销售订单状态"
-          width="100px"
-          show-overflow-tooltip
-        >
-        </el-table-column>
         <el-table-column
           prop="closeEntryId"
           label="金蝶分录ID"
@@ -385,7 +420,7 @@
               <span>{{ steelMap.saler }}</span>
             </div>
             <div class="steelMapClass12">
-              <span>下单客户:</span>
+              <span>客户:</span>
               <span>{{ steelMap.consigneeName }}</span>
             </div>
           </div>
@@ -736,6 +771,7 @@ import { sjTime, isVehicleNumber } from '@/utils/sharedJsFile'
 import { getCookie } from '@/utils/util.js'
 import PathView from './mapTest.vue'
 import currentLocation from './currentLocation.vue'
+import newNoticeVue from '../../../sale/components/dilNotice/newNotice.vue'
 export default {
   components: {
     PathView,
@@ -758,8 +794,8 @@ export default {
       screen1: '',
       options: [
         {
-          value: '下单客户',
-          lable: '下单客户'
+          value: '客户',
+          lable: '客户'
         },
         {
           value: '承运商',
@@ -776,8 +812,8 @@ export default {
       ],
       options1: [
         {
-          value: '下单客户',
-          lable: '下单客户'
+          value: '客户',
+          lable: '客户'
         },
         {
           value: '承运商',
@@ -798,6 +834,8 @@ export default {
       capacityList: [],
       carrierList: [],
       tableData: [],
+      //筛选条件1(客户)
+      filters1: [],
       spanArr: [],
       pos: 0,
       //需要合并列的名称
@@ -816,7 +854,7 @@ export default {
         '运单状态',
         '车牌号',
         '承运商',
-        '下单客户',
+        '客户',
         '收货地址',
         '业务员',
         '送货单打印',
@@ -892,7 +930,11 @@ export default {
         'xiaoshouyewuyuan',
         'zidonghuabu'
       ],
-      isShowOperate: false
+      isShowOperate: false,
+      filterConsigneeList: [],
+      filterCarrierList: [],
+      filterCapacityList: [],
+      filtermaterialNameList: []
     }
   },
   created() {
@@ -901,6 +943,16 @@ export default {
     }
     this.getSteelReport()
   },
+  watch: {
+    tableData: {
+      handler(oldVal, newVal) {
+        this.filterListChange()
+      },
+      deep: true,
+      immediate: true
+    }
+  },
+  computed: {},
   mounted() {
     this.$nextTick(() => {
       window.onresize = () => {
@@ -915,6 +967,67 @@ export default {
   },
   computed: {},
   methods: {
+    //控制筛选数组变化
+    filterListChange() {
+      let consigneeNameList = this.tableData.map(e => {
+        return e.consigneeName
+      })
+      let carrierNameList = this.tableData
+        .map(e => {
+          return e.carrierName
+        })
+        .filter(e => {
+          return e != null
+        })
+      let capacityList = this.tableData
+        .map(e => {
+          return e.capacityNo
+        })
+        .filter(e => {
+          return e != null
+        })
+      let materialNameList = this.tableData
+        .map(e => {
+          return e.materialName
+        })
+        .filter(e => {
+          return e != null
+        })
+
+      Array.from(new Set(consigneeNameList)).forEach(e => {
+        let map = {}
+        map.text = e
+        map.value = e
+        this.filterConsigneeList.push(map)
+      })
+      Array.from(new Set(carrierNameList)).forEach(e => {
+        let map = {}
+        map.text = e
+        map.value = e
+        this.filterCarrierList.push(map)
+      })
+      Array.from(new Set(capacityList)).forEach(e => {
+        let map = {}
+        map.text = e
+        map.value = e
+        this.filterCapacityList.push(map)
+      })
+      Array.from(new Set(materialNameList)).forEach(e => {
+        let map = {}
+        map.text = e
+        map.value = e
+        this.filtermaterialNameList.push(map)
+      })
+    },
+    filterConsignee(value, row) {
+      return row.consigneeName === value
+    },
+    filterCarrier(value, row) {
+      return row.carrierName === value
+    },
+    filterCapacity(value, row) {
+      return row.capacityNo === value
+    },
     cellStyle({ row, column, rowIndex, columnIndex }) {
       if (
         column.property == 'arrivalAddress' ||
@@ -1801,7 +1914,7 @@ export default {
       if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
         saler = getCookie('loginName')
       }
-      if (this.screen == '下单客户') {
+      if (this.screen == '客户') {
         consigneeName = this.input
       } else if (this.screen == '承运商') {
         carrierName = this.input
@@ -1812,7 +1925,7 @@ export default {
       } else {
         remark = this.input
       }
-      if (this.screen1 == '下单客户') {
+      if (this.screen1 == '客户') {
         consigneeName = this.input1
       } else if (this.screen1 == '承运商') {
         carrierName = this.input1
@@ -1846,6 +1959,9 @@ export default {
         )
         .then(res => {
           this.tableData = res.data.data
+          this.filters1 = res.data.data.consigneeName
+          console.log('客户数据')
+          console.log(res.data.data.consigneeName)
           this.getSpanArr(res.data.data)
           loading.close()
         })
@@ -1875,7 +1991,7 @@ export default {
       if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
         saler = getCookie('loginName')
       }
-      if (this.screen == '下单客户') {
+      if (this.screen == '客户') {
         consigneeName = this.input
       } else if (this.screen == '承运商') {
         carrierName = this.input