修改 采购入库模块 新增 输入框自动聚焦
修改 生成领料单校验 模块 物料信息显示 源单数量
| | |
| | | "localRepoPath" : "D:/WorkBench/ZY_APP_Dev/STUWMS/unpackage/debug", |
| | | "openVueDevtools" : true, |
| | | "packageName" : "com.shebeiguanli.www", |
| | | "playground" : "standard", |
| | | "playground" : "custom", |
| | | "type" : "uni-app:app-android" |
| | | } |
| | | ] |
| | |
| | | length: 0, |
| | | page: 0, |
| | | HBillNo: '', |
| | | HMater: this.HMater, |
| | | // HMater: this.HMater, |
| | | HCustom: '', |
| | | HBillList: [], |
| | | panelHeight: 0, |
| | |
| | | <view class="form-item"> |
| | | <view class="title">条码:</view> |
| | | <view class="right"> |
| | | <input v-model="hform.HBarCode" placeholder="请扫描(或输入)条码" @confirm="getCode(hform.HBarCode)" /> |
| | | <input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="请扫描(或输入)条码" @confirm="getCode(hform.HBarCode)" /> |
| | | </view> |
| | | <uni-icons type="scan" |
| | | style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" |
| | |
| | | <view class="title">单据号:</view> |
| | | <view class="right" style="width: 380rpx;"> |
| | | <input name="HBillNo" v-model="hform.HBillNo" placeholder="请扫描(或输入)条码" |
| | | @confirm="GetMeesageByBillNo(hform.HBarCode)" /> |
| | | @confirm="GetMeesageByBillNo(hform.HBarCode)" :focus="HBillNoFocus"/> |
| | | </view> |
| | | <uni-icons type="scan" |
| | | style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | HBarCodeFocus: false, |
| | | HBillNoFocus: false, |
| | | |
| | | userInfo: getUserInfo(), |
| | | serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API', |
| | | HModName: 'Kf_POStockInBill_CheckList_PDA', |
| | |
| | | // this.getNewData() |
| | | } |
| | | this.getHBaseList() |
| | | |
| | | this.refreshHBillNoFocus() |
| | | }, |
| | | methods: { |
| | | // 刷新单据号聚焦 |
| | | async refreshHBillNoFocus() { |
| | | this.HBillNoFocus = false |
| | | this.hform.HBillNo = '', |
| | | await this.$nextTick() |
| | | this.HBillNoFocus = true |
| | | }, |
| | | // 刷新条码聚焦 |
| | | async refreshHBarCodeFocus() { |
| | | this.HBarCodeFocus = false |
| | | this.hform.HBarCode = '' |
| | | await this.$nextTick() |
| | | this.HBarCodeFocus = true |
| | | }, |
| | | //扫码 |
| | | toScanCode() { |
| | | var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module") |
| | |
| | | } |
| | | this.tabs = 2 |
| | | this.DisBillEntryList(); |
| | | this.refreshHBarCodeFocus() |
| | | } else { |
| | | CommonUtils.playSound(0); |
| | | this.refreshHBillNoFocus() |
| | | uni.showToast({ |
| | | title: res.data.Message, |
| | | icon: 'none' |
| | | }) |
| | | this.hform.HBillNo = '' |
| | | |
| | | // this.hform.HBillNo = '' |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | CommonUtils.playSound(0); |
| | | this.refreshHBillNoFocus() |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | |
| | | }, |
| | | success: (res) => { |
| | | console.log('扫码返回', res.data); |
| | | this.hform.HBarCode = '' |
| | | // this.hform.HBarCode = '' |
| | | if (res.data.count == 1) { |
| | | CommonUtils.playSound(1); |
| | | var data = res.data.data |
| | |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | |
| | | this.refreshHBarCodeFocus() |
| | | }, |
| | | fail: (res) => { |
| | | CommonUtils.playSound(0); |
| | | console.log(res); |
| | | this.refreshHBarCodeFocus() |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | |
| | | <view class="form-item"> |
| | | <view class="title">条码:</view> |
| | | <view class="right" style="width: 380rpx;"> |
| | | <input v-model="hform.HBarCode" placeholder="请扫描(或输入)条码" @confirm="getCode(hform.HBarCode)" /> |
| | | <input v-model="hform.HBarCode" :focus="HBarCodeFocus" placeholder="请扫描(或输入)条码" |
| | | @confirm="getCode(hform.HBarCode)" /> |
| | | </view> |
| | | <uni-icons type="scan" |
| | | style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" |
| | |
| | | <view class="form-item" v-show="showHBillNo"> |
| | | <view class="title">单据号(物料):</view> |
| | | <view class="right" style="width: 380rpx;"> |
| | | <input name="HBillNoMater" :focus="HBillNoFocusMater" v-model="HBillNoMater" placeholder="请扫描(或输入)条码" |
| | | @confirm="showBillList()" /> |
| | | <input name="HBillNoMater" :focus="HBillNoFocusMater" v-model="HBillNoMater" |
| | | placeholder="请扫描(或输入)条码" @confirm="showBillList()" /> |
| | | </view> |
| | | <uni-icons type="scan" |
| | | style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" |
| | |
| | | <view class="detail"> |
| | | <text>物料代码:</text>{{item.物料代码}} |
| | | </view> |
| | | <view class="detail" v-if="item.总数量"> |
| | | <text>总数量:</text>{{item.总数量}} |
| | | </view> |
| | | |
| | | <view class="detail" v-if="item.规格型号"> |
| | | <text>规格型号:</text>{{item.规格型号}} |
| | | </view> |
| | |
| | | <view class="detail" v-if="item.生产订单号"> |
| | | <text>生产订单号:</text>{{item.生产订单号}} |
| | | </view> |
| | | |
| | | <view class="detail" v-if="item.单据数量"> |
| | | <text>源单数量:</text>{{item.单据数量}} |
| | | </view> |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | |
| | | ModRightName: 'CE_MateOutCheck', |
| | | OperationType: 1, |
| | | |
| | | HBarCodeFocus: false, |
| | | HBillNoFocus: false, |
| | | HBillNoFocusMater:false, |
| | | HBillNoMater:'', |
| | |
| | | }) |
| | | |
| | | }, |
| | | async refreshHBarCodeFocus() { |
| | | this.HBarCodeFocus = false |
| | | await this.$nextTick() |
| | | this.hform.HBarCode = '' |
| | | this.HBarCodeFocus = true |
| | | }, |
| | | async refreshHBillNoFocus() { |
| | | this.HBillNoFocus = false |
| | | await this.$nextTick(() => { |
| | |
| | | } |
| | | this.tabs = 2 |
| | | this.DisBillEntryList(); |
| | | this.refreshHBarCodeFocus() |
| | | } else { |
| | | this.playSound(0) |
| | | this.refreshHBillNoFocus() |
| | |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | |
| | | this.refreshHBarCodeFocus() |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | |
| | | this.refreshHBarCodeFocus() |
| | | }, |
| | | }); |
| | | } |