luobang 2 năm trước cách đây
mục cha
commit
56d176f845

+ 1 - 1
build/utils.js

@@ -16,7 +16,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 //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

+ 2 - 2
config/index.js

@@ -65,8 +65,8 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   '/api/v1': {
-    // target: 'http://172.16.33.166:80',
-    target: 'http://localhost:8080',
+    target: 'http://172.16.33.166:80',
+    // target: 'http://localhost:8080',
     // target: "http://192.168.1.101:8080",
     ws: true,
     pathRewrite: {

+ 1 - 1
src/views/index/app.html

@@ -3,7 +3,7 @@
   <head>
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="renderer" content="webkit">
+    <meta name="full-screen" content="webkit">
     <meta content="智慧物流平台" name="keywords">
     <meta content="智慧物流平台" name="description">
     <title>登录 - 智慧物流平台</title>

+ 29 - 21
src/views/index/components/printReceipt.vue

@@ -28,8 +28,8 @@
             border="0"
             cellpadding="10"
             cellspacing="0"
-            style="margin: auto; font-size: 20px"
-            width="1300px"
+            style="margin:auto; font-size: 20px"
+            width="1000px"
             class="tablePart0"
           >
             <tr>
@@ -44,11 +44,11 @@
             border="1"
             cellpadding="10"
             cellspacing="0"
-            style="margin-top: 10px; text-align: center;height: 70px"
-            width="1300px"
+            style="margin-top: 10px; text-align: center"
+            width="1000px"
             class="tablePart1"
           >
-            <tr>
+            <tr style="height: 35px">
               <th style="width: 5%; text-align: center">序号</th>
               <th style="width: 23.5%; text-align: center">物资名称</th>
               <th style="width: 22.5%; text-align: center">规格型号</th>
@@ -56,7 +56,7 @@
               <th style="width: 35%">重量</th>
               <!--              <th style="width: 21%">订单日期</th>-->
             </tr>
-            <tr v-for="(item, index) in deliveryOrderMaterialList" :key="index">
+            <tr style="height: 35px" v-for="(item, index) in deliveryOrderMaterialList" :key="index">
               <td>{{ index + 1 }}</td>
               <td>{{ item.materialName }}</td>
               <td>{{ item.materialSpe }}{{ item.materialModel }}</td>
@@ -72,7 +72,7 @@
             cellpadding="10"
             cellspacing="0"
             style="border-top: 0px;height: 40px"
-            width="1300px"
+            width="1000px"
             class="tablePart2"
           >
             <tr>
@@ -89,7 +89,7 @@
             cellpadding="10"
             cellspacing="0"
             style="border-top: 0px;height: 40px"
-            width="1300px"
+            width="1000px"
             class="tablePart3"
           >
             <tr>
@@ -106,7 +106,7 @@
             cellpadding="10"
             cellspacing="0"
             style="border-top: 0px;height: 40px"
-            width="1300px"
+            width="1000px"
             class="tablePart4"
           >
             <tr>
@@ -122,8 +122,8 @@
             border="1"
             cellpadding="10"
             cellspacing="0"
-            style="border-top: 0px;height: 40px"
-            width="1300px"
+            style="border-top: 0px;height: 45px"
+            width="1000px"
             class="tablePart9"
           >
             <tr>
@@ -139,8 +139,8 @@
             border="0"
             cellpadding="10"
             cellspacing="0"
-            style="margin-left: 500px; font-size: 20px;height: 40px"
-            width="1300px"
+            style="margin-left: 190px; font-size: 20px;height: 45px"
+            width="1000px"
             class="tablePart6"
           >
             <tr>
@@ -174,8 +174,8 @@
             border="0"
             cellpadding="10"
             cellspacing="0"
-            style="margin-left: 500px; font-size: 20px;height: 40px"
-            width="1300px"
+            style="margin-left: 190px; font-size: 20px;height: 40px"
+            width="1000px"
             class="tablePart6"
           >
             <tr>
@@ -200,8 +200,9 @@
         </table>
       </div>-->
         <!--设置中间的间隔以及虚线-->
-        <div style="height: 80px"></div>
-        <hr width="1500px" style="border:1px dashed black;height:1px" />
+        <div style="height: 60px" v-show="index < 2"></div>
+        <hr width="1500px" style="border:1px dashed black" v-show="index < 2"/>
+        <div style="page-break-after:always" v-show="index ==1 && page"></div>
       </div>
     </div>
     <!-- <el-button style="margin-left: 45%;" type="primary" @click="getPdf()">
@@ -250,7 +251,9 @@ export default {
       htmlTitle: '客户换票送货单',
       note: '',
       dataList: ['1', '2', '3'],
-      timer1: ''
+      timer1: '',
+      //分页数据
+      page: '',
     }
   },
   created() {
@@ -269,12 +272,13 @@ export default {
     })
   },
   methods: {
-    getDeliveryOrder() {
+    async getDeliveryOrder() {
       let orderNumber = this.$route.query.orderNumber
-      this.axios
+      await this.axios
         .post('/api/v1/tms/getDeliveryOrder?orderNumber=' + orderNumber)
         .then(res => {
-          console.log(res)
+          console.log("查询出来的数据")
+          console.log(res.data)
           this.orderNumber = res.data.orderNumber
           this.carrierName = res.data.carrierName
           this.capacityNumber = res.data.capacityNumber
@@ -290,6 +294,10 @@ export default {
           this.deliveryAddress = res.data.deliveryAddress
           this.deliveryOrderMaterialList = res.data.deliveryOrderMaterialList
           this.note = res.data.note
+          console.log("数据的长度"+res.data.deliveryOrderMaterialList.length)
+          if (res.data.deliveryOrderMaterialList.length > 2){
+            this.page=true
+          }
           document.getElementById('printReceipt').click()
         })
     },

+ 32 - 3
src/views/index/components/printScan.vue

@@ -3,6 +3,7 @@
     <div class="background">
       <img :src="backgroundImgURL" width="100%" height="100%" />
     </div>
+    <el-button @click.native="fullScreen" id="full" v-show="false"></el-button>
     <div class="orderNumberData">
       <!--v-show="false" disabled="!isEdit"-->
       <el-input
@@ -43,10 +44,8 @@
         class="el-icon-bottom"
         style="padding-left: 450px;font-size: 300px;color: red"
       ></i>
-      <span style="width: 300px;height: 200px;color: red;margin-left: 50px"
-        >zyf:***</span
-      >
     </div>
+    <div class="emg"><span style="">紧急联系人:曾16670077829</span></div>
   </div>
 </template>
 <script>
@@ -67,6 +66,27 @@ export default {
   //    data:"toSaleSelfMachine"
   // },
   methods: {
+    //全屏函数
+    fullScreen() {
+      // screenfull.request()
+      // console.log('wbei')
+      // // documentElement 属性以一个元素对象返回一个文档的文档元素
+      // // var el = document.documentElement
+      // // el.requestFullscreen ||
+      // // el.mozRequestFullScreen ||
+      // // el.webkitRequestFullscreen ||
+      // // el.msRequestFullScreen
+      // //   ? el.requestFullscreen() ||
+      // //     el.mozRequestFullScreen() ||
+      // //     el.webkitRequestFullscreen() ||
+      // //     el.msRequestFullscreen()
+      // //   : null
+      var wscript = new ActiveXObject('WScript.Shell') //创建ActiveX
+      if (wscript !== null) {
+        //创建成功
+        wscript.SendKeys('{F11}') //触发f11
+      }
+    },
     //输入框自动聚焦
     changfouce() {
       this.$nextTick(x => {
@@ -126,6 +146,7 @@ export default {
     // }
   },
   mounted() {
+    document.getElementById('full').click()
     console.log(screenfull.isFullscreen)
     // this.changfouce();
     const timer = setInterval(async () => {
@@ -196,5 +217,13 @@ export default {
     padding-top: 500px;
     color: #4cc9e9;
   }
+  .emg {
+    position: fixed;
+    right: 20px;
+    bottom: 20px;
+    font-size: 30px;
+    color: red;
+    font-weight: 500;
+  }
 }
 </style>