Merge branch 'bfwms' of http://47.97.1.152:5880/r/wms_app into bfwms
| | |
| | | <view class="text-title"><text>数量</text></view> |
| | | <view class="text-title"> |
| | | <view> |
| | | <uni-number-box :value="matData.anfme" :max="999999" color="#747474" @change="changeValue"/> |
| | | <uni-number-box :value="matData.anfme" :max="9999999" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="footer flex" style="height: 100rpx;"> |
| | | <view class="bottom"> |
| | | <view style="display: inline-block;"> |
| | | <button size="mini">上一页</button> |
| | | <button size="mini" @click="pageUp()">上一页</button> |
| | | </view> |
| | | <view style="display: flex;align-items: center;"> |
| | | <text>当前页:</text> |
| | | <input v-model="limit" type="text" style="width: 50rpx;border: 1px solid #ccc;height: 30rpx;font-size: 14rpx;"> |
| | | <input v-model="limit" @blur="toPage()" type="text" style="width: 50rpx;border: 1px solid #ccc;height: 30rpx;font-size: 14rpx;"> |
| | | </view> |
| | | <view style="display: flex;align-items: center;"> |
| | | <text style="font-size: 14rpx;">共{{pages}}页</text> |
| | | </view> |
| | | <view style="display: inline-block;"> |
| | | <button size="mini">下一页</button> |
| | | <button size="mini" @click="pageDown()">下一页</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | tag: [], |
| | | data: [], |
| | | limit: 1, |
| | | pages: 10 |
| | | pages: 10, |
| | | curr: 1, |
| | | parentId:'' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | pageUp() { |
| | | this.curr = this.curr - 1 |
| | | this.showMat(this.parentId,this.curr,16) |
| | | this.limit = this.curr |
| | | console.log(this.curr); |
| | | }, |
| | | pageDown() { |
| | | this.curr = this.curr + 1 |
| | | this.limit = this.curr |
| | | this.showMat(this.parentId,this.curr,16) |
| | | console.log(this.curr); |
| | | }, |
| | | toPage() { |
| | | this.curr = this.pages |
| | | |
| | | this.showMat(this.parentId,this.curr,16) |
| | | }, |
| | | checkbox() { |
| | | |
| | | }, |
| | |
| | | if (res.data != null && res.data.length > 0) { |
| | | that.tag = res.data |
| | | } else { |
| | | that.showMat(parentId) |
| | | that.showMat(parentId,"1","16") |
| | | } |
| | | } else if (res.code === 403 ) { |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}) |
| | |
| | | } |
| | | }); |
| | | }, |
| | | showMat(tagId) { |
| | | showMat(tagId,curr,limit) { |
| | | uni.showLoading(); |
| | | let that = this |
| | | if (tagId == null || tagId == '' || tagId == undefined) { |
| | | return; |
| | | } |
| | | uni.request({ |
| | | url: that.commonUrl + '/mat/list/auth2', |
| | | url: that.commonUrl + '/mat/list/pad/page/auth', |
| | | data: { |
| | | param: { |
| | | curr: 1, |
| | | limit: 16, |
| | | tag_id:tagId} |
| | | curr: curr, |
| | | limit: limit, |
| | | tagId:tagId, |
| | | } |
| | | }, |
| | | method:"GET", |
| | | method:"POST", |
| | | header: { |
| | | 'token':uni.getStorageSync('token'), |
| | | }, |
| | | success(result) { |
| | | console.log(result); |
| | | uni.hideLoading(); |
| | | that.tag = null |
| | | var res = result.data |
| | |
| | | <view class="changeBox"> |
| | | <view class="num-box"> |
| | | <text style="display: inline-block;float: left;width: 50px;">批号:</text> |
| | | <uni-number-box :value="count" :max="999999" color="#747474" @change="changeValue"/> |
| | | <uni-number-box :value="count" :max="9999999" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | <view class="revise-box-buttom"> |