From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示

---
 src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue |  199 ++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 170 insertions(+), 29 deletions(-)

diff --git a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
index f07e780..b9de7e6 100644
--- a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
+++ b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
@@ -148,10 +148,10 @@
             </el-collapse>
         </el-form>
         <el-row :gutter="10" class="mb8" style="margin-top: 10px">
-            <el-col :span="1.5">
+            <!-- <el-col :span="1.5">
                 <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddEdit((OperationType = 1))"
                     id="btn-Add">鏂板</el-button>
-            </el-col>
+            </el-col> -->
             <el-col :span="1.5">
                 <el-button type="primary" icon="el-icon-edit" size="mini" :disabled="single"
                     @click="handleEdit((row = rowForm), (OperationType = 3))">缂栬緫</el-button>
@@ -161,7 +161,44 @@
                 </el-button>
             </el-col>
             <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CheckBill(0)">瀹℃牳
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CheckBill(1)">鍙嶅鏍�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CloseBill(0)">鍏抽棴
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_CloseBill(1)">鍙嶅叧闂�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_DropBill(0)">浣滃簾
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single"
+                    @click="set_DropBill(1)">鍙嶄綔搴�
+                </el-button>
+            </el-col>
+            <el-col :span="1.5">
                 <el-button type="primary" icon="el-icon-date" size="mini" @click="handleRowHide">闅愯棌鍒楄缃�</el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-printer" size="mini" @click="get_PrintReport">鎵撳嵃</el-button>
+            </el-col>
+            <el-col :span="1.5">
+                <el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single"
+                    @click="get_BarCodeDetail">鏉$爜鏄庣粏</el-button>
             </el-col>
         </el-row>
         <div class="tableBox" v-loading="loading">
@@ -179,7 +216,7 @@
                             <div :style="item.style">
                                 <span v-if="column.property.includes('鏃ユ湡')">{{
                                     parseTime(row[column.property], "{y}-{m}-{d}")
-                                    }}</span>
+                                }}</span>
                                 <el-button type="text" @click="handleEdit(row, (OperationType = 3))"
                                     v-else-if="column.property == '鍗曟嵁鍙�'">{{ row.鍗曟嵁鍙� }}</el-button>
                                 <span v-else>{{ row[column.label] }}</span>
@@ -189,25 +226,28 @@
                 </template>
             </el-table>
             <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize"
-                :pageSizes="pageSizes" @pagination="getList" />
+                :pageSizes="pageSizes" @pagination="handleQuery" />
             <el-dialog title="闅愯棌鍒楄缃�" :visible.sync="openRowHide" width="816px" append-to-body>
                 <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
             </el-dialog>
             <!-- 缂栬緫 -->
             <el-dialog title="缂栬緫" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox"
                 @close="close">
-                <edit :OperationType="OperationType" :linterid="this.rowForm.hmainid"
-                    :HSouceBillType="this.rowForm.HSourceBillType" :copyType="copyType" @editClose="editClose"
-                    v-if="editShow" />
+                <edit :OperationType="OperationType" :linterid="this.rowForm.hmainid" HSouceBillType="0"
+                    :copyType="copyType" @editClose="editClose" v-if="editShow" />
             </el-dialog>
+            <PrintList :linterid="this.rowForm.hmainid" :MyMsg="this.rowForm.hmainid" Type="HPOInStockBill"
+                HModName="HPOInStockBill" @rowEditClose="rowSetClose" v-if="printListShow" />
+            <BarCodeDetail :visible.sync="barCodeDetailShow" ref="barcodeDetail" />
         </div>
+
     </div>
 </template>
 
 <script>
 import axios from "axios";
 import RowSettings from "@/views/component/rowSettings";
-import Edit from "@/views/warehouse/shipment/Kf_StockOutRequestBill.vue";
+import Edit from "@/views/purchase/postockInBack/Kf_POStockInBackBill.vue";
 import PrintList from "@/views/component/printList";
 import BarCodeDetail from '@/views/component/BarCodeDetail'               //鏉$爜鏄庣粏缁勪欢
 import moment from "moment";
