| | |
| | | <uni-icons type="scan" size="20" @click="qrCodeDisplay('HCP')"></uni-icons> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 条码输入框 --> |
| | | <view class="form-item"> |
| | | <view class="title"> |
| | | 条码: |
| | |
| | | } |
| | | }, |
| | | 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{ |