| | |
| | | formatTime: formatTime, |
| | | formatLocation: formatLocation, |
| | | dateUtils: dateUtils, |
| | | getStorage: getStorage |
| | | getStorage: getStorage, |
| | | debounce: debounce, |
| | | } |
| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMat()" |
| | | <input v-model="matnr" type="text" placeholder="扫码 / 输入" @input="findMatInput()" |
| | | :focus="focus" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> |
| | | </view> |
| | |
| | | check:false, |
| | | checkText:'全选', |
| | | checkedData:[], |
| | | batch:'' |
| | | batch:'', |
| | | timeout: null, |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | }); |
| | | that.matnr = '' |
| | | }, |
| | | findMatInput() { |
| | | clearTimeout(this.timeout) |
| | | this.timeout = setTimeout(() => { |
| | | this.findMat() |
| | | },600) |
| | | }, |
| | | findMat() { |
| | | let that = this |
| | | uni.request({ |
| | |
| | | }, |
| | | confirm() { |
| | | let arr = this.matList[this.rowNum].origin.split("/") |
| | | console.log(arr); |
| | | let mainAnfme = this.count * parseFloat(arr[1]) * parseFloat(arr[0]) |
| | | let flooredNum = Math.floor(mainAnfme * 10000) / 10000; // 截断到小数点后4位 |
| | | this.matList[this.rowNum].anfme = flooredNum |