From 52c30e4cf7f5e6fc645bc1bf6ff95993e26c3e3b Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期四, 18 十二月 2025 16:43:25 +0800
Subject: [PATCH] 来料检验单 生产入库检验单 出厂检验单 添加 选单功能 扫码功能修改为通用接口 添加 不良原因选择弹窗

---
 pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue |  370 +++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 289 insertions(+), 81 deletions(-)

diff --git a/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue b/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue
index 423f253..0fbbfe1 100644
--- a/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue
+++ b/pages/ZLGL/lailiaojianyan/POStockInCheckBill.vue
@@ -27,7 +27,7 @@
                             </uni-datetime-picker>
                         </view>
                     </view>
-<view class="form-item">
+                    <view class="form-item">
                         <view class="left">婧愬崟鍗曞彿</view>
                         <view class="right" :class="!hasSourceBill?'':'disabled'">
                             <input type="text" :disabled="hasSourceBill" placeholder="璇疯緭鍏ユ垨鎵弿婧愬崟鍙�"
@@ -35,14 +35,20 @@
                         </view>
                         <view class="icon-wrapper-big">
                             <uni-icons class="right-icon" type="scan" style="
-                  background-color: #3a78ff;
-                  padding: 6rpx;
-                  color: #fff;
-                  border-radius: 100%;
-                " size="20" @click="toScanCode"></uni-icons>
+                                background-color: #3a78ff;
+                                padding: 6rpx;
+                                color: #fff;
+                                border-radius: 100%;" size="20" @click="toScanCode"></uni-icons>
+                        </view>
+                        <view class="icon-wrapper-big">
+                            <uni-icons class="right-icon" type="search" style="
+                                background-color: #3a78ff;
+                                padding: 6rpx;
+                                color: #fff;
+                                border-radius: 100%;" size="20" @click="toBillSelector"></uni-icons>
                         </view>
                     </view>
-                    
+
                     <view class="form-item">
                         <view class="left">浠诲姟鍗曞彿</view>
                         <view class="right disabled">
@@ -90,7 +96,7 @@
                         <view class="icon-wrapper-big"><uni-icons type="search" size="20"
                                 @click="showSelectorModule(hform, 7)"></uni-icons></view>
                     </view>
-                    
+
                     <view class="form-item">
                         <view class="left">鍒ゆ柇缁撹</view>
                         <view class="right none-border">
@@ -115,7 +121,7 @@
                         <view class="icon-wrapper-big"><uni-icons type="search" size="20"
                                 @click="showSelectorModule(hform, 8)"></uni-icons></view>
                     </view>
-                    
+
                 </view>
                 <!-- 鍏朵粬淇℃伅 -->
                 <view class="bill-main-content" v-if="mainTabSelected == 2">
@@ -314,10 +320,11 @@
                                     <text>鍗曚綅锛�</text>{{ checkItem.HUnit }}
                                 </view>
                                 <!-- 鍙湁瀹氶噺鍒嗘瀽鎵嶅惎鐢ㄦ楠屽�� -->
-                                <view class="detail editable" v-show="checkItem.HAnalysisMethod == 2"> 
+                                <view class="detail editable" v-show="checkItem.HAnalysisMethod == 2">
                                     <text>妫�楠屽�硷細</text>
-                                    <input type="text" class="editable-input" @blur="calcHResult(checkItem)" v-model="checkItem.HInspectValQ" />
-                                    
+                                    <input type="text" class="editable-input" @blur="calcHResult(checkItem)"
+                                        v-model="checkItem.HInspectValQ" />
+
                                 </view>
                                 <view class="detail" v-if="checkItem.HQCNote">
                                     <text>妫�楠岃褰曪細</text>{{ checkItem.HQCNote }}
@@ -351,8 +358,58 @@
                         </uni-card>
                     </view>
                 </view>
