zrg
2025-09-05 46cc7a29dc1f9b3dffee5cdcb9b7f9dfdac3b16d
pages/weiwailingliao/form.vue
@@ -103,6 +103,9 @@
               <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>
@@ -173,6 +176,9 @@
                     </view>
                     <view class="detail" v-if="item.辅助属性">
                        <text>辅助属性:</text>{{ item.辅助属性 }}
                     </view>
                     <view class="detail" v-if="item.款号">
                        <text>款号:</text>{{item.款号}}
                     </view>
                  </view>
               </uni-card>
@@ -280,7 +286,8 @@
      </view>
      <BillListPopupVue ref="billList" :HBillType="hform.HBillType" :HSourceBillType="hform.HMainSourceBillType"
         :HStockOrgID="hform.HStockOrgID"></BillListPopupVue>
   </view>
        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
    </view>
</template>
<script>
   import getDateTime from '@/utils/getdateTime.js';
@@ -288,7 +295,8 @@
      getUserInfo
   } from "@/utils/auth.js";
   import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue';
   import { getUserStockRelation } from '../../utils/userRelationManager';
   import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue";
    import { getUserStockRelation } from '../../utils/userRelationManager';
   export default {
      data() {
         return {
@@ -378,7 +386,7 @@
         }
      },
      components: {
         BillListPopupVue
         BillListPopupVue, BarCodePopupVue
      },
      onLoad(e) {
         console.log(e, this.userInfo)
@@ -409,6 +417,18 @@
         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,
@@ -1417,9 +1437,9 @@
                                    })
                                 } else if (res.cancel) {
                                    console.log('用户点击取消');
                                    setTimeout(() => {
                                       uni.navigateBack();
                                    }, 500)
                                    // setTimeout(() => {
                                    //    uni.navigateBack();
                                    // }, 500)
                                 }
                              }
                           });
@@ -1512,6 +1532,7 @@
      .title {
         width: 208rpx;
            flex-shrink: 0;
         text {
            color: red;
@@ -1564,6 +1585,7 @@
         display: flex;
         justify-content: center;
         align-items: center;
            flex-shrink: 0;
         .uni-icons {
            color: #fff !important;