1
wangyi
3 天以前 54435420215dd0ad6b232d7825d1cc09961840f1
1
1个文件已修改
65 ■■■■ 已修改文件
pages/Kf_MoveStockStepOutBill_CusBar/Kf_MoveStockStepOutBill_CusBar_APP.vue 65 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/Kf_MoveStockStepOutBill_CusBar/Kf_MoveStockStepOutBill_CusBar_APP.vue
@@ -13,8 +13,6 @@
                 <uni-icons type="scan" size="20" @click="qrCodeDisplay('HCP')"></uni-icons>
             </view>
         </view>
         <!-- 条码输入框 -->
         <view class="form-item">
             <view class="title">
                 条码:
@@ -552,56 +550,21 @@
            }
        },
        methods: {
              // 条码回车处理方法
                handleBarCodeConfirm() {
                    // 先执行原有的查询
                    this.GetMessageByBarCode();
                    // 清空条码输入框
                    this.hform.HBarCode = '';
                    this.hform.HCP = '';
                    setTimeout(() => {
                        this.barCodeFocus = false;
                        this.hcpFocus = true;
                    }, 100);
                },
                // 传票回车处理方法
                handleHCPConfirm() {
                    setTimeout(() => {
                        this.hcpFocus = false;
                        this.barCodeFocus = true;
                    }, 100);
                },
                // 扫描条码
                qrCodeDisplay(type) {
                    MpaasScan.scanCode(res => {
                        if (!res) {
                            return
                        }
                        switch (type) {
                            case "HCP":
                                this.hform.HCP = res;
                                // 扫描传票后清空条码并跳转
                                setTimeout(() => {
                                    this.hform.HBarCode = '';
                                    this.hcpFocus = false;
                                    this.barCodeFocus = true;
                                }, 100);
                                break;
                            case "BarCode":
                                this.hform.HBarCode = res
                                this.GetMessageByBarCode();
                                // 扫描条码后清空传票并跳转
                                setTimeout(() => {
                                    this.hform.HCP = '';
                                    this.barCodeFocus = false;
                                    this.hcpFocus = true;
                                }, 100);
                                break;
                        }
                    })
                },
                this.GetMessageByBarCode();
                this.hform.HBarCode = '';
                this.hform.HCP = '';
                setTimeout(() => {
                    this.barCodeFocus = false;
                    this.hcpFocus = true;
                }, 100);
            },
            handleHCPConfirm() {
                setTimeout(() => {
                    this.hcpFocus = false;
                    this.barCodeFocus = true;
                }, 100);
            },
            // 获取单据子类型
            async set_InitBillSubType(){
                try{