-                <!-- 鎶芥牱妫�楠� 鍛堢幇 -->
+                <!-- 涓嶈壇鍘熷洜 鍛堢幇 -->
                 <view v-if="subTabSelected == 2">
+                    <view class="buttons" @tap="addBadReason()">
+                        <uni-icons type="plus" style="margin-right: 10rpx" size="22"></uni-icons>鏂板
+                    </view>
+                    <view class="over" v-if="badReasons.length  == 0">鏆傛棤鏁版嵁</view>
+                    <view class="list" v-else>
+                        <uni-card v-for="(br, index) in badReasons" :key="index">
+                            <view class="card-detail">
+                                <view class="detail"> <text>搴忓彿锛�</text>{{ index+1 }} </view>
+                                <view class="detail" style="min-width: 14em;">
+                                    <view style="flex-shrink: 0"><text>涓嶈壇鍘熷洜浠g爜锛�</text></view>
+                                    <text>{{ br.HBadReasonNumber }} </text>
+                                </view>
+                                <view class="detail editable">
+                                    <view style="flex-shrink: 0"><text>涓嶈壇鍘熷洜锛�</text></view>
+                                    <text>{{ br.HBadReasonName }} </text>
+                                    <view class="icon-wrapper"><uni-icons type="search" size="16"
+                                            @click="showSelectorModule_BadReason(index, 9)"></uni-icons>
+                                    </view>
+                                </view>
+                                <view class="detail editable">
+                                    <view style="flex-shrink: 0"><text>鏁伴噺锛�</text></view>
+                                    <view class="editable-input">
+                                        <input type="number" v-model="br.HQty" />
+                                    </view>
+                                </view>
+                                <view class="detail editable">
+                                    <view style="flex-shrink: 0"><text>妫�楠屽憳锛�</text></view>
+                                    <text>{{ br.HCheckMan }} </text>
+                                </view>
+                                <view class="detail editable">
+                                    <view style="flex-shrink: 0"><text>鐢熶骇鐝粍锛�</text></view>
+                                    <text>{{ br.HGroupName }} </text>
+                                </view>
+                                <view class="detail editable">
+                                    <view style="flex-shrink: 0"><text>鐢熶骇璧勬簮锛�</text></view>
+                                    <text>{{ br.HSourceName }} </text>
+                                </view>
+
+                            </view>
+                            <view class="more">
+                                <view class="part" style="color: #da0000" @tap.stop="delBadReason(br, index)">
+                                    <uni-icons type="trash" style="color: #da0000; margin-right: 10rpx"
+                                        size="18"></uni-icons>鍒犻櫎
+                                </view>
+                            </view>
+                        </uni-card>
+                    </view>
+                </view>
+                <!-- 鎶芥牱妫�楠� 鍛堢幇 -->
+                <view v-if="subTabSelected == 3">
                     <view class="over" v-if="!checkItems || getObjLength(checkItems) == 0">鏆傛棤鏁版嵁</view>
                     <view class="list" v-else>
                         <uni-card v-for="SamplingItem in checkItems" :key="SamplingItem.num">
@@ -456,6 +513,10 @@
             :bindKey="0"></ProcessPopupVue>
         <CheckProjectPopupVue v-if="enablePopupModule == PopupModuleNameList[7]" ref="listPopup"
             @update="HQCSchemeComplete" :bindKey="0"></CheckProjectPopupVue>
+        <BillListPopupVue ref="billList" :HBillType="hform.HBillType" :HSourceBillType="hform.HSourceBillType"
+            :HStockOrgID="hform.HStockOrgID" @BillSelectComplete="HandleBillSelectComplete"></BillListPopupVue>
+        <BadReasonPopupVue v-if="enablePopupModule == PopupModuleNameList[9]" ref="listPopup"
+            @update="HBadReasonComplete"></BadReasonPopupVue>
     </view>
 </template>
 
@@ -479,6 +540,8 @@
     import {
         MpaasScan
     } from "../../../utils/mpaasScan";
