| | |
| | | "path" : "pages/basics/stockCheck", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText": "平库库位盘点", |
| | | "navigationBarTitleText": "库位盘点", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | },{ |
| | |
| | | </view> |
| | | |
| | | <checkbox-group @change="checkbox"> |
| | | <view v-for="(item,index) in matList" :key="index" v-if="item.anfme>0" class="data-list bg-false" :class="'bg-'+item.checked" > |
| | | <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" > |
| | | <label class="left-check-box" > |
| | | <checkbox :value="item.id+''" :checked="true" style="display: block;" /> |
| | | </label> |
| | |
| | | <view><text style="width: 700rpx;">品名:{{item.maktx}}</text></view> |
| | | <view><text style="width: 700rpx;">批号:{{item.batch}}</text></view> |
| | | <view> |
| | | <text style="width: 700rpx;">总数量:{{item.count}}</text> |
| | | <text style="width: 700rpx;">总数量:{{item.enableQty}}</text> |
| | | </view> |
| | | <view> |
| | | <text style="width: 700rpx;">可组托最大数量:{{item.anfme}}</text> |
| | | <text style="width: 700rpx;">组托数量:{{item.anfme}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="data-list-right"> |
| | |
| | | var add = true |
| | | for (var i = 0; i < len; i++) { |
| | | if (mat.matnr == this.matList[i].matnr) { |
| | | if ( mat.batch){ |
| | | if (mat.batch){ |
| | | if( mat.batch == this.matList[i].batch){ |
| | | this.matList[i].times +=1 |
| | | this.matList[i].anfme += mat.anfme |
| | | this.$forceUpdate() // 强制刷新 |
| | | add = false |
| | |
| | | <template> |
| | | <view> |
| | | <scroll-view scroll-y> |
| | | <view class="pak-seach-box"> |
| | | <!-- <view class="pak-seach-box"> |
| | | <view class="box-top"> |
| | | <view class="color-block-blue"></view> |
| | | <text class="title">选择站台</text> |
| | |
| | | <uni-combox @input="getCheckDetl" emptyTips="暂无数据" :candidates="staNoList" v-model="staNo" placeholder="请选择"></uni-combox> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8"placeholder-style="line-height: 85rpx;"> |
| | | <input v-model="barcode" @input="getCheckDetl" type="text" placeholder="扫码 / 输入" maxlength="8"placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode" ></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | this.getOutBound(); |
| | | //this.getOutBound(); |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | getOutBound() { // 获取出库口 |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + '/available/take/check/site', |
| | | method: 'POST', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | success(result) { |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | that.staNoList = res.data |
| | | } else if (res.code == 403) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | } |
| | | }, |
| | | }); |
| | | }, // getOutBound |
| | | // getOutBound() { // 获取出库口 |
| | | // let that = this |
| | | // uni.request({ |
| | | // url: that.commonUrl + '/available/take/check/site', |
| | | // method: 'POST', |
| | | // header: { |
| | | // 'token':uni.getStorageSync('token') |
| | | // }, |
| | | // success(result) { |
| | | // var res = result.data |
| | | // if (res.code === 200) { |
| | | // that.staNoList = res.data |
| | | // } else if (res.code == 403) { |
| | | // uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | | // setTimeout(() => { |
| | | // uni.reLaunch({ |
| | | // url: '../login/login' |
| | | // }); |
| | | // }, 1000); |
| | | // } else { |
| | | // uni.showToast({title: res.msg, icon: "none",position: 'top'}) |
| | | // } |
| | | // }, |
| | | // }); |
| | | // }, // getOutBound |
| | | getCheckDetl() { // 获取出库口货物信息 |
| | | let that = this |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/checkDetl/auth', |
| | | method: 'POST', |
| | | url: that.commonUrl + '/mobile/checkDetl/auth/v2', |
| | | method: 'GET', |
| | | data: { |
| | | staNo:that.staNo |
| | | barcode:that.barcode |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | success(result) { |
| | | var res = result.data |
| | | console.log(result) |
| | | if (res.code === 200) { |
| | | console.log(that.barcode) |
| | | if (res.code === 200||res.data) { |
| | | console.log(res.data) |
| | | that.matList =res.data.wrkDetls |
| | | } else if (res.code == 403) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | | setTimeout(() => { |
| | |
| | | }, |
| | | adjust() { |
| | | let that = this |
| | | console.log(that.matList) |
| | | uni.request({ |
| | | url: that.commonUrl + '/adjust/auth', |
| | | url: that.commonUrl + '/mobile/adjust/auth', |
| | | method: 'POST', |
| | | data: { |
| | | combParam: that.matList |
| | | wrkDetls: that.matList, |
| | | barcode: that.barcode |
| | | }, |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | // color: 'blue', |
| | | // cuIcon: 'copy' |
| | | // }, |
| | | { |
| | | title: '组托入库', |
| | | name: 'pakin', |
| | | color: 'blue', |
| | | cuIcon: 'copy' |
| | | }, |
| | | { |
| | | title: '齐套入库', |
| | | name: 'kitting', |
| | | color: 'blue', |
| | | cuIcon: 'searchlist' |
| | | }, |
| | | { |
| | | title: '在库标记修改', |
| | | name: 'locOriginInOut', |
| | | color: 'blue', |
| | | cuIcon: 'searchlist' |
| | | }, |
| | | { |
| | | title: '库存查询', |
| | | name: 'stockQuery', |
| | | color: 'blue', |
| | | cuIcon: 'searchlist' |
| | | }, |
| | | // { |
| | | // title: '组托入库', |
| | | // name: 'pakin', |
| | | // color: 'blue', |
| | | // cuIcon: 'copy' |
| | | // }, |
| | | // { |
| | | // title: '齐套入库', |
| | | // name: 'kitting', |
| | | // color: 'blue', |
| | | // cuIcon: 'searchlist' |
| | | // }, |
| | | // { |
| | | // title: '在库标记修改', |
| | | // name: 'locOriginInOut', |
| | | // color: 'blue', |
| | | // cuIcon: 'searchlist' |
| | | // }, |
| | | // { |
| | | // title: '库存查询', |
| | | // name: 'stockQuery', |
| | | // color: 'blue', |
| | | // cuIcon: 'searchlist' |
| | | // }, |
| | | { |
| | | title: '订单组托', |
| | | name: 'order', |
| | |
| | | // color: 'blue', |
| | | // cuIcon: 'video' |
| | | // }, |
| | | // { |
| | | // title: '库存盘点', |
| | | // name: 'stoCheck', |
| | | // color: 'blue', |
| | | // cuIcon: 'safe' |
| | | // }, |
| | | { |
| | | title: '库存盘点', |
| | | name: 'stockCheck', |
| | | color: 'blue', |
| | | cuIcon: 'safe' |
| | | }, |
| | | // { |
| | | // title: '平仓库存盘点', |
| | | // name: 'manStoCheck', |