From b5bfca1185e60b954a403ecedd784f50f40fcc80 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 03 十二月 2025 10:33:02 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue |   87 ++++++++++++++++++++++++++++---------------
 1 files changed, 57 insertions(+), 30 deletions(-)

diff --git a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
index ac73367..c8f6701 100644
--- a/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
+++ b/src/views/purchase/postockInBack/Kf_POStockInBackBillList.vue
@@ -148,7 +148,7 @@
             </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> -->
@@ -202,45 +202,56 @@
             </el-col>
         </el-row>
         <div class="tableBox" v-loading="loading">
-            <el-table :data="tableData" ref="tableData" max-height="710" :summary-method="getSummaries"
-                @selection-change="handleSelectionChange" show-summary border @row-click="handleRowClick"
-                :row-style="rowStyle" @cell-dblclick="handleDblclick" v-if="tableShow">
-                <template v-for="(item, index) in btList">
-                    <el-table-column type="selection" width="55" align="center" :fixed="item.fixed"
-                        v-if="item.type == 'checkbox'" :key="index" />
-                    <el-table-column :align="item.align" :prop="item.field" :label="item.title" :width="item.width"
-                        :key="item.id" v-else-if="!item.hide && item.type != 'checkbox'" :sortable="item.sort"
-                        show-overflow-tooltip :fixed="item.fixed">
-                        <template slot-scope="{ row, column }">
-                            <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox>
-                            <div :style="item.style">
-                                <span v-if="column.property.includes('鏃ユ湡')">{{
-                                    parseTime(row[column.property], "{y}-{m}-{d}")
-                                }}</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>
-                            </div>
+            <el-row>
+                <el-col :span="4">
+                    <div class="cgtlType" v-for="(item, index) in backTypeList" :key="index" :class="{ 'cgtlActive': typeIndex==index }" @click="backTypeClick(item,index)">
+                        {{item.name}}
+                    </div>
+                </el-col>
+                <el-col :span="20">
+                    <el-table :data="tableData" ref="tableData" max-height="710" :summary-method="getSummaries"
+                        @selection-change="handleSelectionChange" show-summary border @row-click="handleRowClick"
+                        :row-style="rowStyle" @cell-dblclick="handleDblclick" v-if="tableShow">
+                        <template v-for="(item, index) in btList">
+                            <el-table-column type="selection" width="55" align="center" :fixed="item.fixed"
+                                v-if="item.type == 'checkbox'" :key="index" />
+                            <el-table-column :align="item.align" :prop="item.field" :label="item.title"
+                                :width="item.width" :key="item.id" v-else-if="!item.hide && item.type != 'checkbox'"
+                                :sortable="item.sort" show-overflow-tooltip :fixed="item.fixed">
+                                <template slot-scope="{ row, column }">
+                                    <el-checkbox v-model="checked" v-if="item.type == 'checkbox'"></el-checkbox>
+                                    <div :style="item.style">
+                                        <span v-if="column.property.includes('鏃ユ湡')">{{
+                                            parseTime(row[column.property], "{y}-{m}-{d}")
+                                        }}</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>
+                                    </div>
+                                </template>
+                            </el-table-column>
                         </template>
-                    </el-table-column>
-                </template>
-            </el-table>
-            <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize"
-                :pageSizes="pageSizes" @pagination="getList" />
+                    </el-table>
+                    <pagination v-show="total > 0" :total="total" :page.sync="page" :limit.sync="pageSize"
+                        :pageSizes="pageSizes" @pagination="getList" />
+                </el-col>
+
+            </el-row>
+
             <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="0" :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>
 
@@ -257,8 +268,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,
@@ -366,6 +379,9 @@
     },
 
     methods: {
+        backTypeClick(item,index){
+            this.typeIndex=index
+        },
         getSummaries(param) {
             const { columns, data } = param;
             const sums = [];
@@ -956,8 +972,8 @@
             if (this.ids.length != 1) {
                 this.$modal.msgError("璇烽�夋嫨涓�琛屾暟鎹�");
             } else {
-                 this.printListShow = true;
-                            this.openPrintList = true;
+                this.printListShow = true;
+                this.openPrintList = true;
                 // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
                 //         params: { HInterID: this.rowForm.hmainid },
                 //     })
@@ -995,4 +1011,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