+    import BillListPopupVue from "../../../components/BillListPopup/BillListPopup.vue";
+    import BadReasonPopupVue from "../../../components/ZLGL/BadReasonPopup.vue";
     export default {
         components: {
             InspectValueTemplateVue,
@@ -490,6 +553,8 @@
             ProcExchBillPopupVue,
             ProcessPopupVue,
             CheckProjectPopupVue,
+            BillListPopupVue,
+            BadReasonPopupVue
         },
         computed: {
             judgeConclusion: {
@@ -500,8 +565,9 @@
         },
         data() {
             return {
-                operationType: 1,
+                billList: null,
 
+                operationType: 1,
                 mainTabSelected: 1,
                 subTabSelected: 1,
 
@@ -520,6 +586,7 @@
                     "ProcExchBill",
                     "QCScheme",
                     "Process",
+                    "BadReason"
                 ],
                 // 褰撳墠鎿嶄綔鐨勬楠屽崟ID缂撳瓨
                 currentChechItemIDCache: -1,
@@ -558,22 +625,27 @@
                     },
                     2: {
                         id: "2",
+                        name: "涓嶈壇鍘熷洜",
+                    },
+                    3: {
+                        id: "3",
                         name: "鎶芥牱妫�楠�",
                     },
+
                 },
 
                 // 婧愬崟绫诲瀷
-                HSourceBillType: "宸ュ簭杩涚珯鎺ユ敹鍗�",
-                HSourceBillTypeValueList: ["3790", "3793", "3710", "3772"],
+                HSourceBillType: "鏀舵枡閫氱煡鍗�",
+                HSourceBillTypeValueList: ["1103", "1102", "1201"],
                 HSourceBillTypeNameList: [
-                    "宸ュ簭杩涚珯鎺ユ敹鍗�",
-                    "宸ュ簭濮斿鎺ユ敹鍗�",
-                    "鐢熶骇璁㈠崟",
-                    "宸ュ簭娴佽浆鍗�",
+                    "鏀舵枡閫氱煡鍗�",
+                    "閲囪喘璁㈠崟",
+                    "閲囪喘鍏ュ簱鍗�",
                 ],
                 // 涓昏〃灞炴��
                 hform: {
-                    HSourceBillType: "3790",
+                    HBillType: '7503',
+                    HSourceBillType: "1103",
                     HSourceBillNo: "",
                     HBillNo: "",
                     HInterID: "0",
@@ -625,6 +697,8 @@
                     HMainSourceInterID: "0",
                     HMainSourceEntryID: "1",
                     HMainSourceBillNo: "",
+
+                    HStockOrgID: uni.getStorageSync('OrganizationID')
                 },
                 // 妫�楠岄」鐩拰鎶芥牱妫�楠� 鍊�
                 checkItems: {},
@@ -632,22 +706,95 @@
                 InspectModules: {},
                 // 妫�娴嬪��
                 InspectValues: {},
+                // 涓嶈壇鍘熷洜
+                badReasons: [],
             };
         },
         methods: {
+            // 鏂板涓嶈壇鍘熷洜
+            addBadReason() {
+                this.badReasons.push({
+                    'HBadReasonNumber': 0,
+                    'HBadReasonNumber': "",
+                    'HBadReasonHName': "",
+                    'HCheckMan': this.hform.HFirstCheckEmp,
+                    'HQty': 0,
+                    'HGroupName': this.hform.HGroupName || "",
+                    'HSourceName': this.hform.HSourceName
+                })
+            },
+            delBadReason(badReason, index) {
+                console.log('badReason: ', badReason);
+                this.badReasons.splice(index, 1)
+            },
+            async HandleBillSelectComplete(e) {
+                try {
+                    let res = await CommonUtils.doRequest2Async({
+                        url: "/WEBSController/get_CheckBillBarCode_Json_CheckItem",
+                        data: {
+                            HBillType: this.hform.HBillType,
+                            HSourceBillType: this.hform.HSourceBillType,
+                            HBarCode: "",
+                            HInterID: e?.HInterID,
+                            HEntryID: e?.HEntryID,
+                            Mode: 2 //閫夊崟妯″紡
+                        }
+                    })
+
+                    console.log(res)
+                    let {
+                        data,
+                        Message,
+                        count
+                    } = res.data
+                    if (count == 1) {
+                        this.hform.HMaterID = data[0]['HMaterID']
+                        this.hform.HMaterName = data[0]['HMaterName']
+                        this.hform.HMaterNumber = data[0]['HMaterNumber']
+                        this.hform.HMainSourceBillNo = data[0]['HBillNo']
+                        this.hform.HMainSourceInterID = data[0].HInterID
+                        this.hform.HMainSourceEntryID = data[0].HEntryID
+                        this.hform.HQCSchemeName = data[0].妫�楠屾柟妗堝悕绉�
+                        this.hform.HQCSchemeID = data[0].妫�楠屾柟妗圛D
+
+                        this.get_CheckItem();
+                        this.$refs['billList'].exit()
+                    } else {
+                        CommonUtils.showTips({
+                            title: '娓╅Θ鎻愮ず',
+                            message: Message
+                        })
+                    }
+
+                    if (
+                        (uni.getStorageSync("OrganizationID") == "7667152" &&
+                            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
+                        (uni.getStorageSync("OrganizationID") == "100199" &&
+                            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
+                    ) {
+                        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
+                    }
+                } catch (err) {
+                    CommonUtils.showTips({
+                        title: '娓╅Θ鎻愮ず',
+                        message: "婧愬崟涓嬫帹閿欒: " + err
+                    })
+                }
+
+            },
             // 妫�楠屽�� 璁$畻鏄惁鍚堟牸
-            calcHResult(item){
+            calcHResult(item) {
                 // 闈炴娊妫�鏉′欢涓嬪垽鏂粨璁�
-                console.log('item: ',item);
-                if(item.HSampleSchemeID) {
+                console.log('item: ', item);
+                if (item.HSampleSchemeID) {
                     return
                 }
-                
-                if(item.HInspectValQ >= item.HDownLimit && item.HInspectValQ <= item.HUpLimit){
+
+                if (item.HInspectValQ >= item.HDownLimit && item.HInspectValQ <= item.HUpLimit) {
                     this.checkItems[item.num].HResult = true
                     return
                 }
-                
+
                 this.checkItems[item.num].HResult = false
             },
             // 婧愬崟绫诲瀷閫夋嫨
@@ -662,61 +809,109 @@
                     }
                 });
             },
+            // 鏍规嵁婧愬崟绫诲瀷閫夋嫨鍗曟嵁
+            toBillSelector() {
+                this.$refs['billList'].showPopup()
+            },
             async getSourceBillInfo(HBarCode) {
                 console.log('HBarCode: ', HBarCode);
+                let res = await CommonUtils.doRequest2Async({
+                    url: "/WEBSController/get_CheckBillBarCode_Json_CheckItem",
+                    data: {
+                        HBillType: this.hform.HBillType,
+                        HSourceBillType: this.hform.HSourceBillType,
+                        HBarCode: HBarCode,
+                        HInterID: 0,
+                        HEntryID: 0,
+                        Mode: 1 //鎵爜妯″紡
+                    }
+                })
+
+                console.log(res)
+                let {
+                    data,
+                    Message,
+                    count
+                } = res.data
+                if (count == 1) {
+                    this.hform.HMaterID = data[0]['HMaterID']
+                    this.hform.HMaterName = data[0]['HMaterName']
+                    this.hform.HMaterNumber = data[0]['HMaterNumber']
+                    this.hform.HMainSourceBillNo = data[0]['HBillNo']
+                    this.hform.HMainSourceInterID = data[0].HInterID
+                    this.hform.HMainSourceEntryID = data[0].HEntryID
+                    this.hform.HQCSchemeName = data[0].妫�楠屾柟妗堝悕绉�
+                    this.hform.HQCSchemeID = data[0].妫�楠屾柟妗圛D
+
+                    this.get_CheckItem();
+                } else {
+                    CommonUtils.showTips({
+                        title: '娓╅Θ鎻愮ず',
+                        message: Message
+                    })
+                }
+
+                if (
+                    (uni.getStorageSync("OrganizationID") == "7667152" &&
+                        uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
+                    (uni.getStorageSync("OrganizationID") == "100199" &&
+                        uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
+                ) {
+                    await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
+                }
                 // 鏍规嵁鍗曟嵁绫诲瀷锛岃皟鐢ㄤ笉鍚岀殑涓嬫帹鍑芥暟
-                if (this.hform.HSourceBillType == 3790) {
-                    // 宸ュ簭杩涚珯鎺ユ敹鍗曞垪琛ㄩ妫�
-                    await this.LoadingInformation_StationInBill(HBarCode);
-                    if (
-                        (uni.getStorageSync("OrganizationID") == "7667152" &&
-                            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
-                        (uni.getStorageSync("OrganizationID") == "100199" &&
-                            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
-                    ) {
-                        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
-                    }
-                    return;
-                }
-                if (this.hform.HSourceBillType == 3793) {
-                    // 宸ュ簭濮斿鎺ユ敹鍗曞垪琛ㄩ妫�
-                    await this.LoadingInformation_StationEntrustOutBill(HBarCode);
-                    if (
-                        (uni.getStorageSync("OrganizationID") == "7667152" &&
-                            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
-                        (uni.getStorageSync("OrganizationID") == "100199" &&
-                            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
-                    ) {
-                        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
-                    }
-                    return;
-                }
-                if (this.hform.HSourceBillType == 3710) {
-                    // 鐢熶骇璁㈠崟鍒楄〃棣栨
-                    await this.LoadingInformation_ICMO(HBarCode);
-                    if (
-                        (uni.getStorageSync("OrganizationID") == "7667152" &&
-                            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
-                        (uni.getStorageSync("OrganizationID") == "100199" &&
-                            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
-                    ) {
-                        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
-                    }
-                    return;
-                }
-                if (this.hform.HSourceBillType == 3772) {
-                    // 宸ュ簭娴佽浆鍗″垪琛ㄩ妫�
-                    await this.LoadingInformation_ProcExchange(HBarCode);
-                    if (
-                        (uni.getStorageSync("OrganizationID") == "7667152" &&
-                            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
-                        (uni.getStorageSync("OrganizationID") == "100199" &&
-                            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
-                    ) {
-                        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
-                    }
-                    return;
-                }
+                //if (this.hform.HSourceBillType == 3790) {
+                //    // 宸ュ簭杩涚珯鎺ユ敹鍗曞垪琛ㄩ妫�
+                //    await this.LoadingInformation_StationInBill(HBarCode);
+                //    if (
+                //        (uni.getStorageSync("OrganizationID") == "7667152" &&
+                //            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
+                //        (uni.getStorageSync("OrganizationID") == "100199" &&
+                //            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
+                //    ) {
+                //        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
+                //    }
+                //    return;
+                //}
+                //if (this.hform.HSourceBillType == 3793) {
+                //    // 宸ュ簭濮斿鎺ユ敹鍗曞垪琛ㄩ妫�
+                //    await this.LoadingInformation_StationEntrustOutBill(HBarCode);
+                //    if (
+                //        (uni.getStorageSync("OrganizationID") == "7667152" &&
+                //            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
+                //        (uni.getStorageSync("OrganizationID") == "100199" &&
+                //            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
+                //    ) {
+                //        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
+                //    }
+                //    return;
+                //}
+                //if (this.hform.HSourceBillType == 3710) {
+                //    // 鐢熶骇璁㈠崟鍒楄〃棣栨
+                //    await this.LoadingInformation_ICMO(HBarCode);
+                //    if (
+                //        (uni.getStorageSync("OrganizationID") == "7667152" &&
+                //            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
+                //        (uni.getStorageSync("OrganizationID") == "100199" &&
+                //            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
+                //    ) {
+                //        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
+                //    }
+                //    return;
+                //}
+                //if (this.hform.HSourceBillType == 3772) {
+                //    // 宸ュ簭娴佽浆鍗″垪琛ㄩ妫�
+                //    await this.LoadingInformation_ProcExchange(HBarCode);
+                //    if (
+                //        (uni.getStorageSync("OrganizationID") == "7667152" &&
+                //            uni.getStorageSync("Organization") == "CMR Technology Mexico S.A. de C.V.") ||
+                //        (uni.getStorageSync("OrganizationID") == "100199" &&
+                //            uni.getStorageSync("Organization") == "鏉窞鏂帿灏旂鎬ф潗鏂欐湁闄愬叕鍙�")
+                //    ) {
+                //        await this.GetCheckItemID(); // 瀹㈡埛涓烘柉鑾皵锛岃繘鍏ユ寜鐓ц川妫�鏂规琛ㄥご涓婄殑鐗╂枡缁戝畾甯﹀嚭榛樿鏂规
+                //    }
+                //    return;
+                //}
             },
             async GetCheckItemID() {
                 if (!this.hform.HMaterName && !this.hform.HProcName) {
@@ -1125,6 +1320,12 @@
 
                 this.$refs.listPopup.showPopup();
             },
+            async showSelectorModule_BadReason(item, index){
+                this.enablePopupModule = this.PopupModuleNameList[index];
+                console.log("this.$refs: ", this.$refs);
+                await this.$nextTick();
+                this.$refs.listPopup.showPopup(index);
+            },
             getAnalysisMethodDisplay(val) {
                 console.log("AnalysisMethod: ", val);
                 if (val) {
@@ -1411,6 +1612,10 @@
                     await this.get_QC_TakeSampleCheckBillList();
                 }
             },
+            // 涓嶈壇鍘熷洜鍥炶皟
+            async HBadReasonComplete(e) {
+                console.log('e: ',e);
+            },
             async get_QC_TakeSampleCheckBillList() {
                 // 鍙栨牱鍗曟煡璇�
                 let HProcID = this.hform.HProcID;
@@ -1546,6 +1751,8 @@
                         data: {
                             CheckProjectID: this.hform.HQCSchemeID || 0,
                             HBatchQty: this.hform.HProcExchQty || 0,
+                            HMaterID: this.hform.HMaterID,
+                            HBillType: '鏉ユ枡妫�鏂规'
                         },
                     });
 
@@ -1784,7 +1991,7 @@
                                 if (res.confirm) {
                                     console.log("鐢ㄦ埛鐐瑰嚮纭畾");
                                     uni.redirectTo({
-                                        url: "/pages/ZLGL/shoujianjianyan/form?operationType=1",
+                                        url: "/pages/ZLGL/lailiaojianyan/POStockInCheckBill?operationType=1",
                                     });
                                 } else if (res.cancel) {
                                     console.log("鐢ㄦ埛鐐瑰嚮鍙栨秷");
@@ -1809,7 +2016,7 @@
             },
             addNew() {
                 uni.redirectTo({
-                    url: "/pages/ZLGL/shoujianjianyan/firstCheckBill?operationType=1",
+                    url: "/pages/ZLGL/lailiaojianyan/POStockInCheckBill?operationType=1",
                 });
             },
             goBack() {
@@ -2168,6 +2375,7 @@
             justify-content: space-between;
             align-items: center;
             line-height: 120%;
+            padding: 20rpx 10rpx;
             gap: 10rpx 0;
 
             input {

--
Gitblit v1.9.1