| | |
| | | <text>订单明细</text> |
| | | </view> |
| | | <!-- 包装组号:{{item.packageGroupNo}} --> |
| | | <view class="order-item" v-for="item in orderList"> |
| | | <view class="order-item" v-for="item in orderList" v-show="item.show"> |
| | | <view class="list-left"> |
| | | <!-- <view class="list-left-item"> |
| | | <view class="desc">物料编码:</view> |
| | |
| | | <view style="height: 60px;"></view> |
| | | <view class="orderDetl-none" v-if="orderList.length == 0">暂无明细</view> |
| | | |
| | | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="buttom"> |
| | | <button size="mini" @click="reset('warn')">重置</button> |
| | | <div>{{check}}</div> |
| | | <div>/</div> |
| | | <div>{{total}}</div> |
| | | <button size="mini" type="primary" @click="combConfirm('warn')">单据核对</button> |
| | | </view> |
| | | <view> |
| | |
| | | orderNoList: [], |
| | | orderNo: '', |
| | | orderList: [], |
| | | checkUser:[], |
| | | checkUser: [], |
| | | matnr: '', |
| | | matFocus: true, |
| | | msgType: 'success', |
| | | messageText: '', |
| | | title: '', |
| | | content: '', |
| | | threeCode:'', |
| | | memo:'', |
| | | threeCode: '', |
| | | memo: '', |
| | | check: 0, |
| | | total: 0, |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | // return |
| | | // } |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/mobile/getReviewList?orderNo=`+_this.orderNo, |
| | | url: `${_this.baseUrl}/mobile/getReviewList?orderNo=` + _this.orderNo, |
| | | header: { |
| | | 'token': uni.getStorageSync('token') |
| | | }, |
| | |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.orderList.length = 0 |
| | | console.log(_this.orderList); |
| | | _this.check = 0 |
| | | _this.orderList = res.data |
| | | _this.total = res.data.length |
| | | for (let key of res.data) { |
| | | if (key.inspect == 1) { |
| | | _this.check = _this.check + 1 |
| | | } |
| | | } |
| | | } else if (res.code === 403) { |
| | | uni.showToast({ |
| | | title: res.msg, |
| | |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | _this.checkUser.length = 0 |
| | | console.log( res.data); |
| | | _this.checkUser = res.data |
| | | } else if (res.code === 403) { |
| | | uni.showToast({ |
| | |
| | | }, |
| | | secAnalysis(data) { |
| | | let flag = false; |
| | | let sortOrderList = []; |
| | | for (let k of this.orderList) { |
| | | console.info(data.batch == k.batch) |
| | | console.info(data.specs == k.specs) |
| | | console.info(data.anfme == k.anfme) |
| | | console.info(data.anfme ) |
| | | console.info(k.anfme) |
| | | console.info(data.batch == k.batch) |
| | | console.info(data.specs == k.specs) |
| | | console.info(data.anfme == k.anfme) |
| | | console.info(data.anfme) |
| | | console.info(k.anfme) |
| | | if (data.batch == k.batch && data.specs == k.specs && data.anfme == k.anfme) { |
| | | flag = true |
| | | sortOrderList.unshift(k) |
| | | if (k.inspect == 1) { |
| | | uni.showToast({ |
| | | title: '当前条码已确认', |
| | |
| | | duration: 2000 |
| | | }) |
| | | k.inspect = 1 |
| | | this.check = this.check + 1 |
| | | } |
| | | } else { |
| | | sortOrderList.push(k) |
| | | } |
| | | } |
| | | this.orderList = sortOrderList; |
| | | if (!flag) { |
| | | this.msgType = 'warn' |
| | | this.title = '警告' |
| | | this.content = "箱号:" + data.batch + "\n" |
| | | + "规格:"+ data.specs + "\n" |
| | | + "净重:"+ data.anfme + "\n" |
| | | + '不存在,请检查!' |
| | | this.content = "箱号:" + data.batch + "\n" + |
| | | "规格:" + data.specs + "\n" + |
| | | "净重:" + data.anfme + "\n" + |
| | | '不存在,请检查!' |
| | | this.$refs.combConfirm2.open() |
| | | } |
| | | this.focuss() |
| | |
| | | }, |
| | | comb() { |
| | | let _this = this |
| | | |
| | | |
| | | // if (!_this.memo) { |
| | | // this.messageText = "请选择复核备注" |
| | | // this.messageToggle('error') |
| | |
| | | this.messageText = "请选择复核人" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | } |
| | | for (let k of this.orderList) { |
| | | k.memo =this.memo |
| | | k.threeCode =this.threeCode |
| | | k.memo = this.memo |
| | | k.threeCode = this.threeCode |
| | | } |
| | | uni.request({ |
| | | url: `${_this.baseUrl}/mobile/reviewCheck`, |