修复登录模块 更改 服务地址后,组织有旧数据残留的问题;采购条码模块 添加 批次属性
| | |
| | | HMaterNumber: d['物料编码'], |
| | | HMaterName: d['物料名称'], |
| | | HMaterModel: d['规格型号'], |
| | | // HBatchNo: d['批号'], |
| | | HBatchNo: d['批号'], |
| | | HQty: d['数量'], |
| | | HMinQty: d['数量'], |
| | | HBQty: d['数量'], |
| | |
| | | this.getHDeptList() |
| | | this.GetSourceBillType() |
| | | this.getRelationStore() |
| | | |
| | | uni.$on('BillSelectComplete', (e) => { |
| | | console.log("接收到的消息: ", e.HBillNo) |
| | | this.getHBarCodeData(e.HBillNo) |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | | async getRelationStore() { |
| | |
| | | console.log(e.detail.value) |
| | | this.hform.HDate = e.detail.value |
| | | }, |
| | | onSourceBillBlurHandler() { |
| | | async onSourceBillBlurHandler() { |
| | | if (this.hform.HMainSourceBillType == -1) { |
| | | this.playSound(1) |
| | | this.barCodeFocus = true |
| | | return |
| | | } |
| | | let inputVal = this.$refs.uniComboxSourceBill.inputVal |
| | | |
| | | let inputVal = '' |
| | | if (this.$refs.uniComboxSourceBill) { |
| | | inputVal = this.$refs.uniComboxSourceBill.inputVal || this.hform.HSourceBillNo |
| | | } else { |
| | | inputVal = this.hform.HSourceBillNo |
| | | } |
| | | |
| | | if (inputVal == '') { |
| | | CommonUtils.playSound(0) |
| | | this.refreshHSourceBillState() |
| | |
| | | <view class="right" v-show="showHSourceBillNo"> |
| | | <!-- <uni-combox v-if="reHSourceBillNo" :candidates="arrayHSourceBillNo" placeholder="请输入源单单号" |
| | | v-model="hform.HSourceBillNo" @input="HSourceBillNoChange"></uni-combox> --> |
| | | <input :focus="HSourceBillNoFocus" @confirm="onHSourceBillNoConfirmHandler" type="text" |
| | | <input :focus="HSourceBillNoFocus" @confirm="onSourceBillBlurHandler" type="text" |
| | | name="HSourceBillNo" v-model="hform.HSourceBillNo" placeholder="请输入源单单号" /> |
| | | |
| | | </view> |
| | |
| | | import { |
| | | CommonUtils |
| | | } from '../../utils/common'; |
| | | import { getUserStockRelation } from '../../utils/userRelationManager'; |
| | | import { |
| | | getUserStockRelation |
| | | } from '../../utils/userRelationManager'; |
| | | import BillListPopupVue from '../../components/BillListPopup/BillListPopup.vue'; |
| | | export default { |
| | | components: {BillListPopupVue}, |
| | | components: { |
| | | BillListPopupVue |
| | | }, |
| | | data() { |
| | | return { |
| | | HSourceBillNoFocus: false, |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | |
| | | innerAudioContext.play(); // 播放音频 |
| | | }, |
| | | onSourceBillBlurHandler() { |
| | | let inputVal = this.$refs.uniComboxSourceBill.inputVal |
| | | if (this.hform.HMainSourceBillType == -1) { |
| | | this.playSound(1) |
| | | this.barCodeFocus = true |
| | | return |
| | | } |
| | | let inputVal = '' |
| | | if (this.$refs.uniComboxSourceBill) { |
| | | inputVal = this.$refs.uniComboxSourceBill.inputVal || this.hform.HSourceBillNo |
| | | } else { |
| | | inputVal = this.hform.HSourceBillNo |
| | | } |
| | | if (inputVal == '') { |
| | | CommonUtils.playSound(0) |
| | | return uni.showToast({ |
| | |
| | | this.hform.HDate = e.detail.value |
| | | }, |
| | | //基础仓库资料 |
| | | getHBaseList({sWhere=""} = {}) { |
| | | getHBaseList({ |
| | | sWhere = "" |
| | | } = {}) { |
| | | uni.request({ |
| | | url: this.serverUrl + '/Gy_Warehouse/list', |
| | | data: { |
| | |
| | | pointer-events: none; |
| | | touch-action: none; |
| | | } |
| | | |
| | | </style> |
| | |
| | | }, |
| | | |
| | | getOrganization() { |
| | | this.arrayOrganization = [] |
| | | uni.request({ |
| | | url: this.serverUrl + '/Web/GetOrganizations', |
| | | success: (res) => { |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | |
| | | HMaterNumber: d['物料编码'], |
| | | HMaterName: d['物料名称'], |
| | | HMaterModel: d['规格型号'], |
| | | // HBatchNo: d['批号'], |
| | | HBatchNo: d['批号'], |
| | | HQty: !CommonUtils.isEmpty(HQty) ? HQty : d['数量'], |
| | | HMinQty: d['数量'], |
| | | HBQty: d['数量'], |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | //选中源单 |
| | | getHBarCodeData(HBarCode) { |
| | | |
| | | if(this.hform.HMainSourceBillType == -1) { |
| | | this.playSound(1) |
| | | this.barCodeFocus = true |
| | | return |
| | | } |
| | | if (!this.hform.HFIFOWHName) { |
| | | this.hform.HFIFOWHID = 0 |
| | | } |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | methods: { |
| | |
| | | this.$refs.billList.exit() |
| | | }) |
| | | }, |
| | | beforeDestroy() { |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | }, |
| | | computed: { |