zrg
2025-09-05 46cc7a29dc1f9b3dffee5cdcb9b7f9dfdac3b16d
pages/xiaoshoutuihuo/form.vue
@@ -90,6 +90,10 @@
               <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>
@@ -231,7 +235,8 @@
            <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';
@@ -239,7 +244,9 @@
      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(),
@@ -344,6 +351,18 @@
         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,
@@ -1233,9 +1252,9 @@
                                    })
                                 } else if (res.cancel) {
                                    console.log('用户点击取消');
                                    setTimeout(() => {
                                       uni.navigateBack();
                                    }, 50)
                                    // setTimeout(() => {
                                    //    uni.navigateBack();
                                    // }, 50)
                                 }
                              }
                           });
@@ -1327,7 +1346,7 @@
      .title {
         width: 208rpx;
            flex-shrink: 0;
         text {
            color: red;
            font-weight: bold;
@@ -1335,7 +1354,7 @@
      }
      .right {
         width: 450rpx;
         flex: 1;
         border-radius: 22rpx;
         border: 1px solid #acacac;
         display: flex;