| | |
| | | <view class="text-title"><text>数量</text></view> |
| | | <view class="text-title"> |
| | | <view> |
| | | <uni-number-box color="#747474" @change="changeValue"/> |
| | | <uni-number-box v-model="matData.anfme" :max="9999" color="#747474" @change="changeValue"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="foot flex justify-center"> |
| | | <label for=""> |
| | | <label> |
| | | <button class="cu-btn bg-blue" @click="back()">提取</button> |
| | | </label> |
| | | </view> |
| | |
| | | maktx: null, |
| | | specs: null, |
| | | batch: null, |
| | | anfme: 0 |
| | | anfme: null, |
| | | }, |
| | | baseIP:'', |
| | | basePORT:'', |
| | |
| | | this.baseIP = option.baseIP |
| | | this.basePORT = option.basePORT |
| | | this.matData.matnr = option.matnr |
| | | |
| | | }, |
| | | onShow() { |
| | | this.getMat() |
| | | }, |
| | | methods: { |
| | | getMat() { |
| | | let that = this |
| | | |
| | | uni.request({ |
| | | url: 'http://localhost:8081/jkwms/mat/auth', |
| | | // url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth', |
| | | // url: 'http://localhost:8081/jkwms/mat/auth', |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth', |
| | | data: { |
| | | matnr: that.matData.matnr |
| | | }, |
| | |
| | | }, |
| | | success(res) { |
| | | var res = res.data; |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | that.matData = {} |
| | | that.matData = res.data; |
| | | } |
| | | } |
| | |
| | | |
| | | }, |
| | | back() { |
| | | this.matData.anfme = 5.9 |
| | | uni.$emit('matData', this.matData); |
| | | // console.log(this.matData) |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | |
| | | }) |
| | | } |
| | | } |
| | |
| | | margin-top: 20rpx; |
| | | margin-left: 10%; |
| | | width: 80%; |
| | | font-size: 36rpx; |
| | | font-weight: 700; |
| | | font-size: 32rpx; |
| | | font-weight: 400; |
| | | color: #434343; |
| | | border-bottom: 1rpx solid #e8e8e8; |
| | | } |
| | | .text-box:last-child { |
| | | border-bottom: none; |
| | | } |
| | | .text-box:last-child .text-title:last-child { |
| | | display: flex; |
| | | height: 100%; |
| | | align-items: center; |
| | | } |
| | | .text-box .text-title { |
| | | width: 30%; |
| | | height: 100rpx; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | .text-box .text-value { |
| | | width: 70%; |
| | | padding: 0 20upx; |
| | | } |
| | | .text-box .text-title:last-child { |
| | | display: inline-block; |
| | | margin-left: 10%; |
| | | width: 60%; |
| | | margin-left: 5%; |
| | | width: 65%; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | | color: #747474; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .text-box .text-title:last-child input { |
| | | border-bottom: 1rpx solid #e8e8e8 ; |
| | | width: 100%; |
| | | } |
| | | |
| | | |
| | | .foot { |
| | | width: 100%; |