Joe 3 роки тому
батько
коміт
6029f22600

+ 16 - 1
src/views/order/Order_Oil.vue

@@ -164,6 +164,7 @@
         align="center"
         class-name="small-padding fixed-width"
         width="120px"
+        v-if="reprint"
       >
         <template slot-scope="scope">
           <el-button
@@ -188,6 +189,9 @@
 import { listOrder, exportOrder,printOrderInfo } from "@/api/station/order";
 import { stationinfo } from "@/api/station/gun";
 import { listPrice, getPrice } from "@/api/station/price";
+import {
+  listManage
+} from "@/api/station/manage";
 
 export default {
   name: "Order_Oil",
@@ -224,11 +228,22 @@ export default {
       },
       // 表单校验
       rules: {},
+      reprint:false,
     };
   },
   created() {
-    console.log(this.levelId)
     this.getList();
+    listManage({
+      pageNum: 1,
+      pageSize: 1,
+    }).then((response) => {
+      const equipmentList = response.rows;
+      if(!!equipmentList){
+        if((equipmentList[0]||{}).deviceType=='1'){
+          this.reprint = true;
+        }
+      }
+    });
     //字典
     this.getDicts("pay_type").then((response) => {
       this.payTypeOptions = response.data;

+ 20 - 2
src/views/overview/Overview_AccountingReport.vue

@@ -118,6 +118,7 @@
             type="text"
             icon="el-icon-plus"
             @click="printClassInfo(scope.row)"
+            v-if="reprint"
             >补打小票</el-button>
         </template>
       </af-table-column>
@@ -203,6 +204,10 @@ import {
   listPersonnelStructure,
   listOilStructure,
 } from "@/api/station/structure";
+import {
+  listManage
+} from "@/api/station/manage";
+
 export default {
   name: "Overview_AccountingReport",
   data() {
@@ -281,17 +286,30 @@ export default {
         classStructureDate: null,
         classStructureNo: null,
       },
+      reprint:false
+      
     };
   },
   created() {
     this.getList();
-
-
   },
   methods: {
     /** 查询【请填写功能名称】列表 */
     getList() {
+      listManage({
+        pageNum: 1,
+        pageSize: 1,
+      }).then((response) => {
+        const equipmentList = response.rows;
+        if(!!equipmentList){
+          if((equipmentList[0]||{}).deviceType=='1'){
+            this.reprint = true;
+          }
+        }
+      });
+
       this.queryParams.levelId = this.levelId;
+
       listSummary(
         this.addDateRange(this.queryParams, this.dateRangeCreatedDate)
       ).then((response) => {

+ 3 - 0
src/views/station/order/oilOrder.vue

@@ -210,10 +210,12 @@ export default {
       },
       // 表单校验
       rules: {},
+      equipmentList:[]
     };
   },
   created() {
     this.getList();
+    console.log(123);
     //字典
     this.getDicts("pay_type").then((response) => {
       this.payTypeOptions = response.data;
@@ -267,6 +269,7 @@ export default {
     },
     /** 查询订单支付列表 */
     getList() {
+ 
       listOrder(
         this.addDateRange(this.queryParams, this.dateRangeCreatedDate)
       ).then((response) => {