| | |
| | | <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> |
| | | <BillListPopupVue ref="billList" :HBillType="hform.HBillType" :HSourceBillType="hform.HMainSourceBillType" |
| | | :HStockOrgID="hform.HStockOrgID"></BillListPopupVue> |
| | | <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue> |
| | | </view> |
| | | </template> |
| | | <script> |
| | |
| | | import { |
| | | getUserStockRelation |
| | | } from '../../utils/userRelationManager'; |
| | | import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | } |
| | | }, |
| | | components: { |
| | | BillListPopupVue |
| | | BillListPopupVue, |
| | | BarCodePopupVue |
| | | }, |
| | | async onLoad(e) { |
| | | await this.getOrganization() |
| | |
| | | } |
| | | }, |
| | | 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, |
| | |
| | | }); |
| | | }, |
| | | //基础仓库资料 |
| | | getHBaseList({sWhere=''} = {}) { |
| | | getHBaseList({ |
| | | sWhere = '' |
| | | } = {}) { |
| | | uni.request({ |
| | | url: this.serverUrl + '/Gy_Warehouse/list', |
| | | data: { |
| | |
| | | this.hform.HMainSourceBillType = data.HSourceBillType |
| | | this.hform.HSourceBillNo = data.HSourceBillNo |
| | | |
| | | let index = this.arrayHMainSourceBillValue.findIndex(e => e == data.HSourceBillType) |
| | | let index = this.arrayHMainSourceBillValue.findIndex(e => e == data |
| | | .HSourceBillType) |
| | | if (index != -1) { |
| | | this.HMainSourceBillType = this.arrayHMainSourceBillType[index] |
| | | this.hform.HMainSourceBillType = data.HSourceBillType |
| | |
| | | this.hform.HSupName = data.HCusName |
| | | this.hform.HStockStyle = data.HStockStyle |
| | | |
| | | let HStockInOrgIndex = this.arrayHOrgValue.findIndex(e => e == data.HStockInOrgID) |
| | | let HStockInOrgIndex = this.arrayHOrgValue.findIndex(e => e == data |
| | | .HStockInOrgID) |
| | | let HStockOutOrgIndex = this.arrayHOrgValue.findIndex(e => e == data |
| | | .HStockOutOrgID) |
| | | this.hform.HStockInOrgID = data.HStockInOrgID |
| | |
| | | }) |
| | | } else if (res.cancel) { |
| | | console.log('用户点击取消'); |
| | | setTimeout(() => { |
| | | uni.navigateBack(); |
| | | }, 500) |
| | | // setTimeout(() => { |
| | | // uni.navigateBack(); |
| | | // }, 500) |
| | | } |
| | | } |
| | | }); |
| | |
| | | |
| | | .title { |
| | | width: 208rpx; |
| | | flex-shrink: 0; |
| | | |
| | | text { |
| | | color: red; |
| | |
| | | border: 1px solid #acacac; |
| | | position: relative; |
| | | display: flex; |
| | | |
| | | |
| | | picker { |
| | | width: 100%; |
| | |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | flex-shrink: 0; |
| | | |
| | | .uni-icons { |
| | | color: #fff !important; |