| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>添加商品</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input-btn"> |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()" |
| | | :focus="focus" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | | <view class="content-btn"> |
| | | <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+提取</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="pak-data-box"> |
| | | <view class="box-top"> |
| | | <view class="color-block-blue"></view> |
| | |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | <!-- <y-pop v-model="count" title="修改" :max="9999999" :show="show"></y-pop> --> |
| | | <view> |
| | | <!-- 修改数量 --> |
| | | <uni-popup ref="revise" background-color="#fff" @change="change"> |
| | | <uni-popup ref="revise" @change="change"> |
| | | <view class="revise-box"> |
| | | <view class="revise-box-top"> |
| | | <view class="color-block-blue"></view> |
| | | <text class="title">组托数量</text> |
| | | <text class="title">修改</text> |
| | | </view> |
| | | <view class="text-box"> |
| | | <text>可组数量:{{enableQty}}</text> |
| | | <view class="change"> |
| | | <view class="text-box"> |
| | | <text>数量:{{enableQty}}</text> |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="revise-box-buttom"> |
| | | <view> |
| | | <button class="cu-btn bg-blue" @click="confirm()">确认</button> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | commonUrl:null, |
| | | matList:[], |
| | | staNoList:[], |
| | | barcode: '', |
| | | staNo:'', |
| | | matnr:'', |
| | | enableQty:'', |
| | | count:'', |
| | | count:15, |
| | | maxCount:'', |
| | | minCount:0, |
| | | rowNum:'' |
| | | rowNum:'', |
| | | show: false, |
| | | focus: false, |
| | | |
| | | } |
| | | }, |
| | | mounted(){ |
| | |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | this.getOutBound(); |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | getOutBound() { // 获取出库口 |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/available/take/check/site', |
| | | url: that.commonUrl + '/available/take/check/site', |
| | | method: 'POST', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | getCheckDetl() { // 获取出库口货物信息 |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/checkDetl/auth', |
| | | url: that.commonUrl + '/mobile/checkDetl/auth', |
| | | method: 'POST', |
| | | data: { |
| | | staNo:that.staNo |
| | |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth', |
| | | url: that.commonUrl + '/mat/auth', |
| | | data: { |
| | | matnr:that.matnr |
| | | }, |
| | |
| | | this.maxCount = item.maxCount |
| | | this.rowNum = index |
| | | this.eject() |
| | | // this.show = true |
| | | }, |
| | | remove(item,index) { |
| | | this.matList.splice(index,1) |
| | |
| | | adjust() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/adjust/auth', |
| | | url: that.commonUrl + '/adjust/auth', |
| | | method: 'POST', |
| | | data: { |
| | | combParam: that.matList |
| | |
| | | } // exprot |
| | | </script> |
| | | <style> |
| | | .revise-box { |
| | | width: 500rpx; |
| | | height: 300rpx; |
| | | display: flex; |
| | | flex-direction: column; |
| | | border-radius: 20rpx; |
| | | background-color: #F1F1F1; |
| | | } |
| | | .change { |
| | | height: 150rpx; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .revise-box-buttom { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .pak-seach-box { |
| | | background-color: #FFFFFF; |
| | | margin: 15rpx 15rpx 0rpx 15rpx; |