Bläddra i källkod

增加小票机补打标签

zangguocen 3 år sedan
förälder
incheckning
2b93a032f4
2 ändrade filer med 39 tillägg och 8 borttagningar
  1. 22 3
      src/views/order/Order_Oil.vue
  2. 17 5
      src/views/overview/Overview_AccountingReport.vue

+ 22 - 3
src/views/order/Order_Oil.vue

@@ -159,7 +159,21 @@
           }}</span>
         </template>
       </af-table-column>
-      
+       <af-table-column
+        label="操作"
+        align="center"
+        class-name="small-padding fixed-width"
+        width="120px"
+      >
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-plus"
+            @click="printOrderInfo(scope.row)"
+            >补打小票</el-button>
+        </template>
+      </af-table-column>
     </el-table>
     <pagination
       v-show="total > 0"
@@ -171,7 +185,7 @@
   </div>
 </template>
 <script>
-import { listOrder, exportOrder } from "@/api/station/order";
+import { listOrder, exportOrder,printOrderInfo } from "@/api/station/order";
 import { stationinfo } from "@/api/station/gun";
 import { listPrice, getPrice } from "@/api/station/price";
 
@@ -272,7 +286,12 @@ export default {
       this.resetForm("queryForm");
       this.handleQuery();
     },
-
+    //打印订单小票
+    printOrderInfo(row){
+      printOrderInfo({orderId:row.orderId}).then((response) => {
+         this.msgSuccess("小票打印成功");
+      });
+    },
     /** 导出按钮操作 */
     handleExport() {
       const queryParams = this.queryParams;

+ 17 - 5
src/views/overview/Overview_AccountingReport.vue

@@ -106,15 +106,19 @@
             type="text"
             icon="el-icon-plus"
             @click="handlelook(scope.row)"
-            >查看</el-button
-          >
+            >查看</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-download"
             @click="handleExport(scope.row)"
-            >下载</el-button
-          >
+            >下载</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-plus"
+            @click="printClassInfo(scope.row)"
+            >补打小票</el-button>
         </template>
       </af-table-column>
     </el-table>
@@ -192,7 +196,7 @@
 
 <script>
 import { listSummary } from "@/api/station/summary";
-import { exportStructure } from "@/api/station/structure";
+import { exportStructure,printClassInfo} from "@/api/station/structure";
 import {
   listPersonnelPayStructure,
   listClass,
@@ -281,6 +285,8 @@ export default {
   },
   created() {
     this.getList();
+
+
   },
   methods: {
     /** 查询【请填写功能名称】列表 */
@@ -345,6 +351,12 @@ export default {
         this.getStructureList3();
       });
     },
+    //打印班结小票
+    printClassInfo(row){
+      printClassInfo({stationId:row.stationId,classStructureNo:row.classesNo}).then((response) => {
+         this.msgSuccess("班结打印成功");
+      });
+    },
     /** 查询班结管理列表 */
     getStructureList() {
       listPersonnelStructure(this.queryParams).then((response) => {