| File was renamed from pages/ZLGL/Kf_SellOutBill_CusBar/Kf_SellOutBill_CusBar_APP.vue |
| | |
| | | </view> |
| | | <!-- 选源单功能 --> |
| | | <view class="icon-wrapper"> |
| | | <uni-icons type="search" size="20" @click=""></uni-icons> |
| | | <uni-icons type="search" size="20" @click="openSourceBillSelector"></uni-icons> |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | |
| | | overflow: 'auto' |
| | | }"> |
| | | <view class="list" v-for="(item,index) in HMaterList" :key="index"> |
| | | <uni-card :title="item.器具名称" :extra="item.器具代号" style="margin: 10px;" @tap="delMould(item)"> |
| | | <uni-card v-if="item.器具条码" :title="item.器具名称" :extra="item.器具代号" style="margin: 10px;" @tap="delMould(item)"> |
| | | <view class="card-detail"> |
| | | <view class="detail"> |
| | | <text>器具条码:</text>{{item.器具条码}} |
| | |
| | | } from "@/utils/mpaasScan.js" |
| | | import { |
| | | getUserInfo |
| | | } from "../../../utils/auth"; |
| | | } from "@/utils/auth"; |
| | | import { |
| | | getUserStockRelation |
| | | } from '@/utils/userRelationManager'; |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | // 打开选源单页面 |
| | | openSourceBillSelector() { |
| | | this.$refs.billList.showPopup() |
| | | }, |
| | | // 接收源单 |
| | | handleSourceBill(e){ |
| | | console.log('e: ',e); |
| | | |
| | | this.hform.HSourceBillNo = e.HBillNo |
| | | this.GetMessageByHSourceBillNo(e.HBillNo) |
| | | this.$refs.billList.exit() |
| | | }, |
| | | // 条码删除 |
| | | async delMater(item) { |
| | |
| | | } |
| | | }, |
| | | async getBarCodeJson(sBarCode, sBarCodePrefix) { |
| | | if (!this.hform.HQty) { |
| | | this.hform.HQty = 0 |
| | | } |
| | | // if (!this.hform.HQty) { |
| | | // this.hform.HQty = 0 |
| | | // } |
| | | console.log('this.hform.HQty: ', this.hform.HQty); |
| | | try { |
| | | let res = await CommonUtils.doRequest2Sync({ |
| | |
| | | HMaker: this.hform.HMaker, |
| | | HWhID: this.hform.HWHID, |
| | | HSPID: this.hform.HStockPlaceID, |
| | | HQty: this.hform.HQty, |
| | | HQty: this.hform.HQty || 0, |
| | | HRedBlueFlag: this.hform.HRedBlueFlag, |
| | | SourceFlag: this.hform.HSourceFlag, |
| | | HSourceBillNo: this.hform.HSourceBillNo, |
| | |
| | | this.hform.HDeptID = data.hDeptIDField |
| | | this.hform.HDeptName = data.hDeptNameField |
| | | } |
| | | |
| | | // this.tabs = 2 |
| | | this.hform.HSourceBillNo = data.hSourceBillNoField |
| | | this.DisBillEntryList() |
| | | } else { |
| | | CommonUtils.playSound(0) |
| | | CommonUtils.showTips({ |
| | |
| | | this.loadCache() |
| | | |
| | | // 监听单据选择完成事件 |
| | | uni.$on('BillSelectComplete', (e) => { |
| | | console.log("接收到的消息: ", e) |
| | | this.hform.HMainSourceInterID = e.HInterID |
| | | this.hform.HSourceBillNo = e.HBillNo |
| | | this.hform.HMainSourceEntryID = e.HEntryID |
| | | this.hform.HEquipID = e.HEquipID |
| | | this.hform.HBarName = e.HEquipName |
| | | this.hform.HBarSpec = e.HEquipSpec |
| | | this.hform.HBarModel = e.HEquipModel |
| | | this.$refs.billList.exit() |
| | | }) |
| | | // uni.$on('BillSelectComplete', (e) => { |
| | | // console.log("接收到的消息: ", e) |
| | | // this.hform.HMainSourceInterID = e.HInterID |
| | | // this.hform.HSourceBillNo = e.HBillNo |
| | | // this.hform.HMainSourceEntryID = e.HEntryID |
| | | // this.hform.HEquipID = e.HEquipID |
| | | // this.hform.HBarName = e.HEquipName |
| | | // this.hform.HBarSpec = e.HEquipSpec |
| | | // this.hform.HBarModel = e.HEquipModel |
| | | // this.$refs.billList.exit() |
| | | // }) |
| | | }, |
| | | onUnload() { |
| | | uni.$off('BillSelectComplete') |
| | | // uni.$off('BillSelectComplete') |
| | | }, |
| | | onReady() { |
| | | const query = uni.createSelectorQuery().in(this) |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import "../style/MJBillStyle.scss"; |
| | | @import "@/pages/MJGL/style/MJBillStyle.scss"; |
| | | |
| | | .left { |
| | | width: 4em; |