Jelajahi Sumber

轮胎盘点 2023-12-19

caojunjie 1 tahun lalu
induk
melakukan
ffd8229fff

+ 3 - 0
src/page/index/tags.vue

@@ -316,6 +316,9 @@ export default {
         if(tag.label == "出库工单(L)"){
           this.$store.commit("DOMIO_OUT_DETAIL");
         }
+        if(tag.label == "盘点(L)"){
+          this.$store.commit("OUT_PD_STATUS");
+        }
         if(tag.label == "采购入库"){
           this.$store.commit("DOMIO_OUT_DETAIL");
         }

+ 1 - 0
src/store/getters.js

@@ -42,6 +42,7 @@ const getters = {
   xiaoShoZhengce:state => state.ifdetail.xiaoshozhengce,// 销售政策 审批数据里加的
   inventoryAccount:state => state.ifdetail.inventoryAccount,
   inboundAndOutbound:state => state.ifdetail.inboundAndOutbound,
+  Inventory:state => state.ifdetail.Inventory, // 盘点
   Allocateandtransfer:state => state.ifdetail.Allocateandtransfer, // 调拨L
   domStockDetail: state => state.ifdetail.domStockDetail,
   domPurStatus: state => state.ifdetail.domPurStatus,

+ 70 - 56
src/views/tirePartsMall/inventory/detail.vue

@@ -135,50 +135,10 @@ export default {
     },
     // 跳转
     beforeOpenPage(row, index) {
-      if (this.$store.getters.inboundAndOutbound) {
-        this.$alert("明细账已存在,请保存关闭明细账再进行操作", "温馨提示", {
-          confirmButtonText: "确定",
-          type: "warning",
-          callback: action => {
-            console.log(action);
-          }
-        });
-      } else {
-        if (row.bizTypeName == '出库') {
-          this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrder/index");
-          this.$router.push({
-            path: "/tirePartsMall/salesManagement/outboundWorkOrder/index",
-            query: {
-              id: row.id
-            },
-          });
-        }else if (row.bizTypeName == '销售') {
-            this.$router.$avueRouter.closeTag("/salesOrder/index");
-            this.$router.push({
-                path: "/salesOrder/index",
-                query: {
-                    orderId: row.id
-                },
-            });
-        } else if (row.bizTypeName == '采购') {
-            this.$router.$avueRouter.closeTag("/purchaseOrder/index");
-            this.$router.push({
-                path: "/purchaseOrder/index",
-                query: {
-                    orderId: row.id
-                },
-            });
-        }else if (row.bizTypeName == '盘点') {
-            this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/Inventory/index");
-            this.$router.push({
-                path: "/tirePartsMall/salesManagement/Inventory/index",
-                query: {
-                    orderId: row.id
-                },
-            });
-        } else if (row.bizTypeName == '调出') {
-            if (this.$store.getters.Allocateandtransfer) {
-                this.$alert("调拨明细已存在,请保存关闭明细账再进行操作", "温馨提示", {
+        if(row.bizTypeName == '盘点') {
+            console.log(this.$store.getters,139)
+            if (this.$store.getters.Inventory) {
+                this.$alert("明细账已存在,请保存关闭明细账再进行操作", "温馨提示", {
                     confirmButtonText: "确定",
                     type: "warning",
                     callback: action => {
@@ -186,24 +146,78 @@ export default {
                     }
                 });
             }else {
-                this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrderL/index");
+                this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/Inventory/index");
                 this.$router.push({
-                    path: "/tirePartsMall/salesManagement/outboundWorkOrderL/index",
+                    path: "/tirePartsMall/salesManagement/Inventory/index",
                     query: {
-                        id: row.id
+                        orderId: row.id
                     },
                 });
             }
-        } else {
-          this.$router.$avueRouter.closeTag("/tirePartsMall/purchasingManagement/warehouseEntryOrder/index");
-          this.$router.push({
-            path: "/tirePartsMall/purchasingManagement/warehouseEntryOrder/index",
-            query: {
-              id: row.id
-            },
-          });
+        }else {
+            if (this.$store.getters.inboundAndOutbound) {
+                this.$alert("明细账已存在,请保存关闭明细账再进行操作", "温馨提示", {
+                    confirmButtonText: "确定",
+                    type: "warning",
+                    callback: action => {
+                        console.log(action);
+                    }
+                });
+            } else {
+                if (row.bizTypeName == '出库') {
+                    this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrder/index");
+                    this.$router.push({
+                        path: "/tirePartsMall/salesManagement/outboundWorkOrder/index",
+                        query: {
+                            id: row.id
+                        },
+                    });
+                }else if (row.bizTypeName == '销售') {
+                    this.$router.$avueRouter.closeTag("/salesOrder/index");
+                    this.$router.push({
+                        path: "/salesOrder/index",
+                        query: {
+                            orderId: row.id
+                        },
+                    });
+                } else if (row.bizTypeName == '采购') {
+                    this.$router.$avueRouter.closeTag("/purchaseOrder/index");
+                    this.$router.push({
+                        path: "/purchaseOrder/index",
+                        query: {
+                            orderId: row.id
+                        },
+                    });
+                } else if (row.bizTypeName == '调出') {
+                    if (this.$store.getters.Allocateandtransfer) {
+                        this.$alert("调拨明细已存在,请保存关闭明细账再进行操作", "温馨提示", {
+                            confirmButtonText: "确定",
+                            type: "warning",
+                            callback: action => {
+                                console.log(action);
+                            }
+                        });
+                    }else {
+                        this.$router.$avueRouter.closeTag("/tirePartsMall/salesManagement/outboundWorkOrderL/index");
+                        this.$router.push({
+                            path: "/tirePartsMall/salesManagement/outboundWorkOrderL/index",
+                            query: {
+                                id: row.id
+                            },
+                        });
+                    }
+                } else {
+                    this.$router.$avueRouter.closeTag("/tirePartsMall/purchasingManagement/warehouseEntryOrder/index");
+                    this.$router.push({
+                        path: "/tirePartsMall/purchasingManagement/warehouseEntryOrder/index",
+                        query: {
+                            id: row.id
+                        },
+                    });
+                }
+            }
         }
-      }
+
 
       return
       if (this.$store.getters.domSaleStatus) {

+ 5 - 4
src/views/tirePartsMall/salesManagement/Inventory/detailsPage.vue

@@ -15,9 +15,9 @@
                 </el-button>
                 <el-button type="primary" icon="el-icon-printer" size="small" :disabled="!(form.orderItemsList.length != 0 && form.id)"
                            @click="handlePrint">打印</el-button>
-                <el-button type="success" size="small" icon="el-icon-bottom"
-                           :disabled="form.status == '已确认'" @click="excelBox = true">导入盘点结果
-                </el-button>
+                <!--<el-button type="success" size="small" icon="el-icon-bottom"-->
+                <!--           :disabled="form.status == '已确认'" @click="excelBox = true">导入盘点结果-->
+                <!--</el-button>-->
                 <el-button class="el-button--small-yh" style="margin-left: 6px;" type="success" size="small"
                            v-if="form.id"
                            :disabled="form.status == '已确认'" @click="generateOutbound">
@@ -752,7 +752,6 @@ export default {
         tableDataHandle(){
             // 循环获取库存数量
             for(let item of this.tableData) {
-                console.log(item,'循环导入')
                 // brandId
                 // brandItem
                 // brandName
@@ -854,6 +853,8 @@ export default {
                     //         return
                     //     }
                     // }
+                    console.log(this.form,857)
+                    // return
                     const loading = this.$loading({
                         lock: true,
                         text: '加载中',

+ 2 - 0
src/views/tirePartsMall/salesManagement/Inventory/index.vue

@@ -450,8 +450,10 @@ export default {
   activated() {
     setTimeout(() => {
       console.log(this.$route.query,400);
+      // 库存明细跳过来的
       if(this.$route.query.orderId) {
           this.detailData.id = this.$route.query.orderId
+          this.$store.commit("IN_PD_STATUS");
           this.detailsOpen = true;
       }
         // 主页快捷跳转来的 直接打开新建订单

+ 9 - 1
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -179,7 +179,7 @@
                     </el-tab-pane>
                 </el-tabs>
             </trade-card>
-            <report-dialog :switchDialog="switchDialog" reportName="轮胎商城-销售订单" :reportId="form.id"
+            <report-dialog :switchDialog="switchDialog" :reportName="reportName" :reportId="form.id"
                 @onClose="onClose()"></report-dialog>
             <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
                 :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
@@ -295,11 +295,13 @@ import da from "element-ui/src/locale/lang/da";
 import { number } from "echarts";
 import {getCorpTypes} from "@/api/tirePartsMall/basicData/commodityInformation";
 import {getWorkDicts} from "../../../../api/system/dictbiz";
+import losbfeestemplate from "@/views/iosBasicData/losbfeestemplate/index.vue";
 export default {
     name: "detailsPage",
 
     data() {
         return {
+            reportName:'', // 打印传的名字
             SelectSearch:{}, // 添加轮胎检索
             // 编辑还是保存
             mingxibaocun:true,
@@ -955,6 +957,12 @@ export default {
     },
     async created() {
         console.log(this.detailData.id)
+        console.log(JSON.parse(localStorage.getItem('saber-tenantId')).content,959)
+        if (JSON.parse(localStorage.getItem('saber-tenantId')).content == '069164') {
+            this.reportName = '轮胎商城-玉玲珑销售单'
+        }else {
+            this.reportName = '轮胎商城-销售订单'
+        }
         // console.log(this.$route);
         //         if(this.$route.query.check.actId){