yusijie
2026-02-06 28328db7ef0b0270e9e94b6a11b32cb5f9bdac88
pages/Kf_SellOutBill_CusBar/Kf_SellOutBill_CusBar_APP.vue
File was renamed from pages/ZLGL/Kf_SellOutBill_CusBar/Kf_SellOutBill_CusBar_APP.vue
@@ -86,7 +86,7 @@
                    </view>
                    <!-- 选源单功能 -->
                    <view class="icon-wrapper">
                        <uni-icons type="search" size="20" @click=""></uni-icons>
                        <uni-icons type="search" size="20" @click="openSourceBillSelector"></uni-icons>
                    </view>
                </view>
                <view class="form-item">
@@ -208,7 +208,7 @@
                overflow: 'auto'
            }">
                <view class="list" v-for="(item,index) in HMaterList" :key="index">
                    <uni-card :title="item.器具名称" :extra="item.器具代号" style="margin: 10px;" @tap="delMould(item)">
                    <uni-card v-if="item.器具条码" :title="item.器具名称" :extra="item.器具代号" style="margin: 10px;" @tap="delMould(item)">
                        <view class="card-detail">
                            <view class="detail">
                                <text>器具条码:</text>{{item.器具条码}}
@@ -320,7 +320,7 @@
    } from "@/utils/mpaasScan.js"
    import {
        getUserInfo
    } from "../../../utils/auth";
    } from "@/utils/auth";
    import {
        getUserStockRelation
    } from '@/utils/userRelationManager';
@@ -459,9 +459,17 @@
            }
        },
        methods: {
            // 打开选源单页面
            openSourceBillSelector() {
                this.$refs.billList.showPopup()
            },
            // 接收源单
            handleSourceBill(e){
                console.log('e: ',e);
                
                this.hform.HSourceBillNo = e.HBillNo
                this.GetMessageByHSourceBillNo(e.HBillNo)
                this.$refs.billList.exit()
            },
            // 条码删除
            async delMater(item) {
@@ -1040,9 +1048,9 @@
                }
            },
            async getBarCodeJson(sBarCode, sBarCodePrefix) {
                if (!this.hform.HQty) {
                    this.hform.HQty = 0
                }
                // if (!this.hform.HQty) {
                //     this.hform.HQty = 0
                // }
                console.log('this.hform.HQty: ', this.hform.HQty);
                try {
                    let res = await CommonUtils.doRequest2Sync({
@@ -1055,7 +1063,7 @@
                            HMaker: this.hform.HMaker,
                            HWhID: this.hform.HWHID,
                            HSPID: this.hform.HStockPlaceID,
                            HQty: this.hform.HQty,
                            HQty: this.hform.HQty || 0,
                            HRedBlueFlag: this.hform.HRedBlueFlag,
                            SourceFlag: this.hform.HSourceFlag,
                            HSourceBillNo: this.hform.HSourceBillNo,
@@ -1225,8 +1233,9 @@
                            this.hform.HDeptID = data.hDeptIDField
                            this.hform.HDeptName = data.hDeptNameField
                        }
                        // this.tabs = 2
                        this.hform.HSourceBillNo = data.hSourceBillNoField
                        this.DisBillEntryList()
                    } else {
                        CommonUtils.playSound(0)
                        CommonUtils.showTips({
@@ -1689,20 +1698,20 @@
            this.loadCache()
            // 监听单据选择完成事件
            uni.$on('BillSelectComplete', (e) => {
                console.log("接收到的消息: ", e)
                this.hform.HMainSourceInterID = e.HInterID
                this.hform.HSourceBillNo = e.HBillNo
                this.hform.HMainSourceEntryID = e.HEntryID
                this.hform.HEquipID = e.HEquipID
                this.hform.HBarName = e.HEquipName
                this.hform.HBarSpec = e.HEquipSpec
                this.hform.HBarModel = e.HEquipModel
                this.$refs.billList.exit()
            })
            // uni.$on('BillSelectComplete', (e) => {
            //     console.log("接收到的消息: ", e)
            //     this.hform.HMainSourceInterID = e.HInterID
            //     this.hform.HSourceBillNo = e.HBillNo
            //     this.hform.HMainSourceEntryID = e.HEntryID
            //     this.hform.HEquipID = e.HEquipID
            //     this.hform.HBarName = e.HEquipName
            //     this.hform.HBarSpec = e.HEquipSpec
            //     this.hform.HBarModel = e.HEquipModel
            //     this.$refs.billList.exit()
            // })
        },
        onUnload() {
            uni.$off('BillSelectComplete')
            // uni.$off('BillSelectComplete')
        },
        onReady() {
            const query = uni.createSelectorQuery().in(this)
@@ -1719,7 +1728,7 @@
</script>
<style lang="scss" scoped>
    @import "../style/MJBillStyle.scss";
    @import "@/pages/MJGL/style/MJBillStyle.scss";
    .left {
        width: 4em;