| | |
| | | |
| | | <checkbox-group @change="checkbox"> |
| | | <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" > |
| | | <!-- <label class="left-check-box"> |
| | | <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" /> |
| | | </label> --> |
| | | <view class="data-list-left"> |
| | | <view class="matnr"><text style="width: 700rpx;">编码:{{item.matnr}}</text></view> |
| | | <view><text style="width: 700rpx;">品名:{{item.maktx}}</text></view> |
| | |
| | | <text style="width: 700rpx;">数量:{{item.anfme}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="data-list-right"> |
| | | <!-- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label> --> |
| | | <!-- list中删除键 --> |
| | | <!-- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> --> |
| | | </view> |
| | | </view> |
| | | </checkbox-group> |
| | | <!-- <view style="margin-top: 10px;"> |
| | | <uni-table ref="table" border stripe emptyText="暂无更多数据"> |
| | | <uni-tr> |
| | | <uni-th align="center" width="50">出库数量</uni-th> |
| | | <uni-th align="center" width="70">产品ID</uni-th> |
| | | <uni-th align="center" width="80">产品代号</uni-th> |
| | | <uni-th align="center" width="70">产品名称</uni-th> |
| | | </uni-tr> |
| | | <uni-tr v-for="(item, index) in matList" :key="index"> |
| | | <uni-td align="center">{{item.qty}}</uni-td> |
| | | <uni-td align="center">{{item.matNo}}</uni-td> |
| | | <uni-td align="center">{{item.size}}</uni-td> |
| | | <uni-td align="center">{{item.matName}}</uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | </view> --> |
| | | |
| | | <!-- 底部按钮 --> |
| | | <view class="footer flex justify-around"> |
| | | <!-- 底部全选 反选按钮 --> |
| | | <!-- <label class="label-btn" style="width: 170rpx;"> |
| | | <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox> |
| | | </label> |
| | | <label class="label-btn" style="width: 100rpx;"> |
| | | <text @click="reChecked()">反选</text> |
| | | </label> --> |
| | | |
| | | <label class="label-btn" style="width: 150rpx;"> |
| | | <button class="cu-btn" @click="resst()">重置</button> |
| | | </label> |
| | |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT; |
| | | this.basePORT = UPORT |
| | | const PROJ = uni.getStorageSync('UPROJ'); |
| | | this.baseUrl = PROJ |
| | | this.getUrl() |
| | | this.staNoSelect(); |
| | | }, |
| | | methods: { |
| | | // 获取url |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl |
| | | }, |
| | | // 清空单号搜索框 |
| | | removeLocNo() { |
| | | this.locNo = null |
| | |
| | | searchLocNo() { |
| | | let that = this; |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/locDetl/list/auth", |
| | | url: that.commonUrl + "/locDetl/list/auth", |
| | | header: { |
| | | 'content-type':"application/x-www-form-urlencoded", |
| | | 'token':uni.getStorageSync('token') |
| | |
| | | staNoSelect() { |
| | | let that = this; |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/available/take/site", |
| | | url: that.commonUrl + "/available/take/site", |
| | | header: {'token':uni.getStorageSync('token')}, |
| | | success(result) { |
| | | let res = result.data |
| | |
| | | }, |
| | | outbound() { |
| | | let that = this |
| | | if (that.matList.length === 0) { |
| | | uni.showToast({title: "请选择出库口", icon: "none",position: 'top'}) |
| | | } else { |
| | | if (that.siteId == '') { |
| | | console.log(that.locNo) |
| | | if(that.locNo === ''||that.locNo===null){ |
| | | uni.showToast({title: "输入条码", icon: "none",position: 'top'}) |
| | | return; |
| | | } |
| | | if (that.siteId === '') { |
| | | uni.showToast({title: "请选择出库口", icon: "none",position: 'top'}) |
| | | return; |
| | | } |
| | | }; |
| | | |
| | | if (that.matList.length === 0) { |
| | | var staNo = that.siteId.substring(0,3) |
| | | var getlocNo = []; |
| | | getlocNo.push(that.locNo); |
| | | uni.request({ |
| | | url: that.commonUrl + "/empty/pda/plate/out/start", |
| | | header: { |
| | | 'token':uni.getStorageSync('token')}, |
| | | data: { |
| | | outSite: staNo, |
| | | locNos: getlocNo |
| | | }, |
| | | method:"POST", |
| | | traditional:true, |
| | | success(result) { |
| | | console.log(result) |
| | | if (result.data.code === 200) { |
| | | uni.showToast({title: result.data.msg, icon: "none",position: 'top'}) |
| | | that.resst() |
| | | } else { |
| | | uni.showToast({title: result.data.msg, icon: "none",position: 'top'}) |
| | | } |
| | | } |
| | | }) |
| | | |
| | | }else{ |
| | | var staNo = that.siteId.substring(0,3) |
| | | var locDetls = []; |
| | | that.matList.forEach(function(elem) { |
| | |
| | | outSite: staNo, |
| | | locDetls: locDetls |
| | | } |
| | | console.log("param") |
| | | console.log(param) |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/plate/out/start", |
| | | url: that.commonUrl + "/plate/out/start", |
| | | header: { |
| | | 'token':uni.getStorageSync('token')}, |
| | | data: JSON.stringify(param), |
| | |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | resst() { |
| | | this.billNo = ''; |
| | | this.matList = []; |
| | | this.siteId = ''; |
| | | this.locNo = null |
| | | } |
| | | } |
| | | } |