| | |
| | | <view class="righton"> |
| | | <input name="HBillNo" disabled v-model="hform.HBillNo" /> |
| | | </view> |
| | | <uni-icons type="scan" |
| | | style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" |
| | | size="20" @click="qrCodeDisplay"></uni-icons> |
| | | |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">单据ID:</view> |
| | |
| | | <button class="btn-c" size="mini" @tap="goBack">退出</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import getDateTime from '@/utils/getdateTime.js'; |
| | |
| | | getUserInfo |
| | | } from "@/utils/auth.js"; |
| | | import { getUserStockRelation } from '../../utils/userRelationManager'; |
| | | export default { |
| | | import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue"; |
| | | export default { |
| | | components: {BarCodePopupVue}, |
| | | data() { |
| | | return { |
| | | userInfo: getUserInfo(), |
| | |
| | | this.getRelationStore() |
| | | }, |
| | | methods: { |
| | | async qrCodeDisplay() { |
| | | try { |
| | | this.$refs.barcodePopup.setCodeInfo(this.hform.HBillNo) |
| | | await this.$nextTick() |
| | | this.$refs.barcodePopup.open() |
| | | } catch (err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: err |
| | | }) |
| | | } |
| | | }, |
| | | async getRelationStore() { |
| | | let { |
| | | data, |
| | |
| | | }) |
| | | } else if (res.cancel) { |
| | | console.log('用户点击取消'); |
| | | setTimeout(() => { |
| | | uni.navigateBack(); |
| | | }, 50) |
| | | // setTimeout(() => { |
| | | // uni.navigateBack(); |
| | | // }, 50) |
| | | } |
| | | } |
| | | }); |
| | |
| | | |
| | | .title { |
| | | width: 208rpx; |
| | | |
| | | flex-shrink: 0; |
| | | text { |
| | | color: red; |
| | | font-weight: bold; |
| | |
| | | } |
| | | |
| | | .right { |
| | | width: 450rpx; |
| | | flex: 1; |
| | | border-radius: 22rpx; |
| | | border: 1px solid #acacac; |
| | | display: flex; |