From 46cc7a29dc1f9b3dffee5cdcb9b7f9dfdac3b16d Mon Sep 17 00:00:00 2001
From: zrg <z1873@LAPTOP-EAVL132E>
Date: 星期五, 05 九月 2025 20:44:14 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
---
pages/qitaruku_v2/form.vue | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/pages/qitaruku_v2/form.vue b/pages/qitaruku_v2/form.vue
index 5dc89f1..d6e5d8a 100644
--- a/pages/qitaruku_v2/form.vue
+++ b/pages/qitaruku_v2/form.vue
@@ -116,6 +116,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>
@@ -291,7 +294,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';
@@ -302,7 +306,8 @@
CommonUtils
} from '../../utils/common';
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 {
@@ -397,7 +402,7 @@
}
},
components: {
- BillListPopupVue
+ BillListPopupVue, BarCodePopupVue
},
onLoad(e) {
console.log(e, this.userInfo)
@@ -430,6 +435,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,
@@ -1576,7 +1593,7 @@
.title {
width: 208rpx;
-
+ flex-shrink: 0;
text {
color: red;
font-weight: bold;
@@ -1627,6 +1644,7 @@
display: flex;
justify-content: center;
align-items: center;
+ flex-shrink: 0;
.uni-icons {
color: #fff !important;
--
Gitblit v1.9.1