| | |
| | | <view class="righton"> |
| | | <input name="HBillNo" disabled v-model="hform.HBillNo" /> |
| | | </view> |
| | | <view class="icon-wrapper"> |
| | | <uni-icons type="scan" size="20" @click="qrCodeDisplay"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="title">单据ID:</view> |
| | |
| | | <view class="detail" v-if="item.辅助属性"> |
| | | <text>辅助属性:</text>{{item.辅助属性}} |
| | | </view> |
| | | <view class="detail" v-if="item.款号"> |
| | | <text>款号:</text>{{item.款号}} |
| | | </view> |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | |
| | | </view> |
| | | <BillListPopupVue ref="billList" :HBillType="hform.HBillType" :HSourceBillType="hform.HMainSourceBillType" |
| | | :HStockOrgID="hform.HStockOrgID"></BillListPopupVue> |
| | | <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue> |
| | | </view> |
| | | </template> |
| | | <script> |
| | |
| | | getUserInfo |
| | | } from "@/utils/auth.js"; |
| | | import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue'; |
| | | import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue"; |
| | | import { getUserStockRelation } from '../../utils/userRelationManager'; |
| | | export default { |
| | | data() { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | BillListPopupVue |
| | | BillListPopupVue, BarCodePopupVue |
| | | }, |
| | | onLoad(e) { |
| | | console.log(e, this.userInfo) |
| | |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | 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(); |
| | | }, 500) |
| | | // setTimeout(() => { |
| | | // uni.navigateBack(); |
| | | // }, 500) |
| | | } |
| | | } |
| | | }); |
| | |
| | | |
| | | .title { |
| | | width: 208rpx; |
| | | |
| | | flex-shrink: 0; |
| | | |
| | | text { |
| | | color: red; |
| | | font-weight: bold; |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | flex-shrink: 0; |
| | | |
| | | .uni-icons { |
| | | color: #fff !important; |