@@ -217,8 +257,10 @@
     components: { RowSettings, Edit, PrintList, BarCodeDetail },
     data() {
         return {
+            typeIndex: 0,
             activeSeach: "",
             HModName: "Kf_StockOutRequestBillList",
+            backTypeList: [{ name: ' 閲囪喘閫�鏂欏垪琛�(宸插叆搴�)', value: 1, }, { name: '閲囪喘閫�鏂欏垪琛�(鏈叆搴�)', value: 0, }],
             organizationList: JSON.parse(sessionStorage.getItem('organizationList')),
             editShow: false,
             openEdit: false,
@@ -322,7 +364,7 @@
     created() {
         // this.fetchData()
         this.riqiChange();
-        this.getList();
+        this.handleQuery();
     },
 
     methods: {
@@ -365,7 +407,7 @@
             this.rowHideShow = false;
             this.tableShow = true;
             this.openRowHide = val;
-            this.getList();
+            this.handleQuery();
         },
         riqiChange() {
             const end = new Date();
@@ -381,18 +423,16 @@
             this.eTime = yyyyE + "-" + mmE + "-" + ddE;
         },
         getList() {
+            console.log(this.$route.query.type)
             this.pageSize = 50;
             this.tableShow = false;
             this.loading = true;
-            if (this.sTime) {
-                this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" + this.sTime + "'";
-                this.sWhere += " and CONVERT(varchar(100),鏃ユ湡, 23) <= '" + this.eTime + "'";
-            }
+            
             if (this.pageSize == 0) {
                 this.pageSize = 50;
             }
             // 鍒楄〃
-            axios.get(this.baseURL + "/Kf_POStockInBackBill/list", {
+            axios.get(this.$baseUrl + "/Kf_POStockInBackBill/list", {
                 params: {
                     sWhere: this.sWhere,
                     user: sessionStorage["HUserName"],
@@ -410,7 +450,7 @@
                         this.total = data1.count;
                         var data = []; //鍒楀瓧娈垫暟鎹�
                         var col = [];
-                        var totalArray = ["閲戦","閲囪喘閲戦","搴旈��鏁伴噺","瀹為��鏁伴噺"];
+                        var totalArray = ["閲戦", "閲囪喘閲戦", "搴旈��鏁伴噺", "瀹為��鏁伴噺"];
                         //缁欑┖鐨勬暟缁勮祴鍊�
                         for (var key in data1.list) {
                             //寰簭閬嶅巻鏁扮粍
@@ -495,7 +535,7 @@
         DisPlay_HideColumn(HModName, user, option, dataOption) {
             this.totalNameList = [];
             axios
-                .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
+                .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", {
                     params: {
                         HModName: HModName,
                         user: user,
@@ -741,7 +781,6 @@
             if (this.sTime) {
                 this.sTime = moment(this.sTime).format("YYYY-MM-DD");
                 this.eTime = moment(this.eTime).format("YYYY-MM-DD");
-                console.log(this.sTime, this.eTime);
                 this.sWhere +=
                     " and CONVERT(varchar(100),鏃ユ湡, 23) >= '" +
                     this.sTime +
@@ -766,22 +805,22 @@
                 this.sWhere += " and 鐗╂枡浠g爜 like '%" + this.queryParams.MaterialCode + "%'";
             }
             if (this.queryParams.MaterialName) {
-                this.sWhere += " and 鐗╂枡鍚嶇О like '%" + MaterialName + "%'";
+                this.sWhere += " and 鐗╂枡鍚嶇О like '%" + this.queryParams.MaterialName + "%'";
             }
             if (this.queryParams.SpecificationModel) {
-                this.sWhere += " and 瑙勬牸鍨嬪彿 like '%" + SpecificationModel + "%'";
+                this.sWhere += " and 瑙勬牸鍨嬪彿 like '%" + this.queryParams.SpecificationModel + "%'";
             }
             if (this.queryParams.HSourceBillNo) {
-                this.sWhere += " and 婧愬崟鍗曞彿 like '%" + HSourceBillNo + "%'";
+                this.sWhere += " and 婧愬崟鍗曞彿 like '%" + this.queryParams.HSourceBillNo + "%'";
             }
             if (this.queryParams.Warehouse) {
-                this.sWhere += " and 鍙戣揣浠撳簱 like '%" + Warehouse + "%'";
+                this.sWhere += " and 鍙戣揣浠撳簱 like '%" + this.queryParams.Warehouse + "%'";
             }
             if (this.queryParams.Hmaker) {
-                this.sWhere += " and 鍒跺崟浜� like '%" + Hmaker + "%'";
+                this.sWhere += " and 鍒跺崟浜� like '%" + this.queryParams.Hmaker + "%'";
             }
             if (this.queryParams.HUSEORGID) {
-                this.sWhere += " and HOrgID like '%" + HUSEORGID + "%'";
+                this.sWhere += " and HOrgID like '%" + this.queryParams.HUSEORGID + "%'";
             }
             this.getList();
         },
@@ -807,7 +846,7 @@
             };
             this.riqiChange();
             this.resetForm("queryForm");
-            this.getList();
+            this.handleQuery();
         },
 
         //閫�鍑�
@@ -816,7 +855,7 @@
             this.tableShow = true;
             this.openEdit = false;
             this.editShow = false;
-            this.getList();
+            this.handleQuery();
         },
         //鎵撳紑鏂板缁勪欢寮圭獥
         handleAddEdit() {
@@ -835,19 +874,19 @@
             this.open = val;
             this.editShow = false;
             this.openEdit = val;
-            this.getList();
+            this.handleQuery();
         },
         /** 鍒犻櫎鎸夐挳鎿嶄綔 */
         handleDelete() {
             this.$modal.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠").then(() => {
-                axios.get(this.baseURL + "/Kf_POStockInBackBill/DeltetKf_POStockInBackBill", {
+                axios.get(this.$baseUrl + "/Kf_POStockInBackBill/DeltetKf_POStockInBackBill", {
                     params: {
                         HInterID: this.rowForm.hmainid.toString(),
                         user: sessionStorage["HUserName"],
                     },
                 }).then((response) => {
                     if (response.data.count == 1) {
-                        this.getList();
+                        this.handleQuery();
                         this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
                     } else {
                         this.$modal.msgError("閿欒:" + result.code + result.Message);
@@ -857,6 +896,97 @@
                 });
             }).catch(() => { });
         },
+        set_CheckBill(num) {
+            //閫昏緫瀹℃牳鏂规硶
+            axios.get(this.$baseUrl + "/Kf_POStockInBackBill/AuditProcessReportList", {
+                params: { "HInterID": this.rowForm.hmainid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        set_CloseBill(num) {
+            //閫昏緫鍏抽棴鏂规硶
+            axios.get(this.$baseUrl + "/Kf_POStockInBackBill/CloseKf_POStockInBackBill", {
+                params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        set_DropBill(num) {
+            //閫昏緫浣滃簾鏂规硶
+            axios.get(this.$baseUrl + "/Kf_POStockInBackBill/DropKf_POStockInBackBill", {
+                params: { "HInterID": this.rowForm.hmainid, "Type": num, "CurUserName": sessionStorage["HUserName"] }
+            }).then(response => {
+                let result = response.data
+                if (result.code == 1) {
+                    this.checkDisabled = true
+                    this.abandoncheckDisabled = false
+                    this.$modal.msgSuccess('鎿嶄綔鎴愬姛');
+                }
+                else {
+                    this.$modal.msgError("閿欒:" + result.code + result.Message,);
+                }
+            }).catch(error => {
+                this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+            });
+        },
+        //鎵撳嵃
+        get_PrintReport() {
+            if (this.ids.length != 1) {
+                this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�");
+            } else {
+                this.printListShow = true;
+                this.openPrintList = true;
+                // axios.get(this.$baseUrl + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
+                //         params: { HInterID: this.rowForm.hmainid },
+                //     })
+                //     .then((response) => {
+                //         var result = response.data;
+                //         if (result.count == 1) {
+                //             this.printListShow = true;
+                //             this.openPrintList = true;
+                //             // this.$router.push({ path:'/printList', query: { linterid: this.rowForm.hmainid,MyMsg:this.rowForm.hmainid,Type:'Kf_SellOutBillList' }})
+                //         } else {
+                //             this.$modal.msgError(result.code + result.Message);
+                //         }
+                //     })
+                //     .catch((error) => {
+                //         this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+                //     });
+            }
+            //  var content= ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + data[0].hmainid.toString() + '&MyMsg=' + data[0].hmainid.toString() + '&Type=Kf_SellOutBillList', 'yes']
+        },
+        //#region 鏉$爜鏄庣粏
+        get_BarCodeDetail() {
+            // if (this.selectedRow.length !== 1) {
+            //   this.$message.warning('璇烽�夋嫨涓�琛屾暟鎹煡鐪嬫潯鐮佹槑缁嗭紒')
+            //   return
+            // }
+            this.barCodeDetailShow = true
+            this.$nextTick(() => {
+                this.$refs.barcodeDetail.open(this.rowForm)
+            })
+        },
     },
 };
 </script>
@@ -864,4 +994,15 @@
 .xsckdBox .el-date-editor.el-input {
     width: 100%;
 }
+
+.cgtlType {
+    text-decoration: underline;
+    line-height: 36px;
+    color: #606266;
+    cursor: pointer;
+}
+
+.cgtlActive {
+    color: blue;
+}
 </style>

--
Gitblit v1.